Skip to content
Commit c9ce1ede authored by Felix Fietkau's avatar Felix Fietkau Committed by Zhengchao Shao
Browse files

net: bridge: fix corrupted ethernet header on multicast-to-unicast

stable inclusion
from stable-v4.19.314
commit e96b4e3e5e2d03e72d251aa46853cf609f4f8960
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IA7IEQ

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e96b4e3e5e2d03e72d251aa46853cf609f4f8960



--------------------------------

[ 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: default avatarFelix Fietkau <nbd@nbd.name>
Acked-by: default avatarNikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZhengchao Shao <shaozhengchao@huawei.com>
parent f2bdff9d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment