public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/4] net: spacemit: A few minor/theoretical fixes
@ 2026-03-03  9:24 Vivian Wang
  2026-03-03  9:24 ` [PATCH net-next 1/4] net: spacemit: Remove unused buff_addr fields Vivian Wang
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Vivian Wang @ 2026-03-03  9:24 UTC (permalink / raw)
  To: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Yixun Lan, Maxime Chevallier, Vadim Fedorenko,
	Troy Mitchell, Vivian Wang
  Cc: netdev, linux-riscv, spacemit, linux-kernel

Recently a user reported a supposed UAF/double-free in this driver. It
turned out to be a false positive (ugh) from a bug with riscv's
kfence_protect_page() [1], but it did also prompt me to review the
driver code yet again. These are some fixes for minor/theoretical
problems I've found.

[1]: https://lore.kernel.org/r/20260303-handle-kfence-protect-spurious-fault-v2-0-f80d8354d79d@iscas.ac.cn/

---
Vivian Wang (4):
      net: spacemit: Remove unused buff_addr fields
      net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()
      net: spacemit: Fix error handling in emac_tx_mem_map()
      net: spacemit: Free rings of memory after unmapping DMA

 drivers/net/ethernet/spacemit/k1_emac.c | 34 ++++++++++++++++++---------------
 1 file changed, 19 insertions(+), 15 deletions(-)
---
base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
change-id: 20260303-k1-ethernet-more-fixes-1829c3717cfe

Best regards,
-- 
Vivian "dramforever" Wang


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-03-05  5:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-03  9:24 [PATCH net-next 0/4] net: spacemit: A few minor/theoretical fixes Vivian Wang
2026-03-03  9:24 ` [PATCH net-next 1/4] net: spacemit: Remove unused buff_addr fields Vivian Wang
2026-03-04 20:57   ` Andrew Lunn
2026-03-04 22:05     ` Jakub Kicinski
2026-03-05  5:55       ` Vivian Wang
2026-03-03  9:24 ` [PATCH net-next 2/4] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers() Vivian Wang
2026-03-03  9:24 ` [PATCH net-next 3/4] net: spacemit: Fix error handling in emac_tx_mem_map() Vivian Wang
2026-03-03  9:24 ` [PATCH net-next 4/4] net: spacemit: Free rings of memory after unmapping DMA Vivian Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox