From: Willem de Bruijn <will...@google.com> Packets should not enter the stack with truncated link layer headers and link layer headers should always be stored in the skb linear segment.
Patch 1 ensures the first for PF_PACKET sockets Patch 2 ensures the second for PF_PACKET GSO sockets without tx_ring Willem de Bruijn (2): net: introduce device min_header_len packet: round up linear to header len drivers/net/loopback.c | 1 + include/linux/netdevice.h | 4 ++++ net/ethernet/eth.c | 1 + net/packet/af_packet.c | 7 ++++--- 4 files changed, 10 insertions(+), 3 deletions(-) -- 2.11.0.483.g087da7b7c-goog