]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb/server: fix minimum SMB2 PDU size
authorChenXiaoSong <chenxiaosong@kylinos.cn>
Sat, 20 Dec 2025 13:25:51 +0000 (21:25 +0800)
committerSteve French <stfrench@microsoft.com>
Mon, 22 Dec 2025 01:20:46 +0000 (19:20 -0600)
commit4c7d8eb9a79ae5400eac19c4f6f0815bff674452
tree78e872bed5b514f9414b98398c0a2bd952e010f6
parent3b9c30eb8f5aaad4a54cdfa470b74c0467cc71e8
smb/server: fix minimum SMB2 PDU size

The minimum SMB2 PDU size should be updated to the size of
`struct smb2_pdu` (that is, the size of `struct smb2_hdr` + 2).

Suggested-by: David Howells <dhowells@redhat.com>
Suggested-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Reviewed-by: David Howells <dhowells@redhat.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/connection.c