syzkaller login: [ 35.719704] BUG: Bad rss-counter state mm:0000000065170577 type:MM_FILEPAGES val:33 [ 35.720753] BUG: Bad rss-counter state mm:0000000065170577 type:MM_ANONPAGES val:22 [ 35.882573] ================================================================== [ 35.883538] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 35.884471] Read of size 8 at addr ffff88800ed96310 by task sshd/220 [ 35.885360] [ 35.885580] CPU: 0 PID: 220 Comm: sshd Not tainted 6.4.0-rc7-next-20230619 #1 [ 35.886453] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 35.887475] Call Trace: [ 35.887807] [ 35.888096] dump_stack_lvl+0x91/0xf0 [ 35.888582] print_report+0xcc/0x620 [ 35.889068] ? __virt_addr_valid+0x102/0x340 [ 35.889636] ? vma_interval_tree_remove+0xc75/0xec0 [ 35.890254] ? vma_interval_tree_remove+0xc75/0xec0 [ 35.890868] kasan_report+0xbe/0xf0 [ 35.891344] ? vma_interval_tree_remove+0xc75/0xec0 [ 35.892006] vma_interval_tree_remove+0xc75/0xec0 [ 35.892609] vma_prepare+0xc54/0x11a0 [ 35.893086] __split_vma+0x5af/0x950 [ 35.893557] ? __pfx___split_vma+0x10/0x10 [ 35.894087] ? find_held_lock+0x2c/0x110 [ 35.894613] do_vmi_align_munmap+0x2ba/0x11f0 [ 35.895175] ? lock_is_held_type+0x9f/0x120 [ 35.895728] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 35.896341] ? mtree_range_walk+0x632/0x900 [ 35.896893] ? mas_walk+0x5c7/0x7c0 [ 35.897371] do_vmi_munmap+0x1f1/0x2b0 [ 35.897857] mmap_region+0x1f9/0x2660 [ 35.898339] ? vm_mmap_pgoff+0x15c/0x3a0 [ 35.898846] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 35.899570] ? __pfx_lock_acquire+0x10/0x10 [ 35.900106] ? __pfx_mmap_region+0x10/0x10 [ 35.900635] ? security_mmap_addr+0x7d/0xa0 [ 35.901162] ? get_unmapped_area+0x1f5/0x3f0 [ 35.901711] do_mmap+0x854/0xf00 [ 35.902146] vm_mmap_pgoff+0x1a6/0x3a0 [ 35.902642] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 35.903207] ksys_mmap_pgoff+0x3af/0x500 [ 35.903733] do_syscall_64+0x3f/0x90 [ 35.904209] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 35.904851] RIP: 0033:0x7ff7fc139d82 [ 35.905305] 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 [ 35.907439] RSP: 002b:00007ffc773e1338 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 35.908352] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007ff7fc139d82 [ 35.909202] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007ff7fb573000 [ 35.910045] RBP: 00007ff7fb573000 R08: 0000000000000009 R09: 0000000000001000 [ 35.910882] R10: 0000000000000812 R11: 0000000000000206 R12: 000055a41d2feec0 [ 35.911741] R13: 00007ffc773e1350 R14: 00007ffc773e1380 R15: 00007ffc773e16e0 [ 35.912597] [ 35.912890] [ 35.913107] Allocated by task 213: [ 35.913533] kasan_save_stack+0x22/0x50 [ 35.914035] kasan_set_track+0x25/0x30 [ 35.914535] __kasan_slab_alloc+0x59/0x70 [ 35.915052] kmem_cache_alloc+0x16b/0x370 [ 35.915573] vm_area_dup+0x20/0x160 [ 35.916022] __split_vma+0x170/0x950 [ 35.916490] split_vma+0xc6/0x110 [ 35.916925] mprotect_fixup+0x8d2/0xb30 [ 35.917426] do_mprotect_pkey+0x87e/0xd40 [ 35.917943] __x64_sys_mprotect+0x78/0xc0 [ 35.918462] do_syscall_64+0x3f/0x90 [ 35.918931] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 35.919586] [ 35.919801] Freed by task 213: [ 35.920192] kasan_save_stack+0x22/0x50 [ 35.920693] kasan_set_track+0x25/0x30 [ 35.921186] kasan_save_free_info+0x2b/0x50 [ 35.921711] __kasan_slab_free+0x10a/0x190 [ 35.922239] kmem_cache_free+0x10d/0x4d0 [ 35.922744] rcu_core+0x8c8/0x2860 [ 35.923188] __do_softirq+0x1b7/0x7d4 [ 35.923681] [ 35.923897] Last potentially related work creation: [ 35.924483] kasan_save_stack+0x22/0x50 [ 35.924988] __kasan_record_aux_stack+0x8e/0xa0 [ 35.925559] __call_rcu_common.constprop.0+0x6a/0xb90 [ 35.926195] remove_vma+0x139/0x170 [ 35.926641] do_vmi_align_munmap+0xd4a/0x11f0 [ 35.927196] do_vmi_munmap+0x1f1/0x2b0 [ 35.927698] __vm_munmap+0x138/0x3a0 [ 35.928166] __x64_sys_munmap+0x59/0x80 [ 35.928661] do_syscall_64+0x3f/0x90 [ 35.929143] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 35.929779] [ 35.929997] Second to last potentially related work creation: [ 35.930687] kasan_save_stack+0x22/0x50 [ 35.931196] __kasan_record_aux_stack+0x8e/0xa0 [ 35.931778] __call_rcu_common.constprop.0+0x6a/0xb90 [ 35.932427] remove_vma+0x139/0x170 [ 35.932877] do_vmi_align_munmap+0xd4a/0x11f0 [ 35.933438] do_vmi_munmap+0x1f1/0x2b0 [ 35.933928] mmap_region+0x1f9/0x2660 [ 35.934405] do_mmap+0x854/0xf00 [ 35.934836] vm_mmap_pgoff+0x1a6/0x3a0 [ 35.935332] ksys_mmap_pgoff+0x3af/0x500 [ 35.935859] do_syscall_64+0x3f/0x90 [ 35.936330] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 35.936971] [ 35.937187] The buggy address belongs to the object at ffff88800ed962b8 [ 35.937187] which belongs to the cache vm_area_struct of size 168 [ 35.938674] The buggy address is located 88 bytes inside of [ 35.938674] freed 168-byte region [ffff88800ed962b8, ffff88800ed96360) [ 35.940109] [ 35.940327] The buggy address belongs to the physical page: [ 35.940998] page:00000000e114cbbb refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xed96 [ 35.942091] memcg:ffff88800ed8b501 [ 35.942521] anon flags: 0x100000000000200(slab|node=0|zone=1) [ 35.943230] page_type: 0xffffffff() [ 35.943688] raw: 0100000000000200 ffff88800879fc80 ffffea0000381100 dead000000000007 [ 35.944607] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff88800ed8b501 [ 35.945518] page dumped because: kasan: bad access detected [ 35.946185] [ 35.946399] Memory state around the buggy address: [ 35.946982] ffff88800ed96200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 35.947856] ffff88800ed96280: fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb fb [ 35.948714] >ffff88800ed96300: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 35.949563] ^ [ 35.950031] ffff88800ed96380: fc fc fc fc 00 00 00 00 00 00 00 00 00 00 00 00 [ 35.950886] ffff88800ed96400: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 35.951740] ================================================================== [ 35.952830] Disabling lock debugging due to kernel taint [ 38.499646] BUG: Bad rss-counter state mm:000000001c0bb975 type:MM_FILEPAGES val:33 [ 38.500659] BUG: Bad rss-counter state mm:000000001c0bb975 type:MM_ANONPAGES val:22 [ 38.960101] BUG: Bad rss-counter state mm:00000000f05db0e1 type:MM_FILEPAGES val:33 [ 38.961119] BUG: Bad rss-counter state mm:00000000f05db0e1 type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:25392' (ECDSA) to the list of known hosts. 2023/06/19 20:24:08 fuzzer started 2023/06/19 20:24:08 dialing manager at localhost:44161 2023/06/19 20:24:08 checking machine... 2023/06/19 20:24:08 checking revisions... [ 39.672557] kmemleak: Automatic memory scanning thread ended 2023/06/19 20:24:08 testing simple program... [ 39.715482] cgroup: Unknown subsys name 'net' [ 39.777678] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 20:24:03 Registers: info registers vcpu 0 RAX=14424fc543186d65 RBX=000055d755418290 RCX=00007fdf441d3958 RDX=00000000001368d0 RSI=00007ffe39d3b320 RDI=0000000053414745 RBP=00007ffe39d3b130 RSP=00007ffe39d3aef0 R8 =000000000000002f R9 =00007ffe39d3ae90 R10=0000000000000002 R11=0000000000010d98 R12=00007ffe39d3b518 R13=8bfe9d5eff529769 R14=00007ffe39d3af68 R15=00007ffe39d3b0d8 RIP=00007fdf458bfa27 RFL=00000206 [-----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 00007fdf44d3a900 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=00007fdf441c6940 CR3=000000000973e000 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=3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d XMM01=00000000000000000000000000000000 XMM02=ffffffffffffffffffffffffffffffff XMM03=2f6c616e72756f6a2f676f6c2f6e7572 XMM04=5ba188053259143d00000000000ae988 XMM05=6e9c557f14e68af00000000000136620 XMM06=19e9129bd510f2350000000000135768 XMM07=00000000000000000000000000000000 XMM08=415453454d49545f454d49544c414552 XMM09=00000000000000000000000000000000 XMM10=20200000000020202020202020200000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=0000000000000001 RBX=0000000000000001 RCX=ffffffff812d869a RDX=fffffbfff0ba77db RSI=0000000000000008 RDI=ffffffff85d3bed0 RBP=1ffff11002da3f08 RSP=ffff888016d1f830 R8 =0000000000000000 R9 =fffffbfff0ba77da R10=ffffffff85d3bed7 R11=0000000000000000 R12=ffffffff8560b640 R13=ffffffff8162a21f R14=0000000000000000 R15=ffff888016d1f938 RIP=ffffffff812d86a2 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 00007f150c888900 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=00007ffc035ba000 CR3=000000001827c000 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=2c2c2c2c2c2c2c2c2c2c2c2c2c2c2c2c XMM01=00ff00000000000000000000000000ff XMM02=00ff00000000000000000000000000ff XMM03=655f6d61702c7374696d696c5f6d6170 XMM04=3d6c616e696d72657420322e322e302e XMM05=3d656d616e74736f682022646873732f XMM06=746f6f72223d746363612078756e696c XMM07=6e655f6d61702c7374696d696c5f6d61 XMM08=6500273d2720676e6974636570786500 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000