netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/2] Fixes for header length truncation
@ 2017-02-07 20:57 Willem de Bruijn
  2017-02-07 20:57 ` [PATCH net 1/2] net: introduce device min_header_len Willem de Bruijn
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Willem de Bruijn @ 2017-02-07 20:57 UTC (permalink / raw)
  To: netdev; +Cc: davem, eric.dumazet, sowmini.varadhan, dvyukov, Willem de Bruijn

From: Willem de Bruijn <willemb@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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-02-08 18:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-07 20:57 [PATCH net 0/2] Fixes for header length truncation Willem de Bruijn
2017-02-07 20:57 ` [PATCH net 1/2] net: introduce device min_header_len Willem de Bruijn
2017-02-07 21:20   ` Eric Dumazet
2017-02-07 21:24   ` Sowmini Varadhan
2017-02-07 20:57 ` [PATCH net 2/2] packet: round up linear to header len Willem de Bruijn
2017-02-07 21:23   ` Eric Dumazet
2017-02-08 15:34   ` Sowmini Varadhan
2017-02-08 16:37     ` Willem de Bruijn
2017-02-08 16:58       ` Sowmini Varadhan
2017-02-08 17:27         ` Willem de Bruijn
2017-02-08 18:56 ` [PATCH net 0/2] Fixes for header length truncation David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).