aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2026-09-30 20:39:53 +0900
committerNamjae Jeon <linkinjeon@kernel.org>2026-10-21 08:55:21 +0900
commit68f410faedaf6ee74d81e574733c50ebcc1bd8ed (patch)
tree4405f54cc71ba0a770a953005975c3b562d9cc29 /scripts/Makefile.thinlto
parentksmbd: disconnect on invalid encryption transform flags (diff)
ksmbd: wait for negotiation before receiving another PDU
The receive thread queues a request and can read the next PDU before the negotiation worker finishes. While need_neg is set, the next PDU can cause ksmbd_init_smb_server() to replace conn->ops. A pipelined SMB2 request can therefore make the worker handle an earlier, shorter SMB1 request with SMB2 operations and read beyond its buffer. An SMB1 multi-protocol negotiate may be followed by an SMB2 NEGOTIATE that changes conn->ops again. Wait for work queued while the connection is new or needs negotiation to complete before reading another PDU. This keeps the operations stable for both stages of negotiation without changing when need_neg is cleared. Fixes: dc8289f91238 ("ksmbd: fix slab-out-of-bounds in init_smb2_rsp_hdr") Reported-by: ihopenre-eng <ihopenre@gmail.com> Reviewed-by: ihopenre-eng <ihopenre@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions