summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorIan Bridges <icb@fastmail.org>2026-10-28 20:28:03 -0500
committerNamjae Jeon <linkinjeon@kernel.org>2026-11-01 10:56:11 +0900
commit539223f18026448f67d33d09719c355b91db7fd0 (patch)
tree37df26949ce3ca390000e1d14beb8c8d4899013e /scripts/Makefile.thinlto
parent09139429fab3a5114c18d7c15fb161511d4d66c9 (diff)
downloadlinux-next-539223f18026448f67d33d09719c355b91db7fd0.tar.gz
linux-next-539223f18026448f67d33d09719c355b91db7fd0.zip
ksmbd: revert fsids on durable reconnect and replay failure
On a durable handle reconnect or a request replay, smb2_open() switches to the SMB user's fsids before calling ksmbd_vfs_getattr(). If that call fails, the code jumps to err_out2 and skips ksmbd_revert_fsids() at err_out1. The user's credentials then stay installed on the shared ksmbd worker. Later work on that worker, including other users' requests, runs with the first user's fsuid, fsgid and supplementary groups. ksmbd_free_work_struct() also warns, because work->saved_cred is still set. Jump to err_out1 instead. No path is held at this point, so skipping the path_put() at err_out is correct. Fixes: c8efcc786146 ("ksmbd: add support for durable handles v1/v2") Fixes: bb8bf7eb13b5 ("ksmbd: add SMB3 request replay support") Cc: stable@vger.kernel.org Signed-off-by: Ian Bridges <icb@fastmail.org> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions