diff options
| author | 2026-09-12 00:35:14 +0800 | |
|---|---|---|
| committer | 2026-10-21 08:55:13 +0900 | |
| commit | a63bb4d91c784f63ad7c063717dff7920d8445be (patch) | |
| tree | 37a5ea961a035910baa8bdce2a46f3bf6d248036 /scripts/Makefile.thinlto | |
| parent | ksmbd: fix link speed query in fsctl_query_iface_info_ioctl() (diff) | |
ksmbd: fix unlocked IPv6 addr_list walk in fsctl_query_iface_info_ioctl()
fsctl_query_iface_info_ioctl() walks idev6->addr_list with a plain
list_for_each_entry() while holding only rtnl_lock(). rtnl does not
serialize all writers of this list: the DAD-failure path
(addrconf_dad_failure -> ipv6_add_addr) can insert addresses without
holding RTNL. It updates idev->addr_list with list_add_tail_rcu() under
write_lock_bh(&idev->lock), so it can race with the unlocked walk.
addr_list is RCU managed, so walk it with list_for_each_entry_rcu()
under rcu_read_lock(), matching the other lockless readers of the list.
Fixes: e2f34481b24d ("cifsd: add server-side procedures for SMB3")
Reported-by: Sashiko <sashiko-bot+sashiko@kernel.org>
Link: https://sashiko.dev/#/patchset/20260910090818.24479-1-15815827059%40163.com
Co-developed-by: Xuanqiang Luo <luoxuanqiang@kylinos.cn>
Signed-off-by: Xuanqiang Luo <luoxuanqiang@kylinos.cn>
Signed-off-by: Henry Hu <huhai@kylinos.cn>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
