syzkaller login: [ 39.578643] BUG: Bad rss-counter state mm:00000000b65e00e0 type:MM_FILEPAGES val:33 [ 39.580033] BUG: Bad rss-counter state mm:00000000b65e00e0 type:MM_ANONPAGES val:22 [ 39.746326] ================================================================== [ 39.747368] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 39.748471] Read of size 8 at addr ffff88800da45140 by task sshd/221 [ 39.749520] [ 39.749775] CPU: 0 PID: 221 Comm: sshd Not tainted 6.4.0-rc7-next-20230619 #1 [ 39.750777] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 39.751886] Call Trace: [ 39.752266] [ 39.752588] dump_stack_lvl+0x91/0xf0 [ 39.753130] print_report+0xcc/0x620 [ 39.753666] ? __virt_addr_valid+0x102/0x340 [ 39.754283] ? vma_interval_tree_remove+0xc75/0xec0 [ 39.754965] ? vma_interval_tree_remove+0xc75/0xec0 [ 39.755648] kasan_report+0xbe/0xf0 [ 39.756187] ? vma_interval_tree_remove+0xc75/0xec0 [ 39.756884] vma_interval_tree_remove+0xc75/0xec0 [ 39.757590] vma_prepare+0xc54/0x11a0 [ 39.758153] __split_vma+0x5af/0x950 [ 39.758681] ? __pfx___split_vma+0x10/0x10 [ 39.759272] ? find_held_lock+0x2c/0x110 [ 39.759859] do_vmi_align_munmap+0x2ba/0x11f0 [ 39.760506] ? lock_is_held_type+0x9f/0x120 [ 39.761101] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 39.761777] ? mtree_range_walk+0x632/0x900 [ 39.762425] ? mas_walk+0x5c7/0x7c0 [ 39.762963] do_vmi_munmap+0x1f1/0x2b0 [ 39.763513] mmap_region+0x1f9/0x2660 [ 39.764046] ? vm_mmap_pgoff+0x15c/0x3a0 [ 39.764653] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 39.765478] ? __pfx_lock_acquire+0x10/0x10 [ 39.766075] ? __pfx_mmap_region+0x10/0x10 [ 39.766679] ? security_mmap_addr+0x7d/0xa0 [ 39.767285] ? get_unmapped_area+0x1f5/0x3f0 [ 39.767926] do_mmap+0x854/0xf00 [ 39.768511] vm_mmap_pgoff+0x1a6/0x3a0 [ 39.769066] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 39.769766] ksys_mmap_pgoff+0x3af/0x500 [ 39.770346] do_syscall_64+0x3f/0x90 [ 39.770885] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 39.771612] RIP: 0033:0x7f4519c6bd82 [ 39.772210] 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 [ 39.774932] RSP: 002b:00007ffc17c7be18 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 39.776098] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007f4519c6bd82 [ 39.777101] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007f45190a5000 [ 39.778039] RBP: 00007f45190a5000 R08: 0000000000000009 R09: 0000000000001000 [ 39.778973] R10: 0000000000000812 R11: 0000000000000206 R12: 00005618c3b83ec0 [ 39.779904] R13: 00007ffc17c7be30 R14: 00007ffc17c7be60 R15: 00007ffc17c7c1c0 [ 39.780859] [ 39.781211] [ 39.781487] Allocated by task 214: [ 39.781981] kasan_save_stack+0x22/0x50 [ 39.782651] kasan_set_track+0x25/0x30 [ 39.783313] __kasan_slab_alloc+0x59/0x70 [ 39.784021] kmem_cache_alloc+0x16b/0x370 [ 39.784736] vm_area_dup+0x20/0x160 [ 39.785353] __split_vma+0x170/0x950 [ 39.785992] split_vma+0xc6/0x110 [ 39.786591] mprotect_fixup+0x8d2/0xb30 [ 39.787264] do_mprotect_pkey+0x87e/0xd40 [ 39.787975] __x64_sys_mprotect+0x78/0xc0 [ 39.788697] do_syscall_64+0x3f/0x90 [ 39.789254] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 39.790081] [ 39.790375] Freed by task 214: [ 39.790911] kasan_save_stack+0x22/0x50 [ 39.791588] kasan_set_track+0x25/0x30 [ 39.792281] kasan_save_free_info+0x2b/0x50 [ 39.793003] __kasan_slab_free+0x10a/0x190 [ 39.793735] kmem_cache_free+0x10d/0x4d0 [ 39.794428] rcu_core+0x8c8/0x2860 [ 39.795025] __do_softirq+0x1b7/0x7d4 [ 39.795661] [ 39.795948] Last potentially related work creation: [ 39.796762] kasan_save_stack+0x22/0x50 [ 39.797357] __kasan_record_aux_stack+0x8e/0xa0 [ 39.798113] __call_rcu_common.constprop.0+0x6a/0xb90 [ 39.799005] remove_vma+0x139/0x170 [ 39.799542] do_vmi_align_munmap+0xd4a/0x11f0 [ 39.800194] do_vmi_munmap+0x1f1/0x2b0 [ 39.800660] __vm_munmap+0x138/0x3a0 [ 39.801107] __x64_sys_munmap+0x59/0x80 [ 39.801578] do_syscall_64+0x3f/0x90 [ 39.802033] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 39.802636] [ 39.802841] The buggy address belongs to the object at ffff88800da450e8 [ 39.802841] which belongs to the cache vm_area_struct of size 168 [ 39.804376] The buggy address is located 88 bytes inside of [ 39.804376] freed 168-byte region [ffff88800da450e8, ffff88800da45190) [ 39.805918] [ 39.806137] The buggy address belongs to the physical page: [ 39.806831] page:000000003d3d3329 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xda45 [ 39.808044] memcg:ffff88800e125001 [ 39.808532] anon flags: 0x100000000000200(slab|node=0|zone=1) [ 39.809319] page_type: 0xffffffff() [ 39.809819] raw: 0100000000000200 ffff88800879fc80 0000000000000000 dead000000000001 [ 39.810839] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff88800e125001 [ 39.811849] page dumped because: kasan: bad access detected [ 39.812786] [ 39.813103] Memory state around the buggy address: [ 39.813911] ffff88800da45000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 39.815088] ffff88800da45080: 00 00 00 00 00 fc fc fc fc fc fc fc fc fa fb fb [ 39.816274] >ffff88800da45100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.817437] ^ [ 39.818310] ffff88800da45180: fb fb fc fc fc fc fc fc fc fc 00 00 00 00 00 00 [ 39.819477] ffff88800da45200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 39.820667] ================================================================== [ 39.822042] Disabling lock debugging due to kernel taint [ 42.124426] BUG: Bad rss-counter state mm:00000000d97bab43 type:MM_FILEPAGES val:33 [ 42.125481] BUG: Bad rss-counter state mm:00000000d97bab43 type:MM_ANONPAGES val:22 [ 42.726909] BUG: Bad rss-counter state mm:000000008ef9c123 type:MM_FILEPAGES val:33 [ 42.728179] BUG: Bad rss-counter state mm:000000008ef9c123 type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:44887' (ECDSA) to the list of known hosts. 2023/06/20 02:35:34 fuzzer started 2023/06/20 02:35:34 dialing manager at localhost:44161 2023/06/20 02:35:34 checking machine... 2023/06/20 02:35:34 checking revisions... [ 43.371069] kmemleak: Automatic memory scanning thread ended 2023/06/20 02:35:34 testing simple program... [ 43.428563] cgroup: Unknown subsys name 'net' [ 43.471317] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 02:35:33 Registers: info registers vcpu 0 RAX=ffffffff860546d8 RBX=ffffffff860546b8 RCX=ffffffff84601449 RDX=0000000000000000 RSI=ffffffff864baff8 RDI=ffffffff8605469c RBP=ffffffff860546bc RSP=ffff88806ce099e0 R8 =ffffffff864baff8 R9 =ffff88806ce09ad8 R10=0000000000038001 R11=00000000000b6cb2 R12=ffffffff860546d8 R13=ffffffff8605469c R14=ffffffff860546b8 R15=dffffc0000000000 RIP=ffffffff8112fc5a RFL=00000212 [----A--] 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 0000000000000000 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=00007fff8310ad18 CR3=000000000e806000 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=2034333a35333a3230203032206e754a XMM01=657463656e6e6f63736944203a5d3133 XMM02=302e303120746f6f722072657375206d XMM03=203a5d3133325b646873732072656c6c XMM04=69662068637573206f4e203a656c6163 XMM05=3a656c696620766e65206e65706f206f XMM06=65733a6468737328766e655f6d617020 XMM07=6b7a79732033333a35333a3230203032 XMM08=3d656e696c646d632022656369767265 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=0000000000000000 RBX=0000000000000001 RCX=1ffff110028e6e68 RDX=dffffc0000000000 RSI=ffffffff8180ae86 RDI=ffff8880147372e8 RBP=ffff888014737340 RSP=ffff888014737278 R8 =0000000000000001 R9 =ffff888014737328 R10=0000000000038001 R11=0000000000021edf R12=ffff888014737348 R13=ffff888014737330 R14=ffff888014737329 R15=ffff8880147372e8 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 00007f8020ba5900 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=00007fed5d460650 CR3=000000000deda000 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=faf74eccd1a340a6b74b31937ecc68c5 XMM02=eff9b2d0a8fce9cb000000000011d1b8 XMM03=2c67c8bc2e329bc3000000000011d2e0 XMM04=0d2fbe95a55d19fa00000000000ae988 XMM05=61c840e48d408f580000000000135408 XMM06=59d5b690e0af863b00000000001342a0 XMM07=fb795ef6d65770560000000000124050 XMM08=2c67c8bc2e329bc3000000000011d2e0 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000