]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ipv6: take care of disable_policy when restoring routes
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Thu, 23 Jun 2022 12:00:15 +0000 (14:00 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 26 Aug 2022 08:54:09 +0000 (10:54 +0200)
commitc3d969de03821683588a577c36fe09d41409084c
tree4dbd6986e9766d1256369d6f431ff092774bce19
parent20188bfba251f1e18f387ced861628a21250a3ac
ipv6: take care of disable_policy when restoring routes

BugLink: https://bugs.launchpad.net/bugs/1986728
commit 3b0dc529f56b5f2328244130683210be98f16f7f upstream.

When routes corresponding to addresses are restored by
fixup_permanent_addr(), the dst_nopolicy parameter was not set.
The typical use case is a user that configures an address on a down
interface and then put this interface up.

Let's take care of this flag in addrconf_f6i_alloc(), so that every callers
benefit ont it.

CC: stable@kernel.org
CC: David Forster <dforster@brocade.com>
Fixes: df789fe75206 ("ipv6: Provide ipv6 version of "disable_policy" sysctl")
Reported-by: Siwar Zitouni <siwar.zitouni@6wind.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20220623120015.32640-1-nicolas.dichtel@6wind.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
net/ipv6/addrconf.c
net/ipv6/route.c