syzkaller login: [ 79.248560] BUG: Bad rss-counter state mm:00000000a7077add type:MM_FILEPAGES val:33 [ 79.250066] BUG: Bad rss-counter state mm:00000000a7077add type:MM_ANONPAGES val:22 [ 79.389916] ================================================================== [ 79.391021] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 79.392140] Read of size 8 at addr ffff88800f082310 by task sshd/222 [ 79.392910] [ 79.393129] CPU: 1 PID: 222 Comm: sshd Tainted: G L 6.4.0-rc7-next-20230619 #1 [ 79.394172] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 79.395158] Call Trace: [ 79.395478] [ 79.395762] dump_stack_lvl+0x91/0xf0 [ 79.396247] print_report+0xcc/0x620 [ 79.396739] ? __virt_addr_valid+0x102/0x340 [ 79.397292] ? vma_interval_tree_remove+0xc75/0xec0 [ 79.397921] ? vma_interval_tree_remove+0xc75/0xec0 [ 79.398541] kasan_report+0xbe/0xf0 [ 79.399031] ? vma_interval_tree_remove+0xc75/0xec0 [ 79.399657] vma_interval_tree_remove+0xc75/0xec0 [ 79.400265] vma_prepare+0xc54/0x11a0 [ 79.400752] __split_vma+0x5af/0x950 [ 79.401230] ? __pfx___split_vma+0x10/0x10 [ 79.401765] ? find_held_lock+0x2c/0x110 [ 79.402296] do_vmi_align_munmap+0x2ba/0x11f0 [ 79.402881] ? lock_is_held_type+0x9f/0x120 [ 79.403423] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 79.404031] ? mtree_range_walk+0x632/0x900 [ 79.404583] ? mas_walk+0x5c7/0x7c0 [ 79.405060] do_vmi_munmap+0x1f1/0x2b0 [ 79.405556] mmap_region+0x1f9/0x2660 [ 79.406039] ? vm_mmap_pgoff+0x15c/0x3a0 [ 79.406554] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 79.407311] ? __pfx_lock_acquire+0x10/0x10 [ 79.407847] ? __pfx_mmap_region+0x10/0x10 [ 79.408388] ? security_mmap_addr+0x7d/0xa0 [ 79.408923] ? get_unmapped_area+0x1f5/0x3f0 [ 79.409479] do_mmap+0x854/0xf00 [ 79.409923] vm_mmap_pgoff+0x1a6/0x3a0 [ 79.410436] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 79.411022] ksys_mmap_pgoff+0x3af/0x500 [ 79.411529] do_syscall_64+0x3f/0x90 [ 79.412016] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 79.412678] RIP: 0033:0x7efd26bfdd82 [ 79.413138] 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 [ 79.415303] RSP: 002b:00007fff75a3a298 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 79.416214] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007efd26bfdd82 [ 79.417074] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007efd26037000 [ 79.417936] RBP: 00007efd26037000 R08: 0000000000000009 R09: 0000000000001000 [ 79.418796] R10: 0000000000000812 R11: 0000000000000206 R12: 000055ae2b649ec0 [ 79.419658] R13: 00007fff75a3a2b0 R14: 00007fff75a3a2e0 R15: 00007fff75a3a640 [ 79.420519] [ 79.420821] [ 79.421039] Allocated by task 215: [ 79.421476] kasan_save_stack+0x22/0x50 [ 79.421982] kasan_set_track+0x25/0x30 [ 79.422481] __kasan_slab_alloc+0x59/0x70 [ 79.423029] kmem_cache_alloc+0x16b/0x370 [ 79.423550] vm_area_dup+0x20/0x160 [ 79.424018] __split_vma+0x170/0x950 [ 79.424490] split_vma+0xc6/0x110 [ 79.424933] mprotect_fixup+0x8d2/0xb30 [ 79.425437] do_mprotect_pkey+0x87e/0xd40 [ 79.425972] __x64_sys_mprotect+0x78/0xc0 [ 79.426505] do_syscall_64+0x3f/0x90 [ 79.426989] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 79.427637] [ 79.427856] Freed by task 211: [ 79.428251] kasan_save_stack+0x22/0x50 [ 79.428765] kasan_set_track+0x25/0x30 [ 79.429259] kasan_save_free_info+0x2b/0x50 [ 79.429807] __kasan_slab_free+0x10a/0x190 [ 79.430343] kmem_cache_free+0x10d/0x4d0 [ 79.430882] rcu_core+0x8c8/0x2860 [ 79.431329] __do_softirq+0x1b7/0x7d4 [ 79.431814] [ 79.432028] Last potentially related work creation: [ 79.432615] kasan_save_stack+0x22/0x50 [ 79.433183] __kasan_record_aux_stack+0x8e/0xa0 [ 79.433764] __call_rcu_common.constprop.0+0x6a/0xb90 [ 79.434416] remove_vma+0x139/0x170 [ 79.434892] do_vmi_align_munmap+0xd4a/0x11f0 [ 79.435468] do_vmi_munmap+0x1f1/0x2b0 [ 79.435966] __vm_munmap+0x138/0x3a0 [ 79.436450] __x64_sys_munmap+0x59/0x80 [ 79.436952] do_syscall_64+0x3f/0x90 [ 79.437429] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 79.438074] [ 79.438289] The buggy address belongs to the object at ffff88800f0822b8 [ 79.438289] which belongs to the cache vm_area_struct of size 168 [ 79.439808] The buggy address is located 88 bytes inside of [ 79.439808] freed 168-byte region [ffff88800f0822b8, ffff88800f082360) [ 79.441225] [ 79.441443] The buggy address belongs to the physical page: [ 79.442098] page:0000000084e38139 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xf082 [ 79.443193] memcg:ffff888009875f01 [ 79.443631] flags: 0x100000000000200(slab|node=0|zone=1) [ 79.444285] page_type: 0xffffffff() [ 79.444741] raw: 0100000000000200 ffff88800879fc80 ffffea0000561200 dead000000000004 [ 79.445677] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff888009875f01 [ 79.446587] page dumped because: kasan: bad access detected [ 79.447255] [ 79.447469] Memory state around the buggy address: [ 79.448053] ffff88800f082200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 79.448921] ffff88800f082280: fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb fb [ 79.449778] >ffff88800f082300: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 79.450633] ^ [ 79.451118] ffff88800f082380: fc fc fc fc fa fb fb fb fb fb fb fb fb fb fb fb [ 79.451979] ffff88800f082400: fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc [ 79.452837] ================================================================== [ 79.453866] Disabling lock debugging due to kernel taint [ 81.473604] BUG: Bad rss-counter state mm:000000005cfaf822 type:MM_FILEPAGES val:33 [ 81.474589] BUG: Bad rss-counter state mm:000000005cfaf822 type:MM_ANONPAGES val:22 [ 81.935360] BUG: Bad rss-counter state mm:000000009bf5dc00 type:MM_FILEPAGES val:33 [ 81.936366] BUG: Bad rss-counter state mm:000000009bf5dc00 type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:24776' (ECDSA) to the list of known hosts. 2023/06/20 01:30:47 fuzzer started 2023/06/20 01:30:48 dialing manager at localhost:44161 2023/06/20 01:30:48 checking machine... 2023/06/20 01:30:48 checking revisions... [ 82.669305] kmemleak: Automatic memory scanning thread ended 2023/06/20 01:30:48 testing simple program... [ 82.719771] cgroup: Unknown subsys name 'net' [ 82.760189] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 01:29:58 Registers: info registers vcpu 0 RAX=dffffc0000000000 RBX=ffff88800ec1f568 RCX=0000000000000001 RDX=0000000000000000 RSI=ffffffff83642d12 RDI=ffff88800ec1f574 RBP=000000000000000a RSP=ffff88800ec1f480 R8 =0000000000000001 R9 =ffff88800ec1f4e0 R10=0000000000038001 R11=000000000008a85c R12=ffff88800ec1f568 R13=0000000000000000 R14=ffff888016d951c0 R15=ffff888013aec130 RIP=ffffffff813ad49e RFL=00000213 [----A-C] 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 00007f8792d8e700 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=00007fa250fa55d0 CR3=000000000e48c000 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=756e696c65735f687373203a726f7272 XMM02=2079746972756365732078756e694c45 XMM03=2064656c696146203a656d616e796278 XMM04=6456774875434142334f726f59427469 XMM05=485320415352203a3268737320343131 XMM06=206d6f726620746f6f7220726f662079 XMM07=00000000000000000000000000000000 XMM08=3a677562656420676f6c737973720000 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=1ffffffff0baf315 RBX=ffffffff85d798ac RCX=ffffffff8100455b RDX=0000000000000000 RSI=ffffffff86072abc RDI=ffffffff85d79874 RBP=ffffffff85d7989c RSP=ffff888008e57840 R8 =ffffffff86072abc R9 =ffff888008e57938 R10=0000000000038001 R11=0000000000000128 R12=ffffffff85d798c0 R13=ffffffff85d79874 R14=ffffffff85d79898 R15=dffffc0000000000 RIP=ffffffff8112fc7f RFL=00000213 [----A-C] 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 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=00007fff3a63c000 CR3=0000000016c3c000 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