Return-Path: Received: from sessmg22.ericsson.net ([193.180.251.58]:44930 "EHLO sessmg22.ericsson.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750710AbdDZRDh (ORCPT ); Wed, 26 Apr 2017 13:03:37 -0400 From: Jon Maloy To: CC: , , Subject: [PATCH stable 4.4] tipc: make sure IPv6 header fits in skb headroom Date: Wed, 26 Apr 2017 19:03:26 +0200 Message-ID: <1493226206-7149-1-git-send-email-jon.maloy@ericsson.com> MIME-Version: 1.0 Content-Type: text/plain Sender: stable-owner@vger.kernel.org List-ID: From: Richard Alpe commit 9bd160bfa27fa41927dbbce7ee0ea779700e09ef upstream Expand headroom further in order to be able to fit the larger IPv6 header. Prior to this patch this caused a skb under panic for certain tipc packets when using IPv6 UDP bearer(s). Signed-off-by: Richard Alpe Acked-by: Jon Maloy Signed-off-by: David S. Miller Signed-off-by: Jon Maloy --- net/tipc/udp_media.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/tipc/udp_media.c b/net/tipc/udp_media.c index 6af78c6..4056798 100644 --- a/net/tipc/udp_media.c +++ b/net/tipc/udp_media.c @@ -52,7 +52,7 @@ /* IANA assigned UDP port */ #define UDP_PORT_DEFAULT 6118 -#define UDP_MIN_HEADROOM 28 +#define UDP_MIN_HEADROOM 48 static const struct nla_policy tipc_nl_udp_policy[TIPC_NLA_UDP_MAX + 1] = { [TIPC_NLA_UDP_UNSPEC] = {.type = NLA_UNSPEC}, -- 2.1.4