Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Ido Schimmel <idosch@nvidia.com>
To: vjardin@free.fr
Cc: David Ahern <dsahern@kernel.org>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Willem de Bruijn <willemb@google.com>,
	Simon Horman <horms@kernel.org>,
	Nicolas Dichtel <nicolas.dichtel@6wind.com>,
	Shuah Khan <shuah@kernel.org>,
	netdev@vger.kernel.org, linux-kselftest@vger.kernel.org,
	stable@vger.kernel.org
Subject: Re: [PATCH net 0/2] ipv6: fix IPv6 scope check of the source address in a VRF
Date: Wed, 25 Nov 2026 14:21:50 +0200	[thread overview]
Message-ID: <20261125122150.GA170378@shredder> (raw)
In-Reply-To: <20261123-for-upstream-ipv6-vrf-saddr-scope-v1-v1-0-f667ab150ade@free.fr>

On Mon, Nov 23, 2026 at 03:30:42PM +0100, Vincent Jardin via B4 Relay wrote:
> When a packet is sent through a device of a VRF, ipv6_dev_get_saddr()
> first checks the addresses of that device and of the VRF device,
> and stops when the best of them has a scope that fits the destination.
> 
> Since the commit abb9a68d2c64 ("ipv6: take care of scope when
> choosing the src addr"), the check reads the scopedist of the best
> candidate, which is an issue:
> 
> - with a single candidate, scopedist is not written: when the stack is
>   zero-initialized, a device that only has a link-local address sends
>   to global destinations with it, although another device of the VRF
>   has a global address
> 
> - with more candidates, scopedist is negative, whether the scope fits
>   or not: all the devices of the VRF are looked at, and one of their
>   addresses can win over the address of the VRF device
> 
> Changes:
> - patch 1 compares the scope of the best candidate with the scope
>   of the destination
> 
> - patch 2 adds test cases to fib_tests.sh

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

      parent reply	other threads:[~2026-11-25 12:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 14:30 [PATCH net 0/2] ipv6: fix IPv6 scope check of the source address in a VRF Vincent Jardin via B4 Relay
2026-11-23 14:30 ` [PATCH net 1/2] ipv6: check the scope of the best source address candidate " Vincent Jardin via B4 Relay
2026-11-24 13:55   ` Nicolas Dichtel
2026-11-25 12:21 ` Ido Schimmel [this message]

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=20261125122150.GA170378@shredder \
    --to=idosch@nvidia.com \
    --cc=davem@davemloft.net \
    --cc=dsahern@kernel.org \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=nicolas.dichtel@6wind.com \
    --cc=pabeni@redhat.com \
    --cc=shuah@kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=vjardin@free.fr \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox