From: Richard Alpe Date: Mon, 14 Mar 2016 08:43:52 +0000 (+0100) Subject: tipc: make sure IPv6 header fits in skb headroom X-Git-Tag: release-20171130_firefly~4^2~100^2~1^2~11^2~17 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=44b3b7e068874040ca511fcd2a812b5fbcf44616;p=firefly-linux-kernel-4.4.55.git tipc: make sure IPv6 header fits in skb headroom 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/net/tipc/udp_media.c b/net/tipc/udp_media.c index 6af78c6276b4..4056798c54a5 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},