]> git.dujemihanovic.xyz Git - linux.git/commit
net: bridge: fix multicast-to-unicast with fraglist GSO
authorFelix Fietkau <nbd@nbd.name>
Sat, 27 Apr 2024 18:24:18 +0000 (20:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 May 2024 10:44:10 +0000 (11:44 +0100)
commit59c878cbcdd80ed39315573b3511d0acfd3501b5
tree5e0cc5776e95e0c9fb4191f405968e00b5010f22
parentfb7a0d334894206ae35f023a82cad5a290fd7386
net: bridge: fix multicast-to-unicast with fraglist GSO

Calling skb_copy on a SKB_GSO_FRAGLIST skb is not valid, since it returns
an invalid linearized skb. This code only needs to change the ethernet
header, so pskb_copy is the right function to call here.

Fixes: 6db6f0eae605 ("bridge: multicast to unicast")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_forward.c