syzkaller login: [ 69.050841] BUG: Bad rss-counter state mm:00000000cd1441f0 type:MM_FILEPAGES val:33 [ 69.051917] BUG: Bad rss-counter state mm:00000000cd1441f0 type:MM_ANONPAGES val:22 [ 69.227069] ================================================================== [ 69.228153] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 69.229260] Read of size 8 at addr ffff888009699310 by task sshd/229 [ 69.230309] [ 69.230570] CPU: 1 PID: 229 Comm: sshd Not tainted 6.4.0-rc7-next-20230620 #1 [ 69.231580] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 69.232824] Call Trace: [ 69.233209] [ 69.233564] dump_stack_lvl+0x91/0xf0 [ 69.234143] print_report+0xcc/0x620 [ 69.234709] ? __virt_addr_valid+0x102/0x340 [ 69.235357] ? vma_interval_tree_remove+0xc75/0xec0 [ 69.236085] ? vma_interval_tree_remove+0xc75/0xec0 [ 69.236843] kasan_report+0xbe/0xf0 [ 69.237433] ? vma_interval_tree_remove+0xc75/0xec0 [ 69.238207] vma_interval_tree_remove+0xc75/0xec0 [ 69.238955] vma_prepare+0xc54/0x11a0 [ 69.239543] __split_vma+0x5af/0x950 [ 69.240125] ? __pfx___split_vma+0x10/0x10 [ 69.240768] ? find_held_lock+0x2c/0x110 [ 69.241436] do_vmi_align_munmap+0x2ba/0x11f0 [ 69.242125] ? lock_is_held_type+0x9f/0x120 [ 69.242674] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 69.243275] ? mtree_range_walk+0x632/0x900 [ 69.243823] ? mas_walk+0x5c7/0x7c0 [ 69.244296] do_vmi_munmap+0x1f1/0x2b0 [ 69.244792] mmap_region+0x1f9/0x2660 [ 69.245289] ? vm_mmap_pgoff+0x15c/0x3a0 [ 69.245800] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 69.246508] ? __pfx_lock_acquire+0x10/0x10 [ 69.247042] ? __pfx_mmap_region+0x10/0x10 [ 69.247567] ? security_mmap_addr+0x7d/0xa0 [ 69.248105] ? get_unmapped_area+0x1f5/0x3f0 [ 69.248655] do_mmap+0x854/0xf00 [ 69.249089] vm_mmap_pgoff+0x1a6/0x3a0 [ 69.249596] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 69.250151] ksys_mmap_pgoff+0x3af/0x500 [ 69.250652] do_syscall_64+0x3f/0x90 [ 69.251130] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 69.251777] RIP: 0033:0x7f8c1309cd82 [ 69.252239] 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 [ 69.254390] RSP: 002b:00007ffd92704b58 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 69.255301] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007f8c1309cd82 [ 69.256150] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007f8c124d6000 [ 69.256999] RBP: 00007f8c124d6000 R08: 0000000000000009 R09: 0000000000001000 [ 69.257874] R10: 0000000000000812 R11: 0000000000000206 R12: 00005570a5081ec0 [ 69.258718] R13: 00007ffd92704b70 R14: 00007ffd92704ba0 R15: 00007ffd92704f00 [ 69.259581] [ 69.259870] [ 69.260084] Allocated by task 220: [ 69.260508] kasan_save_stack+0x22/0x50 [ 69.261011] kasan_set_track+0x25/0x30 [ 69.261513] __kasan_slab_alloc+0x59/0x70 [ 69.262034] kmem_cache_alloc+0x16b/0x370 [ 69.262545] vm_area_dup+0x20/0x160 [ 69.262999] __split_vma+0x170/0x950 [ 69.263458] split_vma+0xc6/0x110 [ 69.263892] mprotect_fixup+0x8d2/0xb30 [ 69.264394] do_mprotect_pkey+0x87e/0xd40 [ 69.264916] __x64_sys_mprotect+0x78/0xc0 [ 69.265445] do_syscall_64+0x3f/0x90 [ 69.265917] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 69.266560] [ 69.266774] Freed by task 220: [ 69.267163] kasan_save_stack+0x22/0x50 [ 69.267676] kasan_set_track+0x25/0x30 [ 69.268164] kasan_save_free_info+0x2b/0x50 [ 69.268700] __kasan_slab_free+0x10a/0x190 [ 69.269226] kmem_cache_free+0x10d/0x4d0 [ 69.269748] rcu_core+0x8c8/0x2860 [ 69.270188] __do_softirq+0x1b7/0x7d4 [ 69.270667] [ 69.270882] Last potentially related work creation: [ 69.271544] kasan_save_stack+0x22/0x50 [ 69.272055] __kasan_record_aux_stack+0x8e/0xa0 [ 69.272718] __call_rcu_common.constprop.0+0x6a/0xb90 [ 69.273406] remove_vma+0x139/0x170 [ 69.273858] do_vmi_align_munmap+0xd4a/0x11f0 [ 69.274413] do_vmi_munmap+0x1f1/0x2b0 [ 69.274894] __vm_munmap+0x138/0x3a0 [ 69.275359] __x64_sys_munmap+0x59/0x80 [ 69.275853] do_syscall_64+0x3f/0x90 [ 69.276330] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 69.276971] [ 69.277186] The buggy address belongs to the object at ffff8880096992b8 [ 69.277186] which belongs to the cache vm_area_struct of size 168 [ 69.278668] The buggy address is located 88 bytes inside of [ 69.278668] freed 168-byte region [ffff8880096992b8, ffff888009699360) [ 69.280109] [ 69.280329] The buggy address belongs to the physical page: [ 69.280991] page:00000000322ea9ba refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x9699 [ 69.282093] memcg:ffff888016700e01 [ 69.282520] flags: 0x100000000000200(slab|node=0|zone=1) [ 69.283170] page_type: 0xffffffff() [ 69.283618] raw: 0100000000000200 ffff8880087a0c80 dead000000000122 0000000000000000 [ 69.284540] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff888016700e01 [ 69.285452] page dumped because: kasan: bad access detected [ 69.286111] [ 69.286326] Memory state around the buggy address: [ 69.286906] ffff888009699200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 69.287757] ffff888009699280: fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb fb [ 69.288608] >ffff888009699300: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 69.289458] ^ [ 69.289925] ffff888009699380: fc fc fc fc fa fb fb fb fb fb fb fb fb fb fb fb [ 69.290773] ffff888009699400: fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc [ 69.291623] ================================================================== [ 69.292555] Disabling lock debugging due to kernel taint [ 71.528844] BUG: Bad rss-counter state mm:00000000e79de82d type:MM_FILEPAGES val:33 [ 71.529971] BUG: Bad rss-counter state mm:00000000e79de82d type:MM_ANONPAGES val:22 [ 72.063847] BUG: Bad rss-counter state mm:0000000008a1061e type:MM_FILEPAGES val:33 [ 72.065710] BUG: Bad rss-counter state mm:0000000008a1061e type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:10515' (ECDSA) to the list of known hosts. 2023/06/21 09:40:38 fuzzer started 2023/06/21 09:40:39 dialing manager at localhost:36067 2023/06/21 09:40:39 checking machine... 2023/06/21 09:40:39 checking revisions... [ 72.887003] kmemleak: Automatic memory scanning thread ended 2023/06/21 09:40:39 testing simple program... [ 72.958736] cgroup: Unknown subsys name 'net' [ 73.010570] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 09:40:38 Registers: info registers vcpu 0 RAX=1ffffffff0c0aa69 RBX=ffffffff8605534c RCX=ffffffff846000a9 RDX=0000000000000000 RSI=ffffffff864bbb4e RDI=ffffffff86055348 RBP=ffffffff8605534c RSP=ffff88806ce099e0 R8 =ffffffff864bbb4e R9 =ffff88806ce09ad8 R10=0000000000038001 R11=00000000000b6a61 R12=ffffffff8605534c R13=ffffffff86055348 R14=ffffffff86055348 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 00007f62b6b2e900 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=00007f62b6da2000 CR3=0000000015974000 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=00000000ff0000000000000000000000 XMM01=ffffffff00ffffffffffffffffffffff XMM02=42494c4700342e332e325f4342494c47 XMM03=000000000000004700352e322e325f43 XMM04=4342494c4700362e322e325f4342494c XMM05=00007f62b70e7f6000007f62b72a1950 XMM06=00007f62b72a144000007f62b72a0f20 XMM07=00007f62b6beb12000007f62b6beab10 XMM08=00007f62b6bea5f000007f62b6bea060 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=0000000000000000 RBX=ffffffff813ad470 RCX=ffffffff812d86ea RDX=0000000000000000 RSI=0000000000000008 RDI=ffffffff85d3d350 RBP=ffff8880147c7380 RSP=ffff8880147c72e8 R8 =0000000000000000 R9 =fffffbfff0ba7a6a R10=ffffffff85d3d357 R11=00000000000b6a61 R12=ffff8880147c73b0 R13=0000000000000000 R14=ffff888016bf51c0 R15=0000000000092820 RIP=ffffffff810bd06d 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 00007efe9b182900 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=00007f96b4d94650 CR3=000000000cbda000 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=e1f64d19aeb309b60d4a8d766bc15d80 XMM02=000000000011c1e8d59e07bde36eea69 XMM03=000000000011c310ec2efd57dc4c00df XMM04=cc40af1be9fca35e00000000000ae988 XMM05=50279660310800f50000000000134670 XMM06=8572609724db0d110000000000133410 XMM07=fb795ef6d65770560000000000123078 XMM08=2c67c8bc2e329bc3000000000011c310 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000