From: Cong Wang <xiyou.wangcong@gmail.com>
To: Linux Kernel Network Developers <netdev@vger.kernel.org>
Cc: syzbot <syzbot+e9aebef558e3ed673934@syzkaller.appspotmail.com>,
Steffen Klassert <steffen.klassert@secunet.com>
Subject: Re: [Patch net] xfrm: destroy xfrm_state synchronously on net exit path
Date: Wed, 30 Jan 2019 08:33:25 -0800 [thread overview]
Message-ID: <CAM_iQpWBkSpEDWS-Vj3_pa3kygB3PiTVQDiBdiLTFY_Ui1oTaw@mail.gmail.com> (raw)
In-Reply-To: <20190130062737.15504-1-xiyou.wangcong@gmail.com>
On Tue, Jan 29, 2019 at 10:27 PM Cong Wang <xiyou.wangcong@gmail.com> wrote:
> diff --git a/net/ipv6/xfrm6_tunnel.c b/net/ipv6/xfrm6_tunnel.c
> index f5b4febeaa25..08bf374a80eb 100644
> --- a/net/ipv6/xfrm6_tunnel.c
> +++ b/net/ipv6/xfrm6_tunnel.c
> @@ -344,8 +344,7 @@ static void __net_exit xfrm6_tunnel_net_exit(struct net *net)
> struct xfrm6_tunnel_net *xfrm6_tn = xfrm6_tunnel_pernet(net);
> unsigned int i;
>
> - xfrm_state_flush(net, IPSEC_PROTO_ANY, false);
> - xfrm_flush_gc();
> + xfrm_state_flush(net, IPSEC_PROTO_ANY, false, true);
Well... We still have to wait for works scheduled from other call path.
I will send v2.
prev parent reply other threads:[~2019-01-30 16:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-30 6:27 [Patch net] xfrm: destroy xfrm_state synchronously on net exit path Cong Wang
2019-01-30 16:33 ` Cong Wang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAM_iQpWBkSpEDWS-Vj3_pa3kygB3PiTVQDiBdiLTFY_Ui1oTaw@mail.gmail.com \
--to=xiyou.wangcong@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=steffen.klassert@secunet.com \
--cc=syzbot+e9aebef558e3ed673934@syzkaller.appspotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).