syzkaller login: [ 34.177894] BUG: Bad rss-counter state mm:00000000b0a1d0f9 type:MM_FILEPAGES val:33 [ 34.178920] BUG: Bad rss-counter state mm:00000000b0a1d0f9 type:MM_ANONPAGES val:22 [ 34.359769] ================================================================== [ 34.360684] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 34.361626] Read of size 8 at addr ffff88800dfdf4e0 by task sshd/219 [ 34.362487] [ 34.362741] CPU: 0 PID: 219 Comm: sshd Not tainted 6.4.0-rc7-next-20230619 #1 [ 34.363667] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 34.364672] Call Trace: [ 34.364995] [ 34.365278] dump_stack_lvl+0x91/0xf0 [ 34.365772] print_report+0xcc/0x620 [ 34.366254] ? __virt_addr_valid+0x102/0x340 [ 34.366802] ? vma_interval_tree_remove+0xc75/0xec0 [ 34.367424] ? vma_interval_tree_remove+0xc75/0xec0 [ 34.368062] kasan_report+0xbe/0xf0 [ 34.368535] ? vma_interval_tree_remove+0xc75/0xec0 [ 34.369160] vma_interval_tree_remove+0xc75/0xec0 [ 34.369756] vma_prepare+0xc54/0x11a0 [ 34.370238] __split_vma+0x5af/0x950 [ 34.370711] ? __pfx___split_vma+0x10/0x10 [ 34.371254] ? find_held_lock+0x2c/0x110 [ 34.371795] do_vmi_align_munmap+0x2ba/0x11f0 [ 34.372367] ? lock_is_held_type+0x9f/0x120 [ 34.372906] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 34.373516] ? mtree_range_walk+0x632/0x900 [ 34.374069] ? mas_walk+0x5c7/0x7c0 [ 34.374542] do_vmi_munmap+0x1f1/0x2b0 [ 34.375037] mmap_region+0x1f9/0x2660 [ 34.375533] ? vm_mmap_pgoff+0x15c/0x3a0 [ 34.376049] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 34.376768] ? __pfx_lock_acquire+0x10/0x10 [ 34.377295] ? __pfx_mmap_region+0x10/0x10 [ 34.377822] ? security_mmap_addr+0x7d/0xa0 [ 34.378355] ? get_unmapped_area+0x1f5/0x3f0 [ 34.378907] do_mmap+0x854/0xf00 [ 34.379342] vm_mmap_pgoff+0x1a6/0x3a0 [ 34.379857] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 34.380416] ksys_mmap_pgoff+0x3af/0x500 [ 34.380918] do_syscall_64+0x3f/0x90 [ 34.381399] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 34.382048] RIP: 0033:0x7f10e5f64d82 [ 34.382500] 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 [ 34.384637] RSP: 002b:00007ffd92123978 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 34.385532] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007f10e5f64d82 [ 34.386378] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007f10e539e000 [ 34.387233] RBP: 00007f10e539e000 R08: 0000000000000009 R09: 0000000000001000 [ 34.388107] R10: 0000000000000812 R11: 0000000000000206 R12: 000055909b309b20 [ 34.388953] R13: 00007ffd92123990 R14: 00007ffd921239c0 R15: 00007ffd92123d20 [ 34.389815] [ 34.390116] [ 34.390340] Allocated by task 212: [ 34.390774] kasan_save_stack+0x22/0x50 [ 34.391286] kasan_set_track+0x25/0x30 [ 34.391785] __kasan_slab_alloc+0x59/0x70 [ 34.392307] kmem_cache_alloc+0x16b/0x370 [ 34.392819] vm_area_dup+0x20/0x160 [ 34.393287] __split_vma+0x170/0x950 [ 34.393774] split_vma+0xc6/0x110 [ 34.394227] mprotect_fixup+0x8d2/0xb30 [ 34.394737] do_mprotect_pkey+0x87e/0xd40 [ 34.395274] __x64_sys_mprotect+0x78/0xc0 [ 34.395839] do_syscall_64+0x3f/0x90 [ 34.396314] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 34.396967] [ 34.397190] Freed by task 212: [ 34.397591] kasan_save_stack+0x22/0x50 [ 34.398114] kasan_set_track+0x25/0x30 [ 34.398612] kasan_save_free_info+0x2b/0x50 [ 34.399173] __kasan_slab_free+0x10a/0x190 [ 34.399726] kmem_cache_free+0x10d/0x4d0 [ 34.400241] rcu_core+0x8c8/0x2860 [ 34.400692] __do_softirq+0x1b7/0x7d4 [ 34.401177] [ 34.401396] Last potentially related work creation: [ 34.401990] kasan_save_stack+0x22/0x50 [ 34.402505] __kasan_record_aux_stack+0x8e/0xa0 [ 34.403081] __call_rcu_common.constprop.0+0x6a/0xb90 [ 34.403751] remove_vma+0x139/0x170 [ 34.404206] do_vmi_align_munmap+0xd4a/0x11f0 [ 34.404782] do_vmi_munmap+0x1f1/0x2b0 [ 34.405278] __vm_munmap+0x138/0x3a0 [ 34.405755] __x64_sys_munmap+0x59/0x80 [ 34.406269] do_syscall_64+0x3f/0x90 [ 34.406764] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 34.407413] [ 34.407661] Second to last potentially related work creation: [ 34.408353] kasan_save_stack+0x22/0x50 [ 34.408884] __kasan_record_aux_stack+0x8e/0xa0 [ 34.409479] __call_rcu_common.constprop.0+0x6a/0xb90 [ 34.410138] remove_vma+0x139/0x170 [ 34.410611] do_vmi_align_munmap+0xd4a/0x11f0 [ 34.411179] do_vmi_munmap+0x1f1/0x2b0 [ 34.411700] mmap_region+0x1f9/0x2660 [ 34.412198] do_mmap+0x854/0xf00 [ 34.412650] vm_mmap_pgoff+0x1a6/0x3a0 [ 34.413140] ksys_mmap_pgoff+0x3af/0x500 [ 34.413649] do_syscall_64+0x3f/0x90 [ 34.414132] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 34.414779] [ 34.414999] The buggy address belongs to the object at ffff88800dfdf488 [ 34.414999] which belongs to the cache vm_area_struct of size 168 [ 34.416505] The buggy address is located 88 bytes inside of [ 34.416505] freed 168-byte region [ffff88800dfdf488, ffff88800dfdf530) [ 34.417920] [ 34.418140] The buggy address belongs to the physical page: [ 34.418809] page:000000009f464d88 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xdfdf [ 34.419910] memcg:ffff88800dfb2801 [ 34.420345] anon flags: 0x100000000000200(slab|node=0|zone=1) [ 34.421061] page_type: 0xffffffff() [ 34.421522] raw: 0100000000000200 ffff88800879fc80 ffffea0000381ec0 dead000000000005 [ 34.422438] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff88800dfb2801 [ 34.423358] page dumped because: kasan: bad access detected [ 34.424037] [ 34.424252] Memory state around the buggy address: [ 34.424837] ffff88800dfdf380: fc fc fc fc 00 00 00 00 00 00 00 00 00 00 00 00 [ 34.425709] ffff88800dfdf400: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 34.426571] >ffff88800dfdf480: fc fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.427431] ^ [ 34.428216] ffff88800dfdf500: fb fb fb fb fb fb fc fc fc fc fc fc fc fc 00 00 [ 34.429078] ffff88800dfdf580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 34.429946] ================================================================== [ 34.430996] Disabling lock debugging due to kernel taint [ 36.721004] BUG: Bad rss-counter state mm:000000007d5b670e type:MM_FILEPAGES val:33 [ 36.722028] BUG: Bad rss-counter state mm:000000007d5b670e type:MM_ANONPAGES val:22 [ 37.239196] BUG: Bad rss-counter state mm:00000000fa765e2c type:MM_FILEPAGES val:33 [ 37.240178] BUG: Bad rss-counter state mm:00000000fa765e2c type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:1327' (ECDSA) to the list of known hosts. 2023/06/20 10:45:00 fuzzer started 2023/06/20 10:45:00 dialing manager at localhost:44161 2023/06/20 10:45:00 checking machine... 2023/06/20 10:45:00 checking revisions... [ 37.967133] kmemleak: Automatic memory scanning thread ended 2023/06/20 10:45:00 testing simple program... [ 38.020505] cgroup: Unknown subsys name 'net' [ 38.086582] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 10:44:56 Registers: info registers vcpu 0 RAX=1ffff110012e3cab RBX=ffff88800971e528 RCX=ffffffff812e00e5 RDX=0000000000000000 RSI=0000000000000000 RDI=ffff88800971e558 RBP=ffff88800971d0e8 RSP=ffff888008d7fc98 R8 =0000000000000001 R9 =ffffed10011aff87 R10=0000000000000003 R11=0000000000000128 R12=dffffc0000000000 R13=ffff888009720f00 R14=ffffffff8186b9c5 R15=ffff88800c521500 RIP=ffffffff81846362 RFL=00000046 [---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 0000000000000000 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=00007f2234499c20 CR3=000000000d668000 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=756f6a2f646d65747379732f6e75722f XMM01=00676f6c7379732f6c616e72756f6a2f XMM02=756f6a2f646d65747379732f6e75722f XMM03=006c616e72756f6a2f646d6574737973 XMM04=967a1a530a8232a400000000000ae988 XMM05=b97832e946873b7d0000000000137898 XMM06=dfcdbad4f1609c370000000000136730 XMM07=fb795ef6d65770560000000000125568 XMM08=4f5453444600273d67736d000d0a0920 XMM09=00000000000000000000000000000000 XMM10=20200000000020202020202020200000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=0100000000000200 RBX=ffffffff852c84b8 RCX=0000000000000100 RDX=ffff888008441500 RSI=ffffffff81ef6198 RDI=ffffea00001aa9c0 RBP=ffff888006aa7f40 RSP=ffff888008e57c78 R8 =0000000000000000 R9 =fffffbfff0ba77da R10=ffffffff85d3bed7 R11=0000000000000128 R12=ffff888019da1000 R13=0000000000000000 R14=ffffffff87f9478c R15=ffff888019da16c0 RIP=ffffffff816cba59 RFL=00000202 [-------] 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=00007fff89527000 CR3=000000001a0a0000 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=ffffffffffffffffffff000000000000 XMM01=000000000000003635006b6f6c6c756e XMM02=62003d73646e756f7200323135616873 XMM03=5320444f4854454d5f54505952434e45 XMM04=40404040404040404040404040404040 XMM05=5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a XMM06=20202020202020202020202020202020 XMM07=00000000000000000000000000000000 XMM08=00000000000000000000000000202020 XMM09=ff0000ffffffffffff00000000ffffff XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000