BUG: Bad page map in process syz-executor.1 pte:999999997d829007 pmd:0010c067 addr:00007fdedb121000 vm_flags:180400fb anon_vma:0000000000000000 mapping:ffff888017360c48 index:60 file:kcov fault:0x0 mmap:kcov_mmap readpage:0x0 CPU: 1 PID: 12592 Comm: syz-executor.1 Not tainted 5.15.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_bad_pte.cold+0x2bc/0x2e5 mm/memory.c:559 vm_normal_page+0x10c/0x2a0 mm/memory.c:622 zap_pte_range mm/memory.c:1335 [inline] zap_pmd_range mm/memory.c:1481 [inline] zap_pud_range mm/memory.c:1510 [inline] zap_p4d_range mm/memory.c:1531 [inline] unmap_page_range+0xb2c/0x2a10 mm/memory.c:1552 unmap_single_vma+0x198/0x310 mm/memory.c:1597 unmap_vmas+0x16d/0x2f0 mm/memory.c:1629 exit_mmap+0x1d0/0x630 mm/mmap.c:3171 __mmput+0x122/0x4b0 kernel/fork.c:1115 mmput+0x58/0x60 kernel/fork.c:1136 exit_mm kernel/exit.c:501 [inline] do_exit+0xabc/0x2a30 kernel/exit.c:812 do_group_exit+0x125/0x310 kernel/exit.c:922 get_signal+0x47f/0x21d0 kernel/signal.c:2855 arch_do_signal_or_restart+0x2a9/0x1c40 arch/x86/kernel/signal.c:865 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x17d/0x290 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fdedc749a39 Code: Unable to access opcode bytes at RIP 0x7fdedc749a0f. RSP: 002b:00007fded9cbf218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007fdedc84cf68 RCX: 00007fdedc749a39 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fdedc84cf68 RBP: 00007fdedc84cf60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fdedc84cf6c R13: 00007fdedcd80b2f R14: 00007fded9cbf300 R15: 0000000000022000 __swap_info_get: Bad swap file entry 4c033333337fffff BUG: Bad page map in process syz-executor.1 pte:9999999900000000 pmd:0010c067 addr:00007fdedb1e2000 vm_flags:180400fb anon_vma:0000000000000000 mapping:ffff888017360c48 index:121 file:kcov fault:0x0 mmap:kcov_mmap readpage:0x0 CPU: 1 PID: 12592 Comm: syz-executor.1 Tainted: G B 5.15.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_bad_pte.cold+0x2bc/0x2e5 mm/memory.c:559 zap_pte_range mm/memory.c:1412 [inline] zap_pmd_range mm/memory.c:1481 [inline] zap_pud_range mm/memory.c:1510 [inline] zap_p4d_range mm/memory.c:1531 [inline] unmap_page_range+0x2018/0x2a10 mm/memory.c:1552 unmap_single_vma+0x198/0x310 mm/memory.c:1597 unmap_vmas+0x16d/0x2f0 mm/memory.c:1629 exit_mmap+0x1d0/0x630 mm/mmap.c:3171 __mmput+0x122/0x4b0 kernel/fork.c:1115 mmput+0x58/0x60 kernel/fork.c:1136 exit_mm kernel/exit.c:501 [inline] do_exit+0xabc/0x2a30 kernel/exit.c:812 do_group_exit+0x125/0x310 kernel/exit.c:922 get_signal+0x47f/0x21d0 kernel/signal.c:2855 arch_do_signal_or_restart+0x2a9/0x1c40 arch/x86/kernel/signal.c:865 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x17d/0x290 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fdedc749a39 Code: Unable to access opcode bytes at RIP 0x7fdedc749a0f. RSP: 002b:00007fded9cbf218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007fdedc84cf68 RCX: 00007fdedc749a39 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fdedc84cf68 RBP: 00007fdedc84cf60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fdedc84cf6c R13: 00007fdedcd80b2f R14: 00007fded9cbf300 R15: 0000000000022000 __swap_info_get: Bad swap file entry 4c03337fb37fffff BUG: Bad page map in process syz-executor.1 pte:9999009900000000 pmd:0010d067 addr:00007fdedb2a3000 vm_flags:180400fb anon_vma:0000000000000000 mapping:ffff888017360c48 index:1e2 file:kcov fault:0x0 mmap:kcov_mmap readpage:0x0 CPU: 0 PID: 12592 Comm: syz-executor.1 Tainted: G B 5.15.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_bad_pte.cold+0x2bc/0x2e5 mm/memory.c:559 zap_pte_range mm/memory.c:1412 [inline] zap_pmd_range mm/memory.c:1481 [inline] zap_pud_range mm/memory.c:1510 [inline] zap_p4d_range mm/memory.c:1531 [inline] unmap_page_range+0x2018/0x2a10 mm/memory.c:1552 unmap_single_vma+0x198/0x310 mm/memory.c:1597 unmap_vmas+0x16d/0x2f0 mm/memory.c:1629 exit_mmap+0x1d0/0x630 mm/mmap.c:3171 __mmput+0x122/0x4b0 kernel/fork.c:1115 mmput+0x58/0x60 kernel/fork.c:1136 exit_mm kernel/exit.c:501 [inline] do_exit+0xabc/0x2a30 kernel/exit.c:812 do_group_exit+0x125/0x310 kernel/exit.c:922 get_signal+0x47f/0x21d0 kernel/signal.c:2855 arch_do_signal_or_restart+0x2a9/0x1c40 arch/x86/kernel/signal.c:865 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x17d/0x290 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fdedc749a39 Code: Unable to access opcode bytes at RIP 0x7fdedc749a0f. RSP: 002b:00007fded9cbf218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007fdedc84cf68 RCX: 00007fdedc749a39 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fdedc84cf68 RBP: 00007fdedc84cf60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fdedc84cf6c R13: 00007fdedcd80b2f R14: 00007fded9cbf300 R15: 0000000000022000 __swap_info_get: Bad swap file entry 4c037fb3337fffff BUG: Bad page map in process syz-executor.1 pte:9900999900000000 pmd:0010d067 addr:00007fdedb364000 vm_flags:180400fb anon_vma:0000000000000000 mapping:ffff888017360c48 index:a3 file:kcov fault:0x0 mmap:kcov_mmap readpage:0x0 CPU: 0 PID: 12592 Comm: syz-executor.1 Tainted: G B 5.15.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_bad_pte.cold+0x2bc/0x2e5 mm/memory.c:559 zap_pte_range mm/memory.c:1412 [inline] zap_pmd_range mm/memory.c:1481 [inline] zap_pud_range mm/memory.c:1510 [inline] zap_p4d_range mm/memory.c:1531 [inline] unmap_page_range+0x2018/0x2a10 mm/memory.c:1552 unmap_single_vma+0x198/0x310 mm/memory.c:1597 unmap_vmas+0x16d/0x2f0 mm/memory.c:1629 exit_mmap+0x1d0/0x630 mm/mmap.c:3171 __mmput+0x122/0x4b0 kernel/fork.c:1115 mmput+0x58/0x60 kernel/fork.c:1136 exit_mm kernel/exit.c:501 [inline] do_exit+0xabc/0x2a30 kernel/exit.c:812 do_group_exit+0x125/0x310 kernel/exit.c:922 get_signal+0x47f/0x21d0 kernel/signal.c:2855 arch_do_signal_or_restart+0x2a9/0x1c40 arch/x86/kernel/signal.c:865 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x17d/0x290 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fdedc749a39 Code: Unable to access opcode bytes at RIP 0x7fdedc749a0f. RSP: 002b:00007fded9cbf218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007fdedc84cf68 RCX: 00007fdedc749a39 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fdedc84cf68 RBP: 00007fdedc84cf60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fdedc84cf6c R13: 00007fdedcd80b2f R14: 00007fded9cbf300 R15: 0000000000022000 page:ffffea0002402640 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888090099dc0 pfn:0x90099 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffffea00023a1c88 ffffea0001f14ac8 ffff8881441ab640 raw: ffff888090099dc0 00000000000c000a 00000001ffffffff 0000000000000000 page dumped because: VM_BUG_ON_PAGE(PageSlab(page)) page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 8531, ts 1609903721830, free_ts 1606481477249 prep_new_page mm/page_alloc.c:2424 [inline] get_page_from_freelist+0xa72/0x2f80 mm/page_alloc.c:4153 __alloc_pages+0x1b2/0x500 mm/page_alloc.c:5375 alloc_pages+0x1a7/0x300 mm/mempolicy.c:2191 alloc_slab_page mm/slub.c:1770 [inline] allocate_slab mm/slub.c:1907 [inline] new_slab+0x319/0x490 mm/slub.c:1970 ___slab_alloc+0x950/0x1050 mm/slub.c:3001 __slab_alloc.constprop.0+0x4d/0xa0 mm/slub.c:3088 slab_alloc_node mm/slub.c:3179 [inline] kmem_cache_alloc_node+0x11f/0x3d0 mm/slub.c:3249 __alloc_skb+0x20b/0x340 net/core/skbuff.c:414 alloc_skb include/linux/skbuff.h:1116 [inline] nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:664 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:721 [inline] nsim_dev_trap_report_work+0x2ac/0xbd0 drivers/net/netdevsim/dev.c:762 process_one_work+0x9bf/0x16b0 kernel/workqueue.c:2297 worker_thread+0x658/0x11f0 kernel/workqueue.c:2444 kthread+0x3e5/0x4d0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1338 [inline] free_pcp_prepare+0x2c5/0x780 mm/page_alloc.c:1389 free_unref_page_prepare mm/page_alloc.c:3315 [inline] free_unref_page+0x19/0x690 mm/page_alloc.c:3394 qlink_free mm/kasan/quarantine.c:146 [inline] qlist_free_all+0x5a/0xc0 mm/kasan/quarantine.c:165 kasan_quarantine_reduce+0x180/0x200 mm/kasan/quarantine.c:272 __kasan_slab_alloc+0x95/0xb0 mm/kasan/common.c:444 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook mm/slab.h:519 [inline] slab_alloc_node mm/slub.c:3213 [inline] slab_alloc mm/slub.c:3221 [inline] kmem_cache_alloc+0x209/0x390 mm/slub.c:3226 getname_flags.part.0+0x50/0x4f0 fs/namei.c:138 getname_flags include/linux/audit.h:319 [inline] getname+0x8e/0xd0 fs/namei.c:217 do_sys_openat2+0xf5/0x4d0 fs/open.c:1194 do_sys_open fs/open.c:1216 [inline] __do_sys_open fs/open.c:1224 [inline] __se_sys_open fs/open.c:1220 [inline] __x64_sys_open+0x119/0x1c0 fs/open.c:1220 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae ------------[ cut here ]------------ kernel BUG at include/linux/memcontrol.h:400! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 12592 Comm: syz-executor.1 Tainted: G B 5.15.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__page_memcg include/linux/memcontrol.h:400 [inline] RIP: 0010:page_memcg include/linux/memcontrol.h:453 [inline] RIP: 0010:lock_page_memcg+0x60e/0x7d0 mm/memcontrol.c:1984 Code: 48 8d 50 ff a8 01 48 c7 c6 20 9f 98 89 4c 0f 45 fa 4c 89 ff e8 f3 b0 e6 ff 0f 0b 48 c7 c6 e0 9f 98 89 4c 89 ff e8 e2 b0 e6 ff <0f> 0b 48 c7 c6 e0 9f 98 89 4c 89 ff e8 d1 b0 e6 ff 0f 0b 48 c7 c6 RSP: 0018:ffffc90010c4f708 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff88802b1a5580 RSI: ffffffff81c411be RDI: 0000000000000003 RBP: ffffc90010c4f750 R08: 0000000000000029 R09: 00000000ffffffff R10: ffffffff88f5dc2e R11: 00000000ffffffff R12: ffffea0002402648 R13: ffffea0002402640 R14: fffff940004804c9 R15: ffffea0002402640 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2cc9b43000 CR3: 000000000b68e000 CR4: 00000000003506e0 Call Trace: page_remove_rmap+0x25/0x1480 mm/rmap.c:1348 zap_pte_range mm/memory.c:1362 [inline] zap_pmd_range mm/memory.c:1481 [inline] zap_pud_range mm/memory.c:1510 [inline] zap_p4d_range mm/memory.c:1531 [inline] unmap_page_range+0xed5/0x2a10 mm/memory.c:1552 unmap_single_vma+0x198/0x310 mm/memory.c:1597 unmap_vmas+0x16d/0x2f0 mm/memory.c:1629 exit_mmap+0x1d0/0x630 mm/mmap.c:3171 __mmput+0x122/0x4b0 kernel/fork.c:1115 mmput+0x58/0x60 kernel/fork.c:1136 exit_mm kernel/exit.c:501 [inline] do_exit+0xabc/0x2a30 kernel/exit.c:812 do_group_exit+0x125/0x310 kernel/exit.c:922 get_signal+0x47f/0x21d0 kernel/signal.c:2855 arch_do_signal_or_restart+0x2a9/0x1c40 arch/x86/kernel/signal.c:865 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x17d/0x290 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fdedc749a39 Code: Unable to access opcode bytes at RIP 0x7fdedc749a0f. RSP: 002b:00007fded9cbf218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007fdedc84cf68 RCX: 00007fdedc749a39 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fdedc84cf68 RBP: 00007fdedc84cf60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fdedc84cf6c R13: 00007fdedcd80b2f R14: 00007fded9cbf300 R15: 0000000000022000 Modules linked in: ---[ end trace 70797d38731f8cbd ]--- RIP: 0010:__page_memcg include/linux/memcontrol.h:400 [inline] RIP: 0010:page_memcg include/linux/memcontrol.h:453 [inline] RIP: 0010:lock_page_memcg+0x60e/0x7d0 mm/memcontrol.c:1984 Code: 48 8d 50 ff a8 01 48 c7 c6 20 9f 98 89 4c 0f 45 fa 4c 89 ff e8 f3 b0 e6 ff 0f 0b 48 c7 c6 e0 9f 98 89 4c 89 ff e8 e2 b0 e6 ff <0f> 0b 48 c7 c6 e0 9f 98 89 4c 89 ff e8 d1 b0 e6 ff 0f 0b 48 c7 c6 RSP: 0018:ffffc90010c4f708 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff88802b1a5580 RSI: ffffffff81c411be RDI: 0000000000000003 RBP: ffffc90010c4f750 R08: 0000000000000029 R09: 00000000ffffffff R10: ffffffff88f5dc2e R11: 00000000ffffffff R12: ffffea0002402648 R13: ffffea0002402640 R14: fffff940004804c9 R15: ffffea0002402640 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2cc9b43000 CR3: 000000000b68e000 CR4: 00000000003506e0