syzkaller login: [ 44.748032] BUG: Bad rss-counter state mm:000000005a0e7d1b type:MM_FILEPAGES val:33 [ 44.748720] BUG: Bad rss-counter state mm:000000005a0e7d1b type:MM_ANONPAGES val:22 [ 44.859913] ================================================================== [ 44.860510] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 44.861046] Read of size 8 at addr ffff88800983a228 by task sshd/223 [ 44.861486] [ 44.861618] CPU: 1 PID: 223 Comm: sshd Not tainted 6.4.0-rc7-next-20230619 #1 [ 44.862116] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 44.863317] Call Trace: [ 44.863834] [ 44.864612] dump_stack_lvl+0x91/0xf0 [ 44.865406] print_report+0xcc/0x620 [ 44.866565] ? __virt_addr_valid+0x102/0x340 [ 44.867200] ? vma_interval_tree_remove+0xc75/0xec0 [ 44.867681] ? vma_interval_tree_remove+0xc75/0xec0 [ 44.868145] kasan_report+0xbe/0xf0 [ 44.868502] ? vma_interval_tree_remove+0xc75/0xec0 [ 44.868984] vma_interval_tree_remove+0xc75/0xec0 [ 44.869434] vma_prepare+0xc54/0x11a0 [ 44.869809] __split_vma+0x5af/0x950 [ 44.870172] ? __pfx___split_vma+0x10/0x10 [ 44.870566] ? find_held_lock+0x2c/0x110 [ 44.870953] do_vmi_align_munmap+0x2ba/0x11f0 [ 44.871585] ? lock_is_held_type+0x9f/0x120 [ 44.871956] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 44.872373] ? mtree_range_walk+0x632/0x900 [ 44.872764] ? mas_walk+0x5c7/0x7c0 [ 44.873081] do_vmi_munmap+0x1f1/0x2b0 [ 44.873417] mmap_region+0x1f9/0x2660 [ 44.873737] ? vm_mmap_pgoff+0x15c/0x3a0 [ 44.874096] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 44.874566] ? __pfx_lock_acquire+0x10/0x10 [ 44.874926] ? __pfx_mmap_region+0x10/0x10 [ 44.875271] ? security_mmap_addr+0x7d/0xa0 [ 44.875590] ? get_unmapped_area+0x1f5/0x3f0 [ 44.875914] do_mmap+0x854/0xf00 [ 44.876164] vm_mmap_pgoff+0x1a6/0x3a0 [ 44.876449] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 44.876797] ksys_mmap_pgoff+0x3af/0x500 [ 44.877093] do_syscall_64+0x3f/0x90 [ 44.877368] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 44.877738] RIP: 0033:0x7f95ed0f4d82 [ 44.877997] 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 [ 44.879246] RSP: 002b:00007ffe13b7ea88 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 44.879924] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007f95ed0f4d82 [ 44.880524] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007f95ec52e000 [ 44.881004] RBP: 00007f95ec52e000 R08: 0000000000000009 R09: 0000000000001000 [ 44.881716] R10: 0000000000000812 R11: 0000000000000206 R12: 000055e0a7595f70 [ 44.882475] R13: 00007ffe13b7eaa0 R14: 00007ffe13b7ead0 R15: 00007ffe13b7ee30 [ 44.883040] [ 44.883226] [ 44.883373] Allocated by task 216: [ 44.883656] kasan_save_stack+0x22/0x50 [ 44.883971] kasan_set_track+0x25/0x30 [ 44.884288] __kasan_slab_alloc+0x59/0x70 [ 44.884639] kmem_cache_alloc+0x16b/0x370 [ 44.884978] vm_area_dup+0x20/0x160 [ 44.885268] __split_vma+0x170/0x950 [ 44.885567] split_vma+0xc6/0x110 [ 44.885862] mprotect_fixup+0x8d2/0xb30 [ 44.886188] do_mprotect_pkey+0x87e/0xd40 [ 44.886521] __x64_sys_mprotect+0x78/0xc0 [ 44.886855] do_syscall_64+0x3f/0x90 [ 44.887194] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 44.887599] [ 44.887742] Freed by task 205: [ 44.887991] kasan_save_stack+0x22/0x50 [ 44.888329] kasan_set_track+0x25/0x30 [ 44.888702] kasan_save_free_info+0x2b/0x50 [ 44.889051] __kasan_slab_free+0x10a/0x190 [ 44.889413] kmem_cache_free+0x10d/0x4d0 [ 44.889736] rcu_core+0x8c8/0x2860 [ 44.890022] __do_softirq+0x1b7/0x7d4 [ 44.890347] [ 44.890496] Last potentially related work creation: [ 44.890890] kasan_save_stack+0x22/0x50 [ 44.891227] __kasan_record_aux_stack+0x8e/0xa0 [ 44.891604] __call_rcu_common.constprop.0+0x6a/0xb90 [ 44.892046] remove_vma+0x139/0x170 [ 44.892347] do_vmi_align_munmap+0xd4a/0x11f0 [ 44.893270] do_vmi_munmap+0x1f1/0x2b0 [ 44.894049] __vm_munmap+0x138/0x3a0 [ 44.894788] __x64_sys_munmap+0x59/0x80 [ 44.895885] do_syscall_64+0x3f/0x90 [ 44.896196] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 44.896615] [ 44.896754] Second to last potentially related work creation: [ 44.897249] kasan_save_stack+0x22/0x50 [ 44.897585] __kasan_record_aux_stack+0x8e/0xa0 [ 44.897961] __call_rcu_common.constprop.0+0x6a/0xb90 [ 44.898368] remove_vma+0x139/0x170 [ 44.898662] do_vmi_align_munmap+0xd4a/0x11f0 [ 44.899028] do_vmi_munmap+0x1f1/0x2b0 [ 44.899350] mmap_region+0x1f9/0x2660 [ 44.899662] do_mmap+0x854/0xf00 [ 44.899935] vm_mmap_pgoff+0x1a6/0x3a0 [ 44.900255] ksys_mmap_pgoff+0x3af/0x500 [ 44.900575] do_syscall_64+0x3f/0x90 [ 44.900887] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 44.901310] [ 44.901443] The buggy address belongs to the object at ffff88800983a1d0 [ 44.901443] which belongs to the cache vm_area_struct of size 168 [ 44.902520] The buggy address is located 88 bytes inside of [ 44.902520] freed 168-byte region [ffff88800983a1d0, ffff88800983a278) [ 44.903496] [ 44.903633] The buggy address belongs to the physical page: [ 44.904066] page:0000000035fc2279 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x983a [ 44.904756] memcg:ffff88800ea91201 [ 44.905027] flags: 0x100000000000200(slab|node=0|zone=1) [ 44.905448] page_type: 0xffffffff() [ 44.905723] raw: 0100000000000200 ffff88800879fc80 dead000000000100 dead000000000122 [ 44.906325] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff88800ea91201 [ 44.906910] page dumped because: kasan: bad access detected [ 44.907405] [ 44.907561] Memory state around the buggy address: [ 44.907935] ffff88800983a100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.908497] ffff88800983a180: fb fb fc fc fc fc fc fc fc fc fa fb fb fb fb fb [ 44.909048] >ffff88800983a200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc [ 44.909590] ^ [ 44.909944] ffff88800983a280: fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb fb [ 44.910508] ffff88800983a300: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 44.911077] ================================================================== [ 44.911664] Disabling lock debugging due to kernel taint [ 46.324116] BUG: Bad rss-counter state mm:000000004f42ba1a type:MM_FILEPAGES val:33 [ 46.324697] BUG: Bad rss-counter state mm:000000004f42ba1a type:MM_ANONPAGES val:22 [ 46.670567] BUG: Bad rss-counter state mm:0000000032b0ea68 type:MM_FILEPAGES val:33 [ 46.671606] BUG: Bad rss-counter state mm:0000000032b0ea68 type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:3424' (ECDSA) to the list of known hosts. 2023/06/20 10:11:48 fuzzer started 2023/06/20 10:11:48 dialing manager at localhost:44161 2023/06/20 10:11:48 checking machine... 2023/06/20 10:11:48 checking revisions... [ 47.174370] kmemleak: Automatic memory scanning thread ended 2023/06/20 10:11:48 testing simple program... [ 47.201497] cgroup: Unknown subsys name 'net' [ 47.230181] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program [ 56.623959] kmemleak: 69 new suspected memory leaks (see /sys/kernel/debug/kmemleak) VM DIAGNOSIS: 10:11:34 Registers: info registers vcpu 0 RAX=0000560710432d5d RBX=0000560710432d5e RCX=000000000000001e RDX=0000000000000030 RSI=0000000000000025 RDI=0000560710432d5e RBP=00007ffd27f89ce0 RSP=00007ffd27f89788 R8 =0000000000000000 R9 =0000000000000006 R10=00007ffd27f89ca7 R11=0000000000000000 R12=00007ffd27f89cf0 R13=0000560710432d57 R14=00007ffd27f89e30 R15=0000000000000075 RIP=00007ffbf4f6c72a RFL=00000283 [--S---C] 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 00007ffbf4642900 00000000 00000000 GS =0000 0000000000000000 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=00007ffbf3a695b0 CR3=000000000d86c000 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=25252525252525252525252525252525 XMM01=000000000000000000000000000000ff XMM02=000000000000000000000000000000ff XMM03=00746f6f72207265737520726f662064 XMM04=8bcf459cbc289da100000000000ae988 XMM05=506b2c840b5911dc0000000000135c70 XMM06=db20f175d54767f00000000000134a60 XMM07=00000000000000000000000000000000 XMM08=2e657469727720676e69797274655200 XMM09=00000000000000000000000000000000 XMM10=20200000000020202020202020200000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=0000000000000001 RBX=ffff88800ceb7b80 RCX=ffff88800ceb7b80 RDX=00000000000c000c RSI=ffff88800ceb7b80 RDI=ffff8880087b6780 RBP=ffff88801436fa28 RSP=ffff88801436f990 R8 =00000000800c000b R9 =0000000000000000 R10=ffffea000033ad80 R11=00000000800d000b R12=ffffea000033ad80 R13=0000000000000000 R14=00000000000c000b R15=ffff8880087b6780 RIP=ffffffff818094f2 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 00007f74b432c900 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=00007fff924b6000 CR3=000000001a1d2000 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=6720646572637465733a4d41503d706f XMM01=652022746f6f72223d74636361207469 XMM02=3d6c616e696d72657420322e322e302e XMM03=3d656d616e74736f682022646873732f XMM04=40404040404040404040404040404040 XMM05=5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a XMM06=20202020202020202020202020202020 XMM07=00000000000000000000000000000000 XMM08=652075253d64692073253d706f000000 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000