BUG: Bad page state in process syz.2.1522 pfn:6f4dc page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6f4dc flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88801cef5000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 10697, tgid 10695 (syz.2.1522), ts 433390637245, free_ts 432846052079 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3425 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4683 alloc_pages_bulk_noprof+0x729/0xd40 mm/page_alloc.c:4631 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x138/0x6a0 net/core/page_pool.c:524 page_pool_dev_alloc_pages include/net/page_pool/helpers.h:94 [inline] xdp_test_run_batch net/bpf/test_run.c:301 [inline] bpf_test_run_xdp_live+0x810/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 10676 tgid 10676 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0xd19/0xea0 mm/page_alloc.c:2588 discard_slab mm/slub.c:2527 [inline] __put_partials+0xeb/0x130 mm/slub.c:2995 put_cpu_partial+0x17c/0x250 mm/slub.c:3070 __slab_free+0x2ea/0x3d0 mm/slub.c:4308 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3940 [inline] slab_alloc_node mm/slub.c:4002 [inline] __do_kmalloc_node mm/slub.c:4122 [inline] __kmalloc_noprof+0x1a3/0x400 mm/slub.c:4136 kmalloc_noprof include/linux/slab.h:664 [inline] kzalloc_noprof include/linux/slab.h:778 [inline] ops_init+0x8b/0x610 net/core/net_namespace.c:129 setup_net+0x515/0xca0 net/core/net_namespace.c:343 copy_net_ns+0x4e2/0x7b0 net/core/net_namespace.c:508 create_new_namespaces+0x425/0x7b0 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x124/0x180 kernel/nsproxy.c:228 ksys_unshare+0x619/0xc10 kernel/fork.c:3323 __do_sys_unshare kernel/fork.c:3394 [inline] __se_sys_unshare kernel/fork.c:3392 [inline] __x64_sys_unshare+0x38/0x40 kernel/fork.c:3392 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 Modules linked in: CPU: 0 PID: 10697 Comm: syz.2.1522 Not tainted 6.10.0-rc6-syzkaller-00061-ge9d22f7a6655 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 bad_page+0x14c/0x170 mm/page_alloc.c:498 free_page_is_bad mm/page_alloc.c:914 [inline] free_pages_prepare mm/page_alloc.c:1085 [inline] free_unref_page+0xe3e/0xea0 mm/page_alloc.c:2588 skb_free_frag include/linux/skbuff.h:3354 [inline] skb_free_head net/core/skbuff.c:1079 [inline] skb_release_data+0x6b2/0x880 net/core/skbuff.c:1108 skb_release_all net/core/skbuff.c:1173 [inline] __kfree_skb net/core/skbuff.c:1187 [inline] kfree_skb_reason+0x1a3/0x3b0 net/core/skbuff.c:1223 packet_rcv+0x163/0x13e0 net/packet/af_packet.c:2230 __netif_receive_skb_list_ptype net/core/dev.c:5673 [inline] __netif_receive_skb_list_core+0x8bd/0x980 net/core/dev.c:5716 __netif_receive_skb_list net/core/dev.c:5768 [inline] netif_receive_skb_list_internal+0xa51/0xe30 net/core/dev.c:5860 netif_receive_skb_list+0x55/0x4b0 net/core/dev.c:5912 xdp_recv_frames net/bpf/test_run.c:278 [inline] xdp_test_run_batch net/bpf/test_run.c:356 [inline] bpf_test_run_xdp_live+0x194c/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f102e175b99 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f102ee9f048 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f102e303f60 RCX: 00007f102e175b99 RDX: 0000000000000048 RSI: 0000000020000600 RDI: 000000000000000a RBP: 00007f102e1e4a7a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f102e303f60 R15: 00007ffdf961e9f8 BUG: Bad page state in process syz.2.1522 pfn:6f4db page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6f4db flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88801cef5000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 10697, tgid 10695 (syz.2.1522), ts 433390618622, free_ts 432846052079 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3425 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4683 alloc_pages_bulk_noprof+0x729/0xd40 mm/page_alloc.c:4631 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x138/0x6a0 net/core/page_pool.c:524 page_pool_dev_alloc_pages include/net/page_pool/helpers.h:94 [inline] xdp_test_run_batch net/bpf/test_run.c:301 [inline] bpf_test_run_xdp_live+0x810/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 10676 tgid 10676 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0xd19/0xea0 mm/page_alloc.c:2588 discard_slab mm/slub.c:2527 [inline] __put_partials+0xeb/0x130 mm/slub.c:2995 put_cpu_partial+0x17c/0x250 mm/slub.c:3070 __slab_free+0x2ea/0x3d0 mm/slub.c:4308 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3940 [inline] slab_alloc_node mm/slub.c:4002 [inline] __do_kmalloc_node mm/slub.c:4122 [inline] __kmalloc_noprof+0x1a3/0x400 mm/slub.c:4136 kmalloc_noprof include/linux/slab.h:664 [inline] kzalloc_noprof include/linux/slab.h:778 [inline] ops_init+0x8b/0x610 net/core/net_namespace.c:129 setup_net+0x515/0xca0 net/core/net_namespace.c:343 copy_net_ns+0x4e2/0x7b0 net/core/net_namespace.c:508 create_new_namespaces+0x425/0x7b0 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x124/0x180 kernel/nsproxy.c:228 ksys_unshare+0x619/0xc10 kernel/fork.c:3323 __do_sys_unshare kernel/fork.c:3394 [inline] __se_sys_unshare kernel/fork.c:3392 [inline] __x64_sys_unshare+0x38/0x40 kernel/fork.c:3392 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 Modules linked in: CPU: 0 PID: 10697 Comm: syz.2.1522 Tainted: G B 6.10.0-rc6-syzkaller-00061-ge9d22f7a6655 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 bad_page+0x14c/0x170 mm/page_alloc.c:498 free_page_is_bad mm/page_alloc.c:914 [inline] free_pages_prepare mm/page_alloc.c:1085 [inline] free_unref_page+0xe3e/0xea0 mm/page_alloc.c:2588 skb_free_frag include/linux/skbuff.h:3354 [inline] skb_free_head net/core/skbuff.c:1079 [inline] skb_release_data+0x6b2/0x880 net/core/skbuff.c:1108 skb_release_all net/core/skbuff.c:1173 [inline] __kfree_skb net/core/skbuff.c:1187 [inline] kfree_skb_reason+0x1a3/0x3b0 net/core/skbuff.c:1223 packet_rcv+0x163/0x13e0 net/packet/af_packet.c:2230 __netif_receive_skb_list_ptype net/core/dev.c:5673 [inline] __netif_receive_skb_list_core+0x8bd/0x980 net/core/dev.c:5716 __netif_receive_skb_list net/core/dev.c:5768 [inline] netif_receive_skb_list_internal+0xa51/0xe30 net/core/dev.c:5860 netif_receive_skb_list+0x55/0x4b0 net/core/dev.c:5912 xdp_recv_frames net/bpf/test_run.c:278 [inline] xdp_test_run_batch net/bpf/test_run.c:356 [inline] bpf_test_run_xdp_live+0x194c/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f102e175b99 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f102ee9f048 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f102e303f60 RCX: 00007f102e175b99 RDX: 0000000000000048 RSI: 0000000020000600 RDI: 000000000000000a RBP: 00007f102e1e4a7a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f102e303f60 R15: 00007ffdf961e9f8 BUG: Bad page state in process syz.2.1522 pfn:6f4da page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6f4da flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88801cef5000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 10697, tgid 10695 (syz.2.1522), ts 433390599644, free_ts 432846052079 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3425 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4683 alloc_pages_bulk_noprof+0x729/0xd40 mm/page_alloc.c:4631 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x138/0x6a0 net/core/page_pool.c:524 page_pool_dev_alloc_pages include/net/page_pool/helpers.h:94 [inline] xdp_test_run_batch net/bpf/test_run.c:301 [inline] bpf_test_run_xdp_live+0x810/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 10676 tgid 10676 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0xd19/0xea0 mm/page_alloc.c:2588 discard_slab mm/slub.c:2527 [inline] __put_partials+0xeb/0x130 mm/slub.c:2995 put_cpu_partial+0x17c/0x250 mm/slub.c:3070 __slab_free+0x2ea/0x3d0 mm/slub.c:4308 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3940 [inline] slab_alloc_node mm/slub.c:4002 [inline] __do_kmalloc_node mm/slub.c:4122 [inline] __kmalloc_noprof+0x1a3/0x400 mm/slub.c:4136 kmalloc_noprof include/linux/slab.h:664 [inline] kzalloc_noprof include/linux/slab.h:778 [inline] ops_init+0x8b/0x610 net/core/net_namespace.c:129 setup_net+0x515/0xca0 net/core/net_namespace.c:343 copy_net_ns+0x4e2/0x7b0 net/core/net_namespace.c:508 create_new_namespaces+0x425/0x7b0 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x124/0x180 kernel/nsproxy.c:228 ksys_unshare+0x619/0xc10 kernel/fork.c:3323 __do_sys_unshare kernel/fork.c:3394 [inline] __se_sys_unshare kernel/fork.c:3392 [inline] __x64_sys_unshare+0x38/0x40 kernel/fork.c:3392 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 Modules linked in: CPU: 0 PID: 10697 Comm: syz.2.1522 Tainted: G B 6.10.0-rc6-syzkaller-00061-ge9d22f7a6655 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 bad_page+0x14c/0x170 mm/page_alloc.c:498 free_page_is_bad mm/page_alloc.c:914 [inline] free_pages_prepare mm/page_alloc.c:1085 [inline] free_unref_page+0xe3e/0xea0 mm/page_alloc.c:2588 skb_free_frag include/linux/skbuff.h:3354 [inline] skb_free_head net/core/skbuff.c:1079 [inline] skb_release_data+0x6b2/0x880 net/core/skbuff.c:1108 skb_release_all net/core/skbuff.c:1173 [inline] __kfree_skb net/core/skbuff.c:1187 [inline] kfree_skb_reason+0x1a3/0x3b0 net/core/skbuff.c:1223 packet_rcv+0x163/0x13e0 net/packet/af_packet.c:2230 __netif_receive_skb_list_ptype net/core/dev.c:5673 [inline] __netif_receive_skb_list_core+0x8bd/0x980 net/core/dev.c:5716 __netif_receive_skb_list net/core/dev.c:5768 [inline] netif_receive_skb_list_internal+0xa51/0xe30 net/core/dev.c:5860 netif_receive_skb_list+0x55/0x4b0 net/core/dev.c:5912 xdp_recv_frames net/bpf/test_run.c:278 [inline] xdp_test_run_batch net/bpf/test_run.c:356 [inline] bpf_test_run_xdp_live+0x194c/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f102e175b99 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f102ee9f048 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f102e303f60 RCX: 00007f102e175b99 RDX: 0000000000000048 RSI: 0000000020000600 RDI: 000000000000000a RBP: 00007f102e1e4a7a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f102e303f60 R15: 00007ffdf961e9f8 BUG: Bad page state in process syz.2.1522 pfn:6f4d9 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x8 pfn:0x6f4d9 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88801cef5000 0000000000000000 raw: 0000000000000008 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 10697, tgid 10695 (syz.2.1522), ts 433390580949, free_ts 432846052079 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3425 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4683 alloc_pages_bulk_noprof+0x729/0xd40 mm/page_alloc.c:4631 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x138/0x6a0 net/core/page_pool.c:524 page_pool_dev_alloc_pages include/net/page_pool/helpers.h:94 [inline] xdp_test_run_batch net/bpf/test_run.c:301 [inline] bpf_test_run_xdp_live+0x810/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 10676 tgid 10676 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0xd19/0xea0 mm/page_alloc.c:2588 discard_slab mm/slub.c:2527 [inline] __put_partials+0xeb/0x130 mm/slub.c:2995 put_cpu_partial+0x17c/0x250 mm/slub.c:3070 __slab_free+0x2ea/0x3d0 mm/slub.c:4308 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3940 [inline] slab_alloc_node mm/slub.c:4002 [inline] __do_kmalloc_node mm/slub.c:4122 [inline] __kmalloc_noprof+0x1a3/0x400 mm/slub.c:4136 kmalloc_noprof include/linux/slab.h:664 [inline] kzalloc_noprof include/linux/slab.h:778 [inline] ops_init+0x8b/0x610 net/core/net_namespace.c:129 setup_net+0x515/0xca0 net/core/net_namespace.c:343 copy_net_ns+0x4e2/0x7b0 net/core/net_namespace.c:508 create_new_namespaces+0x425/0x7b0 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x124/0x180 kernel/nsproxy.c:228 ksys_unshare+0x619/0xc10 kernel/fork.c:3323 __do_sys_unshare kernel/fork.c:3394 [inline] __se_sys_unshare kernel/fork.c:3392 [inline] __x64_sys_unshare+0x38/0x40 kernel/fork.c:3392 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 Modules linked in: CPU: 0 PID: 10697 Comm: syz.2.1522 Tainted: G B 6.10.0-rc6-syzkaller-00061-ge9d22f7a6655 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 bad_page+0x14c/0x170 mm/page_alloc.c:498 free_page_is_bad mm/page_alloc.c:914 [inline] free_pages_prepare mm/page_alloc.c:1085 [inline] free_unref_page+0xe3e/0xea0 mm/page_alloc.c:2588 skb_free_frag include/linux/skbuff.h:3354 [inline] skb_free_head net/core/skbuff.c:1079 [inline] skb_release_data+0x6b2/0x880 net/core/skbuff.c:1108 skb_release_all net/core/skbuff.c:1173 [inline] __kfree_skb net/core/skbuff.c:1187 [inline] kfree_skb_reason+0x1a3/0x3b0 net/core/skbuff.c:1223 packet_rcv+0x163/0x13e0 net/packet/af_packet.c:2230 __netif_receive_skb_list_ptype net/core/dev.c:5673 [inline] __netif_receive_skb_list_core+0x8bd/0x980 net/core/dev.c:5716 __netif_receive_skb_list net/core/dev.c:5768 [inline] netif_receive_skb_list_internal+0xa51/0xe30 net/core/dev.c:5860 netif_receive_skb_list+0x55/0x4b0 net/core/dev.c:5912 xdp_recv_frames net/bpf/test_run.c:278 [inline] xdp_test_run_batch net/bpf/test_run.c:356 [inline] bpf_test_run_xdp_live+0x194c/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f102e175b99 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f102ee9f048 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f102e303f60 RCX: 00007f102e175b99 RDX: 0000000000000048 RSI: 0000000020000600 RDI: 000000000000000a RBP: 00007f102e1e4a7a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f102e303f60 R15: 00007ffdf961e9f8 BUG: Bad page state in process syz.2.1522 pfn:6f4d8 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88806f4de000 pfn:0x6f4d8 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88801cef5000 0000000000000000 raw: ffff88806f4de000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 10697, tgid 10695 (syz.2.1522), ts 433390562145, free_ts 432846052079 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3425 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4683 alloc_pages_bulk_noprof+0x729/0xd40 mm/page_alloc.c:4631 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x138/0x6a0 net/core/page_pool.c:524 page_pool_dev_alloc_pages include/net/page_pool/helpers.h:94 [inline] xdp_test_run_batch net/bpf/test_run.c:301 [inline] bpf_test_run_xdp_live+0x810/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 10676 tgid 10676 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0xd19/0xea0 mm/page_alloc.c:2588 discard_slab mm/slub.c:2527 [inline] __put_partials+0xeb/0x130 mm/slub.c:2995 put_cpu_partial+0x17c/0x250 mm/slub.c:3070 __slab_free+0x2ea/0x3d0 mm/slub.c:4308 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3940 [inline] slab_alloc_node mm/slub.c:4002 [inline] __do_kmalloc_node mm/slub.c:4122 [inline] __kmalloc_noprof+0x1a3/0x400 mm/slub.c:4136 kmalloc_noprof include/linux/slab.h:664 [inline] kzalloc_noprof include/linux/slab.h:778 [inline] ops_init+0x8b/0x610 net/core/net_namespace.c:129 setup_net+0x515/0xca0 net/core/net_namespace.c:343 copy_net_ns+0x4e2/0x7b0 net/core/net_namespace.c:508 create_new_namespaces+0x425/0x7b0 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0x124/0x180 kernel/nsproxy.c:228 ksys_unshare+0x619/0xc10 kernel/fork.c:3323 __do_sys_unshare kernel/fork.c:3394 [inline] __se_sys_unshare kernel/fork.c:3392 [inline] __x64_sys_unshare+0x38/0x40 kernel/fork.c:3392 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 Modules linked in: CPU: 0 PID: 10697 Comm: syz.2.1522 Tainted: G B 6.10.0-rc6-syzkaller-00061-ge9d22f7a6655 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 bad_page+0x14c/0x170 mm/page_alloc.c:498 free_page_is_bad mm/page_alloc.c:914 [inline] free_pages_prepare mm/page_alloc.c:1085 [inline] free_unref_page+0xe3e/0xea0 mm/page_alloc.c:2588 skb_free_frag include/linux/skbuff.h:3354 [inline] skb_free_head net/core/skbuff.c:1079 [inline] skb_release_data+0x6b2/0x880 net/core/skbuff.c:1108 skb_release_all net/core/skbuff.c:1173 [inline] __kfree_skb net/core/skbuff.c:1187 [inline] kfree_skb_reason+0x1a3/0x3b0 net/core/skbuff.c:1223 packet_rcv+0x163/0x13e0 net/packet/af_packet.c:2230 __netif_receive_skb_list_ptype net/core/dev.c:5673 [inline] __netif_receive_skb_list_core+0x8bd/0x980 net/core/dev.c:5716 __netif_receive_skb_list net/core/dev.c:5768 [inline] netif_receive_skb_list_internal+0xa51/0xe30 net/core/dev.c:5860 netif_receive_skb_list+0x55/0x4b0 net/core/dev.c:5912 xdp_recv_frames net/bpf/test_run.c:278 [inline] xdp_test_run_batch net/bpf/test_run.c:356 [inline] bpf_test_run_xdp_live+0x194c/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f102e175b99 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f102ee9f048 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f102e303f60 RCX: 00007f102e175b99 RDX: 0000000000000048 RSI: 0000000020000600 RDI: 000000000000000a RBP: 00007f102e1e4a7a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f102e303f60 R15: 00007ffdf961e9f8 BUG: Bad page state in process syz.2.1522 pfn:692d7 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x692d7 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88801cef5000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 10697, tgid 10695 (syz.2.1522), ts 433390543360, free_ts 432862593127 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3425 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4683 alloc_pages_bulk_noprof+0x729/0xd40 mm/page_alloc.c:4631 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x138/0x6a0 net/core/page_pool.c:524 page_pool_dev_alloc_pages include/net/page_pool/helpers.h:94 [inline] xdp_test_run_batch net/bpf/test_run.c:301 [inline] bpf_test_run_xdp_live+0x810/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 10686 tgid 10684 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0xd19/0xea0 mm/page_alloc.c:2588 discard_slab mm/slub.c:2527 [inline] __put_partials+0xeb/0x130 mm/slub.c:2995 put_cpu_partial+0x17c/0x250 mm/slub.c:3070 __slab_free+0x2ea/0x3d0 mm/slub.c:4308 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3940 [inline] slab_alloc_node mm/slub.c:4002 [inline] kmalloc_trace_noprof+0x132/0x2c0 mm/slub.c:4149 kmalloc_noprof include/linux/slab.h:660 [inline] kzalloc_noprof include/linux/slab.h:778 [inline] nsim_bpf_map_alloc drivers/net/netdevsim/bpf.c:497 [inline] nsim_bpf+0x720/0xd60 drivers/net/netdevsim/bpf.c:571 bpf_map_offload_ndo kernel/bpf/offload.c:133 [inline] bpf_map_offload_map_alloc+0x40b/0x680 kernel/bpf/offload.c:545 map_create+0x90c/0x1200 kernel/bpf/syscall.c:1333 __sys_bpf+0x6d1/0x810 kernel/bpf/syscall.c:5670 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 PID: 10697 Comm: syz.2.1522 Tainted: G B 6.10.0-rc6-syzkaller-00061-ge9d22f7a6655 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 bad_page+0x14c/0x170 mm/page_alloc.c:498 free_page_is_bad mm/page_alloc.c:914 [inline] free_pages_prepare mm/page_alloc.c:1085 [inline] free_unref_page+0xe3e/0xea0 mm/page_alloc.c:2588 skb_free_frag include/linux/skbuff.h:3354 [inline] skb_free_head net/core/skbuff.c:1079 [inline] skb_release_data+0x6b2/0x880 net/core/skbuff.c:1108 skb_release_all net/core/skbuff.c:1173 [inline] __kfree_skb net/core/skbuff.c:1187 [inline] kfree_skb_reason+0x1a3/0x3b0 net/core/skbuff.c:1223 packet_rcv+0x163/0x13e0 net/packet/af_packet.c:2230 __netif_receive_skb_list_ptype net/core/dev.c:5673 [inline] __netif_receive_skb_list_core+0x8bd/0x980 net/core/dev.c:5716 __netif_receive_skb_list net/core/dev.c:5768 [inline] netif_receive_skb_list_internal+0xa51/0xe30 net/core/dev.c:5860 netif_receive_skb_list+0x55/0x4b0 net/core/dev.c:5912 xdp_recv_frames net/bpf/test_run.c:278 [inline] xdp_test_run_batch net/bpf/test_run.c:356 [inline] bpf_test_run_xdp_live+0x194c/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f102e175b99 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f102ee9f048 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f102e303f60 RCX: 00007f102e175b99 RDX: 0000000000000048 RSI: 0000000020000600 RDI: 000000000000000a RBP: 00007f102e1e4a7a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f102e303f60 R15: 00007ffdf961e9f8 BUG: Bad page state in process syz.2.1522 pfn:692d6 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x692d6 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88801cef5000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 10697, tgid 10695 (syz.2.1522), ts 433390524617, free_ts 432862593127 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3425 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4683 alloc_pages_bulk_noprof+0x729/0xd40 mm/page_alloc.c:4631 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x138/0x6a0 net/core/page_pool.c:524 page_pool_dev_alloc_pages include/net/page_pool/helpers.h:94 [inline] xdp_test_run_batch net/bpf/test_run.c:301 [inline] bpf_test_run_xdp_live+0x810/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 10686 tgid 10684 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0xd19/0xea0 mm/page_alloc.c:2588 discard_slab mm/slub.c:2527 [inline] __put_partials+0xeb/0x130 mm/slub.c:2995 put_cpu_partial+0x17c/0x250 mm/slub.c:3070 __slab_free+0x2ea/0x3d0 mm/slub.c:4308 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3940 [inline] slab_alloc_node mm/slub.c:4002 [inline] kmalloc_trace_noprof+0x132/0x2c0 mm/slub.c:4149 kmalloc_noprof include/linux/slab.h:660 [inline] kzalloc_noprof include/linux/slab.h:778 [inline] nsim_bpf_map_alloc drivers/net/netdevsim/bpf.c:497 [inline] nsim_bpf+0x720/0xd60 drivers/net/netdevsim/bpf.c:571 bpf_map_offload_ndo kernel/bpf/offload.c:133 [inline] bpf_map_offload_map_alloc+0x40b/0x680 kernel/bpf/offload.c:545 map_create+0x90c/0x1200 kernel/bpf/syscall.c:1333 __sys_bpf+0x6d1/0x810 kernel/bpf/syscall.c:5670 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 PID: 10697 Comm: syz.2.1522 Tainted: G B 6.10.0-rc6-syzkaller-00061-ge9d22f7a6655 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 bad_page+0x14c/0x170 mm/page_alloc.c:498 free_page_is_bad mm/page_alloc.c:914 [inline] free_pages_prepare mm/page_alloc.c:1085 [inline] free_unref_page+0xe3e/0xea0 mm/page_alloc.c:2588 skb_free_frag include/linux/skbuff.h:3354 [inline] skb_free_head net/core/skbuff.c:1079 [inline] skb_release_data+0x6b2/0x880 net/core/skbuff.c:1108 skb_release_all net/core/skbuff.c:1173 [inline] __kfree_skb net/core/skbuff.c:1187 [inline] kfree_skb_reason+0x1a3/0x3b0 net/core/skbuff.c:1223 packet_rcv+0x163/0x13e0 net/packet/af_packet.c:2230 __netif_receive_skb_list_ptype net/core/dev.c:5673 [inline] __netif_receive_skb_list_core+0x8bd/0x980 net/core/dev.c:5716 __netif_receive_skb_list net/core/dev.c:5768 [inline] netif_receive_skb_list_internal+0xa51/0xe30 net/core/dev.c:5860 netif_receive_skb_list+0x55/0x4b0 net/core/dev.c:5912 xdp_recv_frames net/bpf/test_run.c:278 [inline] xdp_test_run_batch net/bpf/test_run.c:356 [inline] bpf_test_run_xdp_live+0x194c/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f102e175b99 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f102ee9f048 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f102e303f60 RCX: 00007f102e175b99 RDX: 0000000000000048 RSI: 0000000020000600 RDI: 000000000000000a RBP: 00007f102e1e4a7a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f102e303f60 R15: 00007ffdf961e9f8 BUG: Bad page state in process syz.2.1522 pfn:692d5 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x692d5 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88801cef5000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 10697, tgid 10695 (syz.2.1522), ts 433390506165, free_ts 432862593127 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3425 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4683 alloc_pages_bulk_noprof+0x729/0xd40 mm/page_alloc.c:4631 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x138/0x6a0 net/core/page_pool.c:524 page_pool_dev_alloc_pages include/net/page_pool/helpers.h:94 [inline] xdp_test_run_batch net/bpf/test_run.c:301 [inline] bpf_test_run_xdp_live+0x810/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 10686 tgid 10684 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0xd19/0xea0 mm/page_alloc.c:2588 discard_slab mm/slub.c:2527 [inline] __put_partials+0xeb/0x130 mm/slub.c:2995 put_cpu_partial+0x17c/0x250 mm/slub.c:3070 __slab_free+0x2ea/0x3d0 mm/slub.c:4308 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3940 [inline] slab_alloc_node mm/slub.c:4002 [inline] kmalloc_trace_noprof+0x132/0x2c0 mm/slub.c:4149 kmalloc_noprof include/linux/slab.h:660 [inline] kzalloc_noprof include/linux/slab.h:778 [inline] nsim_bpf_map_alloc drivers/net/netdevsim/bpf.c:497 [inline] nsim_bpf+0x720/0xd60 drivers/net/netdevsim/bpf.c:571 bpf_map_offload_ndo kernel/bpf/offload.c:133 [inline] bpf_map_offload_map_alloc+0x40b/0x680 kernel/bpf/offload.c:545 map_create+0x90c/0x1200 kernel/bpf/syscall.c:1333 __sys_bpf+0x6d1/0x810 kernel/bpf/syscall.c:5670 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 PID: 10697 Comm: syz.2.1522 Tainted: G B 6.10.0-rc6-syzkaller-00061-ge9d22f7a6655 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 bad_page+0x14c/0x170 mm/page_alloc.c:498 free_page_is_bad mm/page_alloc.c:914 [inline] free_pages_prepare mm/page_alloc.c:1085 [inline] free_unref_page+0xe3e/0xea0 mm/page_alloc.c:2588 skb_free_frag include/linux/skbuff.h:3354 [inline] skb_free_head net/core/skbuff.c:1079 [inline] skb_release_data+0x6b2/0x880 net/core/skbuff.c:1108 skb_release_all net/core/skbuff.c:1173 [inline] __kfree_skb net/core/skbuff.c:1187 [inline] kfree_skb_reason+0x1a3/0x3b0 net/core/skbuff.c:1223 packet_rcv+0x163/0x13e0 net/packet/af_packet.c:2230 __netif_receive_skb_list_ptype net/core/dev.c:5673 [inline] __netif_receive_skb_list_core+0x8bd/0x980 net/core/dev.c:5716 __netif_receive_skb_list net/core/dev.c:5768 [inline] netif_receive_skb_list_internal+0xa51/0xe30 net/core/dev.c:5860 netif_receive_skb_list+0x55/0x4b0 net/core/dev.c:5912 xdp_recv_frames net/bpf/test_run.c:278 [inline] xdp_test_run_batch net/bpf/test_run.c:356 [inline] bpf_test_run_xdp_live+0x194c/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f102e175b99 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f102ee9f048 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f102e303f60 RCX: 00007f102e175b99 RDX: 0000000000000048 RSI: 0000000020000600 RDI: 000000000000000a RBP: 00007f102e1e4a7a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f102e303f60 R15: 00007ffdf961e9f8 BUG: Bad page state in process syz.2.1522 pfn:692d4 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x692d4 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88801cef5000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 10697, tgid 10695 (syz.2.1522), ts 433390487589, free_ts 432862593127 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3425 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4683 alloc_pages_bulk_noprof+0x729/0xd40 mm/page_alloc.c:4631 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x138/0x6a0 net/core/page_pool.c:524 page_pool_dev_alloc_pages include/net/page_pool/helpers.h:94 [inline] xdp_test_run_batch net/bpf/test_run.c:301 [inline] bpf_test_run_xdp_live+0x810/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 10686 tgid 10684 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0xd19/0xea0 mm/page_alloc.c:2588 discard_slab mm/slub.c:2527 [inline] __put_partials+0xeb/0x130 mm/slub.c:2995 put_cpu_partial+0x17c/0x250 mm/slub.c:3070 __slab_free+0x2ea/0x3d0 mm/slub.c:4308 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3940 [inline] slab_alloc_node mm/slub.c:4002 [inline] kmalloc_trace_noprof+0x132/0x2c0 mm/slub.c:4149 kmalloc_noprof include/linux/slab.h:660 [inline] kzalloc_noprof include/linux/slab.h:778 [inline] nsim_bpf_map_alloc drivers/net/netdevsim/bpf.c:497 [inline] nsim_bpf+0x720/0xd60 drivers/net/netdevsim/bpf.c:571 bpf_map_offload_ndo kernel/bpf/offload.c:133 [inline] bpf_map_offload_map_alloc+0x40b/0x680 kernel/bpf/offload.c:545 map_create+0x90c/0x1200 kernel/bpf/syscall.c:1333 __sys_bpf+0x6d1/0x810 kernel/bpf/syscall.c:5670 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 PID: 10697 Comm: syz.2.1522 Tainted: G B 6.10.0-rc6-syzkaller-00061-ge9d22f7a6655 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 bad_page+0x14c/0x170 mm/page_alloc.c:498 free_page_is_bad mm/page_alloc.c:914 [inline] free_pages_prepare mm/page_alloc.c:1085 [inline] free_unref_page+0xe3e/0xea0 mm/page_alloc.c:2588 skb_free_frag include/linux/skbuff.h:3354 [inline] skb_free_head net/core/skbuff.c:1079 [inline] skb_release_data+0x6b2/0x880 net/core/skbuff.c:1108 skb_release_all net/core/skbuff.c:1173 [inline] __kfree_skb net/core/skbuff.c:1187 [inline] kfree_skb_reason+0x1a3/0x3b0 net/core/skbuff.c:1223 packet_rcv+0x163/0x13e0 net/packet/af_packet.c:2230 __netif_receive_skb_list_ptype net/core/dev.c:5673 [inline] __netif_receive_skb_list_core+0x8bd/0x980 net/core/dev.c:5716 __netif_receive_skb_list net/core/dev.c:5768 [inline] netif_receive_skb_list_internal+0xa51/0xe30 net/core/dev.c:5860 netif_receive_skb_list+0x55/0x4b0 net/core/dev.c:5912 xdp_recv_frames net/bpf/test_run.c:278 [inline] xdp_test_run_batch net/bpf/test_run.c:356 [inline] bpf_test_run_xdp_live+0x194c/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f102e175b99 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f102ee9f048 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f102e303f60 RCX: 00007f102e175b99 RDX: 0000000000000048 RSI: 0000000020000600 RDI: 000000000000000a RBP: 00007f102e1e4a7a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f102e303f60 R15: 00007ffdf961e9f8 BUG: Bad page state in process syz.2.1522 pfn:692d3 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x692d3 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88801cef5000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 10697, tgid 10695 (syz.2.1522), ts 433390469210, free_ts 432862593127 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3425 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4683 alloc_pages_bulk_noprof+0x729/0xd40 mm/page_alloc.c:4631 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x138/0x6a0 net/core/page_pool.c:524 page_pool_dev_alloc_pages include/net/page_pool/helpers.h:94 [inline] xdp_test_run_batch net/bpf/test_run.c:301 [inline] bpf_test_run_xdp_live+0x810/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 10686 tgid 10684 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0xd19/0xea0 mm/page_alloc.c:2588 discard_slab mm/slub.c:2527 [inline] __put_partials+0xeb/0x130 mm/slub.c:2995 put_cpu_partial+0x17c/0x250 mm/slub.c:3070 __slab_free+0x2ea/0x3d0 mm/slub.c:4308 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3940 [inline] slab_alloc_node mm/slub.c:4002 [inline] kmalloc_trace_noprof+0x132/0x2c0 mm/slub.c:4149 kmalloc_noprof include/linux/slab.h:660 [inline] kzalloc_noprof include/linux/slab.h:778 [inline] nsim_bpf_map_alloc drivers/net/netdevsim/bpf.c:497 [inline] nsim_bpf+0x720/0xd60 drivers/net/netdevsim/bpf.c:571 bpf_map_offload_ndo kernel/bpf/offload.c:133 [inline] bpf_map_offload_map_alloc+0x40b/0x680 kernel/bpf/offload.c:545 map_create+0x90c/0x1200 kernel/bpf/syscall.c:1333 __sys_bpf+0x6d1/0x810 kernel/bpf/syscall.c:5670 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 PID: 10697 Comm: syz.2.1522 Tainted: G B 6.10.0-rc6-syzkaller-00061-ge9d22f7a6655 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 bad_page+0x14c/0x170 mm/page_alloc.c:498 free_page_is_bad mm/page_alloc.c:914 [inline] free_pages_prepare mm/page_alloc.c:1085 [inline] free_unref_page+0xe3e/0xea0 mm/page_alloc.c:2588 skb_free_frag include/linux/skbuff.h:3354 [inline] skb_free_head net/core/skbuff.c:1079 [inline] skb_release_data+0x6b2/0x880 net/core/skbuff.c:1108 skb_release_all net/core/skbuff.c:1173 [inline] __kfree_skb net/core/skbuff.c:1187 [inline] kfree_skb_reason+0x1a3/0x3b0 net/core/skbuff.c:1223 packet_rcv+0x163/0x13e0 net/packet/af_packet.c:2230 __netif_receive_skb_list_ptype net/core/dev.c:5673 [inline] __netif_receive_skb_list_core+0x8bd/0x980 net/core/dev.c:5716 __netif_receive_skb_list net/core/dev.c:5768 [inline] netif_receive_skb_list_internal+0xa51/0xe30 net/core/dev.c:5860 netif_receive_skb_list+0x55/0x4b0 net/core/dev.c:5912 xdp_recv_frames net/bpf/test_run.c:278 [inline] xdp_test_run_batch net/bpf/test_run.c:356 [inline] bpf_test_run_xdp_live+0x194c/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f102e175b99 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f102ee9f048 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f102e303f60 RCX: 00007f102e175b99 RDX: 0000000000000048 RSI: 0000000020000600 RDI: 000000000000000a RBP: 00007f102e1e4a7a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f102e303f60 R15: 00007ffdf961e9f8 BUG: Bad page state in process syz.2.1522 pfn:692d2 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x692d2 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88801cef5000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 10697, tgid 10695 (syz.2.1522), ts 433390450469, free_ts 432862593127 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3425 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4683 alloc_pages_bulk_noprof+0x729/0xd40 mm/page_alloc.c:4631 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x138/0x6a0 net/core/page_pool.c:524 page_pool_dev_alloc_pages include/net/page_pool/helpers.h:94 [inline] xdp_test_run_batch net/bpf/test_run.c:301 [inline] bpf_test_run_xdp_live+0x810/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 10686 tgid 10684 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0xd19/0xea0 mm/page_alloc.c:2588 discard_slab mm/slub.c:2527 [inline] __put_partials+0xeb/0x130 mm/slub.c:2995 put_cpu_partial+0x17c/0x250 mm/slub.c:3070 __slab_free+0x2ea/0x3d0 mm/slub.c:4308 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3940 [inline] slab_alloc_node mm/slub.c:4002 [inline] kmalloc_trace_noprof+0x132/0x2c0 mm/slub.c:4149 kmalloc_noprof include/linux/slab.h:660 [inline] kzalloc_noprof include/linux/slab.h:778 [inline] nsim_bpf_map_alloc drivers/net/netdevsim/bpf.c:497 [inline] nsim_bpf+0x720/0xd60 drivers/net/netdevsim/bpf.c:571 bpf_map_offload_ndo kernel/bpf/offload.c:133 [inline] bpf_map_offload_map_alloc+0x40b/0x680 kernel/bpf/offload.c:545 map_create+0x90c/0x1200 kernel/bpf/syscall.c:1333 __sys_bpf+0x6d1/0x810 kernel/bpf/syscall.c:5670 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 PID: 10697 Comm: syz.2.1522 Tainted: G B 6.10.0-rc6-syzkaller-00061-ge9d22f7a6655 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 bad_page+0x14c/0x170 mm/page_alloc.c:498 free_page_is_bad mm/page_alloc.c:914 [inline] free_pages_prepare mm/page_alloc.c:1085 [inline] free_unref_page+0xe3e/0xea0 mm/page_alloc.c:2588 skb_free_frag include/linux/skbuff.h:3354 [inline] skb_free_head net/core/skbuff.c:1079 [inline] skb_release_data+0x6b2/0x880 net/core/skbuff.c:1108 skb_release_all net/core/skbuff.c:1173 [inline] __kfree_skb net/core/skbuff.c:1187 [inline] kfree_skb_reason+0x1a3/0x3b0 net/core/skbuff.c:1223 packet_rcv+0x163/0x13e0 net/packet/af_packet.c:2230 __netif_receive_skb_list_ptype net/core/dev.c:5673 [inline] __netif_receive_skb_list_core+0x8bd/0x980 net/core/dev.c:5716 __netif_receive_skb_list net/core/dev.c:5768 [inline] netif_receive_skb_list_internal+0xa51/0xe30 net/core/dev.c:5860 netif_receive_skb_list+0x55/0x4b0 net/core/dev.c:5912 xdp_recv_frames net/bpf/test_run.c:278 [inline] xdp_test_run_batch net/bpf/test_run.c:356 [inline] bpf_test_run_xdp_live+0x194c/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f102e175b99 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f102ee9f048 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f102e303f60 RCX: 00007f102e175b99 RDX: 0000000000000048 RSI: 0000000020000600 RDI: 000000000000000a RBP: 00007f102e1e4a7a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f102e303f60 R15: 00007ffdf961e9f8 BUG: Bad page state in process syz.2.1522 pfn:692d1 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x8 pfn:0x692d1 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88801cef5000 0000000000000000 raw: 0000000000000008 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 10697, tgid 10695 (syz.2.1522), ts 433390431697, free_ts 432862593127 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3425 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4683 alloc_pages_bulk_noprof+0x729/0xd40 mm/page_alloc.c:4631 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x138/0x6a0 net/core/page_pool.c:524 page_pool_dev_alloc_pages include/net/page_pool/helpers.h:94 [inline] xdp_test_run_batch net/bpf/test_run.c:301 [inline] bpf_test_run_xdp_live+0x810/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 10686 tgid 10684 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0xd19/0xea0 mm/page_alloc.c:2588 discard_slab mm/slub.c:2527 [inline] __put_partials+0xeb/0x130 mm/slub.c:2995 put_cpu_partial+0x17c/0x250 mm/slub.c:3070 __slab_free+0x2ea/0x3d0 mm/slub.c:4308 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3940 [inline] slab_alloc_node mm/slub.c:4002 [inline] kmalloc_trace_noprof+0x132/0x2c0 mm/slub.c:4149 kmalloc_noprof include/linux/slab.h:660 [inline] kzalloc_noprof include/linux/slab.h:778 [inline] nsim_bpf_map_alloc drivers/net/netdevsim/bpf.c:497 [inline] nsim_bpf+0x720/0xd60 drivers/net/netdevsim/bpf.c:571 bpf_map_offload_ndo kernel/bpf/offload.c:133 [inline] bpf_map_offload_map_alloc+0x40b/0x680 kernel/bpf/offload.c:545 map_create+0x90c/0x1200 kernel/bpf/syscall.c:1333 __sys_bpf+0x6d1/0x810 kernel/bpf/syscall.c:5670 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 PID: 10697 Comm: syz.2.1522 Tainted: G B 6.10.0-rc6-syzkaller-00061-ge9d22f7a6655 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 bad_page+0x14c/0x170 mm/page_alloc.c:498 free_page_is_bad mm/page_alloc.c:914 [inline] free_pages_prepare mm/page_alloc.c:1085 [inline] free_unref_page+0xe3e/0xea0 mm/page_alloc.c:2588 skb_free_frag include/linux/skbuff.h:3354 [inline] skb_free_head net/core/skbuff.c:1079 [inline] skb_release_data+0x6b2/0x880 net/core/skbuff.c:1108 skb_release_all net/core/skbuff.c:1173 [inline] __kfree_skb net/core/skbuff.c:1187 [inline] kfree_skb_reason+0x1a3/0x3b0 net/core/skbuff.c:1223 packet_rcv+0x163/0x13e0 net/packet/af_packet.c:2230 __netif_receive_skb_list_ptype net/core/dev.c:5673 [inline] __netif_receive_skb_list_core+0x8bd/0x980 net/core/dev.c:5716 __netif_receive_skb_list net/core/dev.c:5768 [inline] netif_receive_skb_list_internal+0xa51/0xe30 net/core/dev.c:5860 netif_receive_skb_list+0x55/0x4b0 net/core/dev.c:5912 xdp_recv_frames net/bpf/test_run.c:278 [inline] xdp_test_run_batch net/bpf/test_run.c:356 [inline] bpf_test_run_xdp_live+0x194c/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f102e175b99 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f102ee9f048 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f102e303f60 RCX: 00007f102e175b99 RDX: 0000000000000048 RSI: 0000000020000600 RDI: 000000000000000a RBP: 00007f102e1e4a7a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f102e303f60 R15: 00007ffdf961e9f8 BUG: Bad page state in process syz.2.1522 pfn:692d0 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880692d6000 pfn:0x692d0 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88801cef5000 0000000000000000 raw: ffff8880692d6000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 10697, tgid 10695 (syz.2.1522), ts 433390413278, free_ts 432862593127 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3425 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4683 alloc_pages_bulk_noprof+0x729/0xd40 mm/page_alloc.c:4631 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x138/0x6a0 net/core/page_pool.c:524 page_pool_dev_alloc_pages include/net/page_pool/helpers.h:94 [inline] xdp_test_run_batch net/bpf/test_run.c:301 [inline] bpf_test_run_xdp_live+0x810/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 10686 tgid 10684 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0xd19/0xea0 mm/page_alloc.c:2588 discard_slab mm/slub.c:2527 [inline] __put_partials+0xeb/0x130 mm/slub.c:2995 put_cpu_partial+0x17c/0x250 mm/slub.c:3070 __slab_free+0x2ea/0x3d0 mm/slub.c:4308 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3940 [inline] slab_alloc_node mm/slub.c:4002 [inline] kmalloc_trace_noprof+0x132/0x2c0 mm/slub.c:4149 kmalloc_noprof include/linux/slab.h:660 [inline] kzalloc_noprof include/linux/slab.h:778 [inline] nsim_bpf_map_alloc drivers/net/netdevsim/bpf.c:497 [inline] nsim_bpf+0x720/0xd60 drivers/net/netdevsim/bpf.c:571 bpf_map_offload_ndo kernel/bpf/offload.c:133 [inline] bpf_map_offload_map_alloc+0x40b/0x680 kernel/bpf/offload.c:545 map_create+0x90c/0x1200 kernel/bpf/syscall.c:1333 __sys_bpf+0x6d1/0x810 kernel/bpf/syscall.c:5670 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 PID: 10697 Comm: syz.2.1522 Tainted: G B 6.10.0-rc6-syzkaller-00061-ge9d22f7a6655 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 bad_page+0x14c/0x170 mm/page_alloc.c:498 free_page_is_bad mm/page_alloc.c:914 [inline] free_pages_prepare mm/page_alloc.c:1085 [inline] free_unref_page+0xe3e/0xea0 mm/page_alloc.c:2588 skb_free_frag include/linux/skbuff.h:3354 [inline] skb_free_head net/core/skbuff.c:1079 [inline] skb_release_data+0x6b2/0x880 net/core/skbuff.c:1108 skb_release_all net/core/skbuff.c:1173 [inline] __kfree_skb net/core/skbuff.c:1187 [inline] kfree_skb_reason+0x1a3/0x3b0 net/core/skbuff.c:1223 packet_rcv+0x163/0x13e0 net/packet/af_packet.c:2230 __netif_receive_skb_list_ptype net/core/dev.c:5673 [inline] __netif_receive_skb_list_core+0x8bd/0x980 net/core/dev.c:5716 __netif_receive_skb_list net/core/dev.c:5768 [inline] netif_receive_skb_list_internal+0xa51/0xe30 net/core/dev.c:5860 netif_receive_skb_list+0x55/0x4b0 net/core/dev.c:5912 xdp_recv_frames net/bpf/test_run.c:278 [inline] xdp_test_run_batch net/bpf/test_run.c:356 [inline] bpf_test_run_xdp_live+0x194c/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f102e175b99 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f102ee9f048 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f102e303f60 RCX: 00007f102e175b99 RDX: 0000000000000048 RSI: 0000000020000600 RDI: 000000000000000a RBP: 00007f102e1e4a7a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f102e303f60 R15: 00007ffdf961e9f8 BUG: Bad page state in process syz.2.1522 pfn:708ef page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x708ef flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88801cef5000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 10697, tgid 10695 (syz.2.1522), ts 433390394565, free_ts 431731963239 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3425 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4683 alloc_pages_bulk_noprof+0x729/0xd40 mm/page_alloc.c:4631 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x138/0x6a0 net/core/page_pool.c:524 page_pool_dev_alloc_pages include/net/page_pool/helpers.h:94 [inline] xdp_test_run_batch net/bpf/test_run.c:301 [inline] bpf_test_run_xdp_live+0x810/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 8626 tgid 8626 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0xd19/0xea0 mm/page_alloc.c:2588 vfree+0x186/0x2e0 mm/vmalloc.c:3355 kcov_put kernel/kcov.c:429 [inline] kcov_close+0x2b/0x50 kernel/kcov.c:525 __fput+0x24a/0x8a0 fs/file_table.c:422 task_work_run+0x24f/0x310 kernel/task_work.c:180 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xa27/0x27e0 kernel/exit.c:874 do_group_exit+0x207/0x2c0 kernel/exit.c:1023 get_signal+0x16a1/0x1740 kernel/signal.c:2909 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xc9/0x360 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 PID: 10697 Comm: syz.2.1522 Tainted: G B 6.10.0-rc6-syzkaller-00061-ge9d22f7a6655 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 bad_page+0x14c/0x170 mm/page_alloc.c:498 free_page_is_bad mm/page_alloc.c:914 [inline] free_pages_prepare mm/page_alloc.c:1085 [inline] free_unref_page+0xe3e/0xea0 mm/page_alloc.c:2588 skb_free_frag include/linux/skbuff.h:3354 [inline] skb_free_head net/core/skbuff.c:1079 [inline] skb_release_data+0x6b2/0x880 net/core/skbuff.c:1108 skb_release_all net/core/skbuff.c:1173 [inline] __kfree_skb net/core/skbuff.c:1187 [inline] kfree_skb_reason+0x1a3/0x3b0 net/core/skbuff.c:1223 packet_rcv+0x163/0x13e0 net/packet/af_packet.c:2230 __netif_receive_skb_list_ptype net/core/dev.c:5673 [inline] __netif_receive_skb_list_core+0x8bd/0x980 net/core/dev.c:5716 __netif_receive_skb_list net/core/dev.c:5768 [inline] netif_receive_skb_list_internal+0xa51/0xe30 net/core/dev.c:5860 netif_receive_skb_list+0x55/0x4b0 net/core/dev.c:5912 xdp_recv_frames net/bpf/test_run.c:278 [inline] xdp_test_run_batch net/bpf/test_run.c:356 [inline] bpf_test_run_xdp_live+0x194c/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f102e175b99 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f102ee9f048 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f102e303f60 RCX: 00007f102e175b99 RDX: 0000000000000048 RSI: 0000000020000600 RDI: 000000000000000a RBP: 00007f102e1e4a7a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f102e303f60 R15: 00007ffdf961e9f8 BUG: Bad page state in process syz.2.1522 pfn:708ee page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x708ee flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88801cef5000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 10697, tgid 10695 (syz.2.1522), ts 433390375623, free_ts 431731980229 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3425 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4683 alloc_pages_bulk_noprof+0x729/0xd40 mm/page_alloc.c:4631 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x138/0x6a0 net/core/page_pool.c:524 page_pool_dev_alloc_pages include/net/page_pool/helpers.h:94 [inline] xdp_test_run_batch net/bpf/test_run.c:301 [inline] bpf_test_run_xdp_live+0x810/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 8626 tgid 8626 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0xd19/0xea0 mm/page_alloc.c:2588 vfree+0x186/0x2e0 mm/vmalloc.c:3355 kcov_put kernel/kcov.c:429 [inline] kcov_close+0x2b/0x50 kernel/kcov.c:525 __fput+0x24a/0x8a0 fs/file_table.c:422 task_work_run+0x24f/0x310 kernel/task_work.c:180 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xa27/0x27e0 kernel/exit.c:874 do_group_exit+0x207/0x2c0 kernel/exit.c:1023 get_signal+0x16a1/0x1740 kernel/signal.c:2909 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xc9/0x360 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 PID: 10697 Comm: syz.2.1522 Tainted: G B 6.10.0-rc6-syzkaller-00061-ge9d22f7a6655 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 bad_page+0x14c/0x170 mm/page_alloc.c:498 free_page_is_bad mm/page_alloc.c:914 [inline] free_pages_prepare mm/page_alloc.c:1085 [inline] free_unref_page+0xe3e/0xea0 mm/page_alloc.c:2588 skb_free_frag include/linux/skbuff.h:3354 [inline] skb_free_head net/core/skbuff.c:1079 [inline] skb_release_data+0x6b2/0x880 net/core/skbuff.c:1108 skb_release_all net/core/skbuff.c:1173 [inline] __kfree_skb net/core/skbuff.c:1187 [inline] kfree_skb_reason+0x1a3/0x3b0 net/core/skbuff.c:1223 packet_rcv+0x163/0x13e0 net/packet/af_packet.c:2230 __netif_receive_skb_list_ptype net/core/dev.c:5673 [inline] __netif_receive_skb_list_core+0x8bd/0x980 net/core/dev.c:5716 __netif_receive_skb_list net/core/dev.c:5768 [inline] netif_receive_skb_list_internal+0xa51/0xe30 net/core/dev.c:5860 netif_receive_skb_list+0x55/0x4b0 net/core/dev.c:5912 xdp_recv_frames net/bpf/test_run.c:278 [inline] xdp_test_run_batch net/bpf/test_run.c:356 [inline] bpf_test_run_xdp_live+0x194c/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f102e175b99 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f102ee9f048 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f102e303f60 RCX: 00007f102e175b99 RDX: 0000000000000048 RSI: 0000000020000600 RDI: 000000000000000a RBP: 00007f102e1e4a7a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f102e303f60 R15: 00007ffdf961e9f8 BUG: Bad page state in process syz.2.1522 pfn:708ed page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x708ed flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88801cef5000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 10697, tgid 10695 (syz.2.1522), ts 433390356888, free_ts 431731996979 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3425 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4683 alloc_pages_bulk_noprof+0x729/0xd40 mm/page_alloc.c:4631 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x138/0x6a0 net/core/page_pool.c:524 page_pool_dev_alloc_pages include/net/page_pool/helpers.h:94 [inline] xdp_test_run_batch net/bpf/test_run.c:301 [inline] bpf_test_run_xdp_live+0x810/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 8626 tgid 8626 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0xd19/0xea0 mm/page_alloc.c:2588 vfree+0x186/0x2e0 mm/vmalloc.c:3355 kcov_put kernel/kcov.c:429 [inline] kcov_close+0x2b/0x50 kernel/kcov.c:525 __fput+0x24a/0x8a0 fs/file_table.c:422 task_work_run+0x24f/0x310 kernel/task_work.c:180 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xa27/0x27e0 kernel/exit.c:874 do_group_exit+0x207/0x2c0 kernel/exit.c:1023 get_signal+0x16a1/0x1740 kernel/signal.c:2909 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xc9/0x360 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 PID: 10697 Comm: syz.2.1522 Tainted: G B 6.10.0-rc6-syzkaller-00061-ge9d22f7a6655 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 bad_page+0x14c/0x170 mm/page_alloc.c:498 free_page_is_bad mm/page_alloc.c:914 [inline] free_pages_prepare mm/page_alloc.c:1085 [inline] free_unref_page+0xe3e/0xea0 mm/page_alloc.c:2588 skb_free_frag include/linux/skbuff.h:3354 [inline] skb_free_head net/core/skbuff.c:1079 [inline] skb_release_data+0x6b2/0x880 net/core/skbuff.c:1108 skb_release_all net/core/skbuff.c:1173 [inline] __kfree_skb net/core/skbuff.c:1187 [inline] kfree_skb_reason+0x1a3/0x3b0 net/core/skbuff.c:1223 packet_rcv+0x163/0x13e0 net/packet/af_packet.c:2230 __netif_receive_skb_list_ptype net/core/dev.c:5673 [inline] __netif_receive_skb_list_core+0x8bd/0x980 net/core/dev.c:5716 __netif_receive_skb_list net/core/dev.c:5768 [inline] netif_receive_skb_list_internal+0xa51/0xe30 net/core/dev.c:5860 netif_receive_skb_list+0x55/0x4b0 net/core/dev.c:5912 xdp_recv_frames net/bpf/test_run.c:278 [inline] xdp_test_run_batch net/bpf/test_run.c:356 [inline] bpf_test_run_xdp_live+0x194c/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f102e175b99 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f102ee9f048 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f102e303f60 RCX: 00007f102e175b99 RDX: 0000000000000048 RSI: 0000000020000600 RDI: 000000000000000a RBP: 00007f102e1e4a7a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f102e303f60 R15: 00007ffdf961e9f8 BUG: Bad page state in process syz.2.1522 pfn:708ec page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x708ec flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88801cef5000 0000000000000000 raw: 0000000000000000 0000000000000001 00000000ffffffff 0000000000000000 page dumped because: page_pool leak page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102820(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 10697, tgid 10695 (syz.2.1522), ts 433390338091, free_ts 431732014134 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3425 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4683 alloc_pages_bulk_noprof+0x729/0xd40 mm/page_alloc.c:4631 alloc_pages_bulk_array_node_noprof include/linux/gfp.h:239 [inline] __page_pool_alloc_pages_slow+0x138/0x6a0 net/core/page_pool.c:524 page_pool_dev_alloc_pages include/net/page_pool/helpers.h:94 [inline] xdp_test_run_batch net/bpf/test_run.c:301 [inline] bpf_test_run_xdp_live+0x810/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 8626 tgid 8626 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0xd19/0xea0 mm/page_alloc.c:2588 vfree+0x186/0x2e0 mm/vmalloc.c:3355 kcov_put kernel/kcov.c:429 [inline] kcov_close+0x2b/0x50 kernel/kcov.c:525 __fput+0x24a/0x8a0 fs/file_table.c:422 task_work_run+0x24f/0x310 kernel/task_work.c:180 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xa27/0x27e0 kernel/exit.c:874 do_group_exit+0x207/0x2c0 kernel/exit.c:1023 get_signal+0x16a1/0x1740 kernel/signal.c:2909 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xc9/0x360 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 PID: 10697 Comm: syz.2.1522 Tainted: G B 6.10.0-rc6-syzkaller-00061-ge9d22f7a6655 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 bad_page+0x14c/0x170 mm/page_alloc.c:498 free_page_is_bad mm/page_alloc.c:914 [inline] free_pages_prepare mm/page_alloc.c:1085 [inline] free_unref_page+0xe3e/0xea0 mm/page_alloc.c:2588 skb_free_frag include/linux/skbuff.h:3354 [inline] skb_free_head net/core/skbuff.c:1079 [inline] skb_release_data+0x6b2/0x880 net/core/skbuff.c:1108 skb_release_all net/core/skbuff.c:1173 [inline] __kfree_skb net/core/skbuff.c:1187 [inline] kfree_skb_reason+0x1a3/0x3b0 net/core/skbuff.c:1223 packet_rcv+0x163/0x13e0 net/packet/af_packet.c:2230 __netif_receive_skb_list_ptype net/core/dev.c:5673 [inline] __netif_receive_skb_list_core+0x8bd/0x980 net/core/dev.c:5716 __netif_receive_skb_list net/core/dev.c:5768 [inline] netif_receive_skb_list_internal+0xa51/0xe30 net/core/dev.c:5860 netif_receive_skb_list+0x55/0x4b0 net/core/dev.c:5912 xdp_recv_frames net/bpf/test_run.c:278 [inline] xdp_test_run_batch net/bpf/test_run.c:356 [inline] bpf_test_run_xdp_live+0x194c/0x1e60 net/bpf/test_run.c:384 bpf_prog_test_run_xdp+0x80e/0x11b0 net/bpf/test_run.c:1281 bpf_prog_test_run+0x33a/0x3b0 kernel/bpf/syscall.c:4292 __sys_bpf+0x48d/0x810 kernel/bpf/syscall.c:5706 __do_sys_bpf kernel/bpf/syscall.c:5795 [inline] __se_sys_bpf kernel/bpf/syscall.c:5793 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5793 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f102e175b99 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f102ee9f048 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f102e303f60 RCX: 00007f102e175b99 RDX: 0000000000000048 RSI: 0000000020000600 RDI: 000000000000000a RBP: 00007f102e1e4a7a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f102e303f60 R15: 00007ffdf961e9f8 BUG: Bad page state in process syz.2.1522 pfn:708eb page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x708eb flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88801cef5000 0000000000000000