Re: [PATCH net v1] net: page_pool: fix use-after-free in page_pool_recycle_ring_bulk()

From: patchwork-bot+netdevbpf

Date: Mon Sep 28 2026 - 21:40:53 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Fri, 25 Sep 2026 14:41:11 +0000 you wrote:
> With CONFIG_PAGE_POOL_STATS=y, page_pool_recycle_ring_bulk() updates
> the recycle stats after dropping the producer lock. If it just recycled
> the last inflight netmems of a pool being destroyed, page_pool_release()
> can pass its producer-lock barrier and free the pool before
> recycle_stat_add() runs.
>
> Commit fcc680a647ba7 ("page_pool: allow mixing PPs within one bulk")
> moved this stat update after the unlock. Commit 271683bb2cf32
> ("page_pool: Fix use-after-free in page_pool_recycle_in_ring") later
> added the barrier, but only fixed page_pool_recycle_in_ring(). Move
> the update back under the lock.
>
> [...]

Here is the summary with links:
- [net,v1] net: page_pool: fix use-after-free in page_pool_recycle_ring_bulk()
https://git.kernel.org/netdev/net/c/bdea4980182e

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