Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 0e78a873 authored by Steffen Klassert's avatar Steffen Klassert
Browse files

esp4: Fix udpencap for local TCP packets.



Locally generated TCP packets are usually cloned, so we
do skb_cow_data() on this packets. After that we need to
reload the pointer to the esp header. On udpencap this
header has an offset to skb_transport_header, so take this
offset into account.

Fixes: 67d349ed ("net/esp4: Fix invalid esph pointer crash")
Fixes: fca11ebd ("esp4: Reorganize esp_output")
Reported-by: default avatarDon Bowman <db@donbowman.ca>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
parent f411af68
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment