From: Nicolas Dichtel <nicolas.dichtel@6wind.com>
To: Hristo Venev <hristo@venev.name>,
"David S . Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH 1/2] net: sit: Unregister catch-all devices
Date: Wed, 21 Apr 2021 10:33:09 +0200 [thread overview]
Message-ID: <cb785bdd-6389-e980-5d72-4720e08834d1@6wind.com> (raw)
In-Reply-To: <20210412174117.299570-1-hristo@venev.name>
Le 12/04/2021 à 19:41, Hristo Venev a écrit :
> A sit interface created without a local or a remote address is linked
> into the `sit_net::tunnels_wc` list of its original namespace. When
> deleting a network namespace, delete the devices that have been moved.
>
> The following script triggers a null pointer dereference if devices
> linked in a deleted `sit_net` remain:
>
> for i in `seq 1 30`; do
> ip netns add ns-test
> ip netns exec ns-test ip link add dev veth0 type veth peer veth1
> ip netns exec ns-test ip link add dev sit$i type sit dev veth0
> ip netns exec ns-test ip link set dev sit$i netns $$
> ip netns del ns-test
> done
> for i in `seq 1 30`; do
> ip link del dev sit$i
> done
>
> Fixes: 5e6700b3bf98f ("sit: add support of x-netns")
> Signed-off-by: Hristo Venev <hristo@venev.name>
Thank you for your patches.
Please, think of putting original author in CC when you send a fix ;-)
Regards,
Nicolas
prev parent reply other threads:[~2021-04-21 8:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-12 17:41 [PATCH 1/2] net: sit: Unregister catch-all devices Hristo Venev
2021-04-12 17:41 ` [PATCH 2/2] net: ip6_tunnel: " Hristo Venev
2021-04-13 21:40 ` [PATCH 1/2] net: sit: " patchwork-bot+netdevbpf
2021-04-21 8:33 ` 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=cb785bdd-6389-e980-5d72-4720e08834d1@6wind.com \
--to=nicolas.dichtel@6wind.com \
--cc=davem@davemloft.net \
--cc=hristo@venev.name \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
/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