Skip to contentSkip to conversation

tipc: make sure IPv6 header fits in skb headroom

PATCH New Jon Maloy 1 participant 1 message Apr 26, 2017 Stable branch

lore
Share & tools
lore

Jon Maloy

author
#0 lore raw

PATCH 1/1 tipc: make sure IPv6 header fits in skb headroom

From: Richard Alpe <[email protected]>

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

---
 net/tipc/udp_media.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/tipc/udp_media.c +1 -1
index 6af78c6..4056798 100644
@@ -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},
Signature · 1 line
2.1.4