Re: [PATCH ipsec] xfrm: Fix NULL pointer dereference on policy lookup

2021-03-25 Thread Steffen Klassert
On Tue, Mar 23, 2021 at 09:26:44AM +0100, Steffen Klassert wrote: > When xfrm interfaces are used in combination with namespaces > and ESP offload, we get a dst_entry NULL pointer dereference. > This is because we don't have a dst_entry attached in the ESP > offloading case and we need to do a poli

[PATCH ipsec] xfrm: Fix NULL pointer dereference on policy lookup

2021-03-23 Thread Steffen Klassert
When xfrm interfaces are used in combination with namespaces and ESP offload, we get a dst_entry NULL pointer dereference. This is because we don't have a dst_entry attached in the ESP offloading case and we need to do a policy lookup before the namespace transition. Fix this by expicit checking o