From: Jakub Kicinski <kuba@kernel.org>
To: Pei Xiao <xiaopei01@kylinos.cn>
Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
pabeni@redhat.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] net: natsemi: ns83820: Fix use-after-free in ns83820_remove_one due to race condition
Date: Mon, 10 Aug 2026 14:45:20 -0700 [thread overview]
Message-ID: <20260810144520.4dd6a55c@kernel.org> (raw)
In-Reply-To: <fb169d89c2e4589b1994b3526102b8b1367c2261.1785810962.git.xiaopei01@kylinos.cn>
On Tue, 4 Aug 2026 10:38:12 +0800 Pei Xiao wrote:
> free_netdev(ndev) |
> // dev is freed |
isn't there obviously a window here for the work to run after dev is
freed but before we canceled?
> | queue_refill
> | // use dev (use-after-free)
--
pw-bot: cr
prev parent reply other threads:[~2026-08-10 21:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-04 2:38 [PATCH] net: natsemi: ns83820: Fix use-after-free in ns83820_remove_one due to race condition Pei Xiao
2026-08-10 21:45 ` Jakub Kicinski [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=20260810144520.4dd6a55c@kernel.org \
--to=kuba@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=xiaopei01@kylinos.cn \
/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.