Files
linux/net/ipv4
Nicolas Dichtel 6807352353 ipv4: 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: 8cbb512c92 ("net: Add source address lookup op for VRF")
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20240710081521.3809742-2-nicolas.dichtel@6wind.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-07-14 07:34:15 -07:00
..
2024-05-01 18:37:07 -07:00
2024-05-08 10:39:26 +01:00
2024-04-30 18:32:38 -07:00
2024-01-04 10:23:10 -08:00
2024-04-30 18:46:52 -07:00
2024-05-29 17:34:49 -07:00
2023-09-14 16:16:36 +02:00