BUG: Bad page state in process syz.0.16 pfn:38ba6 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802f5e0c40 pfn:0x38ba6 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888024c04000 0000000000000000 raw: ffff88802f5e0c40 3fffffffffffffff 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 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 6326, tgid 6325 (syz.0.16), ts 83180780702 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1873 prep_new_page mm/page_alloc.c:1881 [inline] get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3963 __alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5505 __alloc_pages_noprof mm/page_alloc.c:5545 [inline] alloc_pages_bulk_noprof+0x77e/0x1420 mm/page_alloc.c:5362 alloc_pages_bulk_node_noprof include/linux/gfp.h:231 [inline] __page_pool_alloc_netmems_slow+0x178/0x930 net/core/page_pool.c:637 page_pool_alloc_netmems net/core/page_pool.c:688 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:675 page_pool_alloc_frag_netmem+0x20f/0x9c0 net/core/page_pool.c:1090 page_pool_alloc_netmem include/net/page_pool/helpers.h:139 [inline] page_pool_alloc include/net/page_pool/helpers.h:175 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:196 [inline] skb_pp_cow_data+0x56b/0x11a0 net/core/skbuff.c:992 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1026 netif_skb_check_for_xdp net/core/dev.c:5796 [inline] netif_receive_generic_xdp net/core/dev.c:5837 [inline] do_xdp_generic+0x571/0x12e0 net/core/dev.c:5905 tun_get_user+0x1e6a/0x43d0 drivers/net/tun.c:2002 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2143 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x6af/0x1040 fs/read_write.c:667 ksys_write+0x12a/0x250 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 14 tgid 14 ts 82932061654 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1415 [inline] free_pages_prepare+0x586/0xe00 mm/page_alloc.c:1460 __free_contig_range_common+0x14f/0x250 mm/page_alloc.c:7136 __free_contig_range mm/page_alloc.c:7181 [inline] free_pages_bulk+0x125/0x1f0 mm/page_alloc.c:5389 vm_area_free_pages+0xb2/0x2a0 mm/vmalloc.c:3498 vfree mm/vmalloc.c:3547 [inline] vfree+0xfc/0x850 mm/vmalloc.c:3521 __ebt_unregister_table+0x818/0xac0 net/bridge/netfilter/ebtables.c:1175 ebt_unregister_table+0x219/0x360 net/bridge/netfilter/ebtables.c:1375 ops_exit_list net/core/net_namespace.c:200 [inline] ops_undo_list+0x2ee/0xab0 net/core/net_namespace.c:253 cleanup_net+0x49d/0x920 net/core/net_namespace.c:713 process_one_work+0xaeb/0x1b40 kernel/workqueue.c:3497 process_scheduled_works kernel/workqueue.c:3580 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3661 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 1 UID: 0 PID: 6326 Comm: syz.0.16 Not tainted syzkaller #0 PREEMPT(full) 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+0x58/0x6b mm/page_alloc.c:629 free_page_is_bad mm/page_alloc.c:1079 [inline] free_page_is_bad mm/page_alloc.c:1073 [inline] __free_pages_prepare mm/page_alloc.c:1406 [inline] __free_frozen_pages+0x7e3/0x10f0 mm/page_alloc.c:2971 page_frag_free+0x199/0x1f0 mm/page_frag_cache.c:174 __xdp_return+0x3b6/0x990 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4462 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4486 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4508 [inline] bpf_xdp_adjust_tail+0x8a1/0xbb0 net/core/filter.c:4501 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:813 [inline] bpf_prog_run_xdp include/net/xdp.h:701 [inline] bpf_prog_run_generic_xdp+0x5ff/0x1630 net/core/dev.c:5723 netif_receive_generic_xdp net/core/dev.c:5843 [inline] do_xdp_generic+0x933/0x12e0 net/core/dev.c:5905 tun_get_user+0x1e6a/0x43d0 drivers/net/tun.c:2002 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2143 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x6af/0x1040 fs/read_write.c:667 ksys_write+0x12a/0x250 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f575c3581ce 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:00007f575d1fcfb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f575d1fd6c0 RCX: 00007f575c3581ce RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f575c4291bc R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f575c5c5fa0 R15: 00007ffc16f9b268 BUG: Bad page state in process syz.0.16 pfn:3d2df page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x3d2df flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888024c04000 0000000000000000 raw: ffff888000000000 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 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 6326, tgid 6325 (syz.0.16), ts 83180773321 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1873 prep_new_page mm/page_alloc.c:1881 [inline] get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3963 __alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5505 __alloc_pages_noprof mm/page_alloc.c:5545 [inline] alloc_pages_bulk_noprof+0x77e/0x1420 mm/page_alloc.c:5362 alloc_pages_bulk_node_noprof include/linux/gfp.h:231 [inline] __page_pool_alloc_netmems_slow+0x178/0x930 net/core/page_pool.c:637 page_pool_alloc_netmems net/core/page_pool.c:688 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:675 page_pool_alloc_netmem include/net/page_pool/helpers.h:136 [inline] page_pool_alloc include/net/page_pool/helpers.h:175 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:196 [inline] skb_pp_cow_data+0x9c5/0x11a0 net/core/skbuff.c:992 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1026 netif_skb_check_for_xdp net/core/dev.c:5796 [inline] netif_receive_generic_xdp net/core/dev.c:5837 [inline] do_xdp_generic+0x571/0x12e0 net/core/dev.c:5905 tun_get_user+0x1e6a/0x43d0 drivers/net/tun.c:2002 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2143 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x6af/0x1040 fs/read_write.c:667 ksys_write+0x12a/0x250 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 14 tgid 14 ts 82932104317 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1415 [inline] free_pages_prepare+0x586/0xe00 mm/page_alloc.c:1460 __free_contig_range_common+0x14f/0x250 mm/page_alloc.c:7136 __free_contig_range mm/page_alloc.c:7181 [inline] free_pages_bulk+0x125/0x1f0 mm/page_alloc.c:5389 vm_area_free_pages+0xb2/0x2a0 mm/vmalloc.c:3498 vfree mm/vmalloc.c:3547 [inline] vfree+0xfc/0x850 mm/vmalloc.c:3521 __ebt_unregister_table+0x6a0/0xac0 net/bridge/netfilter/ebtables.c:1173 ebt_unregister_table+0x219/0x360 net/bridge/netfilter/ebtables.c:1375 ops_exit_list net/core/net_namespace.c:200 [inline] ops_undo_list+0x2ee/0xab0 net/core/net_namespace.c:253 cleanup_net+0x49d/0x920 net/core/net_namespace.c:713 process_one_work+0xaeb/0x1b40 kernel/workqueue.c:3497 process_scheduled_works kernel/workqueue.c:3580 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3661 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 1 UID: 0 PID: 6326 Comm: syz.0.16 Tainted: G B syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE 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+0x58/0x6b mm/page_alloc.c:629 free_page_is_bad mm/page_alloc.c:1079 [inline] free_page_is_bad mm/page_alloc.c:1073 [inline] __free_pages_prepare mm/page_alloc.c:1406 [inline] __free_frozen_pages+0x7e3/0x10f0 mm/page_alloc.c:2971 page_frag_free+0x199/0x1f0 mm/page_frag_cache.c:174 __xdp_return+0x3b6/0x990 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4462 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4486 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4508 [inline] bpf_xdp_adjust_tail+0x8a1/0xbb0 net/core/filter.c:4501 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:813 [inline] bpf_prog_run_xdp include/net/xdp.h:701 [inline] bpf_prog_run_generic_xdp+0x5ff/0x1630 net/core/dev.c:5723 netif_receive_generic_xdp net/core/dev.c:5843 [inline] do_xdp_generic+0x933/0x12e0 net/core/dev.c:5905 tun_get_user+0x1e6a/0x43d0 drivers/net/tun.c:2002 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2143 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x6af/0x1040 fs/read_write.c:667 ksys_write+0x12a/0x250 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f575c3581ce 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:00007f575d1fcfb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f575d1fd6c0 RCX: 00007f575c3581ce RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f575c4291bc R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f575c5c5fa0 R15: 00007ffc16f9b268 BUG: Bad page state in process syz.0.16 pfn:243f3 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880243f3000 pfn:0x243f3 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888024c04000 0000000000000000 raw: ffff8880243f3000 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 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 6326, tgid 6325 (syz.0.16), ts 83180766964 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1873 prep_new_page mm/page_alloc.c:1881 [inline] get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3963 __alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5505 __alloc_pages_noprof mm/page_alloc.c:5545 [inline] alloc_pages_bulk_noprof+0x77e/0x1420 mm/page_alloc.c:5362 alloc_pages_bulk_node_noprof include/linux/gfp.h:231 [inline] __page_pool_alloc_netmems_slow+0x178/0x930 net/core/page_pool.c:637 page_pool_alloc_netmems net/core/page_pool.c:688 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:675 page_pool_alloc_netmem include/net/page_pool/helpers.h:136 [inline] page_pool_alloc include/net/page_pool/helpers.h:175 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:196 [inline] skb_pp_cow_data+0x9c5/0x11a0 net/core/skbuff.c:992 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1026 netif_skb_check_for_xdp net/core/dev.c:5796 [inline] netif_receive_generic_xdp net/core/dev.c:5837 [inline] do_xdp_generic+0x571/0x12e0 net/core/dev.c:5905 tun_get_user+0x1e6a/0x43d0 drivers/net/tun.c:2002 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2143 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x6af/0x1040 fs/read_write.c:667 ksys_write+0x12a/0x250 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 14 tgid 14 ts 82932123600 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1415 [inline] free_pages_prepare+0x586/0xe00 mm/page_alloc.c:1460 __free_contig_range_common+0x14f/0x250 mm/page_alloc.c:7136 __free_contig_range mm/page_alloc.c:7181 [inline] free_pages_bulk+0x125/0x1f0 mm/page_alloc.c:5389 vm_area_free_pages+0xb2/0x2a0 mm/vmalloc.c:3498 vfree mm/vmalloc.c:3547 [inline] vfree+0xfc/0x850 mm/vmalloc.c:3521 __ebt_unregister_table+0x818/0xac0 net/bridge/netfilter/ebtables.c:1175 ebt_unregister_table+0x219/0x360 net/bridge/netfilter/ebtables.c:1375 ops_exit_list net/core/net_namespace.c:200 [inline] ops_undo_list+0x2ee/0xab0 net/core/net_namespace.c:253 cleanup_net+0x49d/0x920 net/core/net_namespace.c:713 process_one_work+0xaeb/0x1b40 kernel/workqueue.c:3497 process_scheduled_works kernel/workqueue.c:3580 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3661 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 1 UID: 0 PID: 6326 Comm: syz.0.16 Tainted: G B syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE 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+0x58/0x6b mm/page_alloc.c:629 free_page_is_bad mm/page_alloc.c:1079 [inline] free_page_is_bad mm/page_alloc.c:1073 [inline] __free_pages_prepare mm/page_alloc.c:1406 [inline] __free_frozen_pages+0x7e3/0x10f0 mm/page_alloc.c:2971 page_frag_free+0x199/0x1f0 mm/page_frag_cache.c:174 __xdp_return+0x3b6/0x990 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4462 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4486 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4508 [inline] bpf_xdp_adjust_tail+0x8a1/0xbb0 net/core/filter.c:4501 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:813 [inline] bpf_prog_run_xdp include/net/xdp.h:701 [inline] bpf_prog_run_generic_xdp+0x5ff/0x1630 net/core/dev.c:5723 netif_receive_generic_xdp net/core/dev.c:5843 [inline] do_xdp_generic+0x933/0x12e0 net/core/dev.c:5905 tun_get_user+0x1e6a/0x43d0 drivers/net/tun.c:2002 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2143 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x6af/0x1040 fs/read_write.c:667 ksys_write+0x12a/0x250 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f575c3581ce 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:00007f575d1fcfb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f575d1fd6c0 RCX: 00007f575c3581ce RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f575c4291bc R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f575c5c5fa0 R15: 00007ffc16f9b268 BUG: Bad page state in process syz.0.16 pfn:33aab page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888033aabcb0 pfn:0x33aab flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888024c04000 0000000000000000 raw: ffff888033aabcb0 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 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 6326, tgid 6325 (syz.0.16), ts 83180760354 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1873 prep_new_page mm/page_alloc.c:1881 [inline] get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3963 __alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5505 __alloc_pages_noprof mm/page_alloc.c:5545 [inline] alloc_pages_bulk_noprof+0x77e/0x1420 mm/page_alloc.c:5362 alloc_pages_bulk_node_noprof include/linux/gfp.h:231 [inline] __page_pool_alloc_netmems_slow+0x178/0x930 net/core/page_pool.c:637 page_pool_alloc_netmems net/core/page_pool.c:688 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:675 page_pool_alloc_netmem include/net/page_pool/helpers.h:136 [inline] page_pool_alloc include/net/page_pool/helpers.h:175 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:196 [inline] skb_pp_cow_data+0x9c5/0x11a0 net/core/skbuff.c:992 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1026 netif_skb_check_for_xdp net/core/dev.c:5796 [inline] netif_receive_generic_xdp net/core/dev.c:5837 [inline] do_xdp_generic+0x571/0x12e0 net/core/dev.c:5905 tun_get_user+0x1e6a/0x43d0 drivers/net/tun.c:2002 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2143 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x6af/0x1040 fs/read_write.c:667 ksys_write+0x12a/0x250 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 14 tgid 14 ts 82932151118 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1415 [inline] free_pages_prepare+0x586/0xe00 mm/page_alloc.c:1460 __free_contig_range_common+0x14f/0x250 mm/page_alloc.c:7136 __free_contig_range mm/page_alloc.c:7181 [inline] free_pages_bulk+0x125/0x1f0 mm/page_alloc.c:5389 vm_area_free_pages+0xb2/0x2a0 mm/vmalloc.c:3498 vfree mm/vmalloc.c:3547 [inline] vfree+0xfc/0x850 mm/vmalloc.c:3521 __ebt_unregister_table+0x6a0/0xac0 net/bridge/netfilter/ebtables.c:1173 ebt_unregister_table+0x219/0x360 net/bridge/netfilter/ebtables.c:1375 ops_exit_list net/core/net_namespace.c:200 [inline] ops_undo_list+0x2ee/0xab0 net/core/net_namespace.c:253 cleanup_net+0x49d/0x920 net/core/net_namespace.c:713 process_one_work+0xaeb/0x1b40 kernel/workqueue.c:3497 process_scheduled_works kernel/workqueue.c:3580 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3661 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 1 UID: 0 PID: 6326 Comm: syz.0.16 Tainted: G B syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE 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+0x58/0x6b mm/page_alloc.c:629 free_page_is_bad mm/page_alloc.c:1079 [inline] free_page_is_bad mm/page_alloc.c:1073 [inline] __free_pages_prepare mm/page_alloc.c:1406 [inline] __free_frozen_pages+0x7e3/0x10f0 mm/page_alloc.c:2971 page_frag_free+0x199/0x1f0 mm/page_frag_cache.c:174 __xdp_return+0x3b6/0x990 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4462 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4486 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4508 [inline] bpf_xdp_adjust_tail+0x8a1/0xbb0 net/core/filter.c:4501 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:813 [inline] bpf_prog_run_xdp include/net/xdp.h:701 [inline] bpf_prog_run_generic_xdp+0x5ff/0x1630 net/core/dev.c:5723 netif_receive_generic_xdp net/core/dev.c:5843 [inline] do_xdp_generic+0x933/0x12e0 net/core/dev.c:5905 tun_get_user+0x1e6a/0x43d0 drivers/net/tun.c:2002 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2143 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x6af/0x1040 fs/read_write.c:667 ksys_write+0x12a/0x250 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f575c3581ce 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:00007f575d1fcfb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f575d1fd6c0 RCX: 00007f575c3581ce RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f575c4291bc R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f575c5c5fa0 R15: 00007ffc16f9b268 BUG: Bad page state in process syz.0.16 pfn:303e8 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880303e8000 pfn:0x303e8 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888024c04000 0000000000000000 raw: ffff8880303e8000 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 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 6326, tgid 6325 (syz.0.16), ts 83180753911 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1873 prep_new_page mm/page_alloc.c:1881 [inline] get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3963 __alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5505 __alloc_pages_noprof mm/page_alloc.c:5545 [inline] alloc_pages_bulk_noprof+0x77e/0x1420 mm/page_alloc.c:5362 alloc_pages_bulk_node_noprof include/linux/gfp.h:231 [inline] __page_pool_alloc_netmems_slow+0x178/0x930 net/core/page_pool.c:637 page_pool_alloc_netmems net/core/page_pool.c:688 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:675 page_pool_alloc_netmem include/net/page_pool/helpers.h:136 [inline] page_pool_alloc include/net/page_pool/helpers.h:175 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:196 [inline] skb_pp_cow_data+0x9c5/0x11a0 net/core/skbuff.c:992 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1026 netif_skb_check_for_xdp net/core/dev.c:5796 [inline] netif_receive_generic_xdp net/core/dev.c:5837 [inline] do_xdp_generic+0x571/0x12e0 net/core/dev.c:5905 tun_get_user+0x1e6a/0x43d0 drivers/net/tun.c:2002 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2143 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x6af/0x1040 fs/read_write.c:667 ksys_write+0x12a/0x250 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6326 tgid 6325 ts 83162171861 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1415 [inline] __free_frozen_pages+0x7b1/0x10f0 mm/page_alloc.c:2971 ___free_pages_bulk mm/kasan/shadow.c:333 [inline] __kasan_populate_vmalloc_do mm/kasan/shadow.c:385 [inline] __kasan_populate_vmalloc+0x164/0x210 mm/kasan/shadow.c:424 kasan_populate_vmalloc include/linux/kasan.h:587 [inline] alloc_vmap_area+0x963/0x2bc0 mm/vmalloc.c:2151 __get_vm_area_node+0x1ed/0x350 mm/vmalloc.c:3281 __vmalloc_node_range_noprof+0x2ad/0x1440 mm/vmalloc.c:4112 __vmalloc_node_noprof+0xad/0xf0 mm/vmalloc.c:4213 __vmalloc_noprof+0xa3/0x120 mm/vmalloc.c:4229 bpf_prog_calc_tag+0x65/0x380 kernel/bpf/core.c:313 check_and_resolve_insns kernel/bpf/verifier.c:21520 [inline] bpf_check+0x2ea7/0xa0f0 kernel/bpf/verifier.c:24082 bpf_prog_load+0x1baf/0x2b20 kernel/bpf/syscall.c:3172 __sys_bpf+0x146f/0x4b60 kernel/bpf/syscall.c:6460 __do_sys_bpf kernel/bpf/syscall.c:6582 [inline] __se_sys_bpf kernel/bpf/syscall.c:6579 [inline] __x64_sys_bpf+0xce/0x140 kernel/bpf/syscall.c:6579 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 1 UID: 0 PID: 6326 Comm: syz.0.16 Tainted: G B syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE 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+0x58/0x6b mm/page_alloc.c:629 free_page_is_bad mm/page_alloc.c:1079 [inline] free_page_is_bad mm/page_alloc.c:1073 [inline] __free_pages_prepare mm/page_alloc.c:1406 [inline] __free_frozen_pages+0x7e3/0x10f0 mm/page_alloc.c:2971 page_frag_free+0x199/0x1f0 mm/page_frag_cache.c:174 __xdp_return+0x3b6/0x990 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4462 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4486 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4508 [inline] bpf_xdp_adjust_tail+0x8a1/0xbb0 net/core/filter.c:4501 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:813 [inline] bpf_prog_run_xdp include/net/xdp.h:701 [inline] bpf_prog_run_generic_xdp+0x5ff/0x1630 net/core/dev.c:5723 netif_receive_generic_xdp net/core/dev.c:5843 [inline] do_xdp_generic+0x933/0x12e0 net/core/dev.c:5905 tun_get_user+0x1e6a/0x43d0 drivers/net/tun.c:2002 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2143 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x6af/0x1040 fs/read_write.c:667 ksys_write+0x12a/0x250 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f575c3581ce 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:00007f575d1fcfb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f575d1fd6c0 RCX: 00007f575c3581ce RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f575c4291bc R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f575c5c5fa0 R15: 00007ffc16f9b268 BUG: Bad page state in process syz.0.16 pfn:36882 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x36882 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888024c04000 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 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 6326, tgid 6325 (syz.0.16), ts 83180747511 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1873 prep_new_page mm/page_alloc.c:1881 [inline] get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3963 __alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5505 __alloc_pages_noprof mm/page_alloc.c:5545 [inline] alloc_pages_bulk_noprof+0x77e/0x1420 mm/page_alloc.c:5362 alloc_pages_bulk_node_noprof include/linux/gfp.h:231 [inline] __page_pool_alloc_netmems_slow+0x178/0x930 net/core/page_pool.c:637 page_pool_alloc_netmems net/core/page_pool.c:688 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:675 page_pool_alloc_netmem include/net/page_pool/helpers.h:136 [inline] page_pool_alloc include/net/page_pool/helpers.h:175 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:196 [inline] skb_pp_cow_data+0x9c5/0x11a0 net/core/skbuff.c:992 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1026 netif_skb_check_for_xdp net/core/dev.c:5796 [inline] netif_receive_generic_xdp net/core/dev.c:5837 [inline] do_xdp_generic+0x571/0x12e0 net/core/dev.c:5905 tun_get_user+0x1e6a/0x43d0 drivers/net/tun.c:2002 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2143 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x6af/0x1040 fs/read_write.c:667 ksys_write+0x12a/0x250 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 6326 tgid 6325 ts 83164551422 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1415 [inline] __free_frozen_pages+0x7b1/0x10f0 mm/page_alloc.c:2971 ___free_pages_bulk mm/kasan/shadow.c:333 [inline] __kasan_populate_vmalloc_do mm/kasan/shadow.c:385 [inline] __kasan_populate_vmalloc+0x164/0x210 mm/kasan/shadow.c:424 kasan_populate_vmalloc include/linux/kasan.h:587 [inline] alloc_vmap_area+0x963/0x2bc0 mm/vmalloc.c:2151 __get_vm_area_node+0x1ed/0x350 mm/vmalloc.c:3281 __vmalloc_node_range_noprof+0x2ad/0x1440 mm/vmalloc.c:4112 __vmalloc_node_noprof+0xad/0xf0 mm/vmalloc.c:4213 bpf_dispatcher_change_prog+0x342/0xa50 kernel/bpf/dispatcher.c:154 dev_xdp_install+0x73a/0xf10 net/core/dev.c:10668 dev_xdp_attach+0x4c7/0xfe0 net/core/dev.c:10788 dev_xdp_attach_link net/core/dev.c:10807 [inline] bpf_xdp_link_attach+0x333/0x8f0 net/core/dev.c:10984 link_create kernel/bpf/syscall.c:5930 [inline] __sys_bpf+0x3c31/0x4b60 kernel/bpf/syscall.c:6535 __do_sys_bpf kernel/bpf/syscall.c:6582 [inline] __se_sys_bpf kernel/bpf/syscall.c:6579 [inline] __x64_sys_bpf+0xce/0x140 kernel/bpf/syscall.c:6579 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 1 UID: 0 PID: 6326 Comm: syz.0.16 Tainted: G B syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE 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+0x58/0x6b mm/page_alloc.c:629 free_page_is_bad mm/page_alloc.c:1079 [inline] free_page_is_bad mm/page_alloc.c:1073 [inline] __free_pages_prepare mm/page_alloc.c:1406 [inline] __free_frozen_pages+0x7e3/0x10f0 mm/page_alloc.c:2971 page_frag_free+0x199/0x1f0 mm/page_frag_cache.c:174 __xdp_return+0x3b6/0x990 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4462 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4486 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4508 [inline] bpf_xdp_adjust_tail+0x8a1/0xbb0 net/core/filter.c:4501 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:813 [inline] bpf_prog_run_xdp include/net/xdp.h:701 [inline] bpf_prog_run_generic_xdp+0x5ff/0x1630 net/core/dev.c:5723 netif_receive_generic_xdp net/core/dev.c:5843 [inline] do_xdp_generic+0x933/0x12e0 net/core/dev.c:5905 tun_get_user+0x1e6a/0x43d0 drivers/net/tun.c:2002 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2143 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x6af/0x1040 fs/read_write.c:667 ksys_write+0x12a/0x250 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f575c3581ce 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:00007f575d1fcfb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f575d1fd6c0 RCX: 00007f575c3581ce RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f575c4291bc R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f575c5c5fa0 R15: 00007ffc16f9b268 BUG: Bad page state in process syz.0.16 pfn:3f5de page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803f5de840 pfn:0x3f5de flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888024c04000 0000000000000000 raw: ffff88803f5de840 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 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 6326, tgid 6325 (syz.0.16), ts 83180741393 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1873 prep_new_page mm/page_alloc.c:1881 [inline] get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3963 __alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5505 __alloc_pages_noprof mm/page_alloc.c:5545 [inline] alloc_pages_bulk_noprof+0x77e/0x1420 mm/page_alloc.c:5362 alloc_pages_bulk_node_noprof include/linux/gfp.h:231 [inline] __page_pool_alloc_netmems_slow+0x178/0x930 net/core/page_pool.c:637 page_pool_alloc_netmems net/core/page_pool.c:688 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:675 page_pool_alloc_netmem include/net/page_pool/helpers.h:136 [inline] page_pool_alloc include/net/page_pool/helpers.h:175 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:196 [inline] skb_pp_cow_data+0x9c5/0x11a0 net/core/skbuff.c:992 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1026 netif_skb_check_for_xdp net/core/dev.c:5796 [inline] netif_receive_generic_xdp net/core/dev.c:5837 [inline] do_xdp_generic+0x571/0x12e0 net/core/dev.c:5905 tun_get_user+0x1e6a/0x43d0 drivers/net/tun.c:2002 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2143 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x6af/0x1040 fs/read_write.c:667 ksys_write+0x12a/0x250 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 19 tgid 19 ts 83172962868 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1415 [inline] __free_frozen_pages+0x7b1/0x10f0 mm/page_alloc.c:2971 __pagetable_free include/linux/mm.h:4024 [inline] pagetable_free include/linux/mm.h:4143 [inline] pagetable_dtor_free include/linux/mm.h:4150 [inline] __tlb_remove_table include/asm-generic/tlb.h:205 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x320/0x590 mm/mmu_gather.c:289 rcu_do_batch kernel/rcu/tree.c:2650 [inline] rcu_core+0x5f0/0x1220 kernel/rcu/tree.c:2919 handle_softirqs+0x216/0xa20 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0x178/0x220 kernel/softirq.c:786 irq_exit_rcu+0x9/0x30 kernel/softirq.c:809 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 Modules linked in: CPU: 1 UID: 0 PID: 6326 Comm: syz.0.16 Tainted: G B syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE 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+0x58/0x6b mm/page_alloc.c:629 free_page_is_bad mm/page_alloc.c:1079 [inline] free_page_is_bad mm/page_alloc.c:1073 [inline] __free_pages_prepare mm/page_alloc.c:1406 [inline] __free_frozen_pages+0x7e3/0x10f0 mm/page_alloc.c:2971 page_frag_free+0x199/0x1f0 mm/page_frag_cache.c:174 __xdp_return+0x3b6/0x990 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4462 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4486 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4508 [inline] bpf_xdp_adjust_tail+0x8a1/0xbb0 net/core/filter.c:4501 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:813 [inline] bpf_prog_run_xdp include/net/xdp.h:701 [inline] bpf_prog_run_generic_xdp+0x5ff/0x1630 net/core/dev.c:5723 netif_receive_generic_xdp net/core/dev.c:5843 [inline] do_xdp_generic+0x933/0x12e0 net/core/dev.c:5905 tun_get_user+0x1e6a/0x43d0 drivers/net/tun.c:2002 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2143 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x6af/0x1040 fs/read_write.c:667 ksys_write+0x12a/0x250 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f575c3581ce 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:00007f575d1fcfb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f575d1fd6c0 RCX: 00007f575c3581ce RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f575c4291bc R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f575c5c5fa0 R15: 00007ffc16f9b268 BUG: Bad page state in process syz.0.16 pfn:3f5dc page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803f5dc380 pfn:0x3f5dc flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888024c04000 0000000000000000 raw: ffff88803f5dc380 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 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 6326, tgid 6325 (syz.0.16), ts 83180735006 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1873 prep_new_page mm/page_alloc.c:1881 [inline] get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3963 __alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5505 __alloc_pages_noprof mm/page_alloc.c:5545 [inline] alloc_pages_bulk_noprof+0x77e/0x1420 mm/page_alloc.c:5362 alloc_pages_bulk_node_noprof include/linux/gfp.h:231 [inline] __page_pool_alloc_netmems_slow+0x178/0x930 net/core/page_pool.c:637 page_pool_alloc_netmems net/core/page_pool.c:688 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:675 page_pool_alloc_netmem include/net/page_pool/helpers.h:136 [inline] page_pool_alloc include/net/page_pool/helpers.h:175 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:196 [inline] skb_pp_cow_data+0x9c5/0x11a0 net/core/skbuff.c:992 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1026 netif_skb_check_for_xdp net/core/dev.c:5796 [inline] netif_receive_generic_xdp net/core/dev.c:5837 [inline] do_xdp_generic+0x571/0x12e0 net/core/dev.c:5905 tun_get_user+0x1e6a/0x43d0 drivers/net/tun.c:2002 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2143 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x6af/0x1040 fs/read_write.c:667 ksys_write+0x12a/0x250 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 19 tgid 19 ts 83172976473 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1415 [inline] __free_frozen_pages+0x7b1/0x10f0 mm/page_alloc.c:2971 __pagetable_free include/linux/mm.h:4024 [inline] pagetable_free include/linux/mm.h:4143 [inline] pagetable_dtor_free include/linux/mm.h:4150 [inline] __tlb_remove_table include/asm-generic/tlb.h:205 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x320/0x590 mm/mmu_gather.c:289 rcu_do_batch kernel/rcu/tree.c:2650 [inline] rcu_core+0x5f0/0x1220 kernel/rcu/tree.c:2919 handle_softirqs+0x216/0xa20 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0x178/0x220 kernel/softirq.c:786 irq_exit_rcu+0x9/0x30 kernel/softirq.c:809 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 Modules linked in: CPU: 1 UID: 0 PID: 6326 Comm: syz.0.16 Tainted: G B syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE 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+0x58/0x6b mm/page_alloc.c:629 free_page_is_bad mm/page_alloc.c:1079 [inline] free_page_is_bad mm/page_alloc.c:1073 [inline] __free_pages_prepare mm/page_alloc.c:1406 [inline] __free_frozen_pages+0x7e3/0x10f0 mm/page_alloc.c:2971 page_frag_free+0x199/0x1f0 mm/page_frag_cache.c:174 __xdp_return+0x3b6/0x990 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4462 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4486 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4508 [inline] bpf_xdp_adjust_tail+0x8a1/0xbb0 net/core/filter.c:4501 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:813 [inline] bpf_prog_run_xdp include/net/xdp.h:701 [inline] bpf_prog_run_generic_xdp+0x5ff/0x1630 net/core/dev.c:5723 netif_receive_generic_xdp net/core/dev.c:5843 [inline] do_xdp_generic+0x933/0x12e0 net/core/dev.c:5905 tun_get_user+0x1e6a/0x43d0 drivers/net/tun.c:2002 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2143 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x6af/0x1040 fs/read_write.c:667 ksys_write+0x12a/0x250 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f575c3581ce 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:00007f575d1fcfb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f575d1fd6c0 RCX: 00007f575c3581ce RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f575c4291bc R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f575c5c5fa0 R15: 00007ffc16f9b268 BUG: Bad page state in process syz.0.16 pfn:3f500 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888000000000 pfn:0x3f500 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888024c04000 0000000000000000 raw: ffff888000000000 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 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 6326, tgid 6325 (syz.0.16), ts 83180728943 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1873 prep_new_page mm/page_alloc.c:1881 [inline] get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3963 __alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5505 __alloc_pages_noprof mm/page_alloc.c:5545 [inline] alloc_pages_bulk_noprof+0x77e/0x1420 mm/page_alloc.c:5362 alloc_pages_bulk_node_noprof include/linux/gfp.h:231 [inline] __page_pool_alloc_netmems_slow+0x178/0x930 net/core/page_pool.c:637 page_pool_alloc_netmems net/core/page_pool.c:688 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:675 page_pool_alloc_netmem include/net/page_pool/helpers.h:136 [inline] page_pool_alloc include/net/page_pool/helpers.h:175 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:196 [inline] skb_pp_cow_data+0x9c5/0x11a0 net/core/skbuff.c:992 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1026 netif_skb_check_for_xdp net/core/dev.c:5796 [inline] netif_receive_generic_xdp net/core/dev.c:5837 [inline] do_xdp_generic+0x571/0x12e0 net/core/dev.c:5905 tun_get_user+0x1e6a/0x43d0 drivers/net/tun.c:2002 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2143 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x6af/0x1040 fs/read_write.c:667 ksys_write+0x12a/0x250 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 19 tgid 19 ts 83172986946 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1415 [inline] __free_frozen_pages+0x7b1/0x10f0 mm/page_alloc.c:2971 __pagetable_free include/linux/mm.h:4024 [inline] pagetable_free include/linux/mm.h:4143 [inline] pagetable_dtor_free include/linux/mm.h:4150 [inline] __tlb_remove_table include/asm-generic/tlb.h:205 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x320/0x590 mm/mmu_gather.c:289 rcu_do_batch kernel/rcu/tree.c:2650 [inline] rcu_core+0x5f0/0x1220 kernel/rcu/tree.c:2919 handle_softirqs+0x216/0xa20 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0x178/0x220 kernel/softirq.c:786 irq_exit_rcu+0x9/0x30 kernel/softirq.c:809 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 Modules linked in: CPU: 1 UID: 0 PID: 6326 Comm: syz.0.16 Tainted: G B syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE 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+0x58/0x6b mm/page_alloc.c:629 free_page_is_bad mm/page_alloc.c:1079 [inline] free_page_is_bad mm/page_alloc.c:1073 [inline] __free_pages_prepare mm/page_alloc.c:1406 [inline] __free_frozen_pages+0x7e3/0x10f0 mm/page_alloc.c:2971 page_frag_free+0x199/0x1f0 mm/page_frag_cache.c:174 __xdp_return+0x3b6/0x990 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4462 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4486 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4508 [inline] bpf_xdp_adjust_tail+0x8a1/0xbb0 net/core/filter.c:4501 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:813 [inline] bpf_prog_run_xdp include/net/xdp.h:701 [inline] bpf_prog_run_generic_xdp+0x5ff/0x1630 net/core/dev.c:5723 netif_receive_generic_xdp net/core/dev.c:5843 [inline] do_xdp_generic+0x933/0x12e0 net/core/dev.c:5905 tun_get_user+0x1e6a/0x43d0 drivers/net/tun.c:2002 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2143 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x6af/0x1040 fs/read_write.c:667 ksys_write+0x12a/0x250 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f575c3581ce 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:00007f575d1fcfb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f575d1fd6c0 RCX: 00007f575c3581ce RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f575c4291bc R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f575c5c5fa0 R15: 00007ffc16f9b268 BUG: Bad page state in process syz.0.16 pfn:3de72 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803de72cc0 pfn:0x3de72 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888024c04000 0000000000000000 raw: ffff88803de72cc0 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 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 6326, tgid 6325 (syz.0.16), ts 83180722440 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1873 prep_new_page mm/page_alloc.c:1881 [inline] get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3963 __alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5505 __alloc_pages_noprof mm/page_alloc.c:5545 [inline] alloc_pages_bulk_noprof+0x77e/0x1420 mm/page_alloc.c:5362 alloc_pages_bulk_node_noprof include/linux/gfp.h:231 [inline] __page_pool_alloc_netmems_slow+0x178/0x930 net/core/page_pool.c:637 page_pool_alloc_netmems net/core/page_pool.c:688 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:675 page_pool_alloc_netmem include/net/page_pool/helpers.h:136 [inline] page_pool_alloc include/net/page_pool/helpers.h:175 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:196 [inline] skb_pp_cow_data+0x9c5/0x11a0 net/core/skbuff.c:992 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1026 netif_skb_check_for_xdp net/core/dev.c:5796 [inline] netif_receive_generic_xdp net/core/dev.c:5837 [inline] do_xdp_generic+0x571/0x12e0 net/core/dev.c:5905 tun_get_user+0x1e6a/0x43d0 drivers/net/tun.c:2002 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2143 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x6af/0x1040 fs/read_write.c:667 ksys_write+0x12a/0x250 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 19 tgid 19 ts 83172992583 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1415 [inline] __free_frozen_pages+0x7b1/0x10f0 mm/page_alloc.c:2971 __pagetable_free include/linux/mm.h:4024 [inline] pagetable_free include/linux/mm.h:4143 [inline] pagetable_dtor_free include/linux/mm.h:4150 [inline] __tlb_remove_table include/asm-generic/tlb.h:205 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x320/0x590 mm/mmu_gather.c:289 rcu_do_batch kernel/rcu/tree.c:2650 [inline] rcu_core+0x5f0/0x1220 kernel/rcu/tree.c:2919 handle_softirqs+0x216/0xa20 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0x178/0x220 kernel/softirq.c:786 irq_exit_rcu+0x9/0x30 kernel/softirq.c:809 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 Modules linked in: CPU: 1 UID: 0 PID: 6326 Comm: syz.0.16 Tainted: G B syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE 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+0x58/0x6b mm/page_alloc.c:629 free_page_is_bad mm/page_alloc.c:1079 [inline] free_page_is_bad mm/page_alloc.c:1073 [inline] __free_pages_prepare mm/page_alloc.c:1406 [inline] __free_frozen_pages+0x7e3/0x10f0 mm/page_alloc.c:2971 page_frag_free+0x199/0x1f0 mm/page_frag_cache.c:174 __xdp_return+0x3b6/0x990 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4462 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4486 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4508 [inline] bpf_xdp_adjust_tail+0x8a1/0xbb0 net/core/filter.c:4501 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:813 [inline] bpf_prog_run_xdp include/net/xdp.h:701 [inline] bpf_prog_run_generic_xdp+0x5ff/0x1630 net/core/dev.c:5723 netif_receive_generic_xdp net/core/dev.c:5843 [inline] do_xdp_generic+0x933/0x12e0 net/core/dev.c:5905 tun_get_user+0x1e6a/0x43d0 drivers/net/tun.c:2002 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2143 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x6af/0x1040 fs/read_write.c:667 ksys_write+0x12a/0x250 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f575c3581ce 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:00007f575d1fcfb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f575d1fd6c0 RCX: 00007f575c3581ce RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f575c4291bc R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f575c5c5fa0 R15: 00007ffc16f9b268 BUG: Bad page state in process syz.0.16 pfn:41ee5 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888041ee5c40 pfn:0x41ee5 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888024c04000 0000000000000000 raw: ffff888041ee5c40 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 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 6326, tgid 6325 (syz.0.16), ts 83180716088 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1873 prep_new_page mm/page_alloc.c:1881 [inline] get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3963 __alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5505 __alloc_pages_noprof mm/page_alloc.c:5545 [inline] alloc_pages_bulk_noprof+0x77e/0x1420 mm/page_alloc.c:5362 alloc_pages_bulk_node_noprof include/linux/gfp.h:231 [inline] __page_pool_alloc_netmems_slow+0x178/0x930 net/core/page_pool.c:637 page_pool_alloc_netmems net/core/page_pool.c:688 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:675 page_pool_alloc_netmem include/net/page_pool/helpers.h:136 [inline] page_pool_alloc include/net/page_pool/helpers.h:175 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:196 [inline] skb_pp_cow_data+0x9c5/0x11a0 net/core/skbuff.c:992 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1026 netif_skb_check_for_xdp net/core/dev.c:5796 [inline] netif_receive_generic_xdp net/core/dev.c:5837 [inline] do_xdp_generic+0x571/0x12e0 net/core/dev.c:5905 tun_get_user+0x1e6a/0x43d0 drivers/net/tun.c:2002 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2143 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x6af/0x1040 fs/read_write.c:667 ksys_write+0x12a/0x250 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 19 tgid 19 ts 83173003806 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1415 [inline] __free_frozen_pages+0x7b1/0x10f0 mm/page_alloc.c:2971 __pagetable_free include/linux/mm.h:4024 [inline] pagetable_free include/linux/mm.h:4143 [inline] pagetable_dtor_free include/linux/mm.h:4150 [inline] __tlb_remove_table include/asm-generic/tlb.h:205 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x320/0x590 mm/mmu_gather.c:289 rcu_do_batch kernel/rcu/tree.c:2650 [inline] rcu_core+0x5f0/0x1220 kernel/rcu/tree.c:2919 handle_softirqs+0x216/0xa20 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0x178/0x220 kernel/softirq.c:786 irq_exit_rcu+0x9/0x30 kernel/softirq.c:809 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 Modules linked in: CPU: 1 UID: 0 PID: 6326 Comm: syz.0.16 Tainted: G B syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE 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+0x58/0x6b mm/page_alloc.c:629 free_page_is_bad mm/page_alloc.c:1079 [inline] free_page_is_bad mm/page_alloc.c:1073 [inline] __free_pages_prepare mm/page_alloc.c:1406 [inline] __free_frozen_pages+0x7e3/0x10f0 mm/page_alloc.c:2971 page_frag_free+0x199/0x1f0 mm/page_frag_cache.c:174 __xdp_return+0x3b6/0x990 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4462 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4486 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4508 [inline] bpf_xdp_adjust_tail+0x8a1/0xbb0 net/core/filter.c:4501 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:813 [inline] bpf_prog_run_xdp include/net/xdp.h:701 [inline] bpf_prog_run_generic_xdp+0x5ff/0x1630 net/core/dev.c:5723 netif_receive_generic_xdp net/core/dev.c:5843 [inline] do_xdp_generic+0x933/0x12e0 net/core/dev.c:5905 tun_get_user+0x1e6a/0x43d0 drivers/net/tun.c:2002 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2143 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x6af/0x1040 fs/read_write.c:667 ksys_write+0x12a/0x250 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f575c3581ce 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:00007f575d1fcfb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f575d1fd6c0 RCX: 00007f575c3581ce RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f575c4291bc R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f575c5c5fa0 R15: 00007ffc16f9b268 BUG: Bad page state in process syz.0.16 pfn:2b13d page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802b13dae0 pfn:0x2b13d flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 dead000000000040 ffff888024c04000 0000000000000000 raw: ffff88802b13dae0 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 0x2820(GFP_ATOMIC|__GFP_NOWARN), pid 6326, tgid 6325 (syz.0.16), ts 83180707795 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1873 prep_new_page mm/page_alloc.c:1881 [inline] get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3963 __alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5505 __alloc_pages_noprof mm/page_alloc.c:5545 [inline] alloc_pages_bulk_noprof+0x77e/0x1420 mm/page_alloc.c:5362 alloc_pages_bulk_node_noprof include/linux/gfp.h:231 [inline] __page_pool_alloc_netmems_slow+0x178/0x930 net/core/page_pool.c:637 page_pool_alloc_netmems net/core/page_pool.c:688 [inline] page_pool_alloc_netmems+0xc4/0x1a0 net/core/page_pool.c:675 page_pool_alloc_netmem include/net/page_pool/helpers.h:136 [inline] page_pool_alloc include/net/page_pool/helpers.h:175 [inline] page_pool_dev_alloc include/net/page_pool/helpers.h:196 [inline] skb_pp_cow_data+0x9c5/0x11a0 net/core/skbuff.c:992 skb_cow_data_for_xdp+0x88/0xb0 net/core/skbuff.c:1026 netif_skb_check_for_xdp net/core/dev.c:5796 [inline] netif_receive_generic_xdp net/core/dev.c:5837 [inline] do_xdp_generic+0x571/0x12e0 net/core/dev.c:5905 tun_get_user+0x1e6a/0x43d0 drivers/net/tun.c:2002 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2143 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x6af/0x1040 fs/read_write.c:667 ksys_write+0x12a/0x250 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 19 tgid 19 ts 83173014474 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1415 [inline] __free_frozen_pages+0x7b1/0x10f0 mm/page_alloc.c:2971 __pagetable_free include/linux/mm.h:4024 [inline] pagetable_free include/linux/mm.h:4143 [inline] pagetable_dtor_free include/linux/mm.h:4150 [inline] __tlb_remove_table include/asm-generic/tlb.h:205 [inline] __tlb_remove_table_free mm/mmu_gather.c:228 [inline] tlb_remove_table_rcu+0x320/0x590 mm/mmu_gather.c:289 rcu_do_batch kernel/rcu/tree.c:2650 [inline] rcu_core+0x5f0/0x1220 kernel/rcu/tree.c:2919 handle_softirqs+0x216/0xa20 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0x178/0x220 kernel/softirq.c:786 irq_exit_rcu+0x9/0x30 kernel/softirq.c:809 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 Modules linked in: CPU: 1 UID: 0 PID: 6326 Comm: syz.0.16 Tainted: G B syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE 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+0x58/0x6b mm/page_alloc.c:629 free_page_is_bad mm/page_alloc.c:1079 [inline] free_page_is_bad mm/page_alloc.c:1073 [inline] __free_pages_prepare mm/page_alloc.c:1406 [inline] __free_frozen_pages+0x7e3/0x10f0 mm/page_alloc.c:2971 page_frag_free+0x199/0x1f0 mm/page_frag_cache.c:174 __xdp_return+0x3b6/0x990 net/core/xdp.c:448 bpf_xdp_shrink_data net/core/filter.c:4462 [inline] bpf_xdp_frags_shrink_tail net/core/filter.c:4486 [inline] ____bpf_xdp_adjust_tail net/core/filter.c:4508 [inline] bpf_xdp_adjust_tail+0x8a1/0xbb0 net/core/filter.c:4501 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:813 [inline] bpf_prog_run_xdp include/net/xdp.h:701 [inline] bpf_prog_run_generic_xdp+0x5ff/0x1630 net/core/dev.c:5723 netif_receive_generic_xdp net/core/dev.c:5843 [inline] do_xdp_generic+0x933/0x12e0 net/core/dev.c:5905 tun_get_user+0x1e6a/0x43d0 drivers/net/tun.c:2002 tun_chr_write_iter+0xdc/0x200 drivers/net/tun.c:2143 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x6af/0x1040 fs/read_write.c:667 ksys_write+0x12a/0x250 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f575c3581ce 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:00007f575d1fcfb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f575d1fd6c0 RCX: 00007f575c3581ce RDX: 000000000000fdef RSI: 0000200000000a80 RDI: 00000000000000c8 RBP: 00007f575c4291bc R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f575c5c5fa0 R15: 00007ffc16f9b268