All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ido Schimmel <idosch@nvidia.com>
To: Kyuwon Cho <kyuwoncho18@gmail.com>
Cc: "David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	David Ahern <dsahern@kernel.org>,
	Willem de Bruijn <willemb@google.com>,
	Simon Horman <horms@kernel.org>, Thomas Graf <tgraf@suug.ch>,
	Cen Zhang <cenzhang@linux.microsoft.com>,
	netdev@vger.kernel.org
Subject: Re: [PATCH net] ipv6: skip walkers of other tables when a route leaves the tree
Date: Thu, 26 Nov 2026 17:57:30 +0200	[thread overview]
Message-ID: <20261126155730.GA890398@shredder> (raw)
In-Reply-To: <179561512100.3216623.16734853197511150282@gmail.com>

On Wed, Nov 25, 2026 at 11:52:58PM +0900, Kyuwon Cho wrote:
> fib6_walkers_replace_leaf() runs under the tb6_lock of the route's
> table but checks every walker of the netns, including walkers of other
> tables, which run under their own table's lock. Such a walker can be
> anywhere in its walk: fib6_walk_continue() sets w->state to FWS_C
> before it sets w->leaf, and the walker of fib6_clean_tree() starts with
> an uninitialized w->leaf on the stack. A route delete in one table
> while a link change cleans another one compares that value:
> 
>   BUG: KMSAN: uninit-value in fib6_del (net/ipv6/ip6_fib.c:103)
>    fib6_del (net/ipv6/ip6_fib.c:103 ip6_fib.c:123 ip6_fib.c:2056)
>    __ip6_del_rt_siblings (net/ipv6/route.c:4086)
>    ip6_route_del (net/ipv6/route.c:4235)
>    inet6_rtm_delroute (net/ipv6/route.c:5686)
>    rtnetlink_rcv_msg (net/core/rtnetlink.c:7169)
>   Local variable c.i created at:
>    __fib6_clean_all (net/ipv6/ip6_fib.c:2315 net/ipv6/ip6_fib.c:2344)
>    fib6_clean_all (net/ipv6/ip6_fib.c:2355)
> 
> A walker of another table never rests on a route of this table, so
> skip it.
> 
> Fixes: c71099acce93 ("[IPV6]: Multiple Routing Tables")
> Signed-off-by: Kyuwon Cho <kyuwoncho18@gmail.com>

Reviewed-by: Ido Schimmel <idosch@nvidia.com>

  reply	other threads:[~2026-11-26 15:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 14:52 [PATCH net] ipv6: skip walkers of other tables when a route leaves the tree Kyuwon Cho
2026-11-26 15:57 ` Ido Schimmel [this message]
2026-12-02  2:40 ` patchwork-bot+netdevbpf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261126155730.GA890398@shredder \
    --to=idosch@nvidia.com \
    --cc=cenzhang@linux.microsoft.com \
    --cc=davem@davemloft.net \
    --cc=dsahern@kernel.org \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=kyuwoncho18@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=tgraf@suug.ch \
    --cc=willemb@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.