From: Jakub Kicinski <kuba@kernel.org>
To: Paolo Abeni <pabeni@redhat.com>
Cc: davem@davemloft.net, netdev@vger.kernel.org, edumazet@google.com,
andrew+netdev@lunn.ch, horms@kernel.org,
"Jason Wang" <jasowang@redhat.com>,
"Zigit Zo" <zuozhijie@bytedance.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
"Xuan Zhuo" <xuanzhuo@linux.alibaba.com>,
"Eugenio Pérez" <eperezma@redhat.com>,
leitao@debian.org, sdf@fomichev.me
Subject: Re: [PATCH net] netpoll: prevent hanging NAPI when netcons gets enabled
Date: Fri, 25 Jul 2025 07:14:34 -0700 [thread overview]
Message-ID: <20250725071434.4e1611fe@kernel.org> (raw)
In-Reply-To: <837ee1c6-a7c8-490b-84ae-6c24fdd48e4e@redhat.com>
On Fri, 25 Jul 2025 14:23:26 +0200 Paolo Abeni wrote:
> > If this warning hits the next virtio_close() will hang.
> >
> > Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> > Reported-by: Paolo Abeni <pabeni@redhat.com>
> > Link: https://lore.kernel.org/c5a93ed1-9abe-4880-a3bb-8d1678018b1d@redhat.com
> > Signed-off-by: Jakub Kicinski <kuba@kernel.org>
>
> It's not clear to me if you have been able to validate the patch into
> NIPA already?
Sorry for the omission, I sent the patch in the evening after just
3 iterations but left the test running. It completed 30 iterations
cleanly (boot, run the selected tests, no hangs).
> > +static int netconsole_setup_and_enable(struct netconsole_target *nt)
> > +{
> > + int ret;
> > +
> > + ret = netpoll_setup(&nt->np);
> > + if (ret)
> > + return ret;
> > +
> > + /* Make sure all NAPI polls which started before dev->npinfo
> > + * was visible have exited before we start calling NAPI poll.
> > + * NAPI skips locking if dev->npinfo is NULL.
> > + */
> > + synchronize_rcu();
>
> I'm wondering if it would make any sense to move the above in
> netpoll_setup(), make the exposed symbol safe.
Fair, somehow I convinced myself that the nt->enabled = true;
is more relevant.
next prev parent reply other threads:[~2025-07-25 14:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-25 2:44 [PATCH net] netpoll: prevent hanging NAPI when netcons gets enabled Jakub Kicinski
2025-07-25 12:23 ` Paolo Abeni
2025-07-25 14:14 ` Jakub Kicinski [this message]
2025-07-25 14:57 ` Breno Leitao
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=20250725071434.4e1611fe@kernel.org \
--to=kuba@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=eperezma@redhat.com \
--cc=horms@kernel.org \
--cc=jasowang@redhat.com \
--cc=leitao@debian.org \
--cc=mst@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sdf@fomichev.me \
--cc=xuanzhuo@linux.alibaba.com \
--cc=zuozhijie@bytedance.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.