syzkaller login: [ 38.724910] BUG: Bad rss-counter state mm:000000000bdfc388 type:MM_FILEPAGES val:33 [ 38.726070] BUG: Bad rss-counter state mm:000000000bdfc388 type:MM_ANONPAGES val:22 [ 38.902700] ================================================================== [ 38.903717] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 38.904771] Read of size 8 at addr ffff888017f063f8 by task sshd/219 [ 38.905785] [ 38.906024] CPU: 1 PID: 219 Comm: sshd Not tainted 6.4.0-rc7-next-20230620 #1 [ 38.906974] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 38.908124] Call Trace: [ 38.908496] [ 38.908815] dump_stack_lvl+0x91/0xf0 [ 38.909359] print_report+0xcc/0x620 [ 38.909901] ? __virt_addr_valid+0x102/0x340 [ 38.910512] ? vma_interval_tree_remove+0xc75/0xec0 [ 38.911199] ? vma_interval_tree_remove+0xc75/0xec0 [ 38.911880] kasan_report+0xbe/0xf0 [ 38.912411] ? vma_interval_tree_remove+0xc75/0xec0 [ 38.913116] vma_interval_tree_remove+0xc75/0xec0 [ 38.913780] vma_prepare+0xc54/0x11a0 [ 38.914308] __split_vma+0x5af/0x950 [ 38.914830] ? __pfx___split_vma+0x10/0x10 [ 38.915446] ? find_held_lock+0x2c/0x110 [ 38.916049] do_vmi_align_munmap+0x2ba/0x11f0 [ 38.916722] ? lock_is_held_type+0x9f/0x120 [ 38.917347] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 38.918048] ? mtree_range_walk+0x632/0x900 [ 38.918691] ? mas_walk+0x5c7/0x7c0 [ 38.919244] do_vmi_munmap+0x1f1/0x2b0 [ 38.919807] mmap_region+0x1f9/0x2660 [ 38.920357] ? vm_mmap_pgoff+0x15c/0x3a0 [ 38.920950] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 38.921775] ? __pfx_lock_acquire+0x10/0x10 [ 38.922396] ? __pfx_mmap_region+0x10/0x10 [ 38.923008] ? security_mmap_addr+0x7d/0xa0 [ 38.923630] ? get_unmapped_area+0x1f5/0x3f0 [ 38.924255] do_mmap+0x854/0xf00 [ 38.924781] vm_mmap_pgoff+0x1a6/0x3a0 [ 38.925342] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 38.925980] ksys_mmap_pgoff+0x3af/0x500 [ 38.926567] do_syscall_64+0x3f/0x90 [ 38.927121] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 38.927862] RIP: 0033:0x7ff8fe72dd82 [ 38.928385] 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 [ 38.930869] RSP: 002b:00007ffc065359e8 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 38.931909] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007ff8fe72dd82 [ 38.932888] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007ff8fdb67000 [ 38.933869] RBP: 00007ff8fdb67000 R08: 0000000000000009 R09: 0000000000001000 [ 38.934846] R10: 0000000000000812 R11: 0000000000000206 R12: 0000564ada4aaec0 [ 38.935827] R13: 00007ffc06535a00 R14: 00007ffc06535a30 R15: 00007ffc06535d90 [ 38.936829] [ 38.937153] [ 38.937399] Allocated by task 212: [ 38.937902] kasan_save_stack+0x22/0x50 [ 38.938487] kasan_set_track+0x25/0x30 [ 38.939060] __kasan_slab_alloc+0x59/0x70 [ 38.939667] kmem_cache_alloc+0x16b/0x370 [ 38.940265] vm_area_dup+0x20/0x160 [ 38.940801] __split_vma+0x170/0x950 [ 38.941335] split_vma+0xc6/0x110 [ 38.941834] mprotect_fixup+0x8d2/0xb30 [ 38.942409] do_mprotect_pkey+0x87e/0xd40 [ 38.943000] __x64_sys_mprotect+0x78/0xc0 [ 38.943596] do_syscall_64+0x3f/0x90 [ 38.944130] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 38.944867] [ 38.945111] Freed by task 212: [ 38.945557] kasan_save_stack+0x22/0x50 [ 38.946109] kasan_set_track+0x25/0x30 [ 38.946674] kasan_save_free_info+0x2b/0x50 [ 38.947310] __kasan_slab_free+0x10a/0x190 [ 38.947923] kmem_cache_free+0x10d/0x4d0 [ 38.948526] rcu_core+0x8c8/0x2860 [ 38.949033] __do_softirq+0x1b7/0x7d4 [ 38.949572] [ 38.949805] Last potentially related work creation: [ 38.950444] kasan_save_stack+0x22/0x50 [ 38.950992] __kasan_record_aux_stack+0x8e/0xa0 [ 38.951602] __call_rcu_common.constprop.0+0x6a/0xb90 [ 38.952295] remove_vma+0x139/0x170 [ 38.952790] do_vmi_align_munmap+0xd4a/0x11f0 [ 38.953391] do_vmi_munmap+0x1f1/0x2b0 [ 38.953914] __vm_munmap+0x138/0x3a0 [ 38.954429] __x64_sys_munmap+0x59/0x80 [ 38.954963] do_syscall_64+0x3f/0x90 [ 38.955479] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 38.956186] [ 38.956417] Second to last potentially related work creation: [ 38.957165] kasan_save_stack+0x22/0x50 [ 38.957706] __kasan_record_aux_stack+0x8e/0xa0 [ 38.958322] __call_rcu_common.constprop.0+0x6a/0xb90 [ 38.959023] remove_vma+0x139/0x170 [ 38.959521] do_vmi_align_munmap+0xd4a/0x11f0 [ 38.960152] do_vmi_munmap+0x1f1/0x2b0 [ 38.960713] mmap_region+0x1f9/0x2660 [ 38.961249] do_mmap+0x854/0xf00 [ 38.961734] vm_mmap_pgoff+0x1a6/0x3a0 [ 38.962280] ksys_mmap_pgoff+0x3af/0x500 [ 38.962840] do_syscall_64+0x3f/0x90 [ 38.963371] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 38.964081] [ 38.964320] The buggy address belongs to the object at ffff888017f063a0 [ 38.964320] which belongs to the cache vm_area_struct of size 168 [ 38.965955] The buggy address is located 88 bytes inside of [ 38.965955] freed 168-byte region [ffff888017f063a0, ffff888017f06448) [ 38.967526] [ 38.967761] The buggy address belongs to the physical page: [ 38.968496] page:0000000093c4832d refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x17f06 [ 38.969672] memcg:ffff88800c45d301 [ 38.970128] flags: 0x100000000000200(slab|node=0|zone=1) [ 38.970823] page_type: 0xffffffff() [ 38.971320] raw: 0100000000000200 ffff8880087a0c80 dead000000000100 dead000000000122 [ 38.972319] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff88800c45d301 [ 38.973370] page dumped because: kasan: bad access detected [ 38.974073] [ 38.974306] Memory state around the buggy address: [ 38.974966] ffff888017f06280: fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 00 [ 38.975892] ffff888017f06300: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [ 38.976817] >ffff888017f06380: fc fc fc fc fa fb fb fb fb fb fb fb fb fb fb fb [ 38.977722] ^ [ 38.978620] ffff888017f06400: fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc [ 38.979527] ffff888017f06480: fc 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 38.980456] ================================================================== [ 38.981632] Disabling lock debugging due to kernel taint [ 40.515181] BUG: Bad rss-counter state mm:000000003635d462 type:MM_FILEPAGES val:33 [ 40.516071] BUG: Bad rss-counter state mm:000000003635d462 type:MM_ANONPAGES val:22 [ 41.069415] BUG: Bad rss-counter state mm:00000000a21e6129 type:MM_FILEPAGES val:33 [ 41.070598] BUG: Bad rss-counter state mm:00000000a21e6129 type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:55357' (ECDSA) to the list of known hosts. 2023/06/20 13:37:41 fuzzer started 2023/06/20 13:37:42 dialing manager at localhost:36067 2023/06/20 13:37:42 checking machine... 2023/06/20 13:37:42 checking revisions... [ 41.704091] kmemleak: Automatic memory scanning thread ended 2023/06/20 13:37:42 testing simple program... [ 41.752294] cgroup: Unknown subsys name 'net' [ 41.791910] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 13:37:41 Registers: info registers vcpu 0 RAX=0000000000000001 RBX=00007f0b703596a0 RCX=00007f0b70359660 RDX=00007f0b703596a0 RSI=0000000000000000 RDI=000000006491aba5 RBP=0000000000000001 RSP=00007f0b70359640 R8 =00007f0b703596a0 R9 =0000560a74290490 R10=0000000000000001 R11=00007f0b703598b0 R12=000000006491aba5 R13=0000000000001fa0 R14=00007f0b68000ba0 R15=0000000000000003 RIP=00007f0b707a79c2 RFL=00000246 [---Z-P-] CPL=3 II=0 A20=1 SMM=0 HLT=0 ES =0000 0000000000000000 00000000 00000000 CS =0033 0000000000000000 ffffffff 00a0fb00 DPL=3 CS64 [-RA] SS =002b 0000000000000000 ffffffff 00c0f300 DPL=3 DS [-WA] DS =0000 0000000000000000 00000000 00000000 FS =0000 00007f0b7035d700 00000000 00000000 GS =0000 0000000000000000 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=00007fe431f68a20 CR3=000000000db92000 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=ffffffffffffffffffffffffff000000 XMM01=00000000000000003043545500435455 XMM02=63736964203a31313a30313336332074 XMM03=66207463656e6e6f6373696420646576 XMM04=6456774875434142334f726f59427469 XMM05=485320415352203a3268737320303133 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=0000000000000004 RBX=00000000000000e1 RCX=0000000000000004 RDX=000000000000231c RSI=0000000000000000 RDI=00007ffdbaf9eab0 RBP=00000000000000f4 RSP=fffffe0000049fd0 R8 =00007ffdbafa3154 R9 =00007ffdbafa3010 R10=00007f08903b7a57 R11=0000000000000000 R12=0000000000000008 R13=00007ffdbaf9eab0 R14=00007ffdbafa3280 R15=0000000000000452 RIP=ffffffff84601260 RFL=00000046 [---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 =0000 0000000000000000 00000000 00000000 DS =0000 0000000000000000 00000000 00000000 FS =0000 00007f088f867900 00000000 00000000 GS =0000 0000000000000000 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=00007ffdbaf9ea8c CR3=00000000094e6000 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=00000000000000000000000000000000 XMM02=00000000000000000000000000000000 XMM03=00000000000000000000000000000000 XMM04=000000000000000000000000000000ff XMM05=000000000000000000000000000000ff XMM06=6c0835696d72656620052e322e302e00 XMM07=672065736f6c635f6e6f69737365733a XMM08=652075253d64692073253d706f000000 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000