Netdev List
 help / color / mirror / Atom feed
From: SeungJong Ha <engineer.jjhama@gmail.com>
To: Tony Nguyen <anthony.l.nguyen@intel.com>,
	Przemek Kitszel <przemyslaw.kitszel@intel.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>
Cc: SeungJong Ha <engineer.jjhama@gmail.com>,
	intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org
Subject: Re: [PATCH] e100: fix use-after-free of the CB list in e100_clean_cbs()
Date: Sun, 29 Nov 2026 21:24:32 +0900	[thread overview]
Message-ID: <20261129122433.3751894-1-engineer.jjhama@gmail.com> (raw)
In-Reply-To: <20261128-e100-cbs-uaf-v1-1-efda575f56e5@gmail.com>

netdev AI review [1]:

> Can e100_tx_clean() reopen this gate while the list is being torn
> down?

Yes, through netpoll in the tx timeout, ringparam and self-test paths.
v2 frees the whole list under cb_lock, with dev_kfree_skb_any().

> A netpoll e100_tx_clean() that runs after cb_to_clean has been set to
> NULL would dereference NULL at cb->status.

Reproduced with netconsole and "ethtool -G", also without this patch.
I'll fix it on v2.

> the note about the prototype static analysis tool (and the Claude
> Code involvement) only appears below the --- line.

Moved into the changelog in v2.

The other points (the skb left in a CB after a TX DMA mapping error,
the device still running when the list is freed, the e100_up() error
path) are pre-existing and not touched by this series.

[1] https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261128-e100-cbs-uaf-v1-1-efda575f56e5%40gmail.com

pw-bot: cr

      reply	other threads:[~2026-11-29 12:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-28 11:14 [PATCH] e100: fix use-after-free of the CB list in e100_clean_cbs() SeungJong Ha
2026-11-29 12:24 ` SeungJong Ha [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=20261129122433.3751894-1-engineer.jjhama@gmail.com \
    --to=engineer.jjhama@gmail.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=anthony.l.nguyen@intel.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=przemyslaw.kitszel@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox