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

Since the RFC1002 header has been removed from `struct smb_hdr`,
the minimum SMB1 PDU size should be updated as well.

Fixes: 83bfbd0bb902 ("cifs: Remove the RFC1002 header from smb_hdr")
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