syzkaller login: [ 30.146438] BUG: Bad rss-counter state mm:00000000628c0ce1 type:MM_FILEPAGES val:33 [ 30.147482] BUG: Bad rss-counter state mm:00000000628c0ce1 type:MM_ANONPAGES val:22 [ 30.309271] ================================================================== [ 30.310215] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 30.311216] Read of size 8 at addr ffff88800e907798 by task sshd/222 [ 30.312073] [ 30.312290] CPU: 0 PID: 222 Comm: sshd Not tainted 6.4.0-rc7-next-20230620 #1 [ 30.313168] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 30.314184] Call Trace: [ 30.314511] [ 30.314813] dump_stack_lvl+0x91/0xf0 [ 30.315314] print_report+0xcc/0x620 [ 30.315803] ? __virt_addr_valid+0x102/0x340 [ 30.316352] ? vma_interval_tree_remove+0xc75/0xec0 [ 30.316977] ? vma_interval_tree_remove+0xc75/0xec0 [ 30.317600] kasan_report+0xbe/0xf0 [ 30.318076] ? vma_interval_tree_remove+0xc75/0xec0 [ 30.318720] vma_interval_tree_remove+0xc75/0xec0 [ 30.319338] vma_prepare+0xc54/0x11a0 [ 30.319823] __split_vma+0x5af/0x950 [ 30.320297] ? __pfx___split_vma+0x10/0x10 [ 30.320836] ? find_held_lock+0x2c/0x110 [ 30.321352] do_vmi_align_munmap+0x2ba/0x11f0 [ 30.321926] ? lock_is_held_type+0x9f/0x120 [ 30.322458] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 30.323079] ? mtree_range_walk+0x632/0x900 [ 30.323632] ? mas_walk+0x5c7/0x7c0 [ 30.324111] do_vmi_munmap+0x1f1/0x2b0 [ 30.324601] mmap_region+0x1f9/0x2660 [ 30.325081] ? vm_mmap_pgoff+0x15c/0x3a0 [ 30.325594] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 30.326305] ? __pfx_lock_acquire+0x10/0x10 [ 30.326842] ? __pfx_mmap_region+0x10/0x10 [ 30.327367] ? security_mmap_addr+0x7d/0xa0 [ 30.327897] ? get_unmapped_area+0x1f5/0x3f0 [ 30.328438] do_mmap+0x854/0xf00 [ 30.328878] vm_mmap_pgoff+0x1a6/0x3a0 [ 30.329400] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 30.329984] ksys_mmap_pgoff+0x3af/0x500 [ 30.330489] do_syscall_64+0x3f/0x90 [ 30.330989] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 30.331624] RIP: 0033:0x7f3d4d1a8d82 [ 30.332074] 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 [ 30.334249] RSP: 002b:00007ffdff2397c8 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 30.335152] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007f3d4d1a8d82 [ 30.335995] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007f3d4c5e2000 [ 30.336838] RBP: 00007f3d4c5e2000 R08: 0000000000000009 R09: 0000000000001000 [ 30.337669] R10: 0000000000000812 R11: 0000000000000206 R12: 0000558356e80f70 [ 30.338574] R13: 00007ffdff2397e0 R14: 00007ffdff239810 R15: 00007ffdff239b70 [ 30.339461] [ 30.339757] [ 30.339972] Allocated by task 215: [ 30.340414] kasan_save_stack+0x22/0x50 [ 30.340935] kasan_set_track+0x25/0x30 [ 30.341452] __kasan_slab_alloc+0x59/0x70 [ 30.341996] kmem_cache_alloc+0x16b/0x370 [ 30.342522] vm_area_dup+0x20/0x160 [ 30.342990] __split_vma+0x170/0x950 [ 30.343459] split_vma+0xc6/0x110 [ 30.343921] mprotect_fixup+0x8d2/0xb30 [ 30.344429] do_mprotect_pkey+0x87e/0xd40 [ 30.344955] __x64_sys_mprotect+0x78/0xc0 [ 30.345480] do_syscall_64+0x3f/0x90 [ 30.345960] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 30.346605] [ 30.346851] Freed by task 215: [ 30.347245] kasan_save_stack+0x22/0x50 [ 30.347759] kasan_set_track+0x25/0x30 [ 30.348257] kasan_save_free_info+0x2b/0x50 [ 30.348790] __kasan_slab_free+0x10a/0x190 [ 30.349327] kmem_cache_free+0x10d/0x4d0 [ 30.349853] rcu_core+0x8c8/0x2860 [ 30.350312] __do_softirq+0x1b7/0x7d4 [ 30.350817] [ 30.351035] Last potentially related work creation: [ 30.351618] kasan_save_stack+0x22/0x50 [ 30.352128] __kasan_record_aux_stack+0x8e/0xa0 [ 30.352711] __call_rcu_common.constprop.0+0x6a/0xb90 [ 30.353368] remove_vma+0x139/0x170 [ 30.353826] do_vmi_align_munmap+0xd4a/0x11f0 [ 30.354394] do_vmi_munmap+0x1f1/0x2b0 [ 30.354893] __vm_munmap+0x138/0x3a0 [ 30.355364] __x64_sys_munmap+0x59/0x80 [ 30.355877] do_syscall_64+0x3f/0x90 [ 30.356394] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 30.357054] [ 30.357273] The buggy address belongs to the object at ffff88800e907740 [ 30.357273] which belongs to the cache vm_area_struct of size 168 [ 30.358774] The buggy address is located 88 bytes inside of [ 30.358774] freed 168-byte region [ffff88800e907740, ffff88800e9077e8) [ 30.360231] [ 30.360450] The buggy address belongs to the physical page: [ 30.361149] page:000000009d823210 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xe907 [ 30.362277] memcg:ffff88800cfb7a01 [ 30.362729] flags: 0x100000000000200(slab|node=0|zone=1) [ 30.363402] page_type: 0xffffffff() [ 30.363877] raw: 0100000000000200 ffff8880087a0c80 dead000000000122 0000000000000000 [ 30.364815] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff88800cfb7a01 [ 30.365771] page dumped because: kasan: bad access detected [ 30.366477] [ 30.366720] Memory state around the buggy address: [ 30.367330] ffff88800e907680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.368223] ffff88800e907700: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb [ 30.369122] >ffff88800e907780: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc [ 30.369984] ^ [ 30.370477] ffff88800e907800: fc fc fc fc fc fa fb fb fb fb fb fb fb fb fb fb [ 30.371360] ffff88800e907880: fb fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc [ 30.372246] ================================================================== [ 30.373319] Disabling lock debugging due to kernel taint [ 32.156596] BUG: Bad rss-counter state mm:000000008631b2fc type:MM_FILEPAGES val:33 [ 32.157341] BUG: Bad rss-counter state mm:000000008631b2fc type:MM_ANONPAGES val:22 [ 32.579180] BUG: Bad rss-counter state mm:0000000042d0985b type:MM_FILEPAGES val:33 [ 32.580851] BUG: Bad rss-counter state mm:0000000042d0985b type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:54752' (ECDSA) to the list of known hosts. 2023/06/20 13:46:54 fuzzer started 2023/06/20 13:46:55 dialing manager at localhost:36067 2023/06/20 13:46:55 checking machine... 2023/06/20 13:46:55 checking revisions... [ 33.293012] kmemleak: Automatic memory scanning thread ended 2023/06/20 13:46:55 testing simple program... [ 33.334846] cgroup: Unknown subsys name 'net' [ 33.381610] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 13:46:54 Registers: info registers vcpu 0 RAX=0000000000000003 RBX=ffffffff85dbd7f8 RCX=ffffffff813ad71f RDX=0000000000000000 RSI=ffffffff860d8256 RDI=ffffffff85dbd7f8 RBP=ffffffff85dbd7f8 RSP=ffff88800f577a38 R8 =ffffffff860d8256 R9 =ffff88800f577b30 R10=0000000000038001 R11=0000000000010b8d R12=ffffffff85dbd7f8 R13=ffffffff85dbd7f8 R14=ffffffff85dbd7f8 R15=dffffc0000000000 RIP=ffffffff8112fc8a RFL=00000206 [-----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 00007f81e2c3c900 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=00007f81e2bf001c CR3=0000000010344000 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=ffffffff00ffffffffffffffffffffff XMM01=707465675f6c697475646f6d6d61705f XMM02=ff000000000000ff0000000000ff0000 XMM03=66207463656e6e6f6373696420646576 XMM04=00000000000000000000000000000000 XMM05=00000000000000000000000000000000 XMM06=0d0c0f0e09080b0a0504070601000302 XMM07=00000000000000000000000000000000 XMM08=000a0d732a2e25006c61746166003367 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=ffff8880158a8001 RBX=ffff8880158a7b50 RCX=0000000000000001 RDX=ffff8880158a7b58 RSI=ffff8880158a7b28 RDI=ffff8880158a7590 RBP=ffff8880158a0000 RSP=ffff8880158a7510 R8 =0000000000000001 R9 =ffff8880158a75c0 R10=0000000000038001 R11=000000000008a835 R12=ffff8880158a75e0 R13=ffff8880158a75c8 R14=ffff8880158a7b28 R15=ffff8880158a7580 RIP=ffffffff81131ed8 RFL=00000247 [---Z-PC] 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 00007f581578d900 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=00007f5814cab000 CR3=000000000cb74000 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=1ff1cbb0243481bd83425def962ff6ca XMM02=eff9b2d0a8fce9cb000000000011b238 XMM03=2c67c8bc2e329bc3000000000011b360 XMM04=2728908518038a2e00000000000ae988 XMM05=d466a0901b05c2cf0000000000132df0 XMM06=00c3ffa147b8d8570000000000131e90 XMM07=fb795ef6d65770560000000000122140 XMM08=2c67c8bc2e329bc3000000000011b360 XMM09=00000000000000000000000000000000 XMM10=20200000000020202020202020200000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000