summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorKarl Mehltretter <kmehltretter@gmail.com>2026-10-03 01:29:38 +0200
committerNamjae Jeon <linkinjeon@kernel.org>2026-10-04 08:13:36 +0900
commit6a3d7876232a605b4b64811b7a35ea8c86b9a06b (patch)
tree0d901a476f88b7b90709608e59f144dc28f6bf7e /tools/lib/python
parent1549acfea929f0515c0ebe5f1f8a9276bfef6d7f (diff)
downloadlinux-next-6a3d7876232a605b4b64811b7a35ea8c86b9a06b.tar.gz
linux-next-6a3d7876232a605b4b64811b7a35ea8c86b9a06b.zip
ksmbd: use u8 for SMB2 oplock level values
The SMB2 oplock level is an unsigned 8-bit wire value, but smb20_oplock_break_ack() stores it in a plain char. On architectures where plain char is signed, the value 0xff becomes -1 and cannot compare equal to SMB2_OPLOCK_LEVEL_LEASE (0xff). The acknowledgment is consequently rejected with STATUS_INVALID_OPLOCK_PROTOCOL instead of the intended STATUS_INVALID_PARAMETER. Use u8 for the request and response oplock-level variables. This preserves all wire values in their original representation. Fixes: 80a56d4a826c ("ksmbd: align SMB2 oplock break ack handling") Cc: stable@vger.kernel.org Assisted-by: LLM Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions