syzkaller login: [ 33.867176] BUG: Bad rss-counter state mm:000000009c123d96 type:MM_FILEPAGES val:33 [ 33.868376] BUG: Bad rss-counter state mm:000000009c123d96 type:MM_ANONPAGES val:22 [ 33.915824] ================================================================== [ 33.916762] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 33.917699] Read of size 8 at addr ffff88800eab5c20 by task sshd/220 [ 33.918494] [ 33.918710] CPU: 1 PID: 220 Comm: sshd Not tainted 6.4.0-rc7-next-20230619 #1 [ 33.919563] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 33.920538] Call Trace: [ 33.920854] [ 33.921139] dump_stack_lvl+0x91/0xf0 [ 33.921628] print_report+0xcc/0x620 [ 33.922113] ? __virt_addr_valid+0x102/0x340 [ 33.922665] ? vma_interval_tree_remove+0xc75/0xec0 [ 33.923286] ? vma_interval_tree_remove+0xc75/0xec0 [ 33.923901] kasan_report+0xbe/0xf0 [ 33.924386] ? vma_interval_tree_remove+0xc75/0xec0 [ 33.925009] vma_interval_tree_remove+0xc75/0xec0 [ 33.925612] vma_prepare+0xc54/0x11a0 [ 33.926088] __split_vma+0x5af/0x950 [ 33.926560] ? __pfx___split_vma+0x10/0x10 [ 33.927095] ? find_held_lock+0x2c/0x110 [ 33.927610] do_vmi_align_munmap+0x2ba/0x11f0 [ 33.928176] ? lock_is_held_type+0x9f/0x120 [ 33.928731] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 33.929345] ? mtree_range_walk+0x632/0x900 [ 33.929893] ? mas_walk+0x5c7/0x7c0 [ 33.930367] do_vmi_munmap+0x1f1/0x2b0 [ 33.930855] mmap_region+0x1f9/0x2660 [ 33.931341] ? vm_mmap_pgoff+0x15c/0x3a0 [ 33.931852] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 33.932573] ? __pfx_lock_acquire+0x10/0x10 [ 33.933107] ? __pfx_mmap_region+0x10/0x10 [ 33.933634] ? security_mmap_addr+0x7d/0xa0 [ 33.934165] ? get_unmapped_area+0x1f5/0x3f0 [ 33.934713] do_mmap+0x854/0xf00 [ 33.935149] vm_mmap_pgoff+0x1a6/0x3a0 [ 33.935644] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 33.936211] ksys_mmap_pgoff+0x3af/0x500 [ 33.936726] do_syscall_64+0x3f/0x90 [ 33.937205] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 33.937845] RIP: 0033:0x7fa1bc848d82 [ 33.938298] 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 [ 33.940439] RSP: 002b:00007ffc236601c8 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 33.941345] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007fa1bc848d82 [ 33.942190] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007fa1bbc82000 [ 33.943034] RBP: 00007fa1bbc82000 R08: 0000000000000009 R09: 0000000000001000 [ 33.943882] R10: 0000000000000812 R11: 0000000000000206 R12: 000055d037ccdb20 [ 33.944736] R13: 00007ffc236601e0 R14: 00007ffc23660210 R15: 00007ffc23660570 [ 33.945590] [ 33.945887] [ 33.946103] Allocated by task 213: [ 33.946534] kasan_save_stack+0x22/0x50 [ 33.947042] kasan_set_track+0x25/0x30 [ 33.947533] __kasan_slab_alloc+0x59/0x70 [ 33.948054] kmem_cache_alloc+0x16b/0x370 [ 33.948583] vm_area_dup+0x20/0x160 [ 33.949042] __split_vma+0x170/0x950 [ 33.949513] split_vma+0xc6/0x110 [ 33.949951] mprotect_fixup+0x8d2/0xb30 [ 33.950458] do_mprotect_pkey+0x87e/0xd40 [ 33.950983] __x64_sys_mprotect+0x78/0xc0 [ 33.951507] do_syscall_64+0x3f/0x90 [ 33.951984] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 33.952654] [ 33.952870] Freed by task 213: [ 33.953268] kasan_save_stack+0x22/0x50 [ 33.953770] kasan_set_track+0x25/0x30 [ 33.954275] kasan_save_free_info+0x2b/0x50 [ 33.954809] __kasan_slab_free+0x10a/0x190 [ 33.955342] kmem_cache_free+0x10d/0x4d0 [ 33.955850] rcu_core+0x8c8/0x2860 [ 33.956295] __do_softirq+0x1b7/0x7d4 [ 33.956805] [ 33.957022] Last potentially related work creation: [ 33.957613] kasan_save_stack+0x22/0x50 [ 33.958134] __kasan_record_aux_stack+0x8e/0xa0 [ 33.958715] __call_rcu_common.constprop.0+0x6a/0xb90 [ 33.959362] remove_vma+0x139/0x170 [ 33.959814] do_vmi_align_munmap+0xd4a/0x11f0 [ 33.960377] do_vmi_munmap+0x1f1/0x2b0 [ 33.960860] __vm_munmap+0x138/0x3a0 [ 33.961331] __x64_sys_munmap+0x59/0x80 [ 33.961826] do_syscall_64+0x3f/0x90 [ 33.962300] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 33.962947] [ 33.963169] Second to last potentially related work creation: [ 33.963860] kasan_save_stack+0x22/0x50 [ 33.964385] __kasan_record_aux_stack+0x8e/0xa0 [ 33.964967] __call_rcu_common.constprop.0+0x6a/0xb90 [ 33.965610] remove_vma+0x139/0x170 [ 33.966069] do_vmi_align_munmap+0xd4a/0x11f0 [ 33.966626] do_vmi_munmap+0x1f1/0x2b0 [ 33.967115] mmap_region+0x1f9/0x2660 [ 33.967594] do_mmap+0x854/0xf00 [ 33.968032] vm_mmap_pgoff+0x1a6/0x3a0 [ 33.968538] ksys_mmap_pgoff+0x3af/0x500 [ 33.969039] do_syscall_64+0x3f/0x90 [ 33.969506] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 33.970146] [ 33.970365] The buggy address belongs to the object at ffff88800eab5bc8 [ 33.970365] which belongs to the cache vm_area_struct of size 168 [ 33.971818] The buggy address is located 88 bytes inside of [ 33.971818] freed 168-byte region [ffff88800eab5bc8, ffff88800eab5c70) [ 33.973241] [ 33.973461] The buggy address belongs to the physical page: [ 33.974112] page:000000006c401d4e refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xeab5 [ 33.975185] memcg:ffff88800ea82001 [ 33.975618] anon flags: 0x100000000000200(slab|node=0|zone=1) [ 33.976314] page_type: 0xffffffff() [ 33.976775] raw: 0100000000000200 ffff88800879fc80 ffffea0000396a00 0000000000000007 [ 33.977700] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff88800ea82001 [ 33.978606] page dumped because: kasan: bad access detected [ 33.979266] [ 33.979484] Memory state around the buggy address: [ 33.980065] ffff88800eab5b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.980920] ffff88800eab5b80: 00 fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb [ 33.981767] >ffff88800eab5c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc [ 33.982612] ^ [ 33.983145] ffff88800eab5c80: fc fc fc fc fc fc fa fb fb fb fb fb fb fb fb fb [ 33.984002] ffff88800eab5d00: fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc fc [ 33.984867] ================================================================== [ 33.986027] Disabling lock debugging due to kernel taint [ 36.304270] BUG: Bad rss-counter state mm:000000009844ab72 type:MM_FILEPAGES val:33 [ 36.305476] BUG: Bad rss-counter state mm:000000009844ab72 type:MM_ANONPAGES val:22 [ 36.733655] BUG: Bad rss-counter state mm:000000000deb6f5f type:MM_FILEPAGES val:33 [ 36.734698] BUG: Bad rss-counter state mm:000000000deb6f5f type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:26657' (ECDSA) to the list of known hosts. 2023/06/20 04:29:37 fuzzer started 2023/06/20 04:29:37 dialing manager at localhost:44161 2023/06/20 04:29:37 checking machine... 2023/06/20 04:29:37 checking revisions... [ 37.485038] kmemleak: Automatic memory scanning thread ended 2023/06/20 04:29:37 testing simple program... [ 37.530553] cgroup: Unknown subsys name 'net' [ 37.582783] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 04:29:27 Registers: info registers vcpu 0 RAX=0000000000000000 RBX=ffff88801a272000 RCX=0000000000000000 RDX=1ffff1100344e4af RSI=ffffffff8386ae7e RDI=0000000000000004 RBP=ffff888016a0fc48 RSP=ffff888016a0fb28 R8 =0000000000000004 R9 =0000000000000000 R10=00000000000000e5 R11=0000000000000000 R12=ffff88801a2724f8 R13=00000000000000e5 R14=ffff888008c78000 R15=00000000fffffff0 RIP=ffffffff8386aeb2 RFL=00000246 [---Z-P-] 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 00007f58c0841900 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=00007f58c0df8618 CR3=000000000e606000 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=6e69676f6c5f6d61702c78756e696c65 XMM02=755f6d61702c74696d7265705f6d6170 XMM03=2c766e655f6d61702c7374696d696c5f XMM04=6d61702c766e655f6d61702c7374696d XMM05=78696e755f6d61702c74696d7265705f XMM06=6469756e69676f6c5f6d61702c78756e XMM07=672065736f6c635f6e6f69737365733a XMM08=61662029286e65706f5f746964756100 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=0000000000000000 RBX=0000000000000002 RCX=1ffff1100d9e135e RDX=dffffc0000000000 RSI=ffffffff8180c585 RDI=ffff88806cf09a98 RBP=ffff88806cf09af0 RSP=ffff88806cf09a28 R8 =ffffffff8613751e R9 =ffff88806cf09ad8 R10=0000000000038001 R11=0000000000020d8a R12=ffff88806cf09af8 R13=ffff88806cf09ae0 R14=ffff88806cf09ad9 R15=ffff88806cf09a98 RIP=ffffffff81130706 RFL=00000246 [---Z-P-] 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 00007fbf6617e900 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=00007fbf6558d710 CR3=000000000d9da000 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=ffffffffffffffffffffffffffffffff XMM01=30306234386136303638616663356134 XMM02=38303062343861363036386166633561 XMM03=2f6c616e72756f6a2f676f6c2f6e7572 XMM04=5d04fb6415ccfeb600000000000ae988 XMM05=d562bbe78960ec1c0000000000135300 XMM06=4fda316b135da52b0000000000133618 XMM07=00000000000000000000000000000000 XMM08=415453454d49545f454d49544c414552 XMM09=00000000000000000000000000000000 XMM10=20200000000020202020202020200000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000