From: Nicolas Dichtel <nicolas.dichtel@6wind.com>
To: steffen.klassert@secunet.com, davem@davemloft.net
Cc: netdev@vger.kernel.org, Julien Floret <julien.floret@6wind.com>
Subject: Re: [PATCH ipsec] xfrm interface: fix list corruption for x-netns
Date: Mon, 15 Jul 2019 11:53:11 +0200 [thread overview]
Message-ID: <c4b2d775-82d0-0569-6cb7-c1598dba9a2a@6wind.com> (raw)
In-Reply-To: <20190710131137.4787-1-nicolas.dichtel@6wind.com>
Le 10/07/2019 à 15:11, Nicolas Dichtel a écrit :
> dev_net(dev) is the netns of the device and xi->net is the link netns,
> where the device has been linked.
> changelink() must operate in the link netns to avoid a corruption of
> the xfrm lists.
>
> Note that xi->net and dev_net(xi->physdev) are always the same.
>
> Before the patch, the xfrmi lists may be corrupted and can later trigger a
> kernel panic.
>
> Fixes: f203b76d7809 ("xfrm: Add virtual xfrm interfaces")
> Reported-by: Julien Floret <julien.floret@6wind.com>
> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
> Tested-by: Julien Floret <julien.floret@6wind.com>
Please, drop this one too.
Regards,
Nicolas
prev parent reply other threads:[~2019-07-15 9:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-10 13:11 [PATCH ipsec] xfrm interface: fix list corruption for x-netns Nicolas Dichtel
2019-07-15 9:53 ` Nicolas Dichtel [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=c4b2d775-82d0-0569-6cb7-c1598dba9a2a@6wind.com \
--to=nicolas.dichtel@6wind.com \
--cc=davem@davemloft.net \
--cc=julien.floret@6wind.com \
--cc=netdev@vger.kernel.org \
--cc=steffen.klassert@secunet.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