]> git.ipfire.org Git - thirdparty/linux.git/commit
smb: client: prevent races in ->query_interfaces()
authorHenrique Carvalho <henrique.carvalho@suse.com>
Mon, 19 Jan 2026 17:54:44 +0000 (14:54 -0300)
committerSteve French <stfrench@microsoft.com>
Sun, 8 Feb 2026 23:07:43 +0000 (17:07 -0600)
commitc3c06e42e1527716c54f3ad2ced6a034b5f3a489
tree9d4a7d6a9a50a12e0f97e7d0b9b1cacd70cfda95
parente97dcac3dc0bd37e4b56aaa6874b572a3a461102
smb: client: prevent races in ->query_interfaces()

It was possible for two query interface works to be concurrently trying
to update the interfaces.

Prevent this by checking and updating iface_last_update under
iface_lock.

Signed-off-by: Henrique Carvalho <henrique.carvalho@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb2ops.c