BUG: Bad page state in process syz.0.16 pfn:54ba8 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888054ba83c0 pfn:0x54ba8 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e89f000 0000000000000000 raw: ffff888054ba83c0 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 5750, tgid 5749 (syz.0.16), ts 140177176424, free_ts 140030627126 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5148 __alloc_pages_noprof mm/page_alloc.c:5182 [inline] alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:5102 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_netmems_slow+0x127/0x740 net/core/page_pool.c:569 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+0xb47/0x13e0 net/core/skbuff.c:951 netif_skb_check_for_xdp net/core/dev.c:5341 [inline] netif_receive_generic_xdp net/core/dev.c:5382 [inline] do_xdp_generic+0x699/0x11a0 net/core/dev.c:5450 __netif_receive_skb_core+0x18f4/0x4380 net/core/dev.c:5801 __netif_receive_skb_one_core net/core/dev.c:5989 [inline] __netif_receive_skb+0x72/0x380 net/core/dev.c:6104 netif_receive_skb_internal net/core/dev.c:6190 [inline] netif_receive_skb+0x1cb/0x790 net/core/dev.c:6249 tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485 tun_get_user+0x2b65/0x3ea0 drivers/net/tun.c:1953 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c9/0xb30 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 page last free pid 5688 tgid 5688 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0xbc4/0xd30 mm/page_alloc.c:2895 discard_slab mm/slub.c:2758 [inline] __put_partials+0x156/0x1a0 mm/slub.c:3223 put_cpu_partial+0x17c/0x250 mm/slub.c:3298 __slab_free+0x2d5/0x3c0 mm/slub.c:4565 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x97/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:340 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4191 [inline] slab_alloc_node mm/slub.c:4240 [inline] kmem_cache_alloc_node_noprof+0x1bb/0x3c0 mm/slub.c:4292 __alloc_skb+0x112/0x2d0 net/core/skbuff.c:659 netlink_sendmsg+0x5c6/0xb30 net/netlink/af_netlink.c:1871 sock_sendmsg_nosec net/socket.c:714 [inline] __sock_sendmsg+0x219/0x270 net/socket.c:729 __sys_sendto+0x3bd/0x520 net/socket.c:2231 __do_sys_sendto net/socket.c:2238 [inline] __se_sys_sendto net/socket.c:2234 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2234 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5750 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~bpo12+1 04/01/2014 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 bad_page+0x180/0x1c0 mm/page_alloc.c:650 free_page_is_bad mm/page_alloc.c:1083 [inline] free_pages_prepare mm/page_alloc.c:1387 [inline] __free_frozen_pages+0xce2/0xd30 mm/page_alloc.c:2895 bpf_xdp_shrink_data net/core/filter.c:4188 [inline] bpf_xdp_frags_shrink_tail+0x4f7/0x7f0 net/core/filter.c:4212 ____bpf_xdp_adjust_tail net/core/filter.c:4234 [inline] bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4227 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:662 [inline] bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5272 netif_receive_generic_xdp net/core/dev.c:5388 [inline] do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5450 __netif_receive_skb_core+0x18f4/0x4380 net/core/dev.c:5801 __netif_receive_skb_one_core net/core/dev.c:5989 [inline] __netif_receive_skb+0x72/0x380 net/core/dev.c:6104 netif_receive_skb_internal net/core/dev.c:6190 [inline] netif_receive_skb+0x1cb/0x790 net/core/dev.c:6249 tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485 tun_get_user+0x2b65/0x3ea0 drivers/net/tun.c:1953 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c9/0xb30 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6d23f8d3df Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007f6d24d12000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6d241b5fa0 RCX: 00007f6d23f8d3df RDX: 0000000000011dc0 RSI: 00002000000004c0 RDI: 00000000000000c8 RBP: 00007f6d24010b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6d241b5fa0 R15: 00007ffd7c7dc758 BUG: Bad page state in process syz.0.16 pfn:54b8c page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888054b8c2d0 pfn:0x54b8c flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e89f000 0000000000000000 raw: ffff888054b8c2d0 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 5750, tgid 5749 (syz.0.16), ts 140177165377, free_ts 140030638852 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5148 __alloc_pages_noprof mm/page_alloc.c:5182 [inline] alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:5102 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_netmems_slow+0x127/0x740 net/core/page_pool.c:569 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+0xb47/0x13e0 net/core/skbuff.c:951 netif_skb_check_for_xdp net/core/dev.c:5341 [inline] netif_receive_generic_xdp net/core/dev.c:5382 [inline] do_xdp_generic+0x699/0x11a0 net/core/dev.c:5450 __netif_receive_skb_core+0x18f4/0x4380 net/core/dev.c:5801 __netif_receive_skb_one_core net/core/dev.c:5989 [inline] __netif_receive_skb+0x72/0x380 net/core/dev.c:6104 netif_receive_skb_internal net/core/dev.c:6190 [inline] netif_receive_skb+0x1cb/0x790 net/core/dev.c:6249 tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485 tun_get_user+0x2b65/0x3ea0 drivers/net/tun.c:1953 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c9/0xb30 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 page last free pid 5688 tgid 5688 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0xbc4/0xd30 mm/page_alloc.c:2895 discard_slab mm/slub.c:2758 [inline] __put_partials+0x156/0x1a0 mm/slub.c:3223 put_cpu_partial+0x17c/0x250 mm/slub.c:3298 __slab_free+0x2d5/0x3c0 mm/slub.c:4565 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x97/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:340 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4191 [inline] slab_alloc_node mm/slub.c:4240 [inline] kmem_cache_alloc_node_noprof+0x1bb/0x3c0 mm/slub.c:4292 __alloc_skb+0x112/0x2d0 net/core/skbuff.c:659 netlink_sendmsg+0x5c6/0xb30 net/netlink/af_netlink.c:1871 sock_sendmsg_nosec net/socket.c:714 [inline] __sock_sendmsg+0x219/0x270 net/socket.c:729 __sys_sendto+0x3bd/0x520 net/socket.c:2231 __do_sys_sendto net/socket.c:2238 [inline] __se_sys_sendto net/socket.c:2234 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2234 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5750 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~bpo12+1 04/01/2014 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 bad_page+0x180/0x1c0 mm/page_alloc.c:650 free_page_is_bad mm/page_alloc.c:1083 [inline] free_pages_prepare mm/page_alloc.c:1387 [inline] __free_frozen_pages+0xce2/0xd30 mm/page_alloc.c:2895 bpf_xdp_shrink_data net/core/filter.c:4188 [inline] bpf_xdp_frags_shrink_tail+0x4f7/0x7f0 net/core/filter.c:4212 ____bpf_xdp_adjust_tail net/core/filter.c:4234 [inline] bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4227 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:662 [inline] bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5272 netif_receive_generic_xdp net/core/dev.c:5388 [inline] do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5450 __netif_receive_skb_core+0x18f4/0x4380 net/core/dev.c:5801 __netif_receive_skb_one_core net/core/dev.c:5989 [inline] __netif_receive_skb+0x72/0x380 net/core/dev.c:6104 netif_receive_skb_internal net/core/dev.c:6190 [inline] netif_receive_skb+0x1cb/0x790 net/core/dev.c:6249 tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485 tun_get_user+0x2b65/0x3ea0 drivers/net/tun.c:1953 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c9/0xb30 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6d23f8d3df Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007f6d24d12000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6d241b5fa0 RCX: 00007f6d23f8d3df RDX: 0000000000011dc0 RSI: 00002000000004c0 RDI: 00000000000000c8 RBP: 00007f6d24010b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6d241b5fa0 R15: 00007ffd7c7dc758 BUG: Bad page state in process syz.0.16 pfn:54b9e page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888054b9ef00 pfn:0x54b9e flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e89f000 0000000000000000 raw: ffff888054b9ef00 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 5750, tgid 5749 (syz.0.16), ts 140177153960, free_ts 140030649297 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5148 __alloc_pages_noprof mm/page_alloc.c:5182 [inline] alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:5102 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_netmems_slow+0x127/0x740 net/core/page_pool.c:569 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+0xb47/0x13e0 net/core/skbuff.c:951 netif_skb_check_for_xdp net/core/dev.c:5341 [inline] netif_receive_generic_xdp net/core/dev.c:5382 [inline] do_xdp_generic+0x699/0x11a0 net/core/dev.c:5450 __netif_receive_skb_core+0x18f4/0x4380 net/core/dev.c:5801 __netif_receive_skb_one_core net/core/dev.c:5989 [inline] __netif_receive_skb+0x72/0x380 net/core/dev.c:6104 netif_receive_skb_internal net/core/dev.c:6190 [inline] netif_receive_skb+0x1cb/0x790 net/core/dev.c:6249 tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485 tun_get_user+0x2b65/0x3ea0 drivers/net/tun.c:1953 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c9/0xb30 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 page last free pid 5688 tgid 5688 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0xbc4/0xd30 mm/page_alloc.c:2895 discard_slab mm/slub.c:2758 [inline] __put_partials+0x156/0x1a0 mm/slub.c:3223 put_cpu_partial+0x17c/0x250 mm/slub.c:3298 __slab_free+0x2d5/0x3c0 mm/slub.c:4565 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x97/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:340 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4191 [inline] slab_alloc_node mm/slub.c:4240 [inline] kmem_cache_alloc_node_noprof+0x1bb/0x3c0 mm/slub.c:4292 __alloc_skb+0x112/0x2d0 net/core/skbuff.c:659 netlink_sendmsg+0x5c6/0xb30 net/netlink/af_netlink.c:1871 sock_sendmsg_nosec net/socket.c:714 [inline] __sock_sendmsg+0x219/0x270 net/socket.c:729 __sys_sendto+0x3bd/0x520 net/socket.c:2231 __do_sys_sendto net/socket.c:2238 [inline] __se_sys_sendto net/socket.c:2234 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2234 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5750 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~bpo12+1 04/01/2014 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 bad_page+0x180/0x1c0 mm/page_alloc.c:650 free_page_is_bad mm/page_alloc.c:1083 [inline] free_pages_prepare mm/page_alloc.c:1387 [inline] __free_frozen_pages+0xce2/0xd30 mm/page_alloc.c:2895 bpf_xdp_shrink_data net/core/filter.c:4188 [inline] bpf_xdp_frags_shrink_tail+0x4f7/0x7f0 net/core/filter.c:4212 ____bpf_xdp_adjust_tail net/core/filter.c:4234 [inline] bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4227 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:662 [inline] bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5272 netif_receive_generic_xdp net/core/dev.c:5388 [inline] do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5450 __netif_receive_skb_core+0x18f4/0x4380 net/core/dev.c:5801 __netif_receive_skb_one_core net/core/dev.c:5989 [inline] __netif_receive_skb+0x72/0x380 net/core/dev.c:6104 netif_receive_skb_internal net/core/dev.c:6190 [inline] netif_receive_skb+0x1cb/0x790 net/core/dev.c:6249 tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485 tun_get_user+0x2b65/0x3ea0 drivers/net/tun.c:1953 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c9/0xb30 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6d23f8d3df Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007f6d24d12000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6d241b5fa0 RCX: 00007f6d23f8d3df RDX: 0000000000011dc0 RSI: 00002000000004c0 RDI: 00000000000000c8 RBP: 00007f6d24010b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6d241b5fa0 R15: 00007ffd7c7dc758 BUG: Bad page state in process syz.0.16 pfn:54ba9 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888054ba94b0 pfn:0x54ba9 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e89f000 0000000000000000 raw: ffff888054ba94b0 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 5750, tgid 5749 (syz.0.16), ts 140177142441, free_ts 140030665689 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5148 __alloc_pages_noprof mm/page_alloc.c:5182 [inline] alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:5102 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_netmems_slow+0x127/0x740 net/core/page_pool.c:569 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+0xb47/0x13e0 net/core/skbuff.c:951 netif_skb_check_for_xdp net/core/dev.c:5341 [inline] netif_receive_generic_xdp net/core/dev.c:5382 [inline] do_xdp_generic+0x699/0x11a0 net/core/dev.c:5450 __netif_receive_skb_core+0x18f4/0x4380 net/core/dev.c:5801 __netif_receive_skb_one_core net/core/dev.c:5989 [inline] __netif_receive_skb+0x72/0x380 net/core/dev.c:6104 netif_receive_skb_internal net/core/dev.c:6190 [inline] netif_receive_skb+0x1cb/0x790 net/core/dev.c:6249 tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485 tun_get_user+0x2b65/0x3ea0 drivers/net/tun.c:1953 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c9/0xb30 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 page last free pid 5688 tgid 5688 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0xbc4/0xd30 mm/page_alloc.c:2895 __slab_free+0x303/0x3c0 mm/slub.c:4606 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x97/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:340 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4191 [inline] slab_alloc_node mm/slub.c:4240 [inline] kmem_cache_alloc_node_noprof+0x1bb/0x3c0 mm/slub.c:4292 __alloc_skb+0x112/0x2d0 net/core/skbuff.c:659 netlink_sendmsg+0x5c6/0xb30 net/netlink/af_netlink.c:1871 sock_sendmsg_nosec net/socket.c:714 [inline] __sock_sendmsg+0x219/0x270 net/socket.c:729 __sys_sendto+0x3bd/0x520 net/socket.c:2231 __do_sys_sendto net/socket.c:2238 [inline] __se_sys_sendto net/socket.c:2234 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2234 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5750 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~bpo12+1 04/01/2014 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 bad_page+0x180/0x1c0 mm/page_alloc.c:650 free_page_is_bad mm/page_alloc.c:1083 [inline] free_pages_prepare mm/page_alloc.c:1387 [inline] __free_frozen_pages+0xce2/0xd30 mm/page_alloc.c:2895 bpf_xdp_shrink_data net/core/filter.c:4188 [inline] bpf_xdp_frags_shrink_tail+0x4f7/0x7f0 net/core/filter.c:4212 ____bpf_xdp_adjust_tail net/core/filter.c:4234 [inline] bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4227 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:662 [inline] bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5272 netif_receive_generic_xdp net/core/dev.c:5388 [inline] do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5450 __netif_receive_skb_core+0x18f4/0x4380 net/core/dev.c:5801 __netif_receive_skb_one_core net/core/dev.c:5989 [inline] __netif_receive_skb+0x72/0x380 net/core/dev.c:6104 netif_receive_skb_internal net/core/dev.c:6190 [inline] netif_receive_skb+0x1cb/0x790 net/core/dev.c:6249 tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485 tun_get_user+0x2b65/0x3ea0 drivers/net/tun.c:1953 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c9/0xb30 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6d23f8d3df Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007f6d24d12000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6d241b5fa0 RCX: 00007f6d23f8d3df RDX: 0000000000011dc0 RSI: 00002000000004c0 RDI: 00000000000000c8 RBP: 00007f6d24010b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6d241b5fa0 R15: 00007ffd7c7dc758 BUG: Bad page state in process syz.0.16 pfn:59862 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888059862dc0 pfn:0x59862 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e89f000 0000000000000000 raw: ffff888059862dc0 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 5750, tgid 5749 (syz.0.16), ts 140177131605, free_ts 140043024673 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5148 __alloc_pages_noprof mm/page_alloc.c:5182 [inline] alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:5102 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_netmems_slow+0x127/0x740 net/core/page_pool.c:569 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+0xb47/0x13e0 net/core/skbuff.c:951 netif_skb_check_for_xdp net/core/dev.c:5341 [inline] netif_receive_generic_xdp net/core/dev.c:5382 [inline] do_xdp_generic+0x699/0x11a0 net/core/dev.c:5450 __netif_receive_skb_core+0x18f4/0x4380 net/core/dev.c:5801 __netif_receive_skb_one_core net/core/dev.c:5989 [inline] __netif_receive_skb+0x72/0x380 net/core/dev.c:6104 netif_receive_skb_internal net/core/dev.c:6190 [inline] netif_receive_skb+0x1cb/0x790 net/core/dev.c:6249 tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485 tun_get_user+0x2b65/0x3ea0 drivers/net/tun.c:1953 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c9/0xb30 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 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:1395 [inline] __free_frozen_pages+0xbc4/0xd30 mm/page_alloc.c:2895 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0xca8/0x1770 kernel/rcu/tree.c:2861 handle_softirqs+0x283/0x870 kernel/softirq.c:622 run_ksoftirqd+0x9b/0x100 kernel/softirq.c:1063 smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:160 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x436/0x7d0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 0 UID: 0 PID: 5750 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~bpo12+1 04/01/2014 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 bad_page+0x180/0x1c0 mm/page_alloc.c:650 free_page_is_bad mm/page_alloc.c:1083 [inline] free_pages_prepare mm/page_alloc.c:1387 [inline] __free_frozen_pages+0xce2/0xd30 mm/page_alloc.c:2895 bpf_xdp_shrink_data net/core/filter.c:4188 [inline] bpf_xdp_frags_shrink_tail+0x4f7/0x7f0 net/core/filter.c:4212 ____bpf_xdp_adjust_tail net/core/filter.c:4234 [inline] bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4227 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:662 [inline] bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5272 netif_receive_generic_xdp net/core/dev.c:5388 [inline] do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5450 __netif_receive_skb_core+0x18f4/0x4380 net/core/dev.c:5801 __netif_receive_skb_one_core net/core/dev.c:5989 [inline] __netif_receive_skb+0x72/0x380 net/core/dev.c:6104 netif_receive_skb_internal net/core/dev.c:6190 [inline] netif_receive_skb+0x1cb/0x790 net/core/dev.c:6249 tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485 tun_get_user+0x2b65/0x3ea0 drivers/net/tun.c:1953 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c9/0xb30 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6d23f8d3df Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007f6d24d12000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6d241b5fa0 RCX: 00007f6d23f8d3df RDX: 0000000000011dc0 RSI: 00002000000004c0 RDI: 00000000000000c8 RBP: 00007f6d24010b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6d241b5fa0 R15: 00007ffd7c7dc758 BUG: Bad page state in process syz.0.16 pfn:3ee0d page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803ee0ddc0 pfn:0x3ee0d flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e89f000 0000000000000000 raw: ffff88803ee0ddc0 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 5750, tgid 5749 (syz.0.16), ts 140177120485, free_ts 140043043657 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5148 __alloc_pages_noprof mm/page_alloc.c:5182 [inline] alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:5102 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_netmems_slow+0x127/0x740 net/core/page_pool.c:569 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+0xb47/0x13e0 net/core/skbuff.c:951 netif_skb_check_for_xdp net/core/dev.c:5341 [inline] netif_receive_generic_xdp net/core/dev.c:5382 [inline] do_xdp_generic+0x699/0x11a0 net/core/dev.c:5450 __netif_receive_skb_core+0x18f4/0x4380 net/core/dev.c:5801 __netif_receive_skb_one_core net/core/dev.c:5989 [inline] __netif_receive_skb+0x72/0x380 net/core/dev.c:6104 netif_receive_skb_internal net/core/dev.c:6190 [inline] netif_receive_skb+0x1cb/0x790 net/core/dev.c:6249 tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485 tun_get_user+0x2b65/0x3ea0 drivers/net/tun.c:1953 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c9/0xb30 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 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:1395 [inline] __free_frozen_pages+0xbc4/0xd30 mm/page_alloc.c:2895 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0xca8/0x1770 kernel/rcu/tree.c:2861 handle_softirqs+0x283/0x870 kernel/softirq.c:622 run_ksoftirqd+0x9b/0x100 kernel/softirq.c:1063 smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:160 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x436/0x7d0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 0 UID: 0 PID: 5750 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~bpo12+1 04/01/2014 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 bad_page+0x180/0x1c0 mm/page_alloc.c:650 free_page_is_bad mm/page_alloc.c:1083 [inline] free_pages_prepare mm/page_alloc.c:1387 [inline] __free_frozen_pages+0xce2/0xd30 mm/page_alloc.c:2895 bpf_xdp_shrink_data net/core/filter.c:4188 [inline] bpf_xdp_frags_shrink_tail+0x4f7/0x7f0 net/core/filter.c:4212 ____bpf_xdp_adjust_tail net/core/filter.c:4234 [inline] bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4227 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:662 [inline] bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5272 netif_receive_generic_xdp net/core/dev.c:5388 [inline] do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5450 __netif_receive_skb_core+0x18f4/0x4380 net/core/dev.c:5801 __netif_receive_skb_one_core net/core/dev.c:5989 [inline] __netif_receive_skb+0x72/0x380 net/core/dev.c:6104 netif_receive_skb_internal net/core/dev.c:6190 [inline] netif_receive_skb+0x1cb/0x790 net/core/dev.c:6249 tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485 tun_get_user+0x2b65/0x3ea0 drivers/net/tun.c:1953 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c9/0xb30 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6d23f8d3df Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007f6d24d12000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6d241b5fa0 RCX: 00007f6d23f8d3df RDX: 0000000000011dc0 RSI: 00002000000004c0 RDI: 00000000000000c8 RBP: 00007f6d24010b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6d241b5fa0 R15: 00007ffd7c7dc758 BUG: Bad page state in process syz.0.16 pfn:410fc page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880410fcdc0 pfn:0x410fc flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e89f000 0000000000000000 raw: ffff8880410fcdc0 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 5750, tgid 5749 (syz.0.16), ts 140177109405, free_ts 140043060905 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5148 __alloc_pages_noprof mm/page_alloc.c:5182 [inline] alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:5102 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_netmems_slow+0x127/0x740 net/core/page_pool.c:569 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+0xb47/0x13e0 net/core/skbuff.c:951 netif_skb_check_for_xdp net/core/dev.c:5341 [inline] netif_receive_generic_xdp net/core/dev.c:5382 [inline] do_xdp_generic+0x699/0x11a0 net/core/dev.c:5450 __netif_receive_skb_core+0x18f4/0x4380 net/core/dev.c:5801 __netif_receive_skb_one_core net/core/dev.c:5989 [inline] __netif_receive_skb+0x72/0x380 net/core/dev.c:6104 netif_receive_skb_internal net/core/dev.c:6190 [inline] netif_receive_skb+0x1cb/0x790 net/core/dev.c:6249 tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485 tun_get_user+0x2b65/0x3ea0 drivers/net/tun.c:1953 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c9/0xb30 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 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:1395 [inline] __free_frozen_pages+0xbc4/0xd30 mm/page_alloc.c:2895 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0xca8/0x1770 kernel/rcu/tree.c:2861 handle_softirqs+0x283/0x870 kernel/softirq.c:622 run_ksoftirqd+0x9b/0x100 kernel/softirq.c:1063 smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:160 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x436/0x7d0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 0 UID: 0 PID: 5750 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~bpo12+1 04/01/2014 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 bad_page+0x180/0x1c0 mm/page_alloc.c:650 free_page_is_bad mm/page_alloc.c:1083 [inline] free_pages_prepare mm/page_alloc.c:1387 [inline] __free_frozen_pages+0xce2/0xd30 mm/page_alloc.c:2895 bpf_xdp_shrink_data net/core/filter.c:4188 [inline] bpf_xdp_frags_shrink_tail+0x4f7/0x7f0 net/core/filter.c:4212 ____bpf_xdp_adjust_tail net/core/filter.c:4234 [inline] bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4227 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:662 [inline] bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5272 netif_receive_generic_xdp net/core/dev.c:5388 [inline] do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5450 __netif_receive_skb_core+0x18f4/0x4380 net/core/dev.c:5801 __netif_receive_skb_one_core net/core/dev.c:5989 [inline] __netif_receive_skb+0x72/0x380 net/core/dev.c:6104 netif_receive_skb_internal net/core/dev.c:6190 [inline] netif_receive_skb+0x1cb/0x790 net/core/dev.c:6249 tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485 tun_get_user+0x2b65/0x3ea0 drivers/net/tun.c:1953 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c9/0xb30 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6d23f8d3df Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007f6d24d12000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6d241b5fa0 RCX: 00007f6d23f8d3df RDX: 0000000000011dc0 RSI: 00002000000004c0 RDI: 00000000000000c8 RBP: 00007f6d24010b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6d241b5fa0 R15: 00007ffd7c7dc758 BUG: Bad page state in process syz.0.16 pfn:54b3a page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888054b3a280 pfn:0x54b3a flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e89f000 0000000000000000 raw: ffff888054b3a280 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 5750, tgid 5749 (syz.0.16), ts 140177097165, free_ts 140043076299 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5148 __alloc_pages_noprof mm/page_alloc.c:5182 [inline] alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:5102 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_netmems_slow+0x127/0x740 net/core/page_pool.c:569 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+0xb47/0x13e0 net/core/skbuff.c:951 netif_skb_check_for_xdp net/core/dev.c:5341 [inline] netif_receive_generic_xdp net/core/dev.c:5382 [inline] do_xdp_generic+0x699/0x11a0 net/core/dev.c:5450 __netif_receive_skb_core+0x18f4/0x4380 net/core/dev.c:5801 __netif_receive_skb_one_core net/core/dev.c:5989 [inline] __netif_receive_skb+0x72/0x380 net/core/dev.c:6104 netif_receive_skb_internal net/core/dev.c:6190 [inline] netif_receive_skb+0x1cb/0x790 net/core/dev.c:6249 tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485 tun_get_user+0x2b65/0x3ea0 drivers/net/tun.c:1953 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c9/0xb30 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 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:1395 [inline] __free_frozen_pages+0xbc4/0xd30 mm/page_alloc.c:2895 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0xca8/0x1770 kernel/rcu/tree.c:2861 handle_softirqs+0x283/0x870 kernel/softirq.c:622 run_ksoftirqd+0x9b/0x100 kernel/softirq.c:1063 smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:160 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x436/0x7d0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 0 UID: 0 PID: 5750 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~bpo12+1 04/01/2014 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 bad_page+0x180/0x1c0 mm/page_alloc.c:650 free_page_is_bad mm/page_alloc.c:1083 [inline] free_pages_prepare mm/page_alloc.c:1387 [inline] __free_frozen_pages+0xce2/0xd30 mm/page_alloc.c:2895 bpf_xdp_shrink_data net/core/filter.c:4188 [inline] bpf_xdp_frags_shrink_tail+0x4f7/0x7f0 net/core/filter.c:4212 ____bpf_xdp_adjust_tail net/core/filter.c:4234 [inline] bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4227 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:662 [inline] bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5272 netif_receive_generic_xdp net/core/dev.c:5388 [inline] do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5450 __netif_receive_skb_core+0x18f4/0x4380 net/core/dev.c:5801 __netif_receive_skb_one_core net/core/dev.c:5989 [inline] __netif_receive_skb+0x72/0x380 net/core/dev.c:6104 netif_receive_skb_internal net/core/dev.c:6190 [inline] netif_receive_skb+0x1cb/0x790 net/core/dev.c:6249 tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485 tun_get_user+0x2b65/0x3ea0 drivers/net/tun.c:1953 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c9/0xb30 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6d23f8d3df Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007f6d24d12000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6d241b5fa0 RCX: 00007f6d23f8d3df RDX: 0000000000011dc0 RSI: 00002000000004c0 RDI: 00000000000000c8 RBP: 00007f6d24010b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6d241b5fa0 R15: 00007ffd7c7dc758 BUG: Bad page state in process syz.0.16 pfn:355f6 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880355f68c0 pfn:0x355f6 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e89f000 0000000000000000 raw: ffff8880355f68c0 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 5750, tgid 5749 (syz.0.16), ts 140177084941, free_ts 140043090660 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5148 __alloc_pages_noprof mm/page_alloc.c:5182 [inline] alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:5102 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_netmems_slow+0x127/0x740 net/core/page_pool.c:569 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+0xb47/0x13e0 net/core/skbuff.c:951 netif_skb_check_for_xdp net/core/dev.c:5341 [inline] netif_receive_generic_xdp net/core/dev.c:5382 [inline] do_xdp_generic+0x699/0x11a0 net/core/dev.c:5450 __netif_receive_skb_core+0x18f4/0x4380 net/core/dev.c:5801 __netif_receive_skb_one_core net/core/dev.c:5989 [inline] __netif_receive_skb+0x72/0x380 net/core/dev.c:6104 netif_receive_skb_internal net/core/dev.c:6190 [inline] netif_receive_skb+0x1cb/0x790 net/core/dev.c:6249 tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485 tun_get_user+0x2b65/0x3ea0 drivers/net/tun.c:1953 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c9/0xb30 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 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:1395 [inline] __free_frozen_pages+0xbc4/0xd30 mm/page_alloc.c:2895 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0xca8/0x1770 kernel/rcu/tree.c:2861 handle_softirqs+0x283/0x870 kernel/softirq.c:622 run_ksoftirqd+0x9b/0x100 kernel/softirq.c:1063 smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:160 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x436/0x7d0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 0 UID: 0 PID: 5750 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~bpo12+1 04/01/2014 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 bad_page+0x180/0x1c0 mm/page_alloc.c:650 free_page_is_bad mm/page_alloc.c:1083 [inline] free_pages_prepare mm/page_alloc.c:1387 [inline] __free_frozen_pages+0xce2/0xd30 mm/page_alloc.c:2895 bpf_xdp_shrink_data net/core/filter.c:4188 [inline] bpf_xdp_frags_shrink_tail+0x4f7/0x7f0 net/core/filter.c:4212 ____bpf_xdp_adjust_tail net/core/filter.c:4234 [inline] bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4227 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:662 [inline] bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5272 netif_receive_generic_xdp net/core/dev.c:5388 [inline] do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5450 __netif_receive_skb_core+0x18f4/0x4380 net/core/dev.c:5801 __netif_receive_skb_one_core net/core/dev.c:5989 [inline] __netif_receive_skb+0x72/0x380 net/core/dev.c:6104 netif_receive_skb_internal net/core/dev.c:6190 [inline] netif_receive_skb+0x1cb/0x790 net/core/dev.c:6249 tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485 tun_get_user+0x2b65/0x3ea0 drivers/net/tun.c:1953 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c9/0xb30 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6d23f8d3df Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007f6d24d12000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6d241b5fa0 RCX: 00007f6d23f8d3df RDX: 0000000000011dc0 RSI: 00002000000004c0 RDI: 00000000000000c8 RBP: 00007f6d24010b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6d241b5fa0 R15: 00007ffd7c7dc758 BUG: Bad page state in process syz.0.16 pfn:3ef13 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803ef13500 pfn:0x3ef13 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e89f000 0000000000000000 raw: ffff88803ef13500 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 5750, tgid 5749 (syz.0.16), ts 140177073736, free_ts 140043104015 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5148 __alloc_pages_noprof mm/page_alloc.c:5182 [inline] alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:5102 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_netmems_slow+0x127/0x740 net/core/page_pool.c:569 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+0xb47/0x13e0 net/core/skbuff.c:951 netif_skb_check_for_xdp net/core/dev.c:5341 [inline] netif_receive_generic_xdp net/core/dev.c:5382 [inline] do_xdp_generic+0x699/0x11a0 net/core/dev.c:5450 __netif_receive_skb_core+0x18f4/0x4380 net/core/dev.c:5801 __netif_receive_skb_one_core net/core/dev.c:5989 [inline] __netif_receive_skb+0x72/0x380 net/core/dev.c:6104 netif_receive_skb_internal net/core/dev.c:6190 [inline] netif_receive_skb+0x1cb/0x790 net/core/dev.c:6249 tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485 tun_get_user+0x2b65/0x3ea0 drivers/net/tun.c:1953 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c9/0xb30 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 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:1395 [inline] __free_frozen_pages+0xbc4/0xd30 mm/page_alloc.c:2895 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0xca8/0x1770 kernel/rcu/tree.c:2861 handle_softirqs+0x283/0x870 kernel/softirq.c:622 run_ksoftirqd+0x9b/0x100 kernel/softirq.c:1063 smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:160 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x436/0x7d0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 0 UID: 0 PID: 5750 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~bpo12+1 04/01/2014 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 bad_page+0x180/0x1c0 mm/page_alloc.c:650 free_page_is_bad mm/page_alloc.c:1083 [inline] free_pages_prepare mm/page_alloc.c:1387 [inline] __free_frozen_pages+0xce2/0xd30 mm/page_alloc.c:2895 bpf_xdp_shrink_data net/core/filter.c:4188 [inline] bpf_xdp_frags_shrink_tail+0x4f7/0x7f0 net/core/filter.c:4212 ____bpf_xdp_adjust_tail net/core/filter.c:4234 [inline] bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4227 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:662 [inline] bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5272 netif_receive_generic_xdp net/core/dev.c:5388 [inline] do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5450 __netif_receive_skb_core+0x18f4/0x4380 net/core/dev.c:5801 __netif_receive_skb_one_core net/core/dev.c:5989 [inline] __netif_receive_skb+0x72/0x380 net/core/dev.c:6104 netif_receive_skb_internal net/core/dev.c:6190 [inline] netif_receive_skb+0x1cb/0x790 net/core/dev.c:6249 tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485 tun_get_user+0x2b65/0x3ea0 drivers/net/tun.c:1953 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c9/0xb30 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6d23f8d3df Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007f6d24d12000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6d241b5fa0 RCX: 00007f6d23f8d3df RDX: 0000000000011dc0 RSI: 00002000000004c0 RDI: 00000000000000c8 RBP: 00007f6d24010b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6d241b5fa0 R15: 00007ffd7c7dc758 BUG: Bad page state in process syz.0.16 pfn:3f198 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803f198000 pfn:0x3f198 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 dead000000000040 ffff88801e89f000 0000000000000000 raw: ffff88803f198000 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 5750, tgid 5749 (syz.0.16), ts 140177061518, free_ts 140043119885 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5148 __alloc_pages_noprof mm/page_alloc.c:5182 [inline] alloc_pages_bulk_noprof+0x560/0x710 mm/page_alloc.c:5102 alloc_pages_bulk_node_noprof include/linux/gfp.h:254 [inline] __page_pool_alloc_netmems_slow+0x127/0x740 net/core/page_pool.c:569 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+0xb47/0x13e0 net/core/skbuff.c:951 netif_skb_check_for_xdp net/core/dev.c:5341 [inline] netif_receive_generic_xdp net/core/dev.c:5382 [inline] do_xdp_generic+0x699/0x11a0 net/core/dev.c:5450 __netif_receive_skb_core+0x18f4/0x4380 net/core/dev.c:5801 __netif_receive_skb_one_core net/core/dev.c:5989 [inline] __netif_receive_skb+0x72/0x380 net/core/dev.c:6104 netif_receive_skb_internal net/core/dev.c:6190 [inline] netif_receive_skb+0x1cb/0x790 net/core/dev.c:6249 tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485 tun_get_user+0x2b65/0x3ea0 drivers/net/tun.c:1953 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c9/0xb30 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 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:1395 [inline] __free_frozen_pages+0xbc4/0xd30 mm/page_alloc.c:2895 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0xca8/0x1770 kernel/rcu/tree.c:2861 handle_softirqs+0x283/0x870 kernel/softirq.c:622 run_ksoftirqd+0x9b/0x100 kernel/softirq.c:1063 smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:160 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x436/0x7d0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: CPU: 0 UID: 0 PID: 5750 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~bpo12+1 04/01/2014 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 bad_page+0x180/0x1c0 mm/page_alloc.c:650 free_page_is_bad mm/page_alloc.c:1083 [inline] free_pages_prepare mm/page_alloc.c:1387 [inline] __free_frozen_pages+0xce2/0xd30 mm/page_alloc.c:2895 bpf_xdp_shrink_data net/core/filter.c:4188 [inline] bpf_xdp_frags_shrink_tail+0x4f7/0x7f0 net/core/filter.c:4212 ____bpf_xdp_adjust_tail net/core/filter.c:4234 [inline] bpf_xdp_adjust_tail+0x1d6/0x220 net/core/filter.c:4227 bpf_prog_5d7dc57dfd7f985a+0x1e/0x24 __bpf_prog_run include/linux/filter.h:721 [inline] bpf_prog_run_xdp include/net/xdp.h:662 [inline] bpf_prog_run_generic_xdp+0x64b/0x14c0 net/core/dev.c:5272 netif_receive_generic_xdp net/core/dev.c:5388 [inline] do_xdp_generic+0x9f7/0x11a0 net/core/dev.c:5450 __netif_receive_skb_core+0x18f4/0x4380 net/core/dev.c:5801 __netif_receive_skb_one_core net/core/dev.c:5989 [inline] __netif_receive_skb+0x72/0x380 net/core/dev.c:6104 netif_receive_skb_internal net/core/dev.c:6190 [inline] netif_receive_skb+0x1cb/0x790 net/core/dev.c:6249 tun_rx_batched+0x1b9/0x730 drivers/net/tun.c:1485 tun_get_user+0x2b65/0x3ea0 drivers/net/tun.c:1953 tun_chr_write_iter+0x113/0x200 drivers/net/tun.c:1999 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c9/0xb30 fs/read_write.c:686 ksys_write+0x145/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6d23f8d3df Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48 RSP: 002b:00007f6d24d12000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f6d241b5fa0 RCX: 00007f6d23f8d3df RDX: 0000000000011dc0 RSI: 00002000000004c0 RDI: 00000000000000c8 RBP: 00007f6d24010b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6d241b5fa0 R15: 00007ffd7c7dc758