From: "Jiawen Wu" <jiawenwu@trustnetic.com>
To: "'Simon Horman'" <horms@kernel.org>
Cc: netdev@vger.kernel.org,
"'Mengyuan Lou'" <mengyuanlou@net-swift.com>,
"'Andrew Lunn'" <andrew+netdev@lunn.ch>,
"'David S. Miller'" <davem@davemloft.net>,
"'Eric Dumazet'" <edumazet@google.com>,
"'Jakub Kicinski'" <kuba@kernel.org>,
"'Paolo Abeni'" <pabeni@redhat.com>,
"'Richard Cochran'" <richardcochran@gmail.com>,
"'Russell King'" <linux@armlinux.org.uk>,
"'Aleksandr Loktionov'" <aleksandr.loktionov@intel.com>,
"'Michal Swiatkowski'" <michal.swiatkowski@linux.intel.com>,
"'Jacob Keller'" <jacob.e.keller@intel.com>,
"'Kees Cook'" <kees@kernel.org>, "'Joe Damato'" <joe@dama.to>,
"'Larysa Zaremba'" <larysa.zaremba@intel.com>,
"'Rongguang Wei'" <weirongguang@kylinos.cn>,
"'Uwe Kleine-König (The Capable Hub)'"
<u.kleine-koenig@baylibre.com>,
"'Chenguang Zhao'" <zhaochenguang@kylinos.cn>,
"'Fabio Baltieri'" <fabio.baltieri@gmail.com>
Subject: RE: [PATCH net-next v12 5/5] net: wangxun: add pcie error handler
Date: Thu, 6 Aug 2026 16:57:38 +0800 [thread overview]
Message-ID: <06ab01dd2581$a1ef3400$e5cd9c00$@trustnetic.com> (raw)
In-Reply-To: <04ee01dd2094$589e7050$09db50f0$@trustnetic.com>
> > Simon says: I think the issue below can be looked at in the context
> > of possible follow-up.
>
> I'll consider handling this in another patch.
>
> >
> > [Severity: High]
> > This is a pre-existing issue, but does failing to open the device in
> > txgbe_open() lead to a NULL pointer dereference on subsequent open attempts?
> >
> > If txgbe_open() encounters an error, the error path calls
> > wx_reset_interrupt_capability(), which frees wx->msix_q_entries and sets
> > it to NULL.
> >
> > If a user subsequently attempts to bring the interface up again,
> > txgbe_request_queue_irqs() is called, which dereferences the NULL
> > wx->msix_q_entries array.
> >
> > > wx_ptp_stop(wx);
> > > txgbe_down(wx);
> >
After checking the code closely, I think Sashiko is overstated here.
wx_reset_interrupt_capability() called pci_free_irq_vectors() which set
pdev->msix_enabled = 0. And this would prevent wx->msix_q_entries from being
used in txgbe_request_queue_irqs().
prev parent reply other threads:[~2026-08-06 8:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-24 10:13 [PATCH net-next v12 0/5] net: wangxun: timeout and error Jiawen Wu
2026-07-24 10:13 ` [PATCH net-next v12 1/5] net: ngbe: implement libwx reset ops Jiawen Wu
2026-07-24 10:13 ` [PATCH net-next v12 2/5] net: wangxun: add Tx timeout process Jiawen Wu
2026-07-24 10:13 ` [PATCH net-next v12 3/5] net: wangxun: add reinit parameter to wx->do_reset callback Jiawen Wu
2026-07-24 10:13 ` [PATCH net-next v12 4/5] net: wangxun: implement soft quiesce for PCIe error recovery Jiawen Wu
2026-07-24 10:13 ` [PATCH net-next v12 5/5] net: wangxun: add pcie error handler Jiawen Wu
2026-07-30 13:19 ` Simon Horman
2026-07-31 2:29 ` Jiawen Wu
2026-08-06 8:57 ` Jiawen Wu [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='06ab01dd2581$a1ef3400$e5cd9c00$@trustnetic.com' \
--to=jiawenwu@trustnetic.com \
--cc=aleksandr.loktionov@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=fabio.baltieri@gmail.com \
--cc=horms@kernel.org \
--cc=jacob.e.keller@intel.com \
--cc=joe@dama.to \
--cc=kees@kernel.org \
--cc=kuba@kernel.org \
--cc=larysa.zaremba@intel.com \
--cc=linux@armlinux.org.uk \
--cc=mengyuanlou@net-swift.com \
--cc=michal.swiatkowski@linux.intel.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=richardcochran@gmail.com \
--cc=u.kleine-koenig@baylibre.com \
--cc=weirongguang@kylinos.cn \
--cc=zhaochenguang@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox