lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <a64e1342-c953-40c5-2afb-0e9654e7d002@kernel.org> Date: Tue, 12 Apr 2022 08:19:37 -0600 From: David Ahern <dsahern@...nel.org> To: Martin Willi <martin@...ongswan.org>, Pablo Neira Ayuso <pablo@...filter.org>, Florian Westphal <fw@...len.de> Cc: netfilter-devel@...r.kernel.org, netdev@...r.kernel.org Subject: Re: [PATCH nf] netfilter: Update ip6_route_me_harder to consider L3 domain On 4/12/22 1:46 AM, Martin Willi wrote: > @@ -39,6 +38,13 @@ int ip6_route_me_harder(struct net *net, struct sock *sk_partial, struct sk_buff > }; > int err; > > + if (sk && sk->sk_bound_dev_if) > + fl6.flowi6_oif = sk->sk_bound_dev_if; > + else if (strict) > + fl6.flowi6_oif = dev->ifindex; > + else > + fl6.flowi6_oif = l3mdev_master_ifindex(dev); For top of tree, this is now fl6.flowi6_l3mdev and dev is only needed here so make this: fl6.flowi6_l3mdev = l3mdev_master_ifindex(skb_dst(skb)->dev); > + > fib6_rules_early_flow_dissect(net, skb, &fl6, &flkeys); > dst = ip6_route_output(net, sk, &fl6); > err = dst->error;
Powered by blists - more mailing lists