* [PATCH 2/3] ksmbd: fix partial normalized name responses
@ 2026-09-13 11:35 Namjae Jeon
2026-09-13 15:45 ` ChenXiaoSong
0 siblings, 1 reply; 2+ messages in thread
From: Namjae Jeon @ 2026-09-13 11:35 UTC (permalink / raw)
To: linux-cifs
Cc: senozhatsky, tom, atteh.mailbox, chenxiaosong, chenxiaosong,
Namjae Jeon, Mobin Aydinfar
Windows may request FILE_NORMALIZED_NAME_INFORMATION with an output
buffer that only fits the fixed portion of the variable-length response.
Treat the fixed portion as FILE_ALTERNATE_NAME_INFORMATION_SIZE so ksmbd
returns STATUS_BUFFER_OVERFLOW instead of STATUS_INFO_LENGTH_MISMATCH.
This avoids rejecting valid partial normalized-name responses.
Fixes: 6b8b79226bc3 ("ksmbd: fix partial file information responses")
Reported-by: Mobin Aydinfar <mobin@mobintestserver.ir>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
---
fs/smb/server/smb2pdu.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/fs/smb/server/smb2pdu.c b/fs/smb/server/smb2pdu.c
index f4d96799e1d2..38cddbf3e6ed 100644
--- a/fs/smb/server/smb2pdu.c
+++ b/fs/smb/server/smb2pdu.c
@@ -7318,6 +7318,9 @@ static int smb2_get_info_file(struct ksmbd_work *work,
case FILE_ALTERNATE_NAME_INFORMATION:
fixed_len = FILE_ALTERNATE_NAME_INFORMATION_SIZE;
break;
+ case FILE_NORMALIZED_NAME_INFORMATION:
+ fixed_len = FILE_ALTERNATE_NAME_INFORMATION_SIZE;
+ break;
case FILE_STREAM_INFORMATION:
fixed_len = FILE_STREAM_INFORMATION_SIZE;
break;
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 2/3] ksmbd: fix partial normalized name responses
2026-09-13 11:35 [PATCH 2/3] ksmbd: fix partial normalized name responses Namjae Jeon
@ 2026-09-13 15:45 ` ChenXiaoSong
0 siblings, 0 replies; 2+ messages in thread
From: ChenXiaoSong @ 2026-09-13 15:45 UTC (permalink / raw)
To: Namjae Jeon
Cc: senozhatsky, tom, atteh.mailbox, chenxiaosong, Mobin Aydinfar,
linux-cifs
Should we define a new macro FILE_NORMALIZED_NAME_INFORMATION_SIZE?
On 9/13/2026 7:35 PM, Namjae Jeon wrote:
> + case FILE_NORMALIZED_NAME_INFORMATION:
> + fixed_len = FILE_ALTERNATE_NAME_INFORMATION_SIZE;
--
ChenXiaoSong <chenxiaosong@chenxiaosong.com>
Chinese Homepage: https://chenxiaosong.com
English Homepage: https://chenxiaosong.com/en
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-13 15:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-13 11:35 [PATCH 2/3] ksmbd: fix partial normalized name responses Namjae Jeon
2026-09-13 15:45 ` ChenXiaoSong
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.