syzkaller login: [ 68.847179] BUG: Bad rss-counter state mm:000000007820e309 type:MM_FILEPAGES val:33 [ 68.848334] BUG: Bad rss-counter state mm:000000007820e309 type:MM_ANONPAGES val:22 [ 68.886105] ================================================================== [ 68.887010] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 68.887948] Read of size 8 at addr ffff888009448a50 by task sshd/219 [ 68.888810] [ 68.889024] CPU: 0 PID: 219 Comm: sshd Not tainted 6.4.0-rc7-next-20230619 #1 [ 68.889868] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 68.890815] Call Trace: [ 68.891128] [ 68.891407] dump_stack_lvl+0x91/0xf0 [ 68.891906] print_report+0xcc/0x620 [ 68.892386] ? __virt_addr_valid+0x102/0x340 [ 68.892944] ? vma_interval_tree_remove+0xc75/0xec0 [ 68.893557] ? vma_interval_tree_remove+0xc75/0xec0 [ 68.894169] kasan_report+0xbe/0xf0 [ 68.894638] ? vma_interval_tree_remove+0xc75/0xec0 [ 68.895248] vma_interval_tree_remove+0xc75/0xec0 [ 68.895853] vma_prepare+0xc54/0x11a0 [ 68.896329] __split_vma+0x5af/0x950 [ 68.896795] ? __pfx___split_vma+0x10/0x10 [ 68.897319] ? find_held_lock+0x2c/0x110 [ 68.897838] do_vmi_align_munmap+0x2ba/0x11f0 [ 68.898398] ? lock_is_held_type+0x9f/0x120 [ 68.898929] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 68.899527] ? mtree_range_walk+0x632/0x900 [ 68.900081] ? mas_walk+0x5c7/0x7c0 [ 68.900558] do_vmi_munmap+0x1f1/0x2b0 [ 68.901046] mmap_region+0x1f9/0x2660 [ 68.901521] ? vm_mmap_pgoff+0x15c/0x3a0 [ 68.902031] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 68.902743] ? __pfx_lock_acquire+0x10/0x10 [ 68.903267] ? __pfx_mmap_region+0x10/0x10 [ 68.903820] ? security_mmap_addr+0x7d/0xa0 [ 68.904353] ? get_unmapped_area+0x1f5/0x3f0 [ 68.904900] do_mmap+0x854/0xf00 [ 68.905340] vm_mmap_pgoff+0x1a6/0x3a0 [ 68.905835] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 68.906389] ksys_mmap_pgoff+0x3af/0x500 [ 68.906896] do_syscall_64+0x3f/0x90 [ 68.907367] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 68.908028] RIP: 0033:0x7fb8c3bd3d82 [ 68.908478] 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 [ 68.910565] RSP: 002b:00007fff36a77fd8 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 68.911459] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007fb8c3bd3d82 [ 68.912298] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007fb8c300d000 [ 68.913132] RBP: 00007fb8c300d000 R08: 0000000000000009 R09: 0000000000001000 [ 68.913977] R10: 0000000000000812 R11: 0000000000000206 R12: 00005613518a5ec0 [ 68.914836] R13: 00007fff36a77ff0 R14: 00007fff36a78020 R15: 00007fff36a78380 [ 68.915712] [ 68.916001] [ 68.916214] Allocated by task 212: [ 68.916639] kasan_save_stack+0x22/0x50 [ 68.917146] kasan_set_track+0x25/0x30 [ 68.917636] __kasan_slab_alloc+0x59/0x70 [ 68.918151] kmem_cache_alloc+0x16b/0x370 [ 68.918665] vm_area_dup+0x20/0x160 [ 68.919110] __split_vma+0x170/0x950 [ 68.919578] split_vma+0xc6/0x110 [ 68.920027] mprotect_fixup+0x8d2/0xb30 [ 68.920538] do_mprotect_pkey+0x87e/0xd40 [ 68.921053] __x64_sys_mprotect+0x78/0xc0 [ 68.921586] do_syscall_64+0x3f/0x90 [ 68.922063] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 68.922703] [ 68.922915] Freed by task 212: [ 68.923303] kasan_save_stack+0x22/0x50 [ 68.923820] kasan_set_track+0x25/0x30 [ 68.924307] kasan_save_free_info+0x2b/0x50 [ 68.924829] __kasan_slab_free+0x10a/0x190 [ 68.925357] kmem_cache_free+0x10d/0x4d0 [ 68.925858] rcu_core+0x8c8/0x2860 [ 68.926298] __do_softirq+0x1b7/0x7d4 [ 68.926764] [ 68.926980] Last potentially related work creation: [ 68.927557] kasan_save_stack+0x22/0x50 [ 68.928064] __kasan_record_aux_stack+0x8e/0xa0 [ 68.928632] __call_rcu_common.constprop.0+0x6a/0xb90 [ 68.929273] remove_vma+0x139/0x170 [ 68.929720] do_vmi_align_munmap+0xd4a/0x11f0 [ 68.930271] do_vmi_munmap+0x1f1/0x2b0 [ 68.930751] __vm_munmap+0x138/0x3a0 [ 68.931209] __x64_sys_munmap+0x59/0x80 [ 68.931719] do_syscall_64+0x3f/0x90 [ 68.932187] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 68.932817] [ 68.933035] Second to last potentially related work creation: [ 68.933716] kasan_save_stack+0x22/0x50 [ 68.934215] __kasan_record_aux_stack+0x8e/0xa0 [ 68.934781] __call_rcu_common.constprop.0+0x6a/0xb90 [ 68.935414] remove_vma+0x139/0x170 [ 68.935871] do_vmi_align_munmap+0xd4a/0x11f0 [ 68.936419] do_vmi_munmap+0x1f1/0x2b0 [ 68.936896] mmap_region+0x1f9/0x2660 [ 68.937368] do_mmap+0x854/0xf00 [ 68.937791] vm_mmap_pgoff+0x1a6/0x3a0 [ 68.938272] ksys_mmap_pgoff+0x3af/0x500 [ 68.938773] do_syscall_64+0x3f/0x90 [ 68.939237] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 68.939896] [ 68.940107] The buggy address belongs to the object at ffff8880094489f8 [ 68.940107] which belongs to the cache vm_area_struct of size 168 [ 68.941607] The buggy address is located 88 bytes inside of [ 68.941607] freed 168-byte region [ffff8880094489f8, ffff888009448aa0) [ 68.942986] [ 68.943198] The buggy address belongs to the physical page: [ 68.943876] page:00000000213c312a refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x9448 [ 68.944945] memcg:ffff8880097a8701 [ 68.945367] flags: 0x100000000000200(slab|node=0|zone=1) [ 68.946002] page_type: 0xffffffff() [ 68.946447] raw: 0100000000000200 ffff88800879fc80 ffffea00003cccc0 dead000000000004 [ 68.947348] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff8880097a8701 [ 68.948276] page dumped because: kasan: bad access detected [ 68.948958] [ 68.949169] Memory state around the buggy address: [ 68.949745] ffff888009448900: fc fc 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 68.950625] ffff888009448980: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fa [ 68.951481] >ffff888009448a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 68.952336] ^ [ 68.953025] ffff888009448a80: fb fb fb fb fc fc fc fc fc fc fc fc 00 00 00 00 [ 68.953868] ffff888009448b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 68.954706] ================================================================== [ 68.955739] Disabling lock debugging due to kernel taint [ 71.595339] BUG: Bad rss-counter state mm:00000000b1555c39 type:MM_FILEPAGES val:33 [ 71.596635] BUG: Bad rss-counter state mm:00000000b1555c39 type:MM_ANONPAGES val:22 [ 72.067542] BUG: Bad rss-counter state mm:000000001c0bc4f2 type:MM_FILEPAGES val:33 [ 72.068642] BUG: Bad rss-counter state mm:000000001c0bc4f2 type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:51409' (ECDSA) to the list of known hosts. 2023/06/19 11:41:27 fuzzer started 2023/06/19 11:41:27 dialing manager at localhost:44161 2023/06/19 11:41:27 checking machine... 2023/06/19 11:41:27 checking revisions... [ 72.789080] kmemleak: Automatic memory scanning thread ended 2023/06/19 11:41:28 testing simple program... [ 72.838597] cgroup: Unknown subsys name 'net' [ 72.906051] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 11:41:20 Registers: info registers vcpu 0 RAX=0000000000000000 RBX=0000000000000001 RCX=0000000000000000 RDX=ffff8880197ed058 RSI=0000000000001723 RDI=0000000000000005 RBP=ffff8880196c51f0 RSP=ffff88801854fab0 R8 =0000000000000005 R9 =0000000000000000 R10=0000000000000000 R11=0000000000000000 R12=ffff8880197ed058 R13=ffffffff81b4bcb0 R14=0000000000000001 R15=0000000000000006 RIP=ffffffff81b4bd95 RFL=00000286 [--S--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 00007f2077fff700 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=00007fe79383f618 CR3=00000000103c2000 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=2037323a31343a3131203931206e754a XMM01=73732878696e755f6d6170203a5d3832 XMM02=65736f6c63206e6f6973736573203a29 XMM03=755f6d6170203a5d3832325b64687373 XMM04=69662068637573206f4e203a656c6163 XMM05=3a656c696620766e65206e65706f206f XMM06=65733a6468737328766e655f6d617020 XMM07=6b7a79732037323a31343a3131203931 XMM08=3d656e696c646d632022656369767265 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=1ffff11002b18d43 RBX=ffff8880158c69e8 RCX=1ffff11002db5a60 RDX=dffffc0000000000 RSI=ffff888016de4800 RDI=ffff8880158c6a18 RBP=ffff888016dad2d0 RSP=ffff88800f17fc28 R8 =0000000000000001 R9 =0000000000000246 R10=0000000000000003 R11=00000000000b6996 R12=ffff888016de4000 R13=0000000000000000 R14=ffff88800de40e88 R15=ffff88800de40e40 RIP=ffffffff818474fe RFL=00000046 [---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 00007fe793288900 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=00007fff57c34000 CR3=000000000f81a000 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=ffffffffffffffffffff000000000000 XMM01=000000000000003635006b6f6c6c756e XMM02=62003d73646e756f7200323135616873 XMM03=5320444f4854454d5f54505952434e45 XMM04=40404040404040404040404040404040 XMM05=5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a XMM06=20202020202020202020202020202020 XMM07=00000000000000000000000000000000 XMM08=00000000000000000000000000202020 XMM09=ff0000ffffffffffff00000000ffffff XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000