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
Also in
bpf, linux-mm, linux-rdma
Reply to
Toke Høiland-Jørgensen, 2025-03-27
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
Thread (6 messages) 6 messages, 2 authors, last reply 2025-03-28
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help