net: bridge: fix corrupted ethernet header on multicast-to-unicast
authorFelix Fietkau <nbd@nbd.name>
Sun, 5 May 2024 18:42:38 +0000 (20:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 May 2024 09:37:57 +0000 (10:37 +0100)
commit86b29d830ad69eecff25b22dc96c14c6573718e6
tree57083ee248520565f1cef96770d96ce5a4a50846
parent6963c508fd7ab66ae0b7ae3db9a62ca6267f1ae8
net: bridge: fix corrupted ethernet header on multicast-to-unicast

The change from skb_copy to pskb_copy unfortunately changed the data
copying to omit the ethernet header, since it was pulled before reaching
this point. Fix this by calling __skb_push/pull around pskb_copy.

Fixes: 59c878cbcdd8 ("net: bridge: fix multicast-to-unicast with fraglist GSO")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_forward.c