BUG: Bad page state in process syz.0.0 pfn:360c3 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880360c33c0 pfn:0x360c3 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801f35c000 0000000000000000 raw: ffff8880360c33c0 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 5314, tgid 5313 (syz.0.0), ts 75058332096, free_ts 73197012158 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1888 prep_new_page mm/page_alloc.c:1896 [inline] get_page_from_freelist+0x24dc/0x2580 mm/page_alloc.c:3961 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5249 __alloc_pages_noprof mm/page_alloc.c:5283 [inline] alloc_pages_bulk_noprof+0x558/0x700 mm/page_alloc.c:5203 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x14c/0x710 net/core/page_pool.c:616 page_pool_alloc_netmems net/core/page_pool.c:667 [inline] page_pool_alloc_frag_netmem+0x421/0x9b0 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_dev_alloc include/net/page_pool/helpers.h:188 [inline] skb_pp_cow_data+0xc43/0x1680 net/core/skbuff.c:993 netif_skb_check_for_xdp net/core/dev.c:5497 [inline] netif_receive_generic_xdp net/core/dev.c:5538 [inline] do_xdp_generic+0x76b/0x12e0 net/core/dev.c:5606 tun_get_user+0x247d/0x3dd0 drivers/net/tun.c:1872 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1432 [inline] __free_frozen_pages+0xc00/0xd90 mm/page_alloc.c:2977 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869 handle_softirqs+0x22a/0x870 kernel/softirq.c:622 run_ksoftirqd+0x36/0x60 kernel/softirq.c:1063 smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160 kthread+0x388/0x470 kernel/kthread.c:467 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 0 UID: 0 PID: 5314 Comm: syz.0.0 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_lvl+0xe8/0x150 lib/dump_stack.c:120 bad_page+0x17f/0x1c0 mm/page_alloc.c:676 free_page_is_bad mm/page_alloc.c:1120 [inline] __free_pages_prepare mm/page_alloc.c:1424 [inline] __free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2977 bpf_xdp_shrink_data net/core/filter.c:4204 [inline] bpf_xdp_frags_shrink_tail+0x4f7/0x7f0 net/core/filter.c:4228 ____bpf_xdp_adjust_tail net/core/filter.c:4250 [inline] bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4243 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+0x603/0x1490 net/core/dev.c:5428 netif_receive_generic_xdp net/core/dev.c:5544 [inline] do_xdp_generic+0xac5/0x12e0 net/core/dev.c:5606 tun_get_user+0x247d/0x3dd0 drivers/net/tun.c:1872 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbceb35cece 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:00007fbcec27bfb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fbcec27c6c0 RCX: 00007fbceb35cece RDX: 000000000000fdef RSI: 0000200000000400 RDI: 00000000000000c8 RBP: 00007fbceb432b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fbceb616038 R14: 00007fbceb615fa0 R15: 00007ffcfb255238 BUG: Bad page state in process syz.0.0 pfn:44462 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888044462dc0 pfn:0x44462 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801f35c000 0000000000000000 raw: ffff888044462dc0 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 5314, tgid 5313 (syz.0.0), ts 75058325286, free_ts 73197020728 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1888 prep_new_page mm/page_alloc.c:1896 [inline] get_page_from_freelist+0x24dc/0x2580 mm/page_alloc.c:3961 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5249 __alloc_pages_noprof mm/page_alloc.c:5283 [inline] alloc_pages_bulk_noprof+0x558/0x700 mm/page_alloc.c:5203 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x14c/0x710 net/core/page_pool.c:616 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+0xc21/0x1680 net/core/skbuff.c:993 netif_skb_check_for_xdp net/core/dev.c:5497 [inline] netif_receive_generic_xdp net/core/dev.c:5538 [inline] do_xdp_generic+0x76b/0x12e0 net/core/dev.c:5606 tun_get_user+0x247d/0x3dd0 drivers/net/tun.c:1872 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1432 [inline] __free_frozen_pages+0xc00/0xd90 mm/page_alloc.c:2977 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869 handle_softirqs+0x22a/0x870 kernel/softirq.c:622 run_ksoftirqd+0x36/0x60 kernel/softirq.c:1063 smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160 kthread+0x388/0x470 kernel/kthread.c:467 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 0 UID: 0 PID: 5314 Comm: syz.0.0 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_lvl+0xe8/0x150 lib/dump_stack.c:120 bad_page+0x17f/0x1c0 mm/page_alloc.c:676 free_page_is_bad mm/page_alloc.c:1120 [inline] __free_pages_prepare mm/page_alloc.c:1424 [inline] __free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2977 bpf_xdp_shrink_data net/core/filter.c:4204 [inline] bpf_xdp_frags_shrink_tail+0x4f7/0x7f0 net/core/filter.c:4228 ____bpf_xdp_adjust_tail net/core/filter.c:4250 [inline] bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4243 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+0x603/0x1490 net/core/dev.c:5428 netif_receive_generic_xdp net/core/dev.c:5544 [inline] do_xdp_generic+0xac5/0x12e0 net/core/dev.c:5606 tun_get_user+0x247d/0x3dd0 drivers/net/tun.c:1872 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbceb35cece 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:00007fbcec27bfb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fbcec27c6c0 RCX: 00007fbceb35cece RDX: 000000000000fdef RSI: 0000200000000400 RDI: 00000000000000c8 RBP: 00007fbceb432b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fbceb616038 R14: 00007fbceb615fa0 R15: 00007ffcfb255238 BUG: Bad page state in process syz.0.0 pfn:383f6 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880383f6000 pfn:0x383f6 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801f35c000 0000000000000000 raw: ffff8880383f6000 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 5314, tgid 5313 (syz.0.0), ts 75058318629, free_ts 73197025341 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1888 prep_new_page mm/page_alloc.c:1896 [inline] get_page_from_freelist+0x24dc/0x2580 mm/page_alloc.c:3961 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5249 __alloc_pages_noprof mm/page_alloc.c:5283 [inline] alloc_pages_bulk_noprof+0x558/0x700 mm/page_alloc.c:5203 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x14c/0x710 net/core/page_pool.c:616 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+0xc21/0x1680 net/core/skbuff.c:993 netif_skb_check_for_xdp net/core/dev.c:5497 [inline] netif_receive_generic_xdp net/core/dev.c:5538 [inline] do_xdp_generic+0x76b/0x12e0 net/core/dev.c:5606 tun_get_user+0x247d/0x3dd0 drivers/net/tun.c:1872 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1432 [inline] __free_frozen_pages+0xc00/0xd90 mm/page_alloc.c:2977 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869 handle_softirqs+0x22a/0x870 kernel/softirq.c:622 run_ksoftirqd+0x36/0x60 kernel/softirq.c:1063 smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160 kthread+0x388/0x470 kernel/kthread.c:467 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 0 UID: 0 PID: 5314 Comm: syz.0.0 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_lvl+0xe8/0x150 lib/dump_stack.c:120 bad_page+0x17f/0x1c0 mm/page_alloc.c:676 free_page_is_bad mm/page_alloc.c:1120 [inline] __free_pages_prepare mm/page_alloc.c:1424 [inline] __free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2977 bpf_xdp_shrink_data net/core/filter.c:4204 [inline] bpf_xdp_frags_shrink_tail+0x4f7/0x7f0 net/core/filter.c:4228 ____bpf_xdp_adjust_tail net/core/filter.c:4250 [inline] bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4243 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+0x603/0x1490 net/core/dev.c:5428 netif_receive_generic_xdp net/core/dev.c:5544 [inline] do_xdp_generic+0xac5/0x12e0 net/core/dev.c:5606 tun_get_user+0x247d/0x3dd0 drivers/net/tun.c:1872 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbceb35cece 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:00007fbcec27bfb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fbcec27c6c0 RCX: 00007fbceb35cece RDX: 000000000000fdef RSI: 0000200000000400 RDI: 00000000000000c8 RBP: 00007fbceb432b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fbceb616038 R14: 00007fbceb615fa0 R15: 00007ffcfb255238 BUG: Bad page state in process syz.0.0 pfn:39448 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888039448a00 pfn:0x39448 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801f35c000 0000000000000000 raw: ffff888039448a00 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 5314, tgid 5313 (syz.0.0), ts 75058311737, free_ts 73197029505 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1888 prep_new_page mm/page_alloc.c:1896 [inline] get_page_from_freelist+0x24dc/0x2580 mm/page_alloc.c:3961 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5249 __alloc_pages_noprof mm/page_alloc.c:5283 [inline] alloc_pages_bulk_noprof+0x558/0x700 mm/page_alloc.c:5203 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x14c/0x710 net/core/page_pool.c:616 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+0xc21/0x1680 net/core/skbuff.c:993 netif_skb_check_for_xdp net/core/dev.c:5497 [inline] netif_receive_generic_xdp net/core/dev.c:5538 [inline] do_xdp_generic+0x76b/0x12e0 net/core/dev.c:5606 tun_get_user+0x247d/0x3dd0 drivers/net/tun.c:1872 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1432 [inline] __free_frozen_pages+0xc00/0xd90 mm/page_alloc.c:2977 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869 handle_softirqs+0x22a/0x870 kernel/softirq.c:622 run_ksoftirqd+0x36/0x60 kernel/softirq.c:1063 smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160 kthread+0x388/0x470 kernel/kthread.c:467 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 0 UID: 0 PID: 5314 Comm: syz.0.0 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_lvl+0xe8/0x150 lib/dump_stack.c:120 bad_page+0x17f/0x1c0 mm/page_alloc.c:676 free_page_is_bad mm/page_alloc.c:1120 [inline] __free_pages_prepare mm/page_alloc.c:1424 [inline] __free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2977 bpf_xdp_shrink_data net/core/filter.c:4204 [inline] bpf_xdp_frags_shrink_tail+0x4f7/0x7f0 net/core/filter.c:4228 ____bpf_xdp_adjust_tail net/core/filter.c:4250 [inline] bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4243 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+0x603/0x1490 net/core/dev.c:5428 netif_receive_generic_xdp net/core/dev.c:5544 [inline] do_xdp_generic+0xac5/0x12e0 net/core/dev.c:5606 tun_get_user+0x247d/0x3dd0 drivers/net/tun.c:1872 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbceb35cece 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:00007fbcec27bfb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fbcec27c6c0 RCX: 00007fbceb35cece RDX: 000000000000fdef RSI: 0000200000000400 RDI: 00000000000000c8 RBP: 00007fbceb432b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fbceb616038 R14: 00007fbceb615fa0 R15: 00007ffcfb255238 BUG: Bad page state in process syz.0.0 pfn:394ca page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880394cadc0 pfn:0x394ca flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801f35c000 0000000000000000 raw: ffff8880394cadc0 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 5314, tgid 5313 (syz.0.0), ts 75058304474, free_ts 73197033801 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1888 prep_new_page mm/page_alloc.c:1896 [inline] get_page_from_freelist+0x24dc/0x2580 mm/page_alloc.c:3961 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5249 __alloc_pages_noprof mm/page_alloc.c:5283 [inline] alloc_pages_bulk_noprof+0x558/0x700 mm/page_alloc.c:5203 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x14c/0x710 net/core/page_pool.c:616 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+0xc21/0x1680 net/core/skbuff.c:993 netif_skb_check_for_xdp net/core/dev.c:5497 [inline] netif_receive_generic_xdp net/core/dev.c:5538 [inline] do_xdp_generic+0x76b/0x12e0 net/core/dev.c:5606 tun_get_user+0x247d/0x3dd0 drivers/net/tun.c:1872 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1432 [inline] __free_frozen_pages+0xc00/0xd90 mm/page_alloc.c:2977 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869 handle_softirqs+0x22a/0x870 kernel/softirq.c:622 run_ksoftirqd+0x36/0x60 kernel/softirq.c:1063 smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160 kthread+0x388/0x470 kernel/kthread.c:467 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 0 UID: 0 PID: 5314 Comm: syz.0.0 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_lvl+0xe8/0x150 lib/dump_stack.c:120 bad_page+0x17f/0x1c0 mm/page_alloc.c:676 free_page_is_bad mm/page_alloc.c:1120 [inline] __free_pages_prepare mm/page_alloc.c:1424 [inline] __free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2977 bpf_xdp_shrink_data net/core/filter.c:4204 [inline] bpf_xdp_frags_shrink_tail+0x4f7/0x7f0 net/core/filter.c:4228 ____bpf_xdp_adjust_tail net/core/filter.c:4250 [inline] bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4243 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+0x603/0x1490 net/core/dev.c:5428 netif_receive_generic_xdp net/core/dev.c:5544 [inline] do_xdp_generic+0xac5/0x12e0 net/core/dev.c:5606 tun_get_user+0x247d/0x3dd0 drivers/net/tun.c:1872 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbceb35cece 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:00007fbcec27bfb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fbcec27c6c0 RCX: 00007fbceb35cece RDX: 000000000000fdef RSI: 0000200000000400 RDI: 00000000000000c8 RBP: 00007fbceb432b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fbceb616038 R14: 00007fbceb615fa0 R15: 00007ffcfb255238 BUG: Bad page state in process syz.0.0 pfn:42e1e page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888042e1e640 pfn:0x42e1e flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801f35c000 0000000000000000 raw: ffff888042e1e640 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 5314, tgid 5313 (syz.0.0), ts 75058293662, free_ts 73197038558 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1888 prep_new_page mm/page_alloc.c:1896 [inline] get_page_from_freelist+0x24dc/0x2580 mm/page_alloc.c:3961 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5249 __alloc_pages_noprof mm/page_alloc.c:5283 [inline] alloc_pages_bulk_noprof+0x558/0x700 mm/page_alloc.c:5203 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x14c/0x710 net/core/page_pool.c:616 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+0xc21/0x1680 net/core/skbuff.c:993 netif_skb_check_for_xdp net/core/dev.c:5497 [inline] netif_receive_generic_xdp net/core/dev.c:5538 [inline] do_xdp_generic+0x76b/0x12e0 net/core/dev.c:5606 tun_get_user+0x247d/0x3dd0 drivers/net/tun.c:1872 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1432 [inline] __free_frozen_pages+0xc00/0xd90 mm/page_alloc.c:2977 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869 handle_softirqs+0x22a/0x870 kernel/softirq.c:622 run_ksoftirqd+0x36/0x60 kernel/softirq.c:1063 smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160 kthread+0x388/0x470 kernel/kthread.c:467 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 0 UID: 0 PID: 5314 Comm: syz.0.0 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_lvl+0xe8/0x150 lib/dump_stack.c:120 bad_page+0x17f/0x1c0 mm/page_alloc.c:676 free_page_is_bad mm/page_alloc.c:1120 [inline] __free_pages_prepare mm/page_alloc.c:1424 [inline] __free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2977 bpf_xdp_shrink_data net/core/filter.c:4204 [inline] bpf_xdp_frags_shrink_tail+0x4f7/0x7f0 net/core/filter.c:4228 ____bpf_xdp_adjust_tail net/core/filter.c:4250 [inline] bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4243 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+0x603/0x1490 net/core/dev.c:5428 netif_receive_generic_xdp net/core/dev.c:5544 [inline] do_xdp_generic+0xac5/0x12e0 net/core/dev.c:5606 tun_get_user+0x247d/0x3dd0 drivers/net/tun.c:1872 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbceb35cece 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:00007fbcec27bfb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fbcec27c6c0 RCX: 00007fbceb35cece RDX: 000000000000fdef RSI: 0000200000000400 RDI: 00000000000000c8 RBP: 00007fbceb432b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fbceb616038 R14: 00007fbceb615fa0 R15: 00007ffcfb255238 BUG: Bad page state in process syz.0.0 pfn:38ab8 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888038ab8780 pfn:0x38ab8 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801f35c000 0000000000000000 raw: ffff888038ab8780 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 5314, tgid 5313 (syz.0.0), ts 75058282784, free_ts 73197042840 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1888 prep_new_page mm/page_alloc.c:1896 [inline] get_page_from_freelist+0x24dc/0x2580 mm/page_alloc.c:3961 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5249 __alloc_pages_noprof mm/page_alloc.c:5283 [inline] alloc_pages_bulk_noprof+0x558/0x700 mm/page_alloc.c:5203 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x14c/0x710 net/core/page_pool.c:616 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+0xc21/0x1680 net/core/skbuff.c:993 netif_skb_check_for_xdp net/core/dev.c:5497 [inline] netif_receive_generic_xdp net/core/dev.c:5538 [inline] do_xdp_generic+0x76b/0x12e0 net/core/dev.c:5606 tun_get_user+0x247d/0x3dd0 drivers/net/tun.c:1872 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1432 [inline] __free_frozen_pages+0xc00/0xd90 mm/page_alloc.c:2977 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869 handle_softirqs+0x22a/0x870 kernel/softirq.c:622 run_ksoftirqd+0x36/0x60 kernel/softirq.c:1063 smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160 kthread+0x388/0x470 kernel/kthread.c:467 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 0 UID: 0 PID: 5314 Comm: syz.0.0 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_lvl+0xe8/0x150 lib/dump_stack.c:120 bad_page+0x17f/0x1c0 mm/page_alloc.c:676 free_page_is_bad mm/page_alloc.c:1120 [inline] __free_pages_prepare mm/page_alloc.c:1424 [inline] __free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2977 bpf_xdp_shrink_data net/core/filter.c:4204 [inline] bpf_xdp_frags_shrink_tail+0x4f7/0x7f0 net/core/filter.c:4228 ____bpf_xdp_adjust_tail net/core/filter.c:4250 [inline] bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4243 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+0x603/0x1490 net/core/dev.c:5428 netif_receive_generic_xdp net/core/dev.c:5544 [inline] do_xdp_generic+0xac5/0x12e0 net/core/dev.c:5606 tun_get_user+0x247d/0x3dd0 drivers/net/tun.c:1872 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbceb35cece 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:00007fbcec27bfb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fbcec27c6c0 RCX: 00007fbceb35cece RDX: 000000000000fdef RSI: 0000200000000400 RDI: 00000000000000c8 RBP: 00007fbceb432b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fbceb616038 R14: 00007fbceb615fa0 R15: 00007ffcfb255238 BUG: Bad page state in process syz.0.0 pfn:42802 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888042802280 pfn:0x42802 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801f35c000 0000000000000000 raw: ffff888042802280 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 5314, tgid 5313 (syz.0.0), ts 75058271674, free_ts 73197048107 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1888 prep_new_page mm/page_alloc.c:1896 [inline] get_page_from_freelist+0x24dc/0x2580 mm/page_alloc.c:3961 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5249 __alloc_pages_noprof mm/page_alloc.c:5283 [inline] alloc_pages_bulk_noprof+0x558/0x700 mm/page_alloc.c:5203 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x14c/0x710 net/core/page_pool.c:616 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+0xc21/0x1680 net/core/skbuff.c:993 netif_skb_check_for_xdp net/core/dev.c:5497 [inline] netif_receive_generic_xdp net/core/dev.c:5538 [inline] do_xdp_generic+0x76b/0x12e0 net/core/dev.c:5606 tun_get_user+0x247d/0x3dd0 drivers/net/tun.c:1872 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1432 [inline] __free_frozen_pages+0xc00/0xd90 mm/page_alloc.c:2977 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869 handle_softirqs+0x22a/0x870 kernel/softirq.c:622 run_ksoftirqd+0x36/0x60 kernel/softirq.c:1063 smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160 kthread+0x388/0x470 kernel/kthread.c:467 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 0 UID: 0 PID: 5314 Comm: syz.0.0 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_lvl+0xe8/0x150 lib/dump_stack.c:120 bad_page+0x17f/0x1c0 mm/page_alloc.c:676 free_page_is_bad mm/page_alloc.c:1120 [inline] __free_pages_prepare mm/page_alloc.c:1424 [inline] __free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2977 bpf_xdp_shrink_data net/core/filter.c:4204 [inline] bpf_xdp_frags_shrink_tail+0x4f7/0x7f0 net/core/filter.c:4228 ____bpf_xdp_adjust_tail net/core/filter.c:4250 [inline] bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4243 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+0x603/0x1490 net/core/dev.c:5428 netif_receive_generic_xdp net/core/dev.c:5544 [inline] do_xdp_generic+0xac5/0x12e0 net/core/dev.c:5606 tun_get_user+0x247d/0x3dd0 drivers/net/tun.c:1872 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbceb35cece 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:00007fbcec27bfb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fbcec27c6c0 RCX: 00007fbceb35cece RDX: 000000000000fdef RSI: 0000200000000400 RDI: 00000000000000c8 RBP: 00007fbceb432b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fbceb616038 R14: 00007fbceb615fa0 R15: 00007ffcfb255238 BUG: Bad page state in process syz.0.0 pfn:35205 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880352058c0 pfn:0x35205 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801f35c000 0000000000000000 raw: ffff8880352058c0 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 5314, tgid 5313 (syz.0.0), ts 75058246045, free_ts 73197058926 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1888 prep_new_page mm/page_alloc.c:1896 [inline] get_page_from_freelist+0x24dc/0x2580 mm/page_alloc.c:3961 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5249 __alloc_pages_noprof mm/page_alloc.c:5283 [inline] alloc_pages_bulk_noprof+0x558/0x700 mm/page_alloc.c:5203 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x14c/0x710 net/core/page_pool.c:616 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+0xc21/0x1680 net/core/skbuff.c:993 netif_skb_check_for_xdp net/core/dev.c:5497 [inline] netif_receive_generic_xdp net/core/dev.c:5538 [inline] do_xdp_generic+0x76b/0x12e0 net/core/dev.c:5606 tun_get_user+0x247d/0x3dd0 drivers/net/tun.c:1872 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1432 [inline] __free_frozen_pages+0xc00/0xd90 mm/page_alloc.c:2977 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869 handle_softirqs+0x22a/0x870 kernel/softirq.c:622 run_ksoftirqd+0x36/0x60 kernel/softirq.c:1063 smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160 kthread+0x388/0x470 kernel/kthread.c:467 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 0 UID: 0 PID: 5314 Comm: syz.0.0 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_lvl+0xe8/0x150 lib/dump_stack.c:120 bad_page+0x17f/0x1c0 mm/page_alloc.c:676 free_page_is_bad mm/page_alloc.c:1120 [inline] __free_pages_prepare mm/page_alloc.c:1424 [inline] __free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2977 bpf_xdp_shrink_data net/core/filter.c:4204 [inline] bpf_xdp_frags_shrink_tail+0x4f7/0x7f0 net/core/filter.c:4228 ____bpf_xdp_adjust_tail net/core/filter.c:4250 [inline] bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4243 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+0x603/0x1490 net/core/dev.c:5428 netif_receive_generic_xdp net/core/dev.c:5544 [inline] do_xdp_generic+0xac5/0x12e0 net/core/dev.c:5606 tun_get_user+0x247d/0x3dd0 drivers/net/tun.c:1872 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbceb35cece 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:00007fbcec27bfb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fbcec27c6c0 RCX: 00007fbceb35cece RDX: 000000000000fdef RSI: 0000200000000400 RDI: 00000000000000c8 RBP: 00007fbceb432b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fbceb616038 R14: 00007fbceb615fa0 R15: 00007ffcfb255238 BUG: Bad page state in process syz.0.0 pfn:415ae page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880415aea00 pfn:0x415ae flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801f35c000 0000000000000000 raw: ffff8880415aea00 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 5314, tgid 5313 (syz.0.0), ts 75058235831, free_ts 73197063538 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1888 prep_new_page mm/page_alloc.c:1896 [inline] get_page_from_freelist+0x24dc/0x2580 mm/page_alloc.c:3961 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5249 __alloc_pages_noprof mm/page_alloc.c:5283 [inline] alloc_pages_bulk_noprof+0x558/0x700 mm/page_alloc.c:5203 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x14c/0x710 net/core/page_pool.c:616 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+0xc21/0x1680 net/core/skbuff.c:993 netif_skb_check_for_xdp net/core/dev.c:5497 [inline] netif_receive_generic_xdp net/core/dev.c:5538 [inline] do_xdp_generic+0x76b/0x12e0 net/core/dev.c:5606 tun_get_user+0x247d/0x3dd0 drivers/net/tun.c:1872 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1432 [inline] __free_frozen_pages+0xc00/0xd90 mm/page_alloc.c:2977 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869 handle_softirqs+0x22a/0x870 kernel/softirq.c:622 run_ksoftirqd+0x36/0x60 kernel/softirq.c:1063 smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160 kthread+0x388/0x470 kernel/kthread.c:467 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 0 UID: 0 PID: 5314 Comm: syz.0.0 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_lvl+0xe8/0x150 lib/dump_stack.c:120 bad_page+0x17f/0x1c0 mm/page_alloc.c:676 free_page_is_bad mm/page_alloc.c:1120 [inline] __free_pages_prepare mm/page_alloc.c:1424 [inline] __free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2977 bpf_xdp_shrink_data net/core/filter.c:4204 [inline] bpf_xdp_frags_shrink_tail+0x4f7/0x7f0 net/core/filter.c:4228 ____bpf_xdp_adjust_tail net/core/filter.c:4250 [inline] bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4243 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+0x603/0x1490 net/core/dev.c:5428 netif_receive_generic_xdp net/core/dev.c:5544 [inline] do_xdp_generic+0xac5/0x12e0 net/core/dev.c:5606 tun_get_user+0x247d/0x3dd0 drivers/net/tun.c:1872 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbceb35cece 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:00007fbcec27bfb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fbcec27c6c0 RCX: 00007fbceb35cece RDX: 000000000000fdef RSI: 0000200000000400 RDI: 00000000000000c8 RBP: 00007fbceb432b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fbceb616038 R14: 00007fbceb615fa0 R15: 00007ffcfb255238 BUG: Bad page state in process syz.0.0 pfn:32a28 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888032a28dc0 pfn:0x32a28 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801f35c000 0000000000000000 raw: ffff888032a28dc0 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 5314, tgid 5313 (syz.0.0), ts 75058224242, free_ts 73197067999 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1888 prep_new_page mm/page_alloc.c:1896 [inline] get_page_from_freelist+0x24dc/0x2580 mm/page_alloc.c:3961 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5249 __alloc_pages_noprof mm/page_alloc.c:5283 [inline] alloc_pages_bulk_noprof+0x558/0x700 mm/page_alloc.c:5203 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x14c/0x710 net/core/page_pool.c:616 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+0xc21/0x1680 net/core/skbuff.c:993 netif_skb_check_for_xdp net/core/dev.c:5497 [inline] netif_receive_generic_xdp net/core/dev.c:5538 [inline] do_xdp_generic+0x76b/0x12e0 net/core/dev.c:5606 tun_get_user+0x247d/0x3dd0 drivers/net/tun.c:1872 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1432 [inline] __free_frozen_pages+0xc00/0xd90 mm/page_alloc.c:2977 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869 handle_softirqs+0x22a/0x870 kernel/softirq.c:622 run_ksoftirqd+0x36/0x60 kernel/softirq.c:1063 smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160 kthread+0x388/0x470 kernel/kthread.c:467 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 0 UID: 0 PID: 5314 Comm: syz.0.0 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_lvl+0xe8/0x150 lib/dump_stack.c:120 bad_page+0x17f/0x1c0 mm/page_alloc.c:676 free_page_is_bad mm/page_alloc.c:1120 [inline] __free_pages_prepare mm/page_alloc.c:1424 [inline] __free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2977 bpf_xdp_shrink_data net/core/filter.c:4204 [inline] bpf_xdp_frags_shrink_tail+0x4f7/0x7f0 net/core/filter.c:4228 ____bpf_xdp_adjust_tail net/core/filter.c:4250 [inline] bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4243 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+0x603/0x1490 net/core/dev.c:5428 netif_receive_generic_xdp net/core/dev.c:5544 [inline] do_xdp_generic+0xac5/0x12e0 net/core/dev.c:5606 tun_get_user+0x247d/0x3dd0 drivers/net/tun.c:1872 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbceb35cece 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:00007fbcec27bfb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fbcec27c6c0 RCX: 00007fbceb35cece RDX: 000000000000fdef RSI: 0000200000000400 RDI: 00000000000000c8 RBP: 00007fbceb432b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fbceb616038 R14: 00007fbceb615fa0 R15: 00007ffcfb255238 BUG: Bad page state in process syz.0.0 pfn:390a1 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880390a1b40 pfn:0x390a1 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801f35c000 0000000000000000 raw: ffff8880390a1b40 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 5314, tgid 5313 (syz.0.0), ts 75058211899, free_ts 73197073650 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1888 prep_new_page mm/page_alloc.c:1896 [inline] get_page_from_freelist+0x24dc/0x2580 mm/page_alloc.c:3961 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5249 __alloc_pages_noprof mm/page_alloc.c:5283 [inline] alloc_pages_bulk_noprof+0x558/0x700 mm/page_alloc.c:5203 alloc_pages_bulk_node_noprof include/linux/gfp.h:255 [inline] __page_pool_alloc_netmems_slow+0x14c/0x710 net/core/page_pool.c:616 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+0xc21/0x1680 net/core/skbuff.c:993 netif_skb_check_for_xdp net/core/dev.c:5497 [inline] netif_receive_generic_xdp net/core/dev.c:5538 [inline] do_xdp_generic+0x76b/0x12e0 net/core/dev.c:5606 tun_get_user+0x247d/0x3dd0 drivers/net/tun.c:1872 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1432 [inline] __free_frozen_pages+0xc00/0xd90 mm/page_alloc.c:2977 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869 handle_softirqs+0x22a/0x870 kernel/softirq.c:622 run_ksoftirqd+0x36/0x60 kernel/softirq.c:1063 smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160 kthread+0x388/0x470 kernel/kthread.c:467 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 0 UID: 0 PID: 5314 Comm: syz.0.0 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_lvl+0xe8/0x150 lib/dump_stack.c:120 bad_page+0x17f/0x1c0 mm/page_alloc.c:676 free_page_is_bad mm/page_alloc.c:1120 [inline] __free_pages_prepare mm/page_alloc.c:1424 [inline] __free_frozen_pages+0xd37/0xd90 mm/page_alloc.c:2977 bpf_xdp_shrink_data net/core/filter.c:4204 [inline] bpf_xdp_frags_shrink_tail+0x4f7/0x7f0 net/core/filter.c:4228 ____bpf_xdp_adjust_tail net/core/filter.c:4250 [inline] bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4243 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+0x603/0x1490 net/core/dev.c:5428 netif_receive_generic_xdp net/core/dev.c:5544 [inline] do_xdp_generic+0xac5/0x12e0 net/core/dev.c:5606 tun_get_user+0x247d/0x3dd0 drivers/net/tun.c:1872 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x61d/0xb90 fs/read_write.c:688 ksys_write+0x150/0x270 fs/read_write.c:740 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbceb35cece 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:00007fbcec27bfb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fbcec27c6c0 RCX: 00007fbceb35cece RDX: 000000000000fdef RSI: 0000200000000400 RDI: 00000000000000c8 RBP: 00007fbceb432b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fbceb616038 R14: 00007fbceb615fa0 R15: 00007ffcfb255238