diff options
author | 2025-01-15 09:28:35 +0900 | |
---|---|---|
committer | 2025-01-15 23:24:51 -0600 | |
commit | aab98e2dbd648510f8f51b83fbf4721206ccae45 (patch) | |
tree | 7c55e545d234ebee2f0de6b3db7059b831cbe724 /scripts/generate_rust_analyzer.py | |
parent | ksmbd: browse interfaces list on FSCTL_QUERY_INTERFACE_INFO IOCTL (diff) | |
download | wireguard-linux-aab98e2dbd648510f8f51b83fbf4721206ccae45.tar.xz wireguard-linux-aab98e2dbd648510f8f51b83fbf4721206ccae45.zip |
ksmbd: fix integer overflows on 32 bit systems
On 32bit systems the addition operations in ipc_msg_alloc() can
potentially overflow leading to memory corruption.
Add bounds checking using KSMBD_IPC_MAX_PAYLOAD to avoid overflow.
Fixes: 0626e6641f6b ("cifsd: add server handler for central processing and tranport layers")
Cc: stable@vger.kernel.org
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions