Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1660691

Re: [PATCH v2 2/2] ip6_tunnel: fix potential issue in __ip6_tnl_rcv

From Alexei Starovoitov <alexei.starovoitov@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 2/2] ip6_tunnel: fix potential issue in __ip6_tnl_rcv
Date 2017-06-08 04:50 +0200
Message-ID <tPVGi-6Kh-27@gated-at.bofh.it> (permalink)
References <tPTXP-5yb-1@gated-at.bofh.it> <tPTXP-5yb-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Jun 08, 2017 at 08:57:56AM +0800, Haishuang Yan wrote:
> When __ip6_tnl_rcv fails, the tun_dst won't be freed, so move
> skb_dst_set to begin and tun_dst would be freed by kfree_skb.
> 
> CC: Alexei Starovoitov <ast@fb.com>
> Fixes: 8d79266bc48c ("ip6_tunnel: add collect_md mode to IPv6 tunnels")
> Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>

Good catch. Thanks!
Acked-by: Alexei Starovoitov <ast@kernel.org>

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v2 2/2] ip6_tunnel: fix potential issue in __ip6_tnl_rcv Haishuang Yan <yanhaishuang@cmss.chinamobile.com> - 2017-06-08 03:00 +0200
  Re: [PATCH v2 2/2] ip6_tunnel: fix potential issue in __ip6_tnl_rcv Alexei Starovoitov <alexei.starovoitov@gmail.com> - 2017-06-08 04:50 +0200

csiph-web