Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 67d349e ("net/esp4: Fix invalid esph pointer crash") Fixes: fca11eb ("esp4: Reorganize esp_output") Reported-by: Don Bowman <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
- Loading branch information