diff options
author | Denis Arefev <arefev@swemel.ru> | 2025-04-09 12:04:49 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2025-04-15 06:21:26 +0300 |
commit | a93ff742820f75bf8bb3fcf21d9f25ca6eb3d4c6 (patch) | |
tree | fecb7dbd539421909c9faeb1979e868a278f508e /tools/perf/scripts/python/intel-pt-events.py | |
parent | b37f2f332b40ad1c27f18682a495850f2f04db0a (diff) | |
download | linux-a93ff742820f75bf8bb3fcf21d9f25ca6eb3d4c6.tar.xz |
ksmbd: Prevent integer overflow in calculation of deadtime
The user can set any value for 'deadtime'. This affects the arithmetic
expression 'req->deadtime * SMB_ECHO_INTERVAL', which is subject to
overflow. The added check makes the server behavior more predictable.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: 0626e6641f6b ("cifsd: add server handler for central processing and tranport layers")
Cc: stable@vger.kernel.org
Signed-off-by: Denis Arefev <arefev@swemel.ru>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions