diff options
author | Richard Alpe <richard.alpe@ericsson.com> | 2016-03-14 09:43:52 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-04-30 05:49:27 +0200 |
commit | 44b3b7e068874040ca511fcd2a812b5fbcf44616 (patch) | |
tree | ce2dd49f54db7ff627ce96fad85ccf5fce1150c9 /net | |
parent | 12f4e1f54a1334bcd5f9586fc9eb7baefb14b826 (diff) | |
download | linux-stable-44b3b7e068874040ca511fcd2a812b5fbcf44616.tar.gz linux-stable-44b3b7e068874040ca511fcd2a812b5fbcf44616.tar.bz2 linux-stable-44b3b7e068874040ca511fcd2a812b5fbcf44616.zip |
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 <richard.alpe@ericsson.com>
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/tipc/udp_media.c | 2 |
1 files changed, 1 insertions, 1 deletions
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}, |