syzkaller login: [ 40.491801] BUG: Bad rss-counter state mm:000000004b99e5a5 type:MM_FILEPAGES val:33 [ 40.492961] BUG: Bad rss-counter state mm:000000004b99e5a5 type:MM_ANONPAGES val:22 [ 40.528153] ================================================================== [ 40.529200] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 40.530272] Read of size 8 at addr ffff88800ea0f4e0 by task sshd/219 [ 40.531125] [ 40.531382] CPU: 1 PID: 219 Comm: sshd Not tainted 6.4.0-rc7-next-20230619 #1 [ 40.532343] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 40.533470] Call Trace: [ 40.533803] [ 40.534142] dump_stack_lvl+0x91/0xf0 [ 40.534703] print_report+0xcc/0x620 [ 40.535282] ? __virt_addr_valid+0x102/0x340 [ 40.535894] ? vma_interval_tree_remove+0xc75/0xec0 [ 40.536596] ? vma_interval_tree_remove+0xc75/0xec0 [ 40.537298] kasan_report+0xbe/0xf0 [ 40.537772] ? vma_interval_tree_remove+0xc75/0xec0 [ 40.538496] vma_interval_tree_remove+0xc75/0xec0 [ 40.539146] vma_prepare+0xc54/0x11a0 [ 40.539632] __split_vma+0x5af/0x950 [ 40.540103] ? __pfx___split_vma+0x10/0x10 [ 40.540624] ? find_held_lock+0x2c/0x110 [ 40.541139] do_vmi_align_munmap+0x2ba/0x11f0 [ 40.541703] ? lock_is_held_type+0x9f/0x120 [ 40.542240] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 40.542850] ? mtree_range_walk+0x632/0x900 [ 40.543410] ? mas_walk+0x5c7/0x7c0 [ 40.543881] do_vmi_munmap+0x1f1/0x2b0 [ 40.544369] mmap_region+0x1f9/0x2660 [ 40.544847] ? vm_mmap_pgoff+0x15c/0x3a0 [ 40.545367] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 40.546073] ? __pfx_lock_acquire+0x10/0x10 [ 40.546609] ? __pfx_mmap_region+0x10/0x10 [ 40.547155] ? security_mmap_addr+0x7d/0xa0 [ 40.547680] ? get_unmapped_area+0x1f5/0x3f0 [ 40.548234] do_mmap+0x854/0xf00 [ 40.548673] vm_mmap_pgoff+0x1a6/0x3a0 [ 40.549160] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 40.549721] ksys_mmap_pgoff+0x3af/0x500 [ 40.550221] do_syscall_64+0x3f/0x90 [ 40.550695] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 40.551341] RIP: 0033:0x7f29a6fd7d82 [ 40.551798] 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 [ 40.553913] RSP: 002b:00007ffc334b9d68 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 40.554811] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007f29a6fd7d82 [ 40.555671] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007f29a6411000 [ 40.556629] RBP: 00007f29a6411000 R08: 0000000000000009 R09: 0000000000001000 [ 40.557487] R10: 0000000000000812 R11: 0000000000000206 R12: 000055fdaef90b20 [ 40.558335] R13: 00007ffc334b9d80 R14: 00007ffc334b9db0 R15: 00007ffc334ba110 [ 40.559233] [ 40.559532] [ 40.559746] Allocated by task 212: [ 40.560175] kasan_save_stack+0x22/0x50 [ 40.560679] kasan_set_track+0x25/0x30 [ 40.561171] __kasan_slab_alloc+0x59/0x70 [ 40.561697] kmem_cache_alloc+0x16b/0x370 [ 40.562213] vm_area_dup+0x20/0x160 [ 40.562666] __split_vma+0x170/0x950 [ 40.563136] split_vma+0xc6/0x110 [ 40.563569] mprotect_fixup+0x8d2/0xb30 [ 40.564072] do_mprotect_pkey+0x87e/0xd40 [ 40.564589] __x64_sys_mprotect+0x78/0xc0 [ 40.565104] do_syscall_64+0x3f/0x90 [ 40.565574] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 40.566211] [ 40.566426] Freed by task 19: [ 40.566808] kasan_save_stack+0x22/0x50 [ 40.567325] kasan_set_track+0x25/0x30 [ 40.567823] kasan_save_free_info+0x2b/0x50 [ 40.568354] __kasan_slab_free+0x10a/0x190 [ 40.568901] kmem_cache_free+0x10d/0x4d0 [ 40.569411] rcu_core+0x8c8/0x2860 [ 40.569850] __do_softirq+0x1b7/0x7d4 [ 40.570342] [ 40.570556] Last potentially related work creation: [ 40.571183] kasan_save_stack+0x22/0x50 [ 40.571687] __kasan_record_aux_stack+0x8e/0xa0 [ 40.572263] __call_rcu_common.constprop.0+0x6a/0xb90 [ 40.572920] remove_vma+0x139/0x170 [ 40.573365] do_vmi_align_munmap+0xd4a/0x11f0 [ 40.573922] do_vmi_munmap+0x1f1/0x2b0 [ 40.574408] __vm_munmap+0x138/0x3a0 [ 40.574876] __x64_sys_munmap+0x59/0x80 [ 40.575395] do_syscall_64+0x3f/0x90 [ 40.575869] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 40.576529] [ 40.576746] The buggy address belongs to the object at ffff88800ea0f488 [ 40.576746] which belongs to the cache vm_area_struct of size 168 [ 40.578228] The buggy address is located 88 bytes inside of [ 40.578228] freed 168-byte region [ffff88800ea0f488, ffff88800ea0f530) [ 40.579643] [ 40.579859] The buggy address belongs to the physical page: [ 40.580518] page:00000000a49818b9 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xea0f [ 40.581599] memcg:ffff88800fc72e01 [ 40.582025] flags: 0x100000000000200(slab|node=0|zone=1) [ 40.582677] page_type: 0xffffffff() [ 40.583143] raw: 0100000000000200 ffff88800879fc80 dead000000000122 0000000000000000 [ 40.584062] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff88800fc72e01 [ 40.584956] page dumped because: kasan: bad access detected [ 40.585632] [ 40.585847] Memory state around the buggy address: [ 40.586444] ffff88800ea0f380: fc fc fc fc 00 00 00 00 00 00 00 00 00 00 00 00 [ 40.587302] ffff88800ea0f400: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 40.588146] >ffff88800ea0f480: fc fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.588992] ^ [ 40.589743] ffff88800ea0f500: fb fb fb fb fb fb fc fc fc fc fc fc fc fc fa fb [ 40.590599] ffff88800ea0f580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.591458] ================================================================== [ 40.592384] Disabling lock debugging due to kernel taint [ 43.168739] BUG: Bad rss-counter state mm:0000000026cd260d type:MM_FILEPAGES val:33 [ 43.169727] BUG: Bad rss-counter state mm:0000000026cd260d type:MM_ANONPAGES val:22 [ 43.626505] BUG: Bad rss-counter state mm:000000005a5d37fb type:MM_FILEPAGES val:33 [ 43.627554] BUG: Bad rss-counter state mm:000000005a5d37fb type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:42203' (ECDSA) to the list of known hosts. 2023/06/19 11:58:06 fuzzer started 2023/06/19 11:58:06 dialing manager at localhost:44161 2023/06/19 11:58:06 checking machine... 2023/06/19 11:58:06 checking revisions... [ 44.337188] kmemleak: Automatic memory scanning thread ended 2023/06/19 11:58:06 testing simple program... [ 44.384696] cgroup: Unknown subsys name 'net' [ 44.425672] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 11:58:04 Registers: info registers vcpu 0 RAX=dffffc0000000000 RBX=ffffffff813ad6d0 RCX=ffff88800a6f74f8 RDX=1ffff110014dee96 RSI=ffff88800a6f74f0 RDI=ffffffff813ad6d0 RBP=ffff88800a6f74b0 RSP=ffff88800a6f7428 R8 =0000000000000001 R9 =ffff88800a6f7498 R10=0000000000038001 R11=0000000000003c0d R12=ffff88800a6f7520 R13=0000000000000000 R14=ffff888016e71b40 R15=0000000000082cc0 RIP=ffffffff811fc7a0 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 00007f8f97ccc900 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=00007ffeb0f06000 CR3=000000000e33e000 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=635f6e6f69737365733a4d41503d706f XMM01=6f6c5f6d61702c78756e696c65735f6d XMM02=61702c74696d7265705f6d61702c7469 XMM03=655f6d61702c7374696d696c5f6d6170 XMM04=3d6c616e696d72657420322e322e302e XMM05=3d656d616e74736f682022646873732f XMM06=746f6f72223d746363612078756e696c XMM07=6e655f6d61702c7374696d696c5f6d61 XMM08=652075253d64692073253d706f000000 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=ffff88806cf35000 RBX=0000000000000001 RCX=ffffffff8450c50e RDX=ffffed100d9e6a01 RSI=0000000000000004 RDI=ffffffff812889a5 RBP=dffffc0000000000 RSP=ffff888008e27e70 R8 =0000000000000000 R9 =ffffed100d9e6a00 R10=ffff88806cf35003 R11=0000000000000001 R12=ffffffff85d3bed0 R13=1ffff110011c4fd3 R14=0000000000000000 R15=0000000000000000 RIP=ffffffff8450d49f RFL=00000246 [---Z-P-] CPL=0 II=0 A20=1 SMM=0 HLT=1 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=00007fa4754a7dd0 CR3=000000000c5ee000 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=1e827d938eb352aaf94c034c56d4f187 XMM02=000000000011dd68ec2efd57dc4c00df XMM03=00000000001247080f4ed04a77447354 XMM04=d17525f4c703aaf400000000000ae988 XMM05=3096df409b55bb8c00000000001351a0 XMM06=806171799158d9670000000000133ed0 XMM07=e042d86d42eb936e00000000001249e0 XMM08=0f4ed04a77447354000000000011ddc8 XMM09=00000000000000000000000000000000 XMM10=20200000000020202020202020200000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000