netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net v2 0/2] Fix slab out-of-bounds on insufficient headroom for IPv6 packets
@ 2018-12-06 18:30 Stefano Brivio
  2018-12-06 18:30 ` [PATCH net v2 1/2] ipv6: Check available headroom in ip6_xmit() even without options Stefano Brivio
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Stefano Brivio @ 2018-12-06 18:30 UTC (permalink / raw)
  To: David S. Miller
  Cc: Jianlin Shi, Hangbin Liu, Eric Dumazet, Stephen Hemminger, netdev

Patch 1/2 fixes a slab out-of-bounds occurring with short SCTP packets over
IPv4 over L2TP over IPv6 on a configuration with relatively low HEADER_MAX.

Patch 2/2 makes sure we avoid writing before the allocated buffer in
neigh_hh_output() in case the headroom is enough for the unaligned hardware
header size, but not enough for the aligned one, and that we warn if we hit
this condition.

Stefano Brivio (2):
  ipv6: Check available headroom in ip6_xmit() even without options
  neighbour: Avoid writing before skb->head in neigh_hh_output()

 include/net/neighbour.h | 28 ++++++++++++++++++++++-----
 net/ipv6/ip6_output.c   | 42 ++++++++++++++++++++---------------------
 2 files changed, 44 insertions(+), 26 deletions(-)

-- 
2.19.2

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

end of thread, other threads:[~2018-12-08  0:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-06 18:30 [PATCH net v2 0/2] Fix slab out-of-bounds on insufficient headroom for IPv6 packets Stefano Brivio
2018-12-06 18:30 ` [PATCH net v2 1/2] ipv6: Check available headroom in ip6_xmit() even without options Stefano Brivio
2018-12-06 18:30 ` [PATCH net v2 2/2] neighbour: Avoid writing before skb->head in neigh_hh_output() Stefano Brivio
2018-12-08  0:37 ` [PATCH net v2 0/2] Fix slab out-of-bounds on insufficient headroom for IPv6 packets 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).