================================================================== BUG: KCSAN: data-race in page_pool_put_unrefed_netmem / page_pool_refill_alloc_cache write to 0xffff88811a8e7400 of 8 bytes by task 10481 on cpu 1: __ptr_ring_zero_tail include/linux/ptr_ring.h:259 [inline] __ptr_ring_discard_one include/linux/ptr_ring.h:291 [inline] __ptr_ring_consume include/linux/ptr_ring.h:311 [inline] page_pool_refill_alloc_cache+0x2a5/0x3c0 net/core/page_pool.c:402 __page_pool_get_cached net/core/page_pool.c:441 [inline] page_pool_alloc_netmems net/core/page_pool.c:659 [inline] page_pool_alloc_pages+0xd0/0x130 net/core/page_pool.c:675 page_pool_dev_alloc_pages include/net/page_pool/helpers.h:96 [inline] xdp_test_run_batch net/bpf/test_run.c:295 [inline] bpf_test_run_xdp_live+0x54d/0x11d0 net/bpf/test_run.c:379 bpf_prog_test_run_xdp+0x525/0x970 net/bpf/test_run.c:1388 bpf_prog_test_run+0x22a/0x390 kernel/bpf/syscall.c:4703 __sys_bpf+0x4c0/0x7c0 kernel/bpf/syscall.c:6182 __do_sys_bpf kernel/bpf/syscall.c:6274 [inline] __se_sys_bpf kernel/bpf/syscall.c:6272 [inline] __x64_sys_bpf+0x41/0x50 kernel/bpf/syscall.c:6272 x64_sys_call+0x28e1/0x3000 arch/x86/include/generated/asm/syscalls_64.h:322 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd8/0x2a0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff88811a8e7400 of 8 bytes by task 10495 on cpu 0: __ptr_ring_produce include/linux/ptr_ring.h:106 [inline] page_pool_recycle_in_ring net/core/page_pool.c:786 [inline] page_pool_put_unrefed_netmem+0x38b/0x4b0 net/core/page_pool.c:907 page_pool_put_netmem include/net/page_pool/helpers.h:343 [inline] page_pool_put_full_netmem include/net/page_pool/helpers.h:373 [inline] napi_pp_put_page+0xe9/0x200 net/core/skbuff.c:1018 skb_pp_recycle net/core/skbuff.c:1029 [inline] skb_free_head+0x12c/0x150 net/core/skbuff.c:1076 skb_release_data+0x33b/0x370 net/core/skbuff.c:1107 skb_release_all net/core/skbuff.c:1182 [inline] __kfree_skb+0x44/0x150 net/core/skbuff.c:1196 sk_skb_reason_drop+0xbd/0x270 net/core/skbuff.c:1234 kfree_skb_reason include/linux/skbuff.h:1322 [inline] __skb_queue_purge_reason include/linux/skbuff.h:3425 [inline] skb_queue_purge_reason+0x1fb/0x250 net/core/skbuff.c:3988 skb_queue_purge include/linux/skbuff.h:3438 [inline] packet_set_ring+0xe0d/0x1130 net/packet/af_packet.c:4550 packet_setsockopt+0xaa7/0xfd0 net/packet/af_packet.c:3838 do_sock_setsockopt net/socket.c:2322 [inline] __sys_setsockopt+0x184/0x200 net/socket.c:2347 __do_sys_setsockopt net/socket.c:2353 [inline] __se_sys_setsockopt net/socket.c:2350 [inline] __x64_sys_setsockopt+0x64/0x80 net/socket.c:2350 x64_sys_call+0x21d5/0x3000 arch/x86/include/generated/asm/syscalls_64.h:55 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd8/0x2a0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0xffffea0004d05240 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 10495 Comm: syz.1.1704 Not tainted syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 ==================================================================