[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CADvbK_fgjFKuDDF+ZjTd4cgnF7jZqUbG7zdzZwMr1zwFaS8DxQ@mail.gmail.com>
Date: Fri, 19 Jan 2024 11:18:00 -0500
From: Xin Long <lucien.xin@...il.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: davem@...emloft.net, netdev@...r.kernel.org, edumazet@...gle.com,
pabeni@...hat.com, Марк Коренберг <socketpair@...il.com>,
daniel@...earbox.net, jiri@...nulli.us, johannes.berg@...el.com
Subject: Re: [PATCH net] net: fix removing a namespace with conflicting altnames
On Thu, Jan 18, 2024 at 7:59 PM Jakub Kicinski <kuba@...nel.org> wrote:
>
> Mark reports a BUG() when a net namespace is removed.
>
> kernel BUG at net/core/dev.c:11520!
>
> Physical interfaces moved outside of init_net get "refunded"
> to init_net when that namespace disappears. The main interface
> name may get overwritten in the process if it would have
> conflicted. We need to also discard all conflicting altnames.
> Recent fixes addressed ensuring that altnames get moved
> with the main interface, which surfaced this problem.
>
> Reported-by: Марк Коренберг <socketpair@...il.com>
> Link: https://lore.kernel.org/all/CAEmTpZFZ4Sv3KwqFOY2WKDHeZYdi0O7N5H1nTvcGp=SAEavtDg@mail.gmail.com/
> Fixes: 7663d522099e ("net: check for altname conflicts when changing netdev's netns")
> Signed-off-by: Jakub Kicinski <kuba@...nel.org>
Reviewed-by: Xin Long <lucien.xin@...il.com>
Powered by blists - more mailing lists