syzkaller login: [ 36.568630] BUG: Bad rss-counter state mm:0000000017935da6 type:MM_FILEPAGES val:33 [ 36.569777] BUG: Bad rss-counter state mm:0000000017935da6 type:MM_ANONPAGES val:22 [ 36.729889] ================================================================== [ 36.730809] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 36.731764] Read of size 8 at addr ffff88800c6673f8 by task sshd/220 [ 36.732544] [ 36.732765] CPU: 1 PID: 220 Comm: sshd Not tainted 6.4.0-rc7-next-20230619 #1 [ 36.733821] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 36.734801] Call Trace: [ 36.735128] [ 36.735412] dump_stack_lvl+0x91/0xf0 [ 36.735941] print_report+0xcc/0x620 [ 36.736431] ? __virt_addr_valid+0x102/0x340 [ 36.736996] ? vma_interval_tree_remove+0xc75/0xec0 [ 36.737615] ? vma_interval_tree_remove+0xc75/0xec0 [ 36.738252] kasan_report+0xbe/0xf0 [ 36.738726] ? vma_interval_tree_remove+0xc75/0xec0 [ 36.739354] vma_interval_tree_remove+0xc75/0xec0 [ 36.739972] vma_prepare+0xc54/0x11a0 [ 36.740455] __split_vma+0x5af/0x950 [ 36.740933] ? __pfx___split_vma+0x10/0x10 [ 36.741460] ? find_held_lock+0x2c/0x110 [ 36.741984] do_vmi_align_munmap+0x2ba/0x11f0 [ 36.742556] ? lock_is_held_type+0x9f/0x120 [ 36.743091] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 36.743700] ? mtree_range_walk+0x632/0x900 [ 36.744277] ? mas_walk+0x5c7/0x7c0 [ 36.744756] do_vmi_munmap+0x1f1/0x2b0 [ 36.745257] mmap_region+0x1f9/0x2660 [ 36.745745] ? vm_mmap_pgoff+0x15c/0x3a0 [ 36.746272] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 36.746983] ? __pfx_lock_acquire+0x10/0x10 [ 36.747538] ? __pfx_mmap_region+0x10/0x10 [ 36.748078] ? security_mmap_addr+0x7d/0xa0 [ 36.748617] ? get_unmapped_area+0x1f5/0x3f0 [ 36.749180] do_mmap+0x854/0xf00 [ 36.749629] vm_mmap_pgoff+0x1a6/0x3a0 [ 36.750130] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 36.750697] ksys_mmap_pgoff+0x3af/0x500 [ 36.751209] do_syscall_64+0x3f/0x90 [ 36.751693] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 36.752370] RIP: 0033:0x7fd2e8b5ed82 [ 36.752831] 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 [ 36.754971] RSP: 002b:00007ffe2341bb28 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 36.755888] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007fd2e8b5ed82 [ 36.756746] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007fd2e7f98000 [ 36.757600] RBP: 00007fd2e7f98000 R08: 0000000000000009 R09: 0000000000001000 [ 36.758450] R10: 0000000000000812 R11: 0000000000000206 R12: 000056461ba61f70 [ 36.759298] R13: 00007ffe2341bb40 R14: 00007ffe2341bb70 R15: 00007ffe2341bed0 [ 36.760171] [ 36.760465] [ 36.760682] Allocated by task 213: [ 36.761120] kasan_save_stack+0x22/0x50 [ 36.761624] kasan_set_track+0x25/0x30 [ 36.762116] __kasan_slab_alloc+0x59/0x70 [ 36.762638] kmem_cache_alloc+0x16b/0x370 [ 36.763156] vm_area_dup+0x20/0x160 [ 36.763615] __split_vma+0x170/0x950 [ 36.764098] split_vma+0xc6/0x110 [ 36.764535] mprotect_fixup+0x8d2/0xb30 [ 36.765043] do_mprotect_pkey+0x87e/0xd40 [ 36.765574] __x64_sys_mprotect+0x78/0xc0 [ 36.766095] do_syscall_64+0x3f/0x90 [ 36.766575] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 36.767216] [ 36.767432] Freed by task 210: [ 36.767838] kasan_save_stack+0x22/0x50 [ 36.768352] kasan_set_track+0x25/0x30 [ 36.768851] kasan_save_free_info+0x2b/0x50 [ 36.769386] __kasan_slab_free+0x10a/0x190 [ 36.769919] kmem_cache_free+0x10d/0x4d0 [ 36.770432] rcu_core+0x8c8/0x2860 [ 36.770883] __do_softirq+0x1b7/0x7d4 [ 36.771357] [ 36.771573] Last potentially related work creation: [ 36.772167] kasan_save_stack+0x22/0x50 [ 36.772667] __kasan_record_aux_stack+0x8e/0xa0 [ 36.773240] __call_rcu_common.constprop.0+0x6a/0xb90 [ 36.773880] remove_vma+0x139/0x170 [ 36.774334] do_vmi_align_munmap+0xd4a/0x11f0 [ 36.774960] do_vmi_munmap+0x1f1/0x2b0 [ 36.775455] __vm_munmap+0x138/0x3a0 [ 36.775936] __x64_sys_munmap+0x59/0x80 [ 36.776434] do_syscall_64+0x3f/0x90 [ 36.776908] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 36.777554] [ 36.777773] The buggy address belongs to the object at ffff88800c6673a0 [ 36.777773] which belongs to the cache vm_area_struct of size 168 [ 36.779250] The buggy address is located 88 bytes inside of [ 36.779250] freed 168-byte region [ffff88800c6673a0, ffff88800c667448) [ 36.780668] [ 36.780883] The buggy address belongs to the physical page: [ 36.781558] page:00000000ada0dfd1 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xc667 [ 36.782642] memcg:ffff88800ee6fe01 [ 36.783065] flags: 0x100000000000200(slab|node=0|zone=1) [ 36.783736] page_type: 0xffffffff() [ 36.784197] raw: 0100000000000200 ffff88800879fc80 dead000000000122 0000000000000000 [ 36.785110] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff88800ee6fe01 [ 36.786017] page dumped because: kasan: bad access detected [ 36.786684] [ 36.786900] Memory state around the buggy address: [ 36.787483] ffff88800c667280: fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 00 [ 36.788343] ffff88800c667300: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [ 36.789191] >ffff88800c667380: fc fc fc fc fa fb fb fb fb fb fb fb fb fb fb fb [ 36.790038] ^ [ 36.790879] ffff88800c667400: fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc [ 36.791757] ffff88800c667480: fc fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.792620] ================================================================== [ 36.793651] Disabling lock debugging due to kernel taint [ 39.301761] BUG: Bad rss-counter state mm:00000000c96a08fe type:MM_FILEPAGES val:33 [ 39.302914] BUG: Bad rss-counter state mm:00000000c96a08fe type:MM_ANONPAGES val:22 [ 39.738532] BUG: Bad rss-counter state mm:0000000034c9f4db type:MM_FILEPAGES val:33 [ 39.739730] BUG: Bad rss-counter state mm:0000000034c9f4db type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:2253' (ECDSA) to the list of known hosts. 2023/06/19 16:17:46 fuzzer started 2023/06/19 16:17:47 dialing manager at localhost:44161 2023/06/19 16:17:47 checking machine... 2023/06/19 16:17:47 checking revisions... [ 40.486357] kmemleak: Automatic memory scanning thread ended 2023/06/19 16:17:47 testing simple program... [ 40.535038] cgroup: Unknown subsys name 'net' [ 40.592775] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 16:17:40 Registers: info registers vcpu 0 RAX=0000000000000000 RBX=0000000000000000 RCX=ffffffff818c2388 RDX=ffff888015ccd1c0 RSI=0000000000000000 RDI=0000000000000005 RBP=0000000000000000 RSP=ffff88800dc0f950 R8 =0000000000000005 R9 =0000000000000000 R10=0000000000000000 R11=0000000000000000 R12=0000000000000001 R13=ffff88800c9b2000 R14=0000000000000000 R15=dffffc0000000000 RIP=ffffffff814c01fc 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 00007fcb5e6fc700 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=00007f3c3e6810b0 CR3=000000000e256000 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=37313a3631203931206e754a3e36383c XMM01=7365733a646873732878696e755f6d61 XMM02=736f6c63206e6f6973736573203a296e XMM03=5f6d6170203a5d3932325b6468737320 XMM04=6456774875434142334f726f59427469 XMM05=485320415352203a3268737320323935 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=ffffea0000583000 RBX=0000000000000000 RCX=0000000000000000 RDX=ffff8880087b0500 RSI=ffff8880160c0e60 RDI=ffff888000000000 RBP=ffffffff813782a8 RSP=ffff888008e57ce8 R8 =ffffea0000000000 R9 =0000000000000000 R10=ffffffff85d3bed7 R11=0000000000000128 R12=ffff8880160c0e60 R13=ffff8880087b0500 R14=ffffffff813782a8 R15=ffff8880160c0e60 RIP=ffffffff8180c827 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 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=00007ff900c6a040 CR3=0000000014566000 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=d06e5bb946c0b4af4e4bac5722810e3e XMM02=000000000011fb20eff9b2d0a8fce9cb XMM03=000000000011fbf02c67c8bc2e329bc3 XMM04=54b3bbd826dd63d600000000000ae988 XMM05=19e9129bd510f2350000000000133ea8 XMM06=4fda316b135da52b0000000000133d30 XMM07=e042d86d42eb936e00000000001245b0 XMM08=39795f0b4a5b4169000000000011fbf0 XMM09=00000000000000000000000000000000 XMM10=20200000000020202020202020200000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000