[PATCH net v2 0/2] net: spacemit: A few error handling fixes

patchwork-bot+netdevbpf at kernel.org patchwork-bot+netdevbpf at kernel.org
Fri Mar 6 19:10:12 PST 2026


Hello:

This series was applied to netdev/net.git (main)
by Jakub Kicinski <kuba at kernel.org>:

On Thu, 05 Mar 2026 14:39:37 +0800 you wrote:
> 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 error handling problems
> that I've found.
> 
> [1]: https://lore.kernel.org/r/20260303-handle-kfence-protect-spurious-fault-v2-0-f80d8354d79d@iscas.ac.cn/
> 
> [...]

Here is the summary with links:
  - [net,v2,1/2] net: spacemit: Fix error handling in emac_alloc_rx_desc_buffers()
    https://git.kernel.org/netdev/net/c/3aa1417803c1
  - [net,v2,2/2] net: spacemit: Fix error handling in emac_tx_mem_map()
    https://git.kernel.org/netdev/net/c/86292155bea5

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html





More information about the linux-riscv mailing list