aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorAbdifatah Suruur <suruurism@gmail.com>2026-10-17 13:54:54 +0300
committerNamjae Jeon <linkinjeon@kernel.org>2026-10-21 08:55:33 +0900
commita025c4991a7d83edc4dd339e3ea86d8ff6226eca (patch)
tree00dc601a0d3e4cd9ca9f5d26d9f8da688a714bc0 /scripts/Makefile.thinlto
parentksmbd: reject FSCTL_SET_ZERO_DATA on a directory handle (diff)
ksmbd: reserve space for the UTF-16 terminator in stream info
smb_strtoUTF16() always writes a terminating zero UTF-16 unit after the converted characters, but get_file_stream_info() budgets only sizeof(struct smb2_file_stream_info) + streamlen * 2 for a stream entry and sizeof(struct smb2_file_stream_info) + 7 * 2 for the trailing "::$DATA" entry. When an entry exactly fills the 448-byte small response buffer, the terminator is written two bytes past the allocation. Reserve one extra UTF-16 unit in both budget checks. The terminator is not part of the wire format, so the reported lengths are unchanged. Cc: stable@vger.kernel.org Signed-off-by: Abdifatah Suruur <suruurism@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions