syzkaller login: [ 61.199411] BUG: Bad rss-counter state mm:00000000f37ade09 type:MM_FILEPAGES val:33 [ 61.200594] BUG: Bad rss-counter state mm:00000000f37ade09 type:MM_ANONPAGES val:22 [ 61.345506] ================================================================== [ 61.346597] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 61.347829] Read of size 8 at addr ffff88800f558798 by task sshd/218 [ 61.348768] [ 61.348990] CPU: 1 PID: 218 Comm: sshd Not tainted 6.4.0-rc7-next-20230620 #1 [ 61.349858] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 61.350850] Call Trace: [ 61.351171] [ 61.351458] dump_stack_lvl+0x91/0xf0 [ 61.351957] print_report+0xcc/0x620 [ 61.352455] ? __virt_addr_valid+0x102/0x340 [ 61.353014] ? vma_interval_tree_remove+0xc75/0xec0 [ 61.353632] ? vma_interval_tree_remove+0xc75/0xec0 [ 61.354263] kasan_report+0xbe/0xf0 [ 61.354743] ? vma_interval_tree_remove+0xc75/0xec0 [ 61.355373] vma_interval_tree_remove+0xc75/0xec0 [ 61.356022] vma_prepare+0xc54/0x11a0 [ 61.356544] __split_vma+0x5af/0x950 [ 61.357045] ? __pfx___split_vma+0x10/0x10 [ 61.357614] ? find_held_lock+0x2c/0x110 [ 61.358169] do_vmi_align_munmap+0x2ba/0x11f0 [ 61.358762] ? lock_is_held_type+0x9f/0x120 [ 61.359333] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 61.359975] ? mtree_range_walk+0x632/0x900 [ 61.360590] ? mas_walk+0x5c7/0x7c0 [ 61.361100] do_vmi_munmap+0x1f1/0x2b0 [ 61.361619] mmap_region+0x1f9/0x2660 [ 61.362130] ? vm_mmap_pgoff+0x15c/0x3a0 [ 61.362671] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 61.363421] ? __pfx_lock_acquire+0x10/0x10 [ 61.363988] ? __pfx_mmap_region+0x10/0x10 [ 61.364571] ? security_mmap_addr+0x7d/0xa0 [ 61.365134] ? get_unmapped_area+0x1f5/0x3f0 [ 61.365717] do_mmap+0x854/0xf00 [ 61.366184] vm_mmap_pgoff+0x1a6/0x3a0 [ 61.366714] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 61.367308] ksys_mmap_pgoff+0x3af/0x500 [ 61.367839] do_syscall_64+0x3f/0x90 [ 61.368370] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 61.369056] RIP: 0033:0x7f05aa242d82 [ 61.369531] 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 [ 61.371793] RSP: 002b:00007ffcb8412f38 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 61.372761] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007f05aa242d82 [ 61.373658] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007f05a967c000 [ 61.374558] RBP: 00007f05a967c000 R08: 0000000000000009 R09: 0000000000001000 [ 61.375471] R10: 0000000000000812 R11: 0000000000000206 R12: 000055bc6a9ddec0 [ 61.376384] R13: 00007ffcb8412f50 R14: 00007ffcb8412f80 R15: 00007ffcb84132e0 [ 61.377301] [ 61.377612] [ 61.377842] Allocated by task 211: [ 61.378296] kasan_save_stack+0x22/0x50 [ 61.378829] kasan_set_track+0x25/0x30 [ 61.379354] __kasan_slab_alloc+0x59/0x70 [ 61.379912] kmem_cache_alloc+0x16b/0x370 [ 61.380473] vm_area_dup+0x20/0x160 [ 61.380959] __split_vma+0x170/0x950 [ 61.381451] split_vma+0xc6/0x110 [ 61.381919] mprotect_fixup+0x8d2/0xb30 [ 61.382461] do_mprotect_pkey+0x87e/0xd40 [ 61.383012] __x64_sys_mprotect+0x78/0xc0 [ 61.383564] do_syscall_64+0x3f/0x90 [ 61.384066] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 61.384765] [ 61.384998] Freed by task 211: [ 61.385427] kasan_save_stack+0x22/0x50 [ 61.385961] kasan_set_track+0x25/0x30 [ 61.386491] kasan_save_free_info+0x2b/0x50 [ 61.387054] __kasan_slab_free+0x10a/0x190 [ 61.387623] kmem_cache_free+0x10d/0x4d0 [ 61.388162] rcu_core+0x8c8/0x2860 [ 61.388649] __do_softirq+0x1b7/0x7d4 [ 61.389164] [ 61.389476] Last potentially related work creation: [ 61.390105] kasan_save_stack+0x22/0x50 [ 61.390640] __kasan_record_aux_stack+0x8e/0xa0 [ 61.391246] __call_rcu_common.constprop.0+0x6a/0xb90 [ 61.391926] remove_vma+0x139/0x170 [ 61.392415] do_vmi_align_munmap+0xd4a/0x11f0 [ 61.393010] do_vmi_munmap+0x1f1/0x2b0 [ 61.393527] __vm_munmap+0x138/0x3a0 [ 61.394028] __x64_sys_munmap+0x59/0x80 [ 61.394558] do_syscall_64+0x3f/0x90 [ 61.395063] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 61.395748] [ 61.395982] The buggy address belongs to the object at ffff88800f558740 [ 61.395982] which belongs to the cache vm_area_struct of size 168 [ 61.397573] The buggy address is located 88 bytes inside of [ 61.397573] freed 168-byte region [ffff88800f558740, ffff88800f5587e8) [ 61.399105] [ 61.399335] The buggy address belongs to the physical page: [ 61.400055] page:0000000094139049 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xf558 [ 61.401235] memcg:ffff88800c4d5001 [ 61.401692] flags: 0x100000000000200(slab|node=0|zone=1) [ 61.402397] page_type: 0xffffffff() [ 61.402893] raw: 0100000000000200 ffff8880087a0c80 dead000000000122 0000000000000000 [ 61.403869] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff88800c4d5001 [ 61.404873] page dumped because: kasan: bad access detected [ 61.405607] [ 61.405841] Memory state around the buggy address: [ 61.406480] ffff88800f558680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 61.407421] ffff88800f558700: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb [ 61.408389] >ffff88800f558780: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc [ 61.409318] ^ [ 61.409861] ffff88800f558800: fc fc fc fc fc fa fb fb fb fb fb fb fb fb fb fb [ 61.410796] ffff88800f558880: fb fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc [ 61.411729] ================================================================== [ 61.412811] Disabling lock debugging due to kernel taint [ 64.056256] BUG: Bad rss-counter state mm:00000000694952db type:MM_FILEPAGES val:33 [ 64.057293] BUG: Bad rss-counter state mm:00000000694952db type:MM_ANONPAGES val:22 [ 64.557244] BUG: Bad rss-counter state mm:0000000050ab8d2a type:MM_FILEPAGES val:33 [ 64.558244] BUG: Bad rss-counter state mm:0000000050ab8d2a type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:50364' (ECDSA) to the list of known hosts. 2023/06/21 02:23:37 fuzzer started 2023/06/21 02:23:37 dialing manager at localhost:36067 2023/06/21 02:23:37 checking machine... 2023/06/21 02:23:37 checking revisions... [ 65.292569] kmemleak: Automatic memory scanning thread ended 2023/06/21 02:23:37 testing simple program... [ 65.337881] cgroup: Unknown subsys name 'net' [ 65.413239] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 02:23:36 Registers: info registers vcpu 0 RAX=dffffc0000000000 RBX=ffff88806ce35000 RCX=1ffffffff0ba7530 RDX=0000000000000000 RSI=ffffffff81007b90 RDI=0000000000000007 RBP=00007f35122c020c RSP=ffff88806ce09a20 R8 =0000000000000007 R9 =ffffffffff600000 R10=00007f35122c0000 R11=00000000000b6a61 R12=ffff88806ce09b38 R13=0000000000000000 R14=ffff888016a29b40 R15=ffff888017f96228 RIP=ffffffff8135b960 RFL=00000216 [----AP-] 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 00007f3511dcd900 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=00007f767d8c64e0 CR3=000000000c70e000 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=bfd003d2c9d806a2e348864f2c0f2576 XMM02=000000000011b348ec2efd57dc4c00df XMM03=00000000001215f8caab7e8d3d897e63 XMM04=2b6b86b37008002b00000000000ae988 XMM05=751b9502027dc0b900000000001313c0 XMM06=7d622d85c440bc330000000000130598 XMM07=e042d86d42eb936e00000000001218d0 XMM08=caab7e8d3d897e63000000000011b3a8 XMM09=00000000000000000000000000000000 XMM10=20200000000020202020202020200000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=ffff88806cf35000 RBX=0000000000000001 RCX=ffffffff8451250e RDX=ffffed100d9e6a01 RSI=0000000000000004 RDI=ffffffff81288ac5 RBP=dffffc0000000000 RSP=ffff888008e07e70 R8 =0000000000000000 R9 =ffffed100d9e6a00 R10=ffff88806cf35003 R11=ffff888008c04400 R12=ffffffff85d3d350 R13=1ffff110011c0fd3 R14=0000000000000000 R15=0000000000000000 RIP=ffffffff8451349f 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=00007ffcd1a47fa8 CR3=0000000015cd6000 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=2036333a33323a3230203132206e754a XMM01=73732878696e755f6d6170203a5d3732 XMM02=65736f6c63206e6f6973736573203a29 XMM03=755f6d6170203a5d3732325b64687373 XMM04=69662068637573206f4e203a656c6163 XMM05=3a656c696620766e65206e65706f206f XMM06=65733a6468737328766e655f6d617020 XMM07=6b7a79732036333a33323a3230203132 XMM08=3d656e696c646d632022656369767265 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000