]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2024 10:14:53 +0000 (12:14 +0200)
commit2da5ccecef4b0c152c0516e7d48e195d51167b3c
tree045c51d75c8f5bb4504faeff8c558e35c6cfa3b4
parent5c243d1348bb9b56457397026e67f277482d19ef
net: bridge: fix corrupted ethernet header on multicast-to-unicast

[ Upstream commit 86b29d830ad69eecff25b22dc96c14c6573718e6 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bridge/br_forward.c