]> git.ipfire.org Git - thirdparty/linux.git/commit
ksmbd: fix missing chann_lock while iterating session channel list
authorNamjae Jeon <linkinjeon@kernel.org>
Mon, 9 Feb 2026 12:01:01 +0000 (21:01 +0900)
committerSteve French <stfrench@microsoft.com>
Mon, 9 Feb 2026 23:48:51 +0000 (17:48 -0600)
commit0080608706b37c199c3c2c22bfadac9e75b223a4
treebb8ede689b7e08599fe132dbba1fd98e2c6f9fe9
parent4f3a06cc57976cafa8c6f716646be6c79a99e485
ksmbd: fix missing chann_lock while iterating session channel list

Add chann_lock while iterating ksmbd_chann_list in show_proc_session() and
show_proc_sessions(). This will prevents a race condition with concurrent
channel list modifications.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/mgmt/user_session.c