summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2026-07-05 00:13:18 +0900
committerNamjae Jeon <linkinjeon@kernel.org>2026-08-17 15:00:28 +0900
commitdf35438ba9d5687335a405418772b6cd30383687 (patch)
treec2b99b6cfefda74af8882b52a48232277013895d /tools/perf/scripts/python
parent7019a11f79dc408f2b47b1027240e7f198784c9a (diff)
ksmbd: validate SMB2 write offsets
An SMB2 WRITE request with a negative offset returns -EINVAL directly from smb2_write(). This bypasses the common error response path, leaving the client waiting until the request times out. ksmbd also allows nonempty writes at or beyond MAXFILESIZE as defined by [MS-FSA]. Writes beyond the limit must fail with STATUS_INVALID_PARAMETER. Writes ending at the limit fail with STATUS_DISK_FULL, while a zero-length write remains valid. Route negative offsets through the common error path and validate the end offset of nonempty writes against MAXFILESIZE. This fixes smb2.rw.invalid. Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions