On 5/19/21 5:47 PM, Jussi Maki wrote:
The skb_change_head() helper did not set "skb->mac_len", which is problematic when it's used in combination with skb_redirect_peer(). Without it, redirecting a packet from a L3 device such as wireguard to the veth peer device will cause skb->data to point to the middle of the IP header on entry to tcp_v4_rcv() since the L2 header is not pulled correctly due to mac_len=0. Fixes: 3a0af8fd61f9 ("bpf: BPF for lightweight tunnel infrastructure") Signed-off-by: Jussi Maki <joamaki@xxxxxxxxx>
Took this one in, the selftest needs a rebase since it doesn't apply to bpf. Pls fix and resubmit 2/2, thanks.