Netdev List
 help / color / mirror / Atom feed
From: Sandeep Haemoon <sandeeph@loljews.com>
To: Eugene Markus <eugene@fiftyone-percent.net>
Cc: netdev@vger.kernel.org
Cc: linux-mediatek@lists.infradead.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v7 1/3] net: ethernet: mtk_eth_soc: fix the RX
Date: Tue, 01 Dec 2026 01:16:48 +0200	[thread overview]
Message-ID: <reply-872ec7a67a8d5b5f3b22ef27752bfa1a@loljews.com> (raw)
In-Reply-To: <17e86b6f-25af-43fc-b0ca-a0eb982e6cf4@fiftyone-percent.net>

On Sat, Nov 28, 2026 at 07:34:01PM +1100, Eugene Markus wrote:
> This bug is not theoretical: it has been corrupting memory in the field
> on a BPI-R4 Pro 8X (MT7988A, 8 GiB) running OpenWrt main (r38441,
> kernel 6.18.60) as a home router with a Bitcoin node behind it.

Thank you for the detailed report and the bench data - that is much
stronger evidence than the series had.  Your mechanism matches the
analysis: every path that reaches release_desc without a fresh mapping
relies on dma_addr being DMA_MAPPING_ERROR, and before this change the
sentinel was only still true before the first successful mapping in a
poll.  The comparison between the old handling and this patch is exactly
the test that was missing.

I have sent the fix to net on its own, with Cc: stable, your Tested-by
and a Reported-by, and a Link to your report:
https://lore.kernel.org/all/patch-d7f0fb2678768cc97f1e9fb7ff0a27b5@loljews.com/

The jumbo work continues on net-next as v9, without the fix, so it is
not submitted twice:
https://lore.kernel.org/all/patch-957a473dc4caca415acb95d2d6cfa1ab@loljews.com/

The v8 cover said the 36-bit fix had not been triggered at runtime;
that was wrong and v9 corrects it.

If you would rather not have the Reported-by, say so and I will drop it.


  reply	other threads:[~2026-11-30 23:17 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-17 19:55 [PATCH net-next v7 0/3] net: ethernet: mtk_eth_soc: 9K jumbo frame support Sandeep Haemoon
2026-11-13 22:34 ` [PATCH net-next v7 1/3] net: ethernet: mtk_eth_soc: fix the RX Sandeep Haemoon
2026-11-21 20:21   ` netdev-bot+sashiko
2026-11-28  8:34   ` Eugene Markus
2026-11-30 23:16     ` Sandeep Haemoon [this message]
2026-11-13 22:34 ` [PATCH net-next v7 2/3] net: ethernet: mtk_eth_soc: skip page_pool Sandeep Haemoon
2026-11-21 20:22   ` netdev-bot+sashiko
2026-11-13 22:40 ` [PATCH net-next v7 3/3] net: ethernet: mtk_eth_soc: add 9K jumbo Sandeep Haemoon
2026-11-21 20:22   ` netdev-bot+sashiko
2026-11-17 19:57 ` [PATCH net-next v7 0/3] net: ethernet: mtk_eth_soc: 9K jumbo frame support netdev-bot+sinfo
2026-11-22 19:05   ` Sandeep Haemoon
2026-11-22  0:47 ` Jakub Kicinski
2026-11-22 19:05   ` Sandeep Haemoon

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=reply-872ec7a67a8d5b5f3b22ef27752bfa1a@loljews.com \
    --to=sandeeph@loljews.com \
    --cc=eugene@fiftyone-percent.net \
    --cc=netdev@vger.kernel.org \
    /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