Skip to content
Commit 5596732f authored by Steffen Klassert's avatar Steffen Klassert
Browse files

xfrm: Fix crash with ipv6 IPsec tunnel and NAT.



The ipv6 xfrm output path is not aware that packets can be
rerouted by NAT to not use IPsec. We crash in this case
because we expect to have a xfrm state at the dst_entry.
This crash happens if the ipv6 layer does IPsec and NAT
or if we have an interfamily IPsec tunnel with ipv4 NAT.

We fix this by checking for a NAT rerouted packet in each
address family and dst_output() to the new destination
in this case.

Reported-by: default avatarMartin Pelikan <martin.pelikan@gmail.com>
Tested-by: default avatarMartin Pelikan <martin.pelikan@gmail.com>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
parent d80e773f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment