Thread (17 messages) 17 messages, 4 authors, 2025-01-08

Re: [PATCH net-next v6 0/8] fix two bugs related to page_pool

From: Jakub Kicinski <kuba@kernel.org>
Date: 2025-01-06 23:51:57
Also in: bpf, intel-wired-lan, linux-arm-kernel, linux-iommu, linux-mediatek, linux-mm, lkml

On Mon, 6 Jan 2025 21:01:08 +0800 Yunsheng Lin wrote:
This patchset fix a possible time window problem for page_pool and
the dma API misuse problem as mentioned in [1], and try to avoid the
overhead of the fixing using some optimization.

From the below performance data, the overhead is not so obvious
due to performance variations for time_bench_page_pool01_fast_path()
and time_bench_page_pool02_ptr_ring, and there is about 20ns overhead
for time_bench_page_pool03_slow() for fixing the bug.
This appears to make the selftest from the drivers/net target implode.

[   20.227775][  T218] BUG: KASAN: use-after-free in page_pool_item_uninit+0x100/0x130

Running the ping.py tests should be enough to repro.
-- 
pw-bot: cr
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help