diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2024-09-17 19:15:23 +0300 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2024-11-11 21:41:57 +0300 |
commit | 7f33b92e5b18e904a481e6e208486da43e4dc841 (patch) | |
tree | a8d03f484b318e2d87cae2e92194c4d8632bbb1b /scripts/lib/kdoc/kdoc_files.py | |
parent | 2d5404caa8c7bb5c4e0435f94b28834ae5456623 (diff) | |
download | linux-7f33b92e5b18e904a481e6e208486da43e4dc841.tar.xz |
NFSD: Prevent a potential integer overflow
If the tag length is >= U32_MAX - 3 then the "length + 4" addition
can result in an integer overflow. Address this by splitting the
decoding into several steps so that decode_cb_compound4res() does
not have to perform arithmetic on the unsafe length value.
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Cc: stable@vger.kernel.org
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions