Re: [PATCH] net: make sure final 'struct net' free in net_complete_free() is always deferred

Eric Dumazet <[email protected]>
Newsgroups gmane.linux.network
Message-ID <CANn89iJd-s+mocDFXgt2rtFQVBGNJ7xEy=tUMKa5Da+brptXzA@mail.gmail.com>
On Mon, Aug 17, 2026 at 6:28 AM Kuniyuki Iwashima <[email protected]> wrote:
>
> On Sun, Aug 16, 2026 at 4:08 AM Tetsuo Handa
> <[email protected]> wrote:
> >
> > Since there is no serialization mechanism (e.g. the RTNL lock) between
> > llist_add() in net_complete_free() and llist_del_all() in
> > net_complete_free(), it is possible that net_complete_free() finds 'struct
> > net' as soon as net_complete_free() added it to the defer_free_list.
>
> Did you see a real issue or is this based on AI report ?
>
> netns_wq is single thread workqueue.
>

Indeed, this patch is not needed.

pw-bot: reject
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.