syzkaller login: [ 29.668772] BUG: Bad rss-counter state mm:0000000064a598b9 type:MM_FILEPAGES val:33 [ 29.669751] BUG: Bad rss-counter state mm:0000000064a598b9 type:MM_ANONPAGES val:22 [ 29.677318] sshd (212) used greatest stack depth: 24128 bytes left [ 29.844214] ================================================================== [ 29.845315] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 29.846228] Read of size 8 at addr ffff88800d811140 by task sshd/222 [ 29.847073] [ 29.847282] CPU: 0 PID: 222 Comm: sshd Not tainted 6.4.0-rc7-next-20230619 #1 [ 29.848088] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 29.849014] Call Trace: [ 29.849315] [ 29.849583] dump_stack_lvl+0x91/0xf0 [ 29.850043] print_report+0xcc/0x620 [ 29.850497] ? __virt_addr_valid+0x102/0x340 [ 29.851034] ? vma_interval_tree_remove+0xc75/0xec0 [ 29.851632] ? vma_interval_tree_remove+0xc75/0xec0 [ 29.852240] kasan_report+0xbe/0xf0 [ 29.852709] ? vma_interval_tree_remove+0xc75/0xec0 [ 29.853338] vma_interval_tree_remove+0xc75/0xec0 [ 29.853922] vma_prepare+0xc54/0x11a0 [ 29.854397] __split_vma+0x5af/0x950 [ 29.854863] ? __pfx___split_vma+0x10/0x10 [ 29.855381] ? find_held_lock+0x2c/0x110 [ 29.855896] do_vmi_align_munmap+0x2ba/0x11f0 [ 29.856450] ? lock_is_held_type+0x9f/0x120 [ 29.857002] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 29.857598] ? mtree_range_walk+0x632/0x900 [ 29.858143] ? mas_walk+0x5c7/0x7c0 [ 29.858615] do_vmi_munmap+0x1f1/0x2b0 [ 29.859104] mmap_region+0x1f9/0x2660 [ 29.859582] ? vm_mmap_pgoff+0x15c/0x3a0 [ 29.860083] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 29.860789] ? __pfx_lock_acquire+0x10/0x10 [ 29.861325] ? __pfx_mmap_region+0x10/0x10 [ 29.861851] ? security_mmap_addr+0x7d/0xa0 [ 29.862381] ? get_unmapped_area+0x1f5/0x3f0 [ 29.862925] do_mmap+0x854/0xf00 [ 29.863357] vm_mmap_pgoff+0x1a6/0x3a0 [ 29.863847] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 29.864402] ksys_mmap_pgoff+0x3af/0x500 [ 29.865076] do_syscall_64+0x3f/0x90 [ 29.865684] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 29.866463] RIP: 0033:0x7f7170d78d82 [ 29.867015] 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 [ 29.869489] RSP: 002b:00007ffd66ae60d8 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 29.870401] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007f7170d78d82 [ 29.871257] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007f71701b2000 [ 29.872105] RBP: 00007f71701b2000 R08: 0000000000000009 R09: 0000000000001000 [ 29.872953] R10: 0000000000000812 R11: 0000000000000206 R12: 00005652509c3ec0 [ 29.873795] R13: 00007ffd66ae60f0 R14: 00007ffd66ae6120 R15: 00007ffd66ae6480 [ 29.874656] [ 29.874947] [ 29.875168] Allocated by task 212: [ 29.875595] kasan_save_stack+0x22/0x50 [ 29.876109] kasan_set_track+0x25/0x30 [ 29.876598] __kasan_slab_alloc+0x59/0x70 [ 29.877130] kmem_cache_alloc+0x16b/0x370 [ 29.877656] vm_area_dup+0x20/0x160 [ 29.878115] __split_vma+0x170/0x950 [ 29.878584] split_vma+0xc6/0x110 [ 29.879028] mprotect_fixup+0x8d2/0xb30 [ 29.879535] do_mprotect_pkey+0x87e/0xd40 [ 29.880062] __x64_sys_mprotect+0x78/0xc0 [ 29.880577] do_syscall_64+0x3f/0x90 [ 29.881065] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 29.881710] [ 29.881924] Freed by task 212: [ 29.882315] kasan_save_stack+0x22/0x50 [ 29.882817] kasan_set_track+0x25/0x30 [ 29.883316] kasan_save_free_info+0x2b/0x50 [ 29.883852] __kasan_slab_free+0x10a/0x190 [ 29.884381] kmem_cache_free+0x10d/0x4d0 [ 29.884895] rcu_core+0x8c8/0x2860 [ 29.885341] __do_softirq+0x1b7/0x7d4 [ 29.885816] [ 29.886031] Last potentially related work creation: [ 29.886621] kasan_save_stack+0x22/0x50 [ 29.887129] __kasan_record_aux_stack+0x8e/0xa0 [ 29.887703] __call_rcu_common.constprop.0+0x6a/0xb90 [ 29.888351] remove_vma+0x139/0x170 [ 29.888820] do_vmi_align_munmap+0xd4a/0x11f0 [ 29.889383] do_vmi_munmap+0x1f1/0x2b0 [ 29.889870] __vm_munmap+0x138/0x3a0 [ 29.890341] __x64_sys_munmap+0x59/0x80 [ 29.890838] do_syscall_64+0x3f/0x90 [ 29.891313] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 29.891953] [ 29.892167] Second to last potentially related work creation: [ 29.892860] kasan_save_stack+0x22/0x50 [ 29.893367] __kasan_record_aux_stack+0x8e/0xa0 [ 29.893937] __call_rcu_common.constprop.0+0x6a/0xb90 [ 29.894587] remove_vma+0x139/0x170 [ 29.895050] do_vmi_align_munmap+0xd4a/0x11f0 [ 29.895611] do_vmi_munmap+0x1f1/0x2b0 [ 29.896105] mmap_region+0x1f9/0x2660 [ 29.896587] do_mmap+0x854/0xf00 [ 29.897037] vm_mmap_pgoff+0x1a6/0x3a0 [ 29.897529] ksys_mmap_pgoff+0x7d/0x500 [ 29.898040] do_syscall_64+0x3f/0x90 [ 29.898519] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 29.899165] [ 29.899378] The buggy address belongs to the object at ffff88800d8110e8 [ 29.899378] which belongs to the cache vm_area_struct of size 168 [ 29.900836] The buggy address is located 88 bytes inside of [ 29.900836] freed 168-byte region [ffff88800d8110e8, ffff88800d811190) [ 29.902229] [ 29.902445] The buggy address belongs to the physical page: [ 29.903102] page:00000000dd27812d refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xd811 [ 29.904174] memcg:ffff88800d64f801 [ 29.904597] anon flags: 0x100000000000200(slab|node=0|zone=1) [ 29.905308] page_type: 0xffffffff() [ 29.905759] raw: 0100000000000200 ffff88800879fc80 ffffea0000240bc0 dead000000000005 [ 29.906667] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff88800d64f801 [ 29.907577] page dumped because: kasan: bad access detected [ 29.908239] [ 29.908454] Memory state around the buggy address: [ 29.909054] ffff88800d811000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.909929] ffff88800d811080: 00 00 00 00 00 fc fc fc fc fc fc fc fc fa fb fb [ 29.910791] >ffff88800d811100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.911657] ^ [ 29.912294] ffff88800d811180: fb fb fc fc fc fc fc fc fc fc 00 00 00 00 00 00 [ 29.913158] ffff88800d811200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 29.914009] ================================================================== [ 29.915084] Disabling lock debugging due to kernel taint [ 32.056203] BUG: Bad rss-counter state mm:000000009096c7f6 type:MM_FILEPAGES val:33 [ 32.057448] BUG: Bad rss-counter state mm:000000009096c7f6 type:MM_ANONPAGES val:22 [ 32.548423] BUG: Bad rss-counter state mm:00000000b3c5d082 type:MM_FILEPAGES val:33 [ 32.549599] BUG: Bad rss-counter state mm:00000000b3c5d082 type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:9901' (ECDSA) to the list of known hosts. 2023/06/19 13:30:58 fuzzer started 2023/06/19 13:30:58 dialing manager at localhost:44161 2023/06/19 13:30:58 checking machine... 2023/06/19 13:30:58 checking revisions... [ 33.159566] kmemleak: Automatic memory scanning thread ended 2023/06/19 13:30:58 testing simple program... [ 33.209951] cgroup: Unknown subsys name 'net' [ 33.245452] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 13:30:57 Registers: info registers vcpu 0 RAX=0000000080000101 RBX=ffffffff8661f000 RCX=ffffffff81007b82 RDX=ffffffff8542a6c0 RSI=0000000000000100 RDI=0000000000000007 RBP=0000000000000001 RSP=ffff88806ce09a18 R8 =0000000000000007 R9 =ffffffffff600000 R10=ffffffff8661f000 R11=00000000000b5420 R12=ffff88806ce09b60 R13=0000000000000000 R14=ffffffff8542a6c0 R15=ffff8880181ff1b0 RIP=ffffffff814c07eb RFL=00000287 [--S--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 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=00007f001f3ccaf0 CR3=000000000c7ae000 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=43a3edefda1a3a85c94cdc9d6177cdc3 XMM02=ec2efd57dc4c00df000000000011ffc0 XMM03=289864f606091fbe0000000000120090 XMM04=c51deffae910b21a00000000000ae988 XMM05=ef58a702ce6d9d0f00000000001369b8 XMM06=19e9129bd510f2350000000000135850 XMM07=fb795ef6d65770560000000000123fa8 XMM08=2c67c8bc2e329bc30000000000120030 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=0000000000000014 RBX=00007fff14bdda00 RCX=00007ff4f78eb366 RDX=0000000000000014 RSI=00007fff14bdda00 RDI=0000000000000009 RBP=00007fff14bdda50 RSP=00007fff14bdc910 R8 =00007fff14bdd9a4 R9 =000000000000000c R10=0000000000000000 R11=0000000000000246 R12=00007fff14bdd9a4 R13=00000000000000e5 R14=0000000000000009 R15=00007fff14bde0f0 RIP=00007ff4f79061dc RFL=00000207 [-----PC] 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 00007ff4f73f8900 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=00007ff4f79af618 CR3=0000000009718000 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=6e69676f6c5f6d61702c78756e696c65 XMM02=755f6d61702c74696d7265705f6d6170 XMM03=2c766e655f6d61702c7374696d696c5f XMM04=6d61702c766e655f6d61702c7374696d XMM05=78696e755f6d61702c74696d7265705f XMM06=6469756e69676f6c5f6d61702c78756e XMM07=672065736f6c635f6e6f69737365733a XMM08=61662029286e65706f5f746964756100 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000