syzkaller login: [ 60.806383] BUG: Bad rss-counter state mm:00000000f5de4a09 type:MM_FILEPAGES val:33 [ 60.807792] BUG: Bad rss-counter state mm:00000000f5de4a09 type:MM_ANONPAGES val:22 [ 60.921944] ================================================================== [ 60.922644] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 60.923377] Read of size 8 at addr ffff88800e40bed8 by task sshd/219 [ 60.923968] [ 60.924136] CPU: 0 PID: 219 Comm: sshd Not tainted 6.4.0-rc7-next-20230620 #1 [ 60.924897] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 60.925685] Call Trace: [ 60.925937] [ 60.926161] dump_stack_lvl+0x91/0xf0 [ 60.926546] print_report+0xcc/0x620 [ 60.926942] ? __virt_addr_valid+0x102/0x340 [ 60.927380] ? vma_interval_tree_remove+0xc75/0xec0 [ 60.927869] ? vma_interval_tree_remove+0xc75/0xec0 [ 60.928354] kasan_report+0xbe/0xf0 [ 60.928728] ? vma_interval_tree_remove+0xc75/0xec0 [ 60.929217] vma_interval_tree_remove+0xc75/0xec0 [ 60.929692] vma_prepare+0xc54/0x11a0 [ 60.930069] __split_vma+0x5af/0x950 [ 60.930445] ? __pfx___split_vma+0x10/0x10 [ 60.930867] ? find_held_lock+0x2c/0x110 [ 60.931277] do_vmi_align_munmap+0x2ba/0x11f0 [ 60.931721] ? lock_is_held_type+0x9f/0x120 [ 60.932149] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 60.932630] ? mtree_range_walk+0x632/0x900 [ 60.933073] ? mas_walk+0x5c7/0x7c0 [ 60.933451] do_vmi_munmap+0x1f1/0x2b0 [ 60.933841] mmap_region+0x1f9/0x2660 [ 60.934216] ? vm_mmap_pgoff+0x15c/0x3a0 [ 60.934622] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 60.935188] ? __pfx_lock_acquire+0x10/0x10 [ 60.935615] ? __pfx_mmap_region+0x10/0x10 [ 60.936033] ? security_mmap_addr+0x7d/0xa0 [ 60.936452] ? get_unmapped_area+0x1f5/0x3f0 [ 60.936881] do_mmap+0x854/0xf00 [ 60.937233] vm_mmap_pgoff+0x1a6/0x3a0 [ 60.937626] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 60.938069] ksys_mmap_pgoff+0x3af/0x500 [ 60.938473] do_syscall_64+0x3f/0x90 [ 60.938852] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 60.939366] RIP: 0033:0x7fbfa8ed8d82 [ 60.939726] Code: eb aa 66 0f 1f 44 00 00 41 f7 c1 ff 0f 00 00 75 27 55 48 89 fd 53 89 cb 48 85 ff 74 33 41 89 da 48 89 ef b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 56 5b 5d c3 0f 1f 00 c7 05 ae 03 01 00 16 00 [ 60.941406] RSP: 002b:00007ffc5b6f1408 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 60.942115] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007fbfa8ed8d82 [ 60.942799] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007fbfa8312000 [ 60.943464] RBP: 00007fbfa8312000 R08: 0000000000000009 R09: 0000000000001000 [ 60.944130] R10: 0000000000000812 R11: 0000000000000206 R12: 0000559d25f31f70 [ 60.944799] R13: 00007ffc5b6f1420 R14: 00007ffc5b6f1450 R15: 00007ffc5b6f17b0 [ 60.945494] [ 60.945722] [ 60.945888] Allocated by task 212: [ 60.946226] kasan_save_stack+0x22/0x50 [ 60.946615] kasan_set_track+0x25/0x30 [ 60.947002] __kasan_slab_alloc+0x59/0x70 [ 60.947419] kmem_cache_alloc+0x16b/0x370 [ 60.947824] vm_area_dup+0x20/0x160 [ 60.948182] __split_vma+0x170/0x950 [ 60.948552] split_vma+0xc6/0x110 [ 60.948903] mprotect_fixup+0x8d2/0xb30 [ 60.949306] do_mprotect_pkey+0x87e/0xd40 [ 60.949718] __x64_sys_mprotect+0x78/0xc0 [ 60.950131] do_syscall_64+0x3f/0x90 [ 60.950503] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 60.951008] [ 60.951175] Freed by task 19: [ 60.951476] kasan_save_stack+0x22/0x50 [ 60.951874] kasan_set_track+0x25/0x30 [ 60.952266] kasan_save_free_info+0x2b/0x50 [ 60.952681] __kasan_slab_free+0x10a/0x190 [ 60.953103] kmem_cache_free+0x10d/0x4d0 [ 60.953506] rcu_core+0x8c8/0x2860 [ 60.953860] __do_softirq+0x1b7/0x7d4 [ 60.954232] [ 60.954399] Last potentially related work creation: [ 60.954869] kasan_save_stack+0x22/0x50 [ 60.955271] __kasan_record_aux_stack+0x8e/0xa0 [ 60.955727] __call_rcu_common.constprop.0+0x6a/0xb90 [ 60.956239] remove_vma+0x139/0x170 [ 60.956592] do_vmi_align_munmap+0xd4a/0x11f0 [ 60.957032] do_vmi_munmap+0x1f1/0x2b0 [ 60.957437] __vm_munmap+0x138/0x3a0 [ 60.957804] __x64_sys_munmap+0x59/0x80 [ 60.958194] do_syscall_64+0x3f/0x90 [ 60.958563] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 60.959081] [ 60.959247] Second to last potentially related work creation: [ 60.959795] kasan_save_stack+0x22/0x50 [ 60.960186] __kasan_record_aux_stack+0x8e/0xa0 [ 60.960642] __call_rcu_common.constprop.0+0x6a/0xb90 [ 60.961152] remove_vma+0x139/0x170 [ 60.961515] do_vmi_align_munmap+0xd4a/0x11f0 [ 60.961953] do_vmi_munmap+0x1f1/0x2b0 [ 60.962334] mmap_region+0x1f9/0x2660 [ 60.962722] do_mmap+0x854/0xf00 [ 60.963070] vm_mmap_pgoff+0x1a6/0x3a0 [ 60.963456] ksys_mmap_pgoff+0x3af/0x500 [ 60.963861] do_syscall_64+0x3f/0x90 [ 60.964232] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 60.964751] [ 60.964920] The buggy address belongs to the object at ffff88800e40be80 [ 60.964920] which belongs to the cache vm_area_struct of size 168 [ 60.966112] The buggy address is located 88 bytes inside of [ 60.966112] freed 168-byte region [ffff88800e40be80, ffff88800e40bf28) [ 60.967236] [ 60.967401] The buggy address belongs to the physical page: [ 60.967933] page:000000003c1443c4 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xe40b [ 60.968795] memcg:ffff88800e17ea01 [ 60.969143] flags: 0x100000000000200(slab|node=0|zone=1) [ 60.969663] page_type: 0xffffffff() [ 60.970020] raw: 0100000000000200 ffff8880087a0c80 ffffea00005bb340 dead000000000008 [ 60.970750] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff88800e17ea01 [ 60.971484] page dumped because: kasan: bad access detected [ 60.972008] [ 60.972177] Memory state around the buggy address: [ 60.972650] ffff88800e40bd80: fc fc fc 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 60.973335] ffff88800e40be00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 60.974026] >ffff88800e40be80: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 60.974719] ^ [ 60.975318] ffff88800e40bf00: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc [ 60.975984] ffff88800e40bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 60.976652] ================================================================== [ 60.977445] Disabling lock debugging due to kernel taint [ 62.826151] BUG: Bad rss-counter state mm:000000006bf1a069 type:MM_FILEPAGES val:33 [ 62.826908] BUG: Bad rss-counter state mm:000000006bf1a069 type:MM_ANONPAGES val:22 [ 63.235736] BUG: Bad rss-counter state mm:00000000864bde71 type:MM_FILEPAGES val:33 [ 63.236898] BUG: Bad rss-counter state mm:00000000864bde71 type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:59936' (ECDSA) to the list of known hosts. 2023/06/20 15:24:57 fuzzer started 2023/06/20 15:24:58 dialing manager at localhost:36067 2023/06/20 15:24:58 checking machine... 2023/06/20 15:24:58 checking revisions... [ 63.912245] kmemleak: Automatic memory scanning thread ended 2023/06/20 15:24:58 testing simple program... [ 63.972181] cgroup: Unknown subsys name 'net' [ 64.025616] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 15:24:57 Registers: info registers vcpu 0 RAX=0000000000000053 RBX=0000000000000040 RCX=0000000000000000 RDX=ffff88800e85b680 RSI=ffffffff83635ab0 RDI=ffff888016cd7908 RBP=ffff888016cd7e60 RSP=ffff888016cd7b50 R8 =0000000000000001 R9 =ffffed1002d9af21 R10=ffff888016cd790f R11=00000000000b6a61 R12=0000000000000053 R13=0000000000000000 R14=0000000000000040 R15=ffff888016cd7ea4 RIP=ffffffff83636219 RFL=00000293 [--S-A-C] CPL=0 II=0 A20=1 SMM=0 HLT=0 ES =0000 0000000000000000 00000000 00000000 CS =0010 0000000000000000 ffffffff 00a09b00 DPL=0 CS64 [-RA] SS =0018 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA] DS =0000 0000000000000000 00000000 00000000 FS =0000 00007f2b4657a700 00000000 00000000 GS =0000 ffff88806ce00000 00000000 00000000 LDT=0000 fffffe0000000000 00000000 00000000 TR =0040 fffffe0000003000 00004087 00008b00 DPL=0 TSS64-busy GDT= fffffe0000001000 0000007f IDT= fffffe0000000000 00000fff CR0=80050033 CR2=00007f17cb3c5618 CR3=000000000cca6000 CR4=00350ef0 DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 DR6=00000000ffff0ff0 DR7=0000000000000400 EFER=0000000000000d01 FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80 FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 XMM00=00000000000000000000000000000000 XMM01=6d6f72662064657463656e6e6f637369 XMM02=2e303120746f6f722072657375206d6f XMM03=3a5d3832325b646873732037353a3432 XMM04=6456774875434142334f726f59427469 XMM05=485320415352203a3268737320323534 XMM06=206d6f726620746f6f7220726f662079 XMM07=00000000000000000000000000000000 XMM08=3a677562656420676f6c737973720000 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=ffff88806cf35000 RBX=0000000000000001 RCX=ffffffff8451250e RDX=ffffed100d9e6a01 RSI=0000000000000004 RDI=ffffffff81288ac5 RBP=dffffc0000000000 RSP=ffff888008e07e70 R8 =0000000000000000 R9 =ffffed100d9e6a00 R10=ffff88806cf35003 R11=0000000000000001 R12=ffffffff85d3d350 R13=1ffff110011c0fd3 R14=0000000000000000 R15=0000000000000000 RIP=ffffffff8451349f RFL=00000246 [---Z-P-] CPL=0 II=0 A20=1 SMM=0 HLT=1 ES =0000 0000000000000000 00000000 00000000 CS =0010 0000000000000000 ffffffff 00a09b00 DPL=0 CS64 [-RA] SS =0018 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA] DS =0000 0000000000000000 00000000 00000000 FS =0000 0000000000000000 00000000 00000000 GS =0000 ffff88806cf00000 00000000 00000000 LDT=0000 fffffe0000000000 00000000 00000000 TR =0040 fffffe000004a000 00004087 00008b00 DPL=0 TSS64-busy GDT= fffffe0000048000 0000007f IDT= fffffe0000000000 00000fff CR0=80050033 CR2=00007f91ab984730 CR3=0000000009464000 CR4=00350ee0 DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 DR6=00000000ffff0ff0 DR7=0000000000000400 EFER=0000000000000d01 FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80 FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 XMM00=00000000000000000000000000000000 XMM01=408adbba594dcaa12e475f3663d94f49 XMM02=ec2efd57dc4c00df000000000011aba0 XMM03=63def3f833095547000000000011ac70 XMM04=a1155f4c280de98f00000000000ae988 XMM05=dfcdbad4f1609c370000000000132828 XMM06=6cb59870275035330000000000131a00 XMM07=e042d86d42eb936e0000000000121930 XMM08=63def3f833095547000000000011ac70 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000