Skip to content

Fixes for header length truncation

Willem de Bruijn netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: introduce device min_header_lendrivers/net/loopback.c include/linux/netdevice.h net/ethernet/eth.c+6 -02 replies
2/2packet: round up linear to header lennet/packet/af_packet.c+4 -35 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchEric DumazetSowmini Varadhan
1/2A-b A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net 0/2] Fixes for header length truncation

From: Willem de Bruijn <[email protected]>

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(-)
Signature · 1 line
2.11.0.483.g087da7b7c-goog