From: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
To: netdev@vger.kernel.org
Cc: davem@davemloft.net, Willem de Bruijn <willemb@google.com>
Subject: [PATCH net-next 0/3] validate variable length ll headers
Date: Wed, 9 Mar 2016 21:58:31 -0500 [thread overview]
Message-ID: <1457578714-36125-1-git-send-email-willemdebruijn.kernel@gmail.com> (raw)
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
next reply other threads:[~2016-03-10 2:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-10 2:58 Willem de Bruijn [this message]
2016-03-10 2:58 ` [PATCH net-next 1/3] net: validate variable length ll headers 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1457578714-36125-1-git-send-email-willemdebruijn.kernel@gmail.com \
--to=willemdebruijn.kernel@gmail.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=willemb@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).