diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2024-07-10 11:14:28 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-07-14 17:34:16 +0300 |
commit | 252442f2ae317d109ef0b4b39ce0608c09563042 (patch) | |
tree | 3dca778da702f1179abe728bf8c9558bbd0922f4 /scripts/gdb/linux/config.py | |
parent | 6807352353561187a718e87204458999dbcbba1b (diff) | |
download | linux-252442f2ae317d109ef0b4b39ce0608c09563042.tar.xz |
ipv6: fix source address selection with route leak
By default, an address assigned to the output interface is selected when
the source address is not specified. This is problematic when a route,
configured in a vrf, uses an interface from another vrf (aka route leak).
The original vrf does not own the selected source address.
Let's add a check against the output interface and call the appropriate
function to select the source address.
CC: stable@vger.kernel.org
Fixes: 0d240e7811c4 ("net: vrf: Implement get_saddr for IPv6")
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Link: https://patch.msgid.link/20240710081521.3809742-3-nicolas.dichtel@6wind.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/config.py')
0 files changed, 0 insertions, 0 deletions