]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'skb-headroom-slab-out-of-bounds'
authorDavid S. Miller <davem@davemloft.net>
Sat, 8 Dec 2018 00:24:40 +0000 (16:24 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 8 Dec 2018 00:24:40 +0000 (16:24 -0800)
commitaa8c65484a1fcd60d9797f707db64f7acc1cf074
tree9b93e099315cb036f69df1d45cac0e98de166976
parent8125f34896de4d3c4174d7bf07b6f3b233917472
parenta452962a408b671c653bb2ee617ddc6fd0a130b3
Merge branch 'skb-headroom-slab-out-of-bounds'

Stefano Brivio says:

====================
Fix slab out-of-bounds on insufficient headroom for IPv6 packets

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.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>