syzkaller login: [ 59.781995] BUG: Bad rss-counter state mm:000000007ee30ec1 type:MM_FILEPAGES val:33 [ 59.783178] BUG: Bad rss-counter state mm:000000007ee30ec1 type:MM_ANONPAGES val:22 [ 59.913287] ================================================================== [ 59.914280] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 59.915470] Read of size 8 at addr ffff88800696b6b0 by task sshd/220 [ 59.916295] [ 59.916537] CPU: 1 PID: 220 Comm: sshd Not tainted 6.4.0-rc7-next-20230620 #1 [ 59.917457] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 59.918511] Call Trace: [ 59.918856] [ 59.919167] dump_stack_lvl+0x91/0xf0 [ 59.919687] print_report+0xcc/0x620 [ 59.920203] ? __virt_addr_valid+0x102/0x340 [ 59.920812] ? vma_interval_tree_remove+0xc75/0xec0 [ 59.921468] ? vma_interval_tree_remove+0xc75/0xec0 [ 59.922133] kasan_report+0xbe/0xf0 [ 59.922644] ? vma_interval_tree_remove+0xc75/0xec0 [ 59.923313] vma_interval_tree_remove+0xc75/0xec0 [ 59.923959] vma_prepare+0xc54/0x11a0 [ 59.924482] __split_vma+0x5af/0x950 [ 59.924990] ? __pfx___split_vma+0x10/0x10 [ 59.925552] ? find_held_lock+0x2c/0x110 [ 59.926111] do_vmi_align_munmap+0x2ba/0x11f0 [ 59.926714] ? lock_is_held_type+0x9f/0x120 [ 59.927290] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 59.927942] ? mtree_range_walk+0x632/0x900 [ 59.928542] ? mas_walk+0x5c7/0x7c0 [ 59.929060] do_vmi_munmap+0x1f1/0x2b0 [ 59.929592] mmap_region+0x1f9/0x2660 [ 59.930112] ? vm_mmap_pgoff+0x15c/0x3a0 [ 59.930662] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 59.931424] ? __pfx_lock_acquire+0x10/0x10 [ 59.931995] ? __pfx_mmap_region+0x10/0x10 [ 59.932577] ? security_mmap_addr+0x7d/0xa0 [ 59.933146] ? get_unmapped_area+0x1f5/0x3f0 [ 59.933736] do_mmap+0x854/0xf00 [ 59.934204] vm_mmap_pgoff+0x1a6/0x3a0 [ 59.934734] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 59.935341] ksys_mmap_pgoff+0x3af/0x500 [ 59.935883] do_syscall_64+0x3f/0x90 [ 59.936403] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 59.937090] RIP: 0033:0x7f18951ecd82 [ 59.937582] 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 [ 59.939851] RSP: 002b:00007ffddcceab28 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 59.940835] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007f18951ecd82 [ 59.941743] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007f1894626000 [ 59.942641] RBP: 00007f1894626000 R08: 0000000000000009 R09: 0000000000001000 [ 59.943541] R10: 0000000000000812 R11: 0000000000000206 R12: 00005555bbfbdec0 [ 59.944446] R13: 00007ffddcceab40 R14: 00007ffddcceab70 R15: 00007ffddcceaed0 [ 59.945354] [ 59.945666] [ 59.945894] Allocated by task 213: [ 59.946348] kasan_save_stack+0x22/0x50 [ 59.946883] kasan_set_track+0x25/0x30 [ 59.947403] __kasan_slab_alloc+0x59/0x70 [ 59.947961] kmem_cache_alloc+0x16b/0x370 [ 59.948520] vm_area_dup+0x20/0x160 [ 59.949013] __split_vma+0x170/0x950 [ 59.949511] split_vma+0xc6/0x110 [ 59.949985] mprotect_fixup+0x8d2/0xb30 [ 59.950519] do_mprotect_pkey+0x87e/0xd40 [ 59.951075] __x64_sys_mprotect+0x78/0xc0 [ 59.951629] do_syscall_64+0x3f/0x90 [ 59.952134] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 59.952834] [ 59.953064] Freed by task 213: [ 59.953483] kasan_save_stack+0x22/0x50 [ 59.954021] kasan_set_track+0x25/0x30 [ 59.954548] kasan_save_free_info+0x2b/0x50 [ 59.955112] __kasan_slab_free+0x10a/0x190 [ 59.955685] kmem_cache_free+0x10d/0x4d0 [ 59.956345] rcu_core+0x8c8/0x2860 [ 59.956827] __do_softirq+0x1b7/0x7d4 [ 59.957335] [ 59.957565] Last potentially related work creation: [ 59.958193] kasan_save_stack+0x22/0x50 [ 59.958730] __kasan_record_aux_stack+0x8e/0xa0 [ 59.959340] __call_rcu_common.constprop.0+0x6a/0xb90 [ 59.960030] remove_vma+0x139/0x170 [ 59.960520] do_vmi_align_munmap+0xd4a/0x11f0 [ 59.961117] do_vmi_munmap+0x1f1/0x2b0 [ 59.961640] __vm_munmap+0x138/0x3a0 [ 59.962137] __x64_sys_munmap+0x59/0x80 [ 59.962667] do_syscall_64+0x3f/0x90 [ 59.963173] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 59.963862] [ 59.964092] Second to last potentially related work creation: [ 59.964838] kasan_save_stack+0x22/0x50 [ 59.965374] __kasan_record_aux_stack+0x8e/0xa0 [ 59.965989] __call_rcu_common.constprop.0+0x6a/0xb90 [ 59.966675] remove_vma+0x139/0x170 [ 59.967160] do_vmi_align_munmap+0xd4a/0x11f0 [ 59.967761] do_vmi_munmap+0x1f1/0x2b0 [ 59.968277] mmap_region+0x1f9/0x2660 [ 59.968813] do_mmap+0x854/0xf00 [ 59.969274] vm_mmap_pgoff+0x1a6/0x3a0 [ 59.969799] ksys_mmap_pgoff+0x3af/0x500 [ 59.970340] do_syscall_64+0x3f/0x90 [ 59.970849] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 59.971534] [ 59.971767] The buggy address belongs to the object at ffff88800696b658 [ 59.971767] which belongs to the cache vm_area_struct of size 168 [ 59.973357] The buggy address is located 88 bytes inside of [ 59.973357] freed 168-byte region [ffff88800696b658, ffff88800696b700) [ 59.974860] [ 59.975095] The buggy address belongs to the physical page: [ 59.975811] page:00000000d3fea3e0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x696b [ 59.976996] memcg:ffff88800cb9af01 [ 59.977456] anon flags: 0x100000000000200(slab|node=0|zone=1) [ 59.978210] page_type: 0xffffffff() [ 59.978694] raw: 0100000000000200 ffff8880087a0c80 0000000000000000 dead000000000001 [ 59.979683] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff88800cb9af01 [ 59.980664] page dumped because: kasan: bad access detected [ 59.981373] [ 59.981608] Memory state around the buggy address: [ 59.982233] ffff88800696b580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 59.983150] ffff88800696b600: 00 00 00 fc fc fc fc fc fc fc fc fa fb fb fb fb [ 59.984069] >ffff88800696b680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 59.984998] ^ [ 59.985625] ffff88800696b700: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 [ 59.986544] ffff88800696b780: 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc [ 59.987455] ================================================================== [ 59.988518] Disabling lock debugging due to kernel taint [ 62.433851] BUG: Bad rss-counter state mm:0000000093974d0b type:MM_FILEPAGES val:33 [ 62.435021] BUG: Bad rss-counter state mm:0000000093974d0b type:MM_ANONPAGES val:22 [ 62.919456] BUG: Bad rss-counter state mm:00000000e40a0626 type:MM_FILEPAGES val:33 [ 62.920800] BUG: Bad rss-counter state mm:00000000e40a0626 type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:12380' (ECDSA) to the list of known hosts. 2023/06/21 04:38:01 fuzzer started 2023/06/21 04:38:02 dialing manager at localhost:36067 2023/06/21 04:38:02 checking machine... 2023/06/21 04:38:02 checking revisions... [ 63.601382] kmemleak: Automatic memory scanning thread ended 2023/06/21 04:38:02 testing simple program... [ 63.651313] cgroup: Unknown subsys name 'net' [ 63.690185] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 04:38:01 Registers: info registers vcpu 0 RAX=0000000000000000 RBX=ffffea000036c600 RCX=0000000000000000 RDX=ffff88800844f780 RSI=ffffffff811431c2 RDI=0000777f80000000 RBP=0000000000000000 RSP=ffff88801473f8c0 R8 =0000000000000001 R9 =0000000000000000 R10=0000000000000008 R11=00000000000b6a61 R12=ffffffff81845e00 R13=ffffea00003b5dc0 R14=ffffffff8366b8df R15=ffff888009aff500 RIP=ffffffff8180c61b RFL=00000286 [--S--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 00007f1a0453b900 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=00007f1a0399fa30 CR3=000000000f2fe000 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=07f9962a186becb3bc4c0107b144bb34 XMM02=000000000011b660d59e07bde36eea69 XMM03=000000000011b788ec2efd57dc4c00df XMM04=82eb16b10473506e00000000000ae988 XMM05=19b5fc299353cc5b00000000001347f0 XMM06=ba596dcff49ed5350000000000133590 XMM07=fb795ef6d65770560000000000122260 XMM08=2c67c8bc2e329bc3000000000011b788 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=0000000000000000 RBX=0000000000000718 RCX=0000000000000400 RDX=0000000003035a80 RSI=0000000000000718 RDI=ffff888015a47000 RBP=ffff888008442000 RSP=ffff88801827fcb8 R8 =ffff88801827fca0 R9 =0000000000000000 R10=ffffffff85d3d357 R11=00000000000b6a61 R12=ffff888015a47000 R13=0000000000000dc0 R14=ffffffff83644397 R15=0000000000000001 RIP=ffffffff84538a40 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 00007f3b2e570900 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=00007fff75bea000 CR3=000000000c5b8000 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=ffffffffffffffffffff000000000000 XMM01=000000000000003635006b6f6c6c756e XMM02=62003d73646e756f7200323135616873 XMM03=5320444f4854454d5f54505952434e45 XMM04=40404040404040404040404040404040 XMM05=5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a XMM06=20202020202020202020202020202020 XMM07=00000000000000000000000000000000 XMM08=00000000000000000000000000202020 XMM09=ff0000ffffffffffff00000000ffffff XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000