syzkaller login: [ 68.770300] BUG: Bad rss-counter state mm:00000000db9d65a6 type:MM_FILEPAGES val:33 [ 68.771877] BUG: Bad rss-counter state mm:00000000db9d65a6 type:MM_ANONPAGES val:22 [ 68.917087] ================================================================== [ 68.918006] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 68.918939] Read of size 8 at addr ffff88800d991b38 by task sshd/226 [ 68.919713] [ 68.919929] CPU: 1 PID: 226 Comm: sshd Not tainted 6.4.0-rc7-next-20230620 #1 [ 68.920938] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 68.921937] Call Trace: [ 68.922258] [ 68.922561] dump_stack_lvl+0x91/0xf0 [ 68.923051] print_report+0xcc/0x620 [ 68.923530] ? __virt_addr_valid+0x102/0x340 [ 68.924079] ? vma_interval_tree_remove+0xc75/0xec0 [ 68.924697] ? vma_interval_tree_remove+0xc75/0xec0 [ 68.925305] kasan_report+0xbe/0xf0 [ 68.925791] ? vma_interval_tree_remove+0xc75/0xec0 [ 68.926406] vma_interval_tree_remove+0xc75/0xec0 [ 68.927004] vma_prepare+0xc54/0x11a0 [ 68.927484] __split_vma+0x5af/0x950 [ 68.927953] ? __pfx___split_vma+0x10/0x10 [ 68.928478] ? find_held_lock+0x2c/0x110 [ 68.928993] do_vmi_align_munmap+0x2ba/0x11f0 [ 68.929554] ? lock_is_held_type+0x9f/0x120 [ 68.930098] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 68.930699] ? mtree_range_walk+0x632/0x900 [ 68.931249] ? mas_walk+0x5c7/0x7c0 [ 68.931722] do_vmi_munmap+0x1f1/0x2b0 [ 68.932211] mmap_region+0x1f9/0x2660 [ 68.932687] ? vm_mmap_pgoff+0x15c/0x3a0 [ 68.933196] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 68.934123] ? __pfx_lock_acquire+0x10/0x10 [ 68.934815] ? __pfx_mmap_region+0x10/0x10 [ 68.935486] ? security_mmap_addr+0x7d/0xa0 [ 68.936130] ? get_unmapped_area+0x1f5/0x3f0 [ 68.936809] do_mmap+0x854/0xf00 [ 68.937351] vm_mmap_pgoff+0x1a6/0x3a0 [ 68.938014] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 68.938705] ksys_mmap_pgoff+0x3af/0x500 [ 68.939324] do_syscall_64+0x3f/0x90 [ 68.939924] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 68.940697] RIP: 0033:0x7f0ae74fdd82 [ 68.941242] 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 [ 68.943812] RSP: 002b:00007ffdb7955bd8 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 68.944928] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007f0ae74fdd82 [ 68.945993] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007f0ae6937000 [ 68.947042] RBP: 00007f0ae6937000 R08: 0000000000000009 R09: 0000000000001000 [ 68.948087] R10: 0000000000000812 R11: 0000000000000206 R12: 00005650eff34f70 [ 68.949135] R13: 00007ffdb7955bf0 R14: 00007ffdb7955c20 R15: 00007ffdb7955f80 [ 68.950217] [ 68.950519] [ 68.950733] Allocated by task 219: [ 68.951164] kasan_save_stack+0x22/0x50 [ 68.951672] kasan_set_track+0x25/0x30 [ 68.952165] __kasan_slab_alloc+0x59/0x70 [ 68.952689] kmem_cache_alloc+0x16b/0x370 [ 68.953202] vm_area_dup+0x20/0x160 [ 68.953655] __split_vma+0x170/0x950 [ 68.954128] split_vma+0xc6/0x110 [ 68.954574] mprotect_fixup+0x8d2/0xb30 [ 68.955077] do_mprotect_pkey+0x87e/0xd40 [ 68.955597] __x64_sys_mprotect+0x78/0xc0 [ 68.956122] do_syscall_64+0x3f/0x90 [ 68.956604] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 68.957248] [ 68.957466] Freed by task 202: [ 68.957865] kasan_save_stack+0x22/0x50 [ 68.958368] kasan_set_track+0x25/0x30 [ 68.958859] kasan_save_free_info+0x2b/0x50 [ 68.959398] __kasan_slab_free+0x10a/0x190 [ 68.959954] kmem_cache_free+0x10d/0x4d0 [ 68.960470] rcu_core+0x8c8/0x2860 [ 68.961027] __do_softirq+0x1b7/0x7d4 [ 68.961509] [ 68.961736] Last potentially related work creation: [ 68.962330] kasan_save_stack+0x22/0x50 [ 68.962839] __kasan_record_aux_stack+0x8e/0xa0 [ 68.963430] __call_rcu_common.constprop.0+0x6a/0xb90 [ 68.964092] remove_vma+0x139/0x170 [ 68.964546] do_vmi_align_munmap+0xd4a/0x11f0 [ 68.965122] do_vmi_munmap+0x1f1/0x2b0 [ 68.965615] __vm_munmap+0x138/0x3a0 [ 68.966093] __x64_sys_munmap+0x59/0x80 [ 68.966592] do_syscall_64+0x3f/0x90 [ 68.967067] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 68.967714] [ 68.967937] Second to last potentially related work creation: [ 68.968626] kasan_save_stack+0x22/0x50 [ 68.969128] __kasan_record_aux_stack+0x8e/0xa0 [ 68.969705] __call_rcu_common.constprop.0+0x6a/0xb90 [ 68.970368] remove_vma+0x139/0x170 [ 68.970819] do_vmi_align_munmap+0xd4a/0x11f0 [ 68.971383] do_vmi_munmap+0x1f1/0x2b0 [ 68.971870] mmap_region+0x1f9/0x2660 [ 68.972349] do_mmap+0x854/0xf00 [ 68.972784] vm_mmap_pgoff+0x1a6/0x3a0 [ 68.973273] ksys_mmap_pgoff+0x3af/0x500 [ 68.973787] do_syscall_64+0x3f/0x90 [ 68.974268] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 68.974919] [ 68.975133] The buggy address belongs to the object at ffff88800d991ae0 [ 68.975133] which belongs to the cache vm_area_struct of size 168 [ 68.976631] The buggy address is located 88 bytes inside of [ 68.976631] freed 168-byte region [ffff88800d991ae0, ffff88800d991b88) [ 68.978079] [ 68.978294] The buggy address belongs to the physical page: [ 68.978952] page:000000005f8ca668 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xd991 [ 68.980025] memcg:ffff88800f0b8c01 [ 68.980459] anon flags: 0x100000000000200(slab|node=0|zone=1) [ 68.981164] page_type: 0xffffffff() [ 68.981611] raw: 0100000000000200 ffff8880087a0c80 ffffea0000352f00 dead000000000007 [ 68.982552] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff88800f0b8c01 [ 68.983453] page dumped because: kasan: bad access detected [ 68.984112] [ 68.984332] Memory state around the buggy address: [ 68.984918] ffff88800d991a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 68.985784] ffff88800d991a80: 00 00 00 00 fc fc fc fc fc fc fc fc fa fb fb fb [ 68.986638] >ffff88800d991b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 68.987487] ^ [ 68.988093] ffff88800d991b80: fb fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 [ 68.988950] ffff88800d991c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc [ 68.989819] ================================================================== [ 68.990797] Disabling lock debugging due to kernel taint [ 71.219824] BUG: Bad rss-counter state mm:00000000e6e2390b type:MM_FILEPAGES val:33 [ 71.221157] BUG: Bad rss-counter state mm:00000000e6e2390b type:MM_ANONPAGES val:22 [ 71.709521] BUG: Bad rss-counter state mm:00000000bbed3092 type:MM_FILEPAGES val:33 [ 71.710528] BUG: Bad rss-counter state mm:00000000bbed3092 type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:3823' (ECDSA) to the list of known hosts. 2023/06/20 19:44:31 fuzzer started 2023/06/20 19:44:31 dialing manager at localhost:36067 2023/06/20 19:44:31 checking machine... 2023/06/20 19:44:31 checking revisions... [ 72.421002] kmemleak: Automatic memory scanning thread ended 2023/06/20 19:44:31 testing simple program... [ 72.475434] cgroup: Unknown subsys name 'net' [ 72.538117] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 19:44:31 Registers: info registers vcpu 0 RAX=1ffffffff0bcca9a RBX=ffffffff85e654d4 RCX=ffffffff81f59cad RDX=0000000000000000 RSI=ffffffff861d3da0 RDI=ffffffff85e654d4 RBP=ffffffff85e654d4 RSP=ffff88800cb07230 R8 =ffffffff861d3da0 R9 =ffff88800cb07328 R10=0000000000038001 R11=000000000003aac4 R12=ffffffff85e654d4 R13=ffffffff85e654d4 R14=ffffffff85e654d4 R15=dffffc0000000000 RIP=ffffffff8112fc7f RFL=00000217 [----APC] 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 00007fc440bac700 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=00007f9cccdac000 CR3=00000000168f2000 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=656e6e6f637369642064657669656365 XMM02=63736964203a31313a34383530352074 XMM03=66207463656e6e6f6373696420646576 XMM04=6456774875434142334f726f59427469 XMM05=485320415352203a3268737320343835 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=0000000000000000 RBX=0000000000000001 RCX=ffffffff812d86ea RDX=ffff888009591b40 RSI=0000000000000008 RDI=ffffffff85d3d350 RBP=1ffff110033ade8a RSP=ffff888019d6f438 R8 =0000000000000005 R9 =0000000000000000 R10=0000000000000000 R11=000018e9000018e9 R12=ffffffff8560b640 R13=ffffffff83ab1b1f R14=dffffc0000000000 R15=ffffffff87f97640 RIP=ffffffff8180fea8 RFL=00000256 [---ZAP-] 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 00007f105a16b900 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=00007ffc4bf82000 CR3=0000000016664000 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=74696d7265705f6d61703d73726f746e XMM02=000000000000000000000000000000ff XMM03=5320444f4854454d5f54505952434e45 XMM04=40404040404040404040404040404040 XMM05=5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a XMM06=20202020202020202020202020202020 XMM07=00000000000000000000000000000000 XMM08=61662029286e65706f5f746964756100 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000