mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-24 19:10:26 +00:00
packet: do skb_probe_transport_header when we actually have data
[ Upstream commitefdfa2f784] In tpacket_fill_skb() commitc1aad275b0("packet: set transport header before doing xmit") and later on40893fd0fd("net: switch to use skb_probe_transport_header()") was probing for a transport header on the skb from a ring buffer slot, but at a time, where the skb has _not even_ been filled with data yet. So that call into the flow dissector is pretty useless. Lets do it after we've set up the skb frags. Fixes:c1aad275b0("packet: set transport header before doing xmit") Reported-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Jason Wang <jasowang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
This commit is contained in:
parent
e5d4fd3e2e
commit
22fb967dc3
1 changed files with 3 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue