mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 19:53:59 +08:00
ipv6: drop metadata dst in ip6_route_input
The fix in commit48fb6b5545
is incomplete, as now ip6_route_input can be called with non-NULL dst if it's a metadata dst and the reference is leaked. Drop the reference. Fixes:48fb6b5545
("ipv6: fix crash over flow-based vxlan device") Fixes:ee122c79d4
("vxlan: Flow based tunneling") CC: Wei-Chun Chao <weichunc@plumgrid.com> CC: Thomas Graf <tgraf@suug.ch> Signed-off-by: Jiri Benc <jbenc@redhat.com> Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
61adedf3e3
commit
06e9d040ba
@ -1140,6 +1140,7 @@ void ip6_route_input(struct sk_buff *skb)
|
||||
.flowi6_proto = iph->nexthdr,
|
||||
};
|
||||
|
||||
skb_dst_drop(skb);
|
||||
skb_dst_set(skb, ip6_route_input_lookup(net, skb->dev, &fl6, flags));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user