Re: [PATCH net v2] net: make skb_dst_force return true when dst is refcounted

2019-06-29 Thread David Miller
From: Florian Westphal Date: Wed, 26 Jun 2019 20:40:45 +0200 > netfilter did not expect that skb_dst_force() can cause skb to lose its > dst entry. > > I got a bug report with a skb->dst NULL dereference in netfilter > output path. The backtrace contains nf_reinject(), so the dst might have > b

[PATCH net v2] net: make skb_dst_force return true when dst is refcounted

2019-06-26 Thread Florian Westphal
netfilter did not expect that skb_dst_force() can cause skb to lose its dst entry. I got a bug report with a skb->dst NULL dereference in netfilter output path. The backtrace contains nf_reinject(), so the dst might have been cleared when skb got queued to userspace. Other users were fixed via i