From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Brivio Subject: [PATCH net 0/2] Fix slab out-of-bounds on insufficient headroom for IPv6 packets Date: Wed, 5 Dec 2018 01:13:49 +0100 Message-ID: Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Jianlin Shi , Hangbin Liu , Eric Dumazet , Stephen Hemminger , netdev@vger.kernel.org To: "David S. Miller" Return-path: Received: from mx1.redhat.com ([209.132.183.28]:50004 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726001AbeLEAOW (ORCPT ); Tue, 4 Dec 2018 19:14:22 -0500 Sender: netdev-owner@vger.kernel.org List-ID: 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 panic in neigh_hh_output() instead of silently writing before the allocated buffer in case the headroom is enough for the unaligned hardware header size, but not enough for the aligned one. Stefano Brivio (2): ipv6: Check available headroom in ip6_xmit() even without options neighbour: BUG_ON() writing before skb->head in neigh_hh_output() include/net/neighbour.h | 8 ++++++-- net/ipv6/ip6_output.c | 42 ++++++++++++++++++++--------------------- 2 files changed, 27 insertions(+), 23 deletions(-) -- 2.19.2