Re: [PATCH net] ipv6: use RCU iterator to dump route exceptions

From
patchwork-bot+netdevbpf@kernel.org
Date
2026-08-19 08:11:04
Also in
lkml, stable
Reply to
Yuyang Huang, 2026-08-15
Hello:

This patch was applied to netdev/net.git (main)
by David S. Miller [off-list ref]:

On Sat, 15 Aug 2026 17:46:51 +0900 you wrote:
rt6_nh_dump_exceptions() uses hlist_for_each_entry() to iterate over
RCU-protected exception lists. The caller holds rcu_read_lock(), but does
not hold rt6_exception_lock, so rt6_insert_exception() can concurrently
add an entry with hlist_add_head_rcu().

KCSAN reports this race (irrelevant details omitted):

[...]
Here is the summary with links:
  - [net] ipv6: use RCU iterator to dump route exceptions
    https://git.kernel.org/netdev/net/c/564973a259ec

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Thread (4 messages) 4 messages, 4 authors, last reply 2026-08-19
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help