Re: [PATCH] macvlan: Skip loopback packets in RX handler

From: David Miller
Date: Wed May 27 2020 - 02:19:06 EST


From: Alexander A Sverdlin <alexander.sverdlin@xxxxxxxxx>
Date: Tue, 26 May 2020 14:27:51 +0200

> From: Alexander Sverdlin <alexander.sverdlin@xxxxxxxxx>
>
> Ignore loopback-originatig packets soon enough and don't try to process L2
> header where it doesn't exist. The very similar br_handle_frame() in bridge
> code performs exactly the same check.
>
> This is an example of such ICMPv6 packet:
...
> Call Trace, how it happens exactly:
> ...
> macvlan_handle_frame+0x321/0x425 [macvlan]
> ? macvlan_forward_source+0x110/0x110 [macvlan]
> __netif_receive_skb_core+0x545/0xda0
...
> Signed-off-by: Alexander Sverdlin <alexander.sverdlin@xxxxxxxxx>

Applied to net-next, thanks.