# Re: \[PATCH net-next v4 0/3\] Fix late DMA unmap crash for page pool

- From: Jakub Kicinski \<kuba@kernel.org\>
- Date: 2025-03-27 19:48:09 
- List: netdev
- Page: https://ratatoskr.run/netdev/2025/03/6537290
- Thread: https://ratatoskr.run/netdev/2025/03/6537287/t.md

```text
On Thu, 27 Mar 2025 11:44:10 +0100 Toke Høiland-Jørgensen wrote:
> This series fixes the late dma_unmap crash for page pool first reported
> by Yonglong Liu in [0]. It is an alternative approach to the one
> submitted by Yunsheng Lin, most recently in [1]. The first two commits
> are small refactors of the page pool code, in preparation of the main
> change in patch 3. See the commit message of patch 3 for the details.

We see a crash and an UAF on:

[   18.574787] RIP: 0010:page_pool_put_unrefed_netmem (net/core/page_pool.c:465 net/core/page_pool.c:808 net/core/page_pool.c:866) 
[   18.575880] napi_pp_put_page (net/core/skbuff.c:998) 
[   18.575912] skb_release_data (./include/linux/skbuff_ref.h:40 ./include/linux/skbuff_ref.h:56 net/core/skbuff.c:1079) 
[   18.575944] consume_skb (net/core/skbuff.c:1165 net/core/skbuff.c:1396 net/core/skbuff.c:1390) 

You should be able to repro with ping test over netdevsim
-- 
pw-bot: cr
```
