[PATCH net-next v1] tipc: make sure IPv6 header fits in skb headroom

Subsystems: networking [general], the rest, tipc network layer

STALE3835d REVIEWED: 1 (0M)

1 review trailer.

2 messages, 2 authors, 2016-03-14 · open the first message on its own page

[PATCH net-next v1] tipc: make sure IPv6 header fits in skb headroom

From: Richard Alpe <hidden>
Date: 2016-03-14 08:45:31

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 <redacted>
Acked-by: Jon Maloy <redacted>
---
 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 49b3c2e..6364cff 100644
--- a/net/tipc/udp_media.c
+++ b/net/tipc/udp_media.c
@@ -53,7 +53,7 @@
 /* IANA assigned UDP port */
 #define UDP_PORT_DEFAULT	6118
 
-#define UDP_MIN_HEADROOM        28
+#define UDP_MIN_HEADROOM        48
 
 /**
  * struct udp_media_addr - IP/UDP addressing information
-- 
2.1.4

Re: [PATCH net-next v1] tipc: make sure IPv6 header fits in skb headroom

From: David Miller <davem@davemloft.net>
Date: 2016-03-14 16:23:25

From: Richard Alpe <redacted>
Date: Mon, 14 Mar 2016 09:43:52 +0100
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 <redacted>
Acked-by: Jon Maloy <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help