Re: [PATCH v2 net] ipv6: Fix dangling pointer when ipv6 fragment

From: David Miller
Date: Mon Apr 01 2019 - 21:12:55 EST


From: hujunwei <hujunwei4@xxxxxxxxxx>
Date: Sun, 31 Mar 2019 17:04:29 +0800

> diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c
> index edbd12067170..e51f3c648b09 100644
> --- a/net/ipv6/ip6_output.c
> +++ b/net/ipv6/ip6_output.c
> @@ -601,7 +601,7 @@ int ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
>                  inet6_sk(skb->sk) : NULL;
>      struct ipv6hdr *tmp_hdr;
>      struct frag_hdr *fh;
> -    unsigned int mtu, hlen, left, len;

Your patch was corrupted by your email client.

Please fix this, email a test patch to yourself, and only when you can
successfully apply that test patch should you repost this to the mailing
list.

Thank you.