BUG: Bad page state in process syz.3.7913 pfn:2a7b3 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802a7b3f00 pfn:0x2a7b3 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88802302f000 0000000000000000 raw: ffff88802a7b3f00 3ffffffffffffffb 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 17952, tgid 17949 (syz.4.3744), ts 505561699661, free_ts 502875589693 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xe3d/0x2e10 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x26c/0x2410 mm/page_alloc.c:5240 __alloc_pages_noprof mm/page_alloc.c:5274 [inline] alloc_pages_bulk_noprof+0x777/0x1500 mm/page_alloc.c:5194 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616 page_pool_alloc_netmems net/core/page_pool.c:667 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_alloc_va include/net/page_pool/helpers.h:198 [inline] page_pool_dev_alloc_va include/net/page_pool/helpers.h:221 [inline] skb_pp_cow_data+0x998/0x10c0 net/core/skbuff.c:939 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1006 netif_skb_check_for_xdp net/core/dev.c:5500 [inline] netif_receive_generic_xdp net/core/dev.c:5541 [inline] do_xdp_generic+0x542/0x1270 net/core/dev.c:5609 __netif_receive_skb_core.constprop.0+0x848/0x3460 net/core/dev.c:5962 __netif_receive_skb_one_core+0xb0/0x1e0 net/core/dev.c:6150 __netif_receive_skb+0x1f/0x120 net/core/dev.c:6265 process_backlog+0x37a/0x1580 net/core/dev.c:6617 __napi_poll.constprop.0+0xaf/0x450 net/core/dev.c:7681 napi_poll net/core/dev.c:7744 [inline] net_rx_action+0xa40/0xf20 net/core/dev.c:7896 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 page last free pid 14863 tgid 14863 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0x822/0x1130 mm/page_alloc.c:2973 __pagetable_free include/linux/mm.h:3204 [inline] pagetable_free include/linux/mm.h:3228 [inline] pagetable_dtor_free include/linux/mm.h:3332 [inline] __tlb_remove_table include/asm-generic/tlb.h:221 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x7c0/0x15c0 kernel/rcu/tree.c:2857 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xef/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 2 UID: 0 PID: 31644 Comm: syz.3.7913 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 bad_page.cold+0xbe/0xdf mm/page_alloc.c:677 free_page_is_bad mm/page_alloc.c:1121 [inline] free_page_is_bad mm/page_alloc.c:1115 [inline] free_pages_prepare mm/page_alloc.c:1425 [inline] __free_frozen_pages+0x856/0x1130 mm/page_alloc.c:2973 page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3cd/0xb90 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4202 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4226 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4248 [inline] bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4241 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1510 net/core/dev.c:5431 netif_receive_generic_xdp net/core/dev.c:5547 [inline] do_xdp_generic+0x8f8/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa21595b78e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007fa216918fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa2169196c0 RCX: 00007fa21595b78e RDX: 000000000000fdef RSI: 0000200000000000 RDI: 00000000000000c8 RBP: 00007fa215a08c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa215c16128 R14: 00007fa215c16090 R15: 00007ffc9f7b74d8 BUG: Bad page state in process syz.3.7913 pfn:2d822 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802d822fc0 pfn:0x2d822 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88802302f000 0000000000000000 raw: ffff88802d822fc0 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 17952, tgid 17949 (syz.4.3744), ts 505561161396, free_ts 480777170485 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xe3d/0x2e10 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x26c/0x2410 mm/page_alloc.c:5240 __alloc_pages_noprof mm/page_alloc.c:5274 [inline] alloc_pages_bulk_noprof+0x777/0x1500 mm/page_alloc.c:5194 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616 page_pool_alloc_netmems net/core/page_pool.c:667 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x80f/0x10c0 net/core/skbuff.c:972 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1006 netif_skb_check_for_xdp net/core/dev.c:5500 [inline] netif_receive_generic_xdp net/core/dev.c:5541 [inline] do_xdp_generic+0x542/0x1270 net/core/dev.c:5609 __netif_receive_skb_core.constprop.0+0x848/0x3460 net/core/dev.c:5962 __netif_receive_skb_one_core+0xb0/0x1e0 net/core/dev.c:6150 __netif_receive_skb+0x1f/0x120 net/core/dev.c:6265 process_backlog+0x37a/0x1580 net/core/dev.c:6617 __napi_poll.constprop.0+0xaf/0x450 net/core/dev.c:7681 napi_poll net/core/dev.c:7744 [inline] net_rx_action+0xa40/0xf20 net/core/dev.c:7896 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 page last free pid 5916 tgid 5916 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0x822/0x1130 mm/page_alloc.c:2973 discard_slab mm/slub.c:3346 [inline] __put_partials+0x127/0x160 mm/slub.c:3886 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x47/0xe0 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x1a0/0x1f0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4953 [inline] slab_alloc_node mm/slub.c:5263 [inline] kmem_cache_alloc_node_noprof+0x303/0x880 mm/slub.c:5315 __alloc_skb+0x156/0x410 net/core/skbuff.c:679 alloc_skb_fclone include/linux/skbuff.h:1433 [inline] tcp_stream_alloc_skb+0x34/0x660 net/ipv4/tcp.c:910 tcp_sendmsg_locked+0x1299/0x4780 net/ipv4/tcp.c:1217 tcp_sendmsg+0x2e/0x50 net/ipv4/tcp.c:1412 inet_sendmsg+0xb9/0x140 net/ipv4/af_inet.c:859 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] sock_write_iter+0x509/0x610 net/socket.c:1195 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x1f8/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 2 UID: 0 PID: 31644 Comm: syz.3.7913 Tainted: G B L syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 bad_page.cold+0xbe/0xdf mm/page_alloc.c:677 free_page_is_bad mm/page_alloc.c:1121 [inline] free_page_is_bad mm/page_alloc.c:1115 [inline] free_pages_prepare mm/page_alloc.c:1425 [inline] __free_frozen_pages+0x856/0x1130 mm/page_alloc.c:2973 page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3cd/0xb90 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4202 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4226 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4248 [inline] bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4241 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1510 net/core/dev.c:5431 netif_receive_generic_xdp net/core/dev.c:5547 [inline] do_xdp_generic+0x8f8/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa21595b78e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007fa216918fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa2169196c0 RCX: 00007fa21595b78e RDX: 000000000000fdef RSI: 0000200000000000 RDI: 00000000000000c8 RBP: 00007fa215a08c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa215c16128 R14: 00007fa215c16090 R15: 00007ffc9f7b74d8 BUG: Bad page state in process syz.3.7913 pfn:2e930 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802e930fc0 pfn:0x2e930 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88802302f000 0000000000000000 raw: ffff88802e930fc0 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 17952, tgid 17949 (syz.4.3744), ts 505561184630, free_ts 480777148713 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xe3d/0x2e10 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x26c/0x2410 mm/page_alloc.c:5240 __alloc_pages_noprof mm/page_alloc.c:5274 [inline] alloc_pages_bulk_noprof+0x777/0x1500 mm/page_alloc.c:5194 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616 page_pool_alloc_netmems net/core/page_pool.c:667 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x80f/0x10c0 net/core/skbuff.c:972 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1006 netif_skb_check_for_xdp net/core/dev.c:5500 [inline] netif_receive_generic_xdp net/core/dev.c:5541 [inline] do_xdp_generic+0x542/0x1270 net/core/dev.c:5609 __netif_receive_skb_core.constprop.0+0x848/0x3460 net/core/dev.c:5962 __netif_receive_skb_one_core+0xb0/0x1e0 net/core/dev.c:6150 __netif_receive_skb+0x1f/0x120 net/core/dev.c:6265 process_backlog+0x37a/0x1580 net/core/dev.c:6617 __napi_poll.constprop.0+0xaf/0x450 net/core/dev.c:7681 napi_poll net/core/dev.c:7744 [inline] net_rx_action+0xa40/0xf20 net/core/dev.c:7896 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 page last free pid 5916 tgid 5916 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0x822/0x1130 mm/page_alloc.c:2973 discard_slab mm/slub.c:3346 [inline] __put_partials+0x127/0x160 mm/slub.c:3886 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x47/0xe0 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x1a0/0x1f0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4953 [inline] slab_alloc_node mm/slub.c:5263 [inline] kmem_cache_alloc_node_noprof+0x303/0x880 mm/slub.c:5315 __alloc_skb+0x156/0x410 net/core/skbuff.c:679 alloc_skb_fclone include/linux/skbuff.h:1433 [inline] tcp_stream_alloc_skb+0x34/0x660 net/ipv4/tcp.c:910 tcp_sendmsg_locked+0x1299/0x4780 net/ipv4/tcp.c:1217 tcp_sendmsg+0x2e/0x50 net/ipv4/tcp.c:1412 inet_sendmsg+0xb9/0x140 net/ipv4/af_inet.c:859 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] sock_write_iter+0x509/0x610 net/socket.c:1195 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x1f8/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 2 UID: 0 PID: 31644 Comm: syz.3.7913 Tainted: G B L syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 bad_page.cold+0xbe/0xdf mm/page_alloc.c:677 free_page_is_bad mm/page_alloc.c:1121 [inline] free_page_is_bad mm/page_alloc.c:1115 [inline] free_pages_prepare mm/page_alloc.c:1425 [inline] __free_frozen_pages+0x856/0x1130 mm/page_alloc.c:2973 page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3cd/0xb90 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4202 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4226 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4248 [inline] bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4241 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1510 net/core/dev.c:5431 netif_receive_generic_xdp net/core/dev.c:5547 [inline] do_xdp_generic+0x8f8/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa21595b78e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007fa216918fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa2169196c0 RCX: 00007fa21595b78e RDX: 000000000000fdef RSI: 0000200000000000 RDI: 00000000000000c8 RBP: 00007fa215a08c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa215c16128 R14: 00007fa215c16090 R15: 00007ffc9f7b74d8 BUG: Bad page state in process syz.3.7913 pfn:2b483 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802b483f00 pfn:0x2b483 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88802302f000 0000000000000000 raw: ffff88802b483f00 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 17952, tgid 17949 (syz.4.3744), ts 505561367525, free_ts 502875716393 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xe3d/0x2e10 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x26c/0x2410 mm/page_alloc.c:5240 __alloc_pages_noprof mm/page_alloc.c:5274 [inline] alloc_pages_bulk_noprof+0x777/0x1500 mm/page_alloc.c:5194 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616 page_pool_alloc_netmems net/core/page_pool.c:667 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x80f/0x10c0 net/core/skbuff.c:972 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1006 netif_skb_check_for_xdp net/core/dev.c:5500 [inline] netif_receive_generic_xdp net/core/dev.c:5541 [inline] do_xdp_generic+0x542/0x1270 net/core/dev.c:5609 __netif_receive_skb_core.constprop.0+0x848/0x3460 net/core/dev.c:5962 __netif_receive_skb_one_core+0xb0/0x1e0 net/core/dev.c:6150 __netif_receive_skb+0x1f/0x120 net/core/dev.c:6265 process_backlog+0x37a/0x1580 net/core/dev.c:6617 __napi_poll.constprop.0+0xaf/0x450 net/core/dev.c:7681 napi_poll net/core/dev.c:7744 [inline] net_rx_action+0xa40/0xf20 net/core/dev.c:7896 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 page last free pid 14863 tgid 14863 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0x822/0x1130 mm/page_alloc.c:2973 __pagetable_free include/linux/mm.h:3204 [inline] pagetable_free include/linux/mm.h:3228 [inline] pagetable_dtor_free include/linux/mm.h:3332 [inline] __tlb_remove_table include/asm-generic/tlb.h:221 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x7c0/0x15c0 kernel/rcu/tree.c:2857 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xef/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 2 UID: 0 PID: 31644 Comm: syz.3.7913 Tainted: G B L syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 bad_page.cold+0xbe/0xdf mm/page_alloc.c:677 free_page_is_bad mm/page_alloc.c:1121 [inline] free_page_is_bad mm/page_alloc.c:1115 [inline] free_pages_prepare mm/page_alloc.c:1425 [inline] __free_frozen_pages+0x856/0x1130 mm/page_alloc.c:2973 page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3cd/0xb90 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4202 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4226 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4248 [inline] bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4241 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1510 net/core/dev.c:5431 netif_receive_generic_xdp net/core/dev.c:5547 [inline] do_xdp_generic+0x8f8/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa21595b78e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007fa216918fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa2169196c0 RCX: 00007fa21595b78e RDX: 000000000000fdef RSI: 0000200000000000 RDI: 00000000000000c8 RBP: 00007fa215a08c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa215c16128 R14: 00007fa215c16090 R15: 00007ffc9f7b74d8 BUG: Bad page state in process syz.3.7913 pfn:64e6f page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888064e6ffc0 pfn:0x64e6f flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88802302f000 0000000000000000 raw: ffff888064e6ffc0 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 17952, tgid 17949 (syz.4.3744), ts 505561375233, free_ts 502875692495 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xe3d/0x2e10 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x26c/0x2410 mm/page_alloc.c:5240 __alloc_pages_noprof mm/page_alloc.c:5274 [inline] alloc_pages_bulk_noprof+0x777/0x1500 mm/page_alloc.c:5194 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616 page_pool_alloc_netmems net/core/page_pool.c:667 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x80f/0x10c0 net/core/skbuff.c:972 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1006 netif_skb_check_for_xdp net/core/dev.c:5500 [inline] netif_receive_generic_xdp net/core/dev.c:5541 [inline] do_xdp_generic+0x542/0x1270 net/core/dev.c:5609 __netif_receive_skb_core.constprop.0+0x848/0x3460 net/core/dev.c:5962 __netif_receive_skb_one_core+0xb0/0x1e0 net/core/dev.c:6150 __netif_receive_skb+0x1f/0x120 net/core/dev.c:6265 process_backlog+0x37a/0x1580 net/core/dev.c:6617 __napi_poll.constprop.0+0xaf/0x450 net/core/dev.c:7681 napi_poll net/core/dev.c:7744 [inline] net_rx_action+0xa40/0xf20 net/core/dev.c:7896 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 page last free pid 14863 tgid 14863 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0x822/0x1130 mm/page_alloc.c:2973 __pagetable_free include/linux/mm.h:3204 [inline] pagetable_free include/linux/mm.h:3228 [inline] pagetable_dtor_free include/linux/mm.h:3332 [inline] __tlb_remove_table include/asm-generic/tlb.h:221 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x7c0/0x15c0 kernel/rcu/tree.c:2857 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xef/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 2 UID: 0 PID: 31644 Comm: syz.3.7913 Tainted: G B L syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 bad_page.cold+0xbe/0xdf mm/page_alloc.c:677 free_page_is_bad mm/page_alloc.c:1121 [inline] free_page_is_bad mm/page_alloc.c:1115 [inline] free_pages_prepare mm/page_alloc.c:1425 [inline] __free_frozen_pages+0x856/0x1130 mm/page_alloc.c:2973 page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3cd/0xb90 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4202 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4226 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4248 [inline] bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4241 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1510 net/core/dev.c:5431 netif_receive_generic_xdp net/core/dev.c:5547 [inline] do_xdp_generic+0x8f8/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa21595b78e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007fa216918fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa2169196c0 RCX: 00007fa21595b78e RDX: 000000000000fdef RSI: 0000200000000000 RDI: 00000000000000c8 RBP: 00007fa215a08c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa215c16128 R14: 00007fa215c16090 R15: 00007ffc9f7b74d8 BUG: Bad page state in process syz.3.7913 pfn:5794d page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88805794dfe0 pfn:0x5794d flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88802302f000 0000000000000000 raw: ffff88805794dfe0 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 17952, tgid 17949 (syz.4.3744), ts 505561381508, free_ts 502875668380 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xe3d/0x2e10 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x26c/0x2410 mm/page_alloc.c:5240 __alloc_pages_noprof mm/page_alloc.c:5274 [inline] alloc_pages_bulk_noprof+0x777/0x1500 mm/page_alloc.c:5194 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616 page_pool_alloc_netmems net/core/page_pool.c:667 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x80f/0x10c0 net/core/skbuff.c:972 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1006 netif_skb_check_for_xdp net/core/dev.c:5500 [inline] netif_receive_generic_xdp net/core/dev.c:5541 [inline] do_xdp_generic+0x542/0x1270 net/core/dev.c:5609 __netif_receive_skb_core.constprop.0+0x848/0x3460 net/core/dev.c:5962 __netif_receive_skb_one_core+0xb0/0x1e0 net/core/dev.c:6150 __netif_receive_skb+0x1f/0x120 net/core/dev.c:6265 process_backlog+0x37a/0x1580 net/core/dev.c:6617 __napi_poll.constprop.0+0xaf/0x450 net/core/dev.c:7681 napi_poll net/core/dev.c:7744 [inline] net_rx_action+0xa40/0xf20 net/core/dev.c:7896 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 page last free pid 14863 tgid 14863 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0x822/0x1130 mm/page_alloc.c:2973 __pagetable_free include/linux/mm.h:3204 [inline] pagetable_free include/linux/mm.h:3228 [inline] pagetable_dtor_free include/linux/mm.h:3332 [inline] __tlb_remove_table include/asm-generic/tlb.h:221 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x7c0/0x15c0 kernel/rcu/tree.c:2857 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xef/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 2 UID: 0 PID: 31644 Comm: syz.3.7913 Tainted: G B L syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 bad_page.cold+0xbe/0xdf mm/page_alloc.c:677 free_page_is_bad mm/page_alloc.c:1121 [inline] free_page_is_bad mm/page_alloc.c:1115 [inline] free_pages_prepare mm/page_alloc.c:1425 [inline] __free_frozen_pages+0x856/0x1130 mm/page_alloc.c:2973 page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3cd/0xb90 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4202 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4226 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4248 [inline] bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4241 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1510 net/core/dev.c:5431 netif_receive_generic_xdp net/core/dev.c:5547 [inline] do_xdp_generic+0x8f8/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa21595b78e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007fa216918fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa2169196c0 RCX: 00007fa21595b78e RDX: 000000000000fdef RSI: 0000200000000000 RDI: 00000000000000c8 RBP: 00007fa215a08c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa215c16128 R14: 00007fa215c16090 R15: 00007ffc9f7b74d8 BUG: Bad page state in process syz.3.7913 pfn:2d6f3 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802d6f3fe0 pfn:0x2d6f3 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88802302f000 0000000000000000 raw: ffff88802d6f3fe0 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 17952, tgid 17949 (syz.4.3744), ts 505561387778, free_ts 502875643956 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xe3d/0x2e10 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x26c/0x2410 mm/page_alloc.c:5240 __alloc_pages_noprof mm/page_alloc.c:5274 [inline] alloc_pages_bulk_noprof+0x777/0x1500 mm/page_alloc.c:5194 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616 page_pool_alloc_netmems net/core/page_pool.c:667 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x80f/0x10c0 net/core/skbuff.c:972 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1006 netif_skb_check_for_xdp net/core/dev.c:5500 [inline] netif_receive_generic_xdp net/core/dev.c:5541 [inline] do_xdp_generic+0x542/0x1270 net/core/dev.c:5609 __netif_receive_skb_core.constprop.0+0x848/0x3460 net/core/dev.c:5962 __netif_receive_skb_one_core+0xb0/0x1e0 net/core/dev.c:6150 __netif_receive_skb+0x1f/0x120 net/core/dev.c:6265 process_backlog+0x37a/0x1580 net/core/dev.c:6617 __napi_poll.constprop.0+0xaf/0x450 net/core/dev.c:7681 napi_poll net/core/dev.c:7744 [inline] net_rx_action+0xa40/0xf20 net/core/dev.c:7896 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 page last free pid 14863 tgid 14863 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0x822/0x1130 mm/page_alloc.c:2973 __pagetable_free include/linux/mm.h:3204 [inline] pagetable_free include/linux/mm.h:3228 [inline] pagetable_dtor_free include/linux/mm.h:3332 [inline] __tlb_remove_table include/asm-generic/tlb.h:221 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x7c0/0x15c0 kernel/rcu/tree.c:2857 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xef/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 2 UID: 0 PID: 31644 Comm: syz.3.7913 Tainted: G B L syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 bad_page.cold+0xbe/0xdf mm/page_alloc.c:677 free_page_is_bad mm/page_alloc.c:1121 [inline] free_page_is_bad mm/page_alloc.c:1115 [inline] free_pages_prepare mm/page_alloc.c:1425 [inline] __free_frozen_pages+0x856/0x1130 mm/page_alloc.c:2973 page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3cd/0xb90 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4202 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4226 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4248 [inline] bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4241 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1510 net/core/dev.c:5431 netif_receive_generic_xdp net/core/dev.c:5547 [inline] do_xdp_generic+0x8f8/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa21595b78e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007fa216918fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa2169196c0 RCX: 00007fa21595b78e RDX: 000000000000fdef RSI: 0000200000000000 RDI: 00000000000000c8 RBP: 00007fa215a08c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa215c16128 R14: 00007fa215c16090 R15: 00007ffc9f7b74d8 BUG: Bad page state in process syz.3.7913 pfn:6462d page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88806462df00 pfn:0x6462d flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88802302f000 0000000000000000 raw: ffff88806462df00 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 17952, tgid 17949 (syz.4.3744), ts 505561422737, free_ts 502875613903 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xe3d/0x2e10 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x26c/0x2410 mm/page_alloc.c:5240 __alloc_pages_noprof mm/page_alloc.c:5274 [inline] alloc_pages_bulk_noprof+0x777/0x1500 mm/page_alloc.c:5194 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616 page_pool_alloc_netmems net/core/page_pool.c:667 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x80f/0x10c0 net/core/skbuff.c:972 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1006 netif_skb_check_for_xdp net/core/dev.c:5500 [inline] netif_receive_generic_xdp net/core/dev.c:5541 [inline] do_xdp_generic+0x542/0x1270 net/core/dev.c:5609 __netif_receive_skb_core.constprop.0+0x848/0x3460 net/core/dev.c:5962 __netif_receive_skb_one_core+0xb0/0x1e0 net/core/dev.c:6150 __netif_receive_skb+0x1f/0x120 net/core/dev.c:6265 process_backlog+0x37a/0x1580 net/core/dev.c:6617 __napi_poll.constprop.0+0xaf/0x450 net/core/dev.c:7681 napi_poll net/core/dev.c:7744 [inline] net_rx_action+0xa40/0xf20 net/core/dev.c:7896 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 page last free pid 14863 tgid 14863 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0x822/0x1130 mm/page_alloc.c:2973 __pagetable_free include/linux/mm.h:3204 [inline] pagetable_free include/linux/mm.h:3228 [inline] pagetable_dtor_free include/linux/mm.h:3332 [inline] __tlb_remove_table include/asm-generic/tlb.h:221 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x7c0/0x15c0 kernel/rcu/tree.c:2857 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xef/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 2 UID: 0 PID: 31644 Comm: syz.3.7913 Tainted: G B L syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 bad_page.cold+0xbe/0xdf mm/page_alloc.c:677 free_page_is_bad mm/page_alloc.c:1121 [inline] free_page_is_bad mm/page_alloc.c:1115 [inline] free_pages_prepare mm/page_alloc.c:1425 [inline] __free_frozen_pages+0x856/0x1130 mm/page_alloc.c:2973 page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3cd/0xb90 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4202 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4226 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4248 [inline] bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4241 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1510 net/core/dev.c:5431 netif_receive_generic_xdp net/core/dev.c:5547 [inline] do_xdp_generic+0x8f8/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa21595b78e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007fa216918fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa2169196c0 RCX: 00007fa21595b78e RDX: 000000000000fdef RSI: 0000200000000000 RDI: 00000000000000c8 RBP: 00007fa215a08c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa215c16128 R14: 00007fa215c16090 R15: 00007ffc9f7b74d8 BUG: Bad page state in process syz.3.7913 pfn:58d08 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x200000000 pfn:0x58d08 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88802302f000 0000000000000000 raw: 0000000200000000 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 17761, tgid 17759 (syz.4.3697), ts 501899160774, free_ts 501875541633 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xe3d/0x2e10 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x26c/0x2410 mm/page_alloc.c:5240 __alloc_pages_noprof mm/page_alloc.c:5274 [inline] alloc_pages_bulk_noprof+0x777/0x1500 mm/page_alloc.c:5194 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616 page_pool_alloc_netmems net/core/page_pool.c:667 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654 page_pool_alloc_frag_netmem+0x21d/0xa00 net/core/page_pool.c:1076 page_pool_alloc_netmem include/net/page_pool/helpers.h:131 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_alloc_va include/net/page_pool/helpers.h:198 [inline] page_pool_dev_alloc_va include/net/page_pool/helpers.h:221 [inline] skb_pp_cow_data+0x24e/0x10c0 net/core/skbuff.c:939 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1006 netif_skb_check_for_xdp net/core/dev.c:5500 [inline] netif_receive_generic_xdp net/core/dev.c:5541 [inline] do_xdp_generic+0x542/0x1270 net/core/dev.c:5609 __netif_receive_skb_core.constprop.0+0x848/0x3460 net/core/dev.c:5962 __netif_receive_skb_one_core+0xb0/0x1e0 net/core/dev.c:6150 __netif_receive_skb+0x1f/0x120 net/core/dev.c:6265 process_backlog+0x37a/0x1580 net/core/dev.c:6617 __napi_poll.constprop.0+0xaf/0x450 net/core/dev.c:7681 napi_poll net/core/dev.c:7744 [inline] net_rx_action+0xa40/0xf20 net/core/dev.c:7896 page last free pid 23 tgid 23 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0x822/0x1130 mm/page_alloc.c:2973 __pagetable_free include/linux/mm.h:3204 [inline] pagetable_free include/linux/mm.h:3228 [inline] pagetable_dtor_free include/linux/mm.h:3332 [inline] __tlb_remove_table include/asm-generic/tlb.h:221 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x7c0/0x15c0 kernel/rcu/tree.c:2857 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 run_ksoftirqd kernel/softirq.c:1063 [inline] run_ksoftirqd+0x38/0x60 kernel/softirq.c:1055 smpboot_thread_fn+0x3d3/0xaa0 kernel/smpboot.c:160 kthread+0x3b3/0x730 kernel/kthread.c:463 ret_from_fork+0x754/0xaf0 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246 Modules linked in: CPU: 2 UID: 0 PID: 31644 Comm: syz.3.7913 Tainted: G B L syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 bad_page.cold+0xbe/0xdf mm/page_alloc.c:677 free_page_is_bad mm/page_alloc.c:1121 [inline] free_page_is_bad mm/page_alloc.c:1115 [inline] free_pages_prepare mm/page_alloc.c:1425 [inline] __free_frozen_pages+0x856/0x1130 mm/page_alloc.c:2973 page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3cd/0xb90 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4202 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4226 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4248 [inline] bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4241 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1510 net/core/dev.c:5431 netif_receive_generic_xdp net/core/dev.c:5547 [inline] do_xdp_generic+0x8f8/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa21595b78e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007fa216918fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa2169196c0 RCX: 00007fa21595b78e RDX: 000000000000fdef RSI: 0000200000000000 RDI: 00000000000000c8 RBP: 00007fa215a08c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa215c16128 R14: 00007fa215c16090 R15: 00007ffc9f7b74d8 BUG: Bad page state in process syz.3.7913 pfn:2d824 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802d824fc0 pfn:0x2d824 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88802302f000 0000000000000000 raw: ffff88802d824fc0 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 17952, tgid 17949 (syz.4.3744), ts 505561123703, free_ts 480777192820 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xe3d/0x2e10 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x26c/0x2410 mm/page_alloc.c:5240 __alloc_pages_noprof mm/page_alloc.c:5274 [inline] alloc_pages_bulk_noprof+0x777/0x1500 mm/page_alloc.c:5194 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616 page_pool_alloc_netmems net/core/page_pool.c:667 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_alloc_va include/net/page_pool/helpers.h:198 [inline] page_pool_dev_alloc_va include/net/page_pool/helpers.h:221 [inline] skb_pp_cow_data+0x998/0x10c0 net/core/skbuff.c:939 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1006 netif_skb_check_for_xdp net/core/dev.c:5500 [inline] netif_receive_generic_xdp net/core/dev.c:5541 [inline] do_xdp_generic+0x542/0x1270 net/core/dev.c:5609 __netif_receive_skb_core.constprop.0+0x848/0x3460 net/core/dev.c:5962 __netif_receive_skb_one_core+0xb0/0x1e0 net/core/dev.c:6150 __netif_receive_skb+0x1f/0x120 net/core/dev.c:6265 process_backlog+0x37a/0x1580 net/core/dev.c:6617 __napi_poll.constprop.0+0xaf/0x450 net/core/dev.c:7681 napi_poll net/core/dev.c:7744 [inline] net_rx_action+0xa40/0xf20 net/core/dev.c:7896 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 page last free pid 5916 tgid 5916 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0x822/0x1130 mm/page_alloc.c:2973 discard_slab mm/slub.c:3346 [inline] __put_partials+0x127/0x160 mm/slub.c:3886 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x47/0xe0 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x1a0/0x1f0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4953 [inline] slab_alloc_node mm/slub.c:5263 [inline] kmem_cache_alloc_node_noprof+0x303/0x880 mm/slub.c:5315 __alloc_skb+0x156/0x410 net/core/skbuff.c:679 alloc_skb_fclone include/linux/skbuff.h:1433 [inline] tcp_stream_alloc_skb+0x34/0x660 net/ipv4/tcp.c:910 tcp_sendmsg_locked+0x1299/0x4780 net/ipv4/tcp.c:1217 tcp_sendmsg+0x2e/0x50 net/ipv4/tcp.c:1412 inet_sendmsg+0xb9/0x140 net/ipv4/af_inet.c:859 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] sock_write_iter+0x509/0x610 net/socket.c:1195 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x1f8/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 2 UID: 0 PID: 31644 Comm: syz.3.7913 Tainted: G B L syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 bad_page.cold+0xbe/0xdf mm/page_alloc.c:677 free_page_is_bad mm/page_alloc.c:1121 [inline] free_page_is_bad mm/page_alloc.c:1115 [inline] free_pages_prepare mm/page_alloc.c:1425 [inline] __free_frozen_pages+0x856/0x1130 mm/page_alloc.c:2973 page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3cd/0xb90 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4202 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4226 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4248 [inline] bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4241 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1510 net/core/dev.c:5431 netif_receive_generic_xdp net/core/dev.c:5547 [inline] do_xdp_generic+0x8f8/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa21595b78e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007fa216918fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa2169196c0 RCX: 00007fa21595b78e RDX: 000000000000fdef RSI: 0000200000000000 RDI: 00000000000000c8 RBP: 00007fa215a08c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa215c16128 R14: 00007fa215c16090 R15: 00007ffc9f7b74d8 BUG: Bad page state in process syz.3.7913 pfn:48c3e page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888048c3ef00 pfn:0x48c3e flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88802302f000 0000000000000000 raw: ffff888048c3ef00 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 17952, tgid 17949 (syz.4.3744), ts 505561750159, free_ts 502875541199 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xe3d/0x2e10 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x26c/0x2410 mm/page_alloc.c:5240 __alloc_pages_noprof mm/page_alloc.c:5274 [inline] alloc_pages_bulk_noprof+0x777/0x1500 mm/page_alloc.c:5194 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616 page_pool_alloc_netmems net/core/page_pool.c:667 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x80f/0x10c0 net/core/skbuff.c:972 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1006 netif_skb_check_for_xdp net/core/dev.c:5500 [inline] netif_receive_generic_xdp net/core/dev.c:5541 [inline] do_xdp_generic+0x542/0x1270 net/core/dev.c:5609 __netif_receive_skb_core.constprop.0+0x848/0x3460 net/core/dev.c:5962 __netif_receive_skb_one_core+0xb0/0x1e0 net/core/dev.c:6150 __netif_receive_skb+0x1f/0x120 net/core/dev.c:6265 process_backlog+0x37a/0x1580 net/core/dev.c:6617 __napi_poll.constprop.0+0xaf/0x450 net/core/dev.c:7681 napi_poll net/core/dev.c:7744 [inline] net_rx_action+0xa40/0xf20 net/core/dev.c:7896 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 page last free pid 14863 tgid 14863 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0x822/0x1130 mm/page_alloc.c:2973 __pagetable_free include/linux/mm.h:3204 [inline] pagetable_free include/linux/mm.h:3228 [inline] pagetable_dtor_free include/linux/mm.h:3332 [inline] __tlb_remove_table include/asm-generic/tlb.h:221 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x7c0/0x15c0 kernel/rcu/tree.c:2857 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xef/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 2 UID: 0 PID: 31644 Comm: syz.3.7913 Tainted: G B L syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 bad_page.cold+0xbe/0xdf mm/page_alloc.c:677 free_page_is_bad mm/page_alloc.c:1121 [inline] free_page_is_bad mm/page_alloc.c:1115 [inline] free_pages_prepare mm/page_alloc.c:1425 [inline] __free_frozen_pages+0x856/0x1130 mm/page_alloc.c:2973 page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3cd/0xb90 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4202 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4226 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4248 [inline] bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4241 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1510 net/core/dev.c:5431 netif_receive_generic_xdp net/core/dev.c:5547 [inline] do_xdp_generic+0x8f8/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa21595b78e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007fa216918fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa2169196c0 RCX: 00007fa21595b78e RDX: 000000000000fdef RSI: 0000200000000000 RDI: 00000000000000c8 RBP: 00007fa215a08c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa215c16128 R14: 00007fa215c16090 R15: 00007ffc9f7b74d8 BUG: Bad page state in process syz.3.7913 pfn:29b1d page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888029b1df00 pfn:0x29b1d flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff88802302f000 0000000000000000 raw: ffff888029b1df00 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 17952, tgid 17949 (syz.4.3744), ts 505561757546, free_ts 502875516900 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1e1/0x250 mm/page_alloc.c:1884 prep_new_page mm/page_alloc.c:1892 [inline] get_page_from_freelist+0xe3d/0x2e10 mm/page_alloc.c:3945 __alloc_frozen_pages_noprof+0x26c/0x2410 mm/page_alloc.c:5240 __alloc_pages_noprof mm/page_alloc.c:5274 [inline] alloc_pages_bulk_noprof+0x777/0x1500 mm/page_alloc.c:5194 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x1c6/0xc10 net/core/page_pool.c:616 page_pool_alloc_netmems net/core/page_pool.c:667 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:654 page_pool_alloc_netmem include/net/page_pool/helpers.h:128 [inline] page_pool_alloc include/net/page_pool/helpers.h:167 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0x80f/0x10c0 net/core/skbuff.c:972 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1006 netif_skb_check_for_xdp net/core/dev.c:5500 [inline] netif_receive_generic_xdp net/core/dev.c:5541 [inline] do_xdp_generic+0x542/0x1270 net/core/dev.c:5609 __netif_receive_skb_core.constprop.0+0x848/0x3460 net/core/dev.c:5962 __netif_receive_skb_one_core+0xb0/0x1e0 net/core/dev.c:6150 __netif_receive_skb+0x1f/0x120 net/core/dev.c:6265 process_backlog+0x37a/0x1580 net/core/dev.c:6617 __napi_poll.constprop.0+0xaf/0x450 net/core/dev.c:7681 napi_poll net/core/dev.c:7744 [inline] net_rx_action+0xa40/0xf20 net/core/dev.c:7896 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 page last free pid 14863 tgid 14863 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0x822/0x1130 mm/page_alloc.c:2973 __pagetable_free include/linux/mm.h:3204 [inline] pagetable_free include/linux/mm.h:3228 [inline] pagetable_dtor_free include/linux/mm.h:3332 [inline] __tlb_remove_table include/asm-generic/tlb.h:221 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x2b2/0x390 mm/mmu_gather.c:291 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x7c0/0x15c0 kernel/rcu/tree.c:2857 handle_softirqs+0x1ea/0x910 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xef/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 Modules linked in: CPU: 2 UID: 0 PID: 31644 Comm: syz.3.7913 Tainted: G B L syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 bad_page.cold+0xbe/0xdf mm/page_alloc.c:677 free_page_is_bad mm/page_alloc.c:1121 [inline] free_page_is_bad mm/page_alloc.c:1115 [inline] free_pages_prepare mm/page_alloc.c:1425 [inline] __free_frozen_pages+0x856/0x1130 mm/page_alloc.c:2973 page_frag_free+0x284/0x2e0 mm/page_frag_cache.c:169 __xdp_return+0x3cd/0xb90 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4202 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4226 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4248 [inline] bpf_xdp_adjust_tail+0x854/0xb60 net/core/filter.c:4241 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run_xdp include/net/xdp.h:696 [inline] bpf_prog_run_generic_xdp+0x614/0x1510 net/core/dev.c:5431 netif_receive_generic_xdp net/core/dev.c:5547 [inline] do_xdp_generic+0x8f8/0x1270 net/core/dev.c:5609 tun_get_user+0x1bd2/0x3e10 drivers/net/tun.c:1872 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa21595b78e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007fa216918fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa2169196c0 RCX: 00007fa21595b78e RDX: 000000000000fdef RSI: 0000200000000000 RDI: 00000000000000c8 RBP: 00007fa215a08c1f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa215c16128 R14: 00007fa215c16090 R15: 00007ffc9f7b74d8