linux/fs/smb
Yiqi Sun ef9b1e6b8f smb: fix invalid username check in smb3_fs_context_parse_param()
[ Upstream commit ed6612165b ]

Since the maximum return value of strnlen(..., CIFS_MAX_USERNAME_LEN)
is CIFS_MAX_USERNAME_LEN, length check in smb3_fs_context_parse_param()
is always FALSE and invalid.

Fix the comparison in if statement.

Signed-off-by: Yiqi Sun <sunyiqixm@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-12-12 18:37:20 +01:00
..
client smb: fix invalid username check in smb3_fs_context_parse_param() 2025-12-12 18:37:20 +01:00
common smb: smbdirect: introduce smbdirect_socket_parameters 2025-07-06 11:01:42 +02:00
server ksmbd: ipc: fix use-after-free in ipc_msg_send_request 2025-12-12 18:37:18 +01:00
Kconfig smb: move client and server files to common directory fs/smb 2023-05-24 16:29:21 -05:00
Makefile smb: move client and server files to common directory fs/smb 2023-05-24 16:29:21 -05:00