bridge: use skb_ip_totlen in br netfilter
authorXin Long <lucien.xin@gmail.com>
Sat, 28 Jan 2023 15:58:31 +0000 (10:58 -0500)
committerJakub Kicinski <kuba@kernel.org>
Thu, 2 Feb 2023 04:54:27 +0000 (20:54 -0800)
commit46abd17302ba6be2e06818088e40a568e8f9e7af
treee54548d95d87b64a1e03629f04f885733a7a0fec
parent058a8f7f73aae1cc22b53fcefec031b9e391b54d
bridge: use skb_ip_totlen in br netfilter

These 3 places in bridge netfilter are called on RX path after GRO
and IPv4 TCP GSO packets may come through, so replace iph tot_len
accessing with skb_ip_totlen() in there.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/bridge/br_netfilter_hooks.c
net/bridge/netfilter/nf_conntrack_bridge.c