syzkaller login: [ 28.674508] BUG: Bad rss-counter state mm:000000007d15a1d3 type:MM_FILEPAGES val:33 [ 28.675860] BUG: Bad rss-counter state mm:000000007d15a1d3 type:MM_ANONPAGES val:22 [ 28.830711] ================================================================== [ 28.831808] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 28.832757] Read of size 8 at addr ffff88800d9235c8 by task sshd/220 [ 28.833664] [ 28.833880] CPU: 0 PID: 220 Comm: sshd Not tainted 6.4.0-rc7-next-20230620 #1 [ 28.834738] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 28.835740] Call Trace: [ 28.836057] [ 28.836341] dump_stack_lvl+0x91/0xf0 [ 28.836830] print_report+0xcc/0x620 [ 28.837309] ? __virt_addr_valid+0x102/0x340 [ 28.837863] ? vma_interval_tree_remove+0xc75/0xec0 [ 28.838480] ? vma_interval_tree_remove+0xc75/0xec0 [ 28.839107] kasan_report+0xbe/0xf0 [ 28.839581] ? vma_interval_tree_remove+0xc75/0xec0 [ 28.840201] vma_interval_tree_remove+0xc75/0xec0 [ 28.840799] vma_prepare+0xc54/0x11a0 [ 28.841282] __split_vma+0x5af/0x950 [ 28.841750] ? __pfx___split_vma+0x10/0x10 [ 28.842274] ? find_held_lock+0x2c/0x110 [ 28.842824] do_vmi_align_munmap+0x2ba/0x11f0 [ 28.843399] ? lock_is_held_type+0x9f/0x120 [ 28.843941] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 28.844548] ? mtree_range_walk+0x632/0x900 [ 28.845095] ? mas_walk+0x5c7/0x7c0 [ 28.845573] do_vmi_munmap+0x1f1/0x2b0 [ 28.846068] mmap_region+0x1f9/0x2660 [ 28.846553] ? vm_mmap_pgoff+0x15c/0x3a0 [ 28.847063] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 28.847785] ? __pfx_lock_acquire+0x10/0x10 [ 28.848316] ? __pfx_mmap_region+0x10/0x10 [ 28.848850] ? security_mmap_addr+0x7d/0xa0 [ 28.849384] ? get_unmapped_area+0x1f5/0x3f0 [ 28.849932] do_mmap+0x854/0xf00 [ 28.850376] vm_mmap_pgoff+0x1a6/0x3a0 [ 28.850880] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 28.851441] ksys_mmap_pgoff+0x3af/0x500 [ 28.851955] do_syscall_64+0x3f/0x90 [ 28.852436] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 28.853079] RIP: 0033:0x7f4ce777bd82 [ 28.853530] 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 [ 28.855668] RSP: 002b:00007fff913573a8 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 28.856570] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007f4ce777bd82 [ 28.857418] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007f4ce6bb5000 [ 28.858267] RBP: 00007f4ce6bb5000 R08: 0000000000000009 R09: 0000000000001000 [ 28.859127] R10: 0000000000000812 R11: 0000000000000206 R12: 0000559628ff3ec0 [ 28.859997] R13: 00007fff913573c0 R14: 00007fff913573f0 R15: 00007fff91357750 [ 28.860860] [ 28.861152] [ 28.861365] Allocated by task 213: [ 28.861794] kasan_save_stack+0x22/0x50 [ 28.862297] kasan_set_track+0x25/0x30 [ 28.862787] __kasan_slab_alloc+0x59/0x70 [ 28.863337] kmem_cache_alloc+0x16b/0x370 [ 28.863851] vm_area_dup+0x20/0x160 [ 28.864306] __split_vma+0x170/0x950 [ 28.864774] split_vma+0xc6/0x110 [ 28.865210] mprotect_fixup+0x8d2/0xb30 [ 28.865717] do_mprotect_pkey+0x87e/0xd40 [ 28.866240] __x64_sys_mprotect+0x78/0xc0 [ 28.866755] do_syscall_64+0x3f/0x90 [ 28.867239] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 28.867881] [ 28.868096] Freed by task 213: [ 28.868489] kasan_save_stack+0x22/0x50 [ 28.868991] kasan_set_track+0x25/0x30 [ 28.869478] kasan_save_free_info+0x2b/0x50 [ 28.870011] __kasan_slab_free+0x10a/0x190 [ 28.870542] kmem_cache_free+0x10d/0x4d0 [ 28.871054] rcu_core+0x8c8/0x2860 [ 28.871499] __do_softirq+0x1b7/0x7d4 [ 28.871975] [ 28.872188] Last potentially related work creation: [ 28.872772] kasan_save_stack+0x22/0x50 [ 28.873277] __kasan_record_aux_stack+0x8e/0xa0 [ 28.873849] __call_rcu_common.constprop.0+0x6a/0xb90 [ 28.874492] remove_vma+0x139/0x170 [ 28.874967] do_vmi_align_munmap+0xd4a/0x11f0 [ 28.875519] do_vmi_munmap+0x1f1/0x2b0 [ 28.876002] __vm_munmap+0x138/0x3a0 [ 28.876468] __x64_sys_munmap+0x59/0x80 [ 28.876965] do_syscall_64+0x3f/0x90 [ 28.877440] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 28.878085] [ 28.878299] Second to last potentially related work creation: [ 28.878983] kasan_save_stack+0x22/0x50 [ 28.879481] __kasan_record_aux_stack+0x8e/0xa0 [ 28.880052] __call_rcu_common.constprop.0+0x6a/0xb90 [ 28.880687] remove_vma+0x139/0x170 [ 28.881135] do_vmi_align_munmap+0xd4a/0x11f0 [ 28.881693] do_vmi_munmap+0x1f1/0x2b0 [ 28.882173] mmap_region+0x1f9/0x2660 [ 28.882652] do_mmap+0x854/0xf00 [ 28.883095] vm_mmap_pgoff+0x1a6/0x3a0 [ 28.883582] ksys_mmap_pgoff+0x7d/0x500 [ 28.884073] do_syscall_64+0x3f/0x90 [ 28.884547] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 28.885208] [ 28.885424] The buggy address belongs to the object at ffff88800d923570 [ 28.885424] which belongs to the cache vm_area_struct of size 168 [ 28.886886] The buggy address is located 88 bytes inside of [ 28.886886] freed 168-byte region [ffff88800d923570, ffff88800d923618) [ 28.888276] [ 28.888494] The buggy address belongs to the physical page: [ 28.889145] page:000000001eb38fc9 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xd923 [ 28.890223] memcg:ffff88800e3b2601 [ 28.890649] flags: 0x100000000000200(slab|node=0|zone=1) [ 28.891293] page_type: 0xffffffff() [ 28.891747] raw: 0100000000000200 ffff8880087a0c80 ffffea00003b1ec0 dead000000000006 [ 28.892669] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff88800e3b2601 [ 28.893571] page dumped because: kasan: bad access detected [ 28.894225] [ 28.894441] Memory state around the buggy address: [ 28.895037] ffff88800d923480: fc 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 28.895895] ffff88800d923500: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fa fb [ 28.896754] >ffff88800d923580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.897599] ^ [ 28.898258] ffff88800d923600: fb fb fb fc fc fc fc fc fc fc fc 00 00 00 00 00 [ 28.899124] ffff88800d923680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 28.899977] ================================================================== [ 28.900957] Disabling lock debugging due to kernel taint [ 31.452878] BUG: Bad rss-counter state mm:00000000ec9d8820 type:MM_FILEPAGES val:33 [ 31.453873] BUG: Bad rss-counter state mm:00000000ec9d8820 type:MM_ANONPAGES val:22 [ 31.924333] BUG: Bad rss-counter state mm:00000000553f133e type:MM_FILEPAGES val:33 [ 31.925381] BUG: Bad rss-counter state mm:00000000553f133e type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:8585' (ECDSA) to the list of known hosts. 2023/06/21 01:21:09 fuzzer started 2023/06/21 01:21:09 dialing manager at localhost:36067 2023/06/21 01:21:09 checking machine... 2023/06/21 01:21:09 checking revisions... [ 32.632129] kmemleak: Automatic memory scanning thread ended 2023/06/21 01:21:09 testing simple program... [ 32.686024] cgroup: Unknown subsys name 'net' [ 32.743972] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 01:21:09 Registers: info registers vcpu 0 RAX=0000000080000000 RBX=ffffffff854f6380 RCX=0000000000000000 RDX=1ffff11001c47133 RSI=ffffffff811f8cae RDI=ffff88800e238998 RBP=0000000000000000 RSP=ffff8880147c7f08 R8 =0000000000000004 R9 =0000000000000000 R10=0000000000000000 R11=0000000000000000 R12=ffff88800e2388c0 R13=ffff88800e2388c0 R14=0000000000000000 R15=0000000000000000 RIP=ffffffff814c086b 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 00007f1f92904900 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=00007f1f91d10ff0 CR3=000000000cad4000 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=6b3b7f10d6e653b7804c5cf9b1358af1 XMM02=eff9b2d0a8fce9cb000000000011a848 XMM03=2c67c8bc2e329bc3000000000011a970 XMM04=845fb57162b3cac100000000000ae988 XMM05=cc737aa021c3841200000000001340a8 XMM06=c291bd5c70af25b90000000000132e98 XMM07=fb795ef6d65770560000000000121da8 XMM08=2c67c8bc2e329bc3000000000011a970 XMM09=00000000000000000000000000000000 XMM10=20200000000020202020202020200000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=0000000000000000 RBX=0000563aed4ded00 RCX=000000000000001d RDX=000000000000001b RSI=0000563aed4ed69d RDI=0000563aed4dede0 RBP=00007ffc2daf9e80 RSP=00007ffc2daf9e20 R8 =0000563aed4ed69d R9 =00007f3733391be0 R10=0000000000000100 R11=0000000000000246 R12=000000000000001b R13=0000563aed4ed6b7 R14=000000000000001b R15=0000000000000000 RIP=00007f373324886f 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 00007f3732ddf900 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=00007ffc2daf4000 CR3=000000001c654000 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=676e6967612064726f77737361502023 XMM01=0a3a736c6f72746e6f6320676e696761 XMM02=ffffffffffff00000000ff0000ffff00 XMM03=00000000000032323009094b53414d55 XMM04=40404040404040404040404040404040 XMM05=5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a XMM06=20202020202020202020202020202020 XMM07=0000000000000000000000ffffffffff XMM08=00000000000032323009004b53000023 XMM09=00000000000000000000000000000000 XMM10=00002020202020200020202020202020 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000