netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] validate variable length ll headers
@ 2016-03-10  2:58 Willem de Bruijn
  2016-03-10  2:58 ` [PATCH net-next 1/3] net: " Willem de Bruijn
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Willem de Bruijn @ 2016-03-10  2:58 UTC (permalink / raw)
  To: netdev; +Cc: davem, Willem de Bruijn

From: Willem de Bruijn <willemb@google.com>

Allow device-specific validation of link layer headers. Existing
checks drop all packets shorter than hard_header_len. For variable
length protocols, such packets can be valid.

patch 1 adds header_ops.validate and dev_validate_header
patch 2 implements the protocol specific callback for AX25
patch 3 replaces ll_header_truncated with dev_validate_header

Willem de Bruijn (3):
  net: validate variable length ll headers
  ax25: add link layer header validation function
  packet: validate variable length ll headers

 include/linux/netdevice.h | 22 ++++++++++++++++++++--
 net/ax25/ax25_ip.c        | 15 +++++++++++++++
 net/packet/af_packet.c    | 43 ++++++++++++++++++-------------------------
 3 files changed, 53 insertions(+), 27 deletions(-)

-- 
2.7.0.rc3.207.g0ac5344

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

end of thread, other threads:[~2016-03-10  4:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-10  2:58 [PATCH net-next 0/3] validate variable length ll headers Willem de Bruijn
2016-03-10  2:58 ` [PATCH net-next 1/3] net: " Willem de Bruijn
2016-03-10  2:58 ` [PATCH net-next 2/3] ax25: add link layer header validation function Willem de Bruijn
2016-03-10  2:58 ` [PATCH net-next 3/3] packet: validate variable length ll headers Willem de Bruijn
2016-03-10  3:13 ` [PATCH net-next 0/3] " David Miller
2016-03-10  4:22   ` Willem de Bruijn
2016-03-10  4:26     ` 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).