mbox series

[net,0/2] net: af_packet: be careful when expanding mac header size

Message ID 20220531185933.1086667-1-eric.dumazet@gmail.com (mailing list archive)
Headers show
Series net: af_packet: be careful when expanding mac header size | expand

Message

Eric Dumazet May 31, 2022, 6:59 p.m. UTC
From: Eric Dumazet <edumazet@google.com>

A recent regression in af_packet needed a preliminary debug patch,
which will presumably be useful for next bugs hunting.

The af_packet fix is to make sure MAC headers are contained in
skb linear part, as GSO stack requests.

Eric Dumazet (2):
  net: add debug info to __skb_pull()
  net/af_packet: make sure to pull mac header

 include/linux/skbuff.h | 9 ++++++++-
 net/packet/af_packet.c | 6 ++++--
 2 files changed, 12 insertions(+), 3 deletions(-)