aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorKuniyuki Iwashima <kuniyu@google.com>2026-10-03 21:23:22 +0000
committerJakub Kicinski <kuba@kernel.org>2026-10-07 16:07:04 -0700
commit023753192e3c2089f5236ad758b59e52fad4ead0 (patch)
tree4b483b26d5e9de40df8f688a6db9f551be4cfcd9 /scripts/Makefile.thinlto
parentneighbour: Remove __neigh_lookup() and __neigh_lookup_errno(). (diff)
neighbour: Check n->parms->tbl under tbl->lock in ___neigh_create().
Sashiko reported that if ___neigh_create() is called outside of RCU, it could create a new entry for dev in a different netns while __dev_change_net_namespace() is running concurrently: creator ipv6_neigh_create(dev, ...) tbl = nd_table(dev_net(dev)) <- old netns <preempted> __dev_change_net_namespace() NETDEV_UNREGISTER rcu_barrier() dev_net_set(dev, new_net) NETDEV_REGISTER <- new in6_dev creator resumes neigh_create(old_tbl, ...) ndisc_constructor() in6_dev_get(dev) <- new in6_dev, live parms Let's check n->parms->tbl under tbl->lock. Fixes: cda2962b6e2b ("neighbour: Namespacify neigh_tables.") Reported-by: netdev-bot+sashiko@kernel.org Closes: https://lore.kernel.org/netdev/179090663305.434549.17214258093385242325@kernel.org/ Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com> Reviewed-by: Fernando Fernandez Mancera <fmancera@suse.de> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Link: https://patch.msgid.link/20261003212336.1304988-10-kuniyu@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions