syzkaller login: [ 40.879292] BUG: Bad rss-counter state mm:0000000017506485 type:MM_FILEPAGES val:33 [ 40.880072] BUG: Bad rss-counter state mm:0000000017506485 type:MM_ANONPAGES val:22 [ 40.911323] ================================================================== [ 40.912085] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 40.912771] Read of size 8 at addr ffff888016916798 by task sshd/218 [ 40.913338] [ 40.913499] CPU: 0 PID: 218 Comm: sshd Not tainted 6.4.0-rc7-next-20230619 #1 [ 40.914246] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 40.914981] Call Trace: [ 40.915216] [ 40.915423] dump_stack_lvl+0x91/0xf0 [ 40.915786] print_report+0xcc/0x620 [ 40.916139] ? __virt_addr_valid+0x102/0x340 [ 40.916548] ? vma_interval_tree_remove+0xc75/0xec0 [ 40.916998] ? vma_interval_tree_remove+0xc75/0xec0 [ 40.917469] kasan_report+0xbe/0xf0 [ 40.917822] ? vma_interval_tree_remove+0xc75/0xec0 [ 40.918283] vma_interval_tree_remove+0xc75/0xec0 [ 40.918728] vma_prepare+0xc54/0x11a0 [ 40.919092] __split_vma+0x5af/0x950 [ 40.919433] ? __pfx___split_vma+0x10/0x10 [ 40.919830] ? find_held_lock+0x2c/0x110 [ 40.920210] do_vmi_align_munmap+0x2ba/0x11f0 [ 40.920630] ? lock_is_held_type+0x9f/0x120 [ 40.921033] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 40.921475] ? mtree_range_walk+0x632/0x900 [ 40.921879] ? mas_walk+0x5c7/0x7c0 [ 40.922237] do_vmi_munmap+0x1f1/0x2b0 [ 40.922605] mmap_region+0x1f9/0x2660 [ 40.922994] ? vm_mmap_pgoff+0x15c/0x3a0 [ 40.923383] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 40.923918] ? __pfx_lock_acquire+0x10/0x10 [ 40.924318] ? __pfx_mmap_region+0x10/0x10 [ 40.924729] ? security_mmap_addr+0x7d/0xa0 [ 40.925126] ? get_unmapped_area+0x1f5/0x3f0 [ 40.925536] do_mmap+0x854/0xf00 [ 40.925867] vm_mmap_pgoff+0x1a6/0x3a0 [ 40.926237] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 40.926653] ksys_mmap_pgoff+0x3af/0x500 [ 40.927058] do_syscall_64+0x3f/0x90 [ 40.927414] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 40.927911] RIP: 0033:0x7fd3d985bd82 [ 40.928256] 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.929831] RSP: 002b:00007ffdc344aaf8 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 40.930496] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007fd3d985bd82 [ 40.931141] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007fd3d8c95000 [ 40.931766] RBP: 00007fd3d8c95000 R08: 0000000000000009 R09: 0000000000001000 [ 40.932398] R10: 0000000000000812 R11: 0000000000000206 R12: 000055cf58159f70 [ 40.933034] R13: 00007ffdc344ab10 R14: 00007ffdc344ab40 R15: 00007ffdc344aea0 [ 40.933668] [ 40.933882] [ 40.934042] Allocated by task 211: [ 40.934366] kasan_save_stack+0x22/0x50 [ 40.934748] kasan_set_track+0x25/0x30 [ 40.935128] __kasan_slab_alloc+0x59/0x70 [ 40.935519] kmem_cache_alloc+0x16b/0x370 [ 40.935912] vm_area_dup+0x20/0x160 [ 40.936249] __split_vma+0x170/0x950 [ 40.936609] split_vma+0xc6/0x110 [ 40.936941] mprotect_fixup+0x8d2/0xb30 [ 40.937313] do_mprotect_pkey+0x87e/0xd40 [ 40.937692] __x64_sys_mprotect+0x78/0xc0 [ 40.938089] do_syscall_64+0x3f/0x90 [ 40.938431] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 40.938939] [ 40.939098] Freed by task 211: [ 40.939386] kasan_save_stack+0x22/0x50 [ 40.939755] kasan_set_track+0x25/0x30 [ 40.940125] kasan_save_free_info+0x2b/0x50 [ 40.940524] __kasan_slab_free+0x10a/0x190 [ 40.940915] kmem_cache_free+0x10d/0x4d0 [ 40.941289] rcu_core+0x8c8/0x2860 [ 40.941622] __do_softirq+0x1b7/0x7d4 [ 40.941969] [ 40.942126] Last potentially related work creation: [ 40.942562] kasan_save_stack+0x22/0x50 [ 40.942964] __kasan_record_aux_stack+0x8e/0xa0 [ 40.943405] __call_rcu_common.constprop.0+0x6a/0xb90 [ 40.943884] remove_vma+0x139/0x170 [ 40.944215] do_vmi_align_munmap+0xd4a/0x11f0 [ 40.944630] do_vmi_munmap+0x1f1/0x2b0 [ 40.944988] __vm_munmap+0x138/0x3a0 [ 40.945330] __x64_sys_munmap+0x59/0x80 [ 40.945693] do_syscall_64+0x3f/0x90 [ 40.946039] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 40.946507] [ 40.946664] Second to last potentially related work creation: [ 40.947183] kasan_save_stack+0x22/0x50 [ 40.947568] __kasan_record_aux_stack+0x8e/0xa0 [ 40.947999] __call_rcu_common.constprop.0+0x6a/0xb90 [ 40.948486] remove_vma+0x139/0x170 [ 40.948834] do_vmi_align_munmap+0xd4a/0x11f0 [ 40.949258] do_vmi_munmap+0x1f1/0x2b0 [ 40.949613] mmap_region+0x1f9/0x2660 [ 40.949966] do_mmap+0x854/0xf00 [ 40.950288] vm_mmap_pgoff+0x1a6/0x3a0 [ 40.950648] ksys_mmap_pgoff+0x3af/0x500 [ 40.951048] do_syscall_64+0x3f/0x90 [ 40.951398] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 40.951874] [ 40.952022] The buggy address belongs to the object at ffff888016916740 [ 40.952022] which belongs to the cache vm_area_struct of size 168 [ 40.953111] The buggy address is located 88 bytes inside of [ 40.953111] freed 168-byte region [ffff888016916740, ffff8880169167e8) [ 40.954149] [ 40.954313] The buggy address belongs to the physical page: [ 40.954816] page:00000000215a65b7 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x16916 [ 40.955634] memcg:ffff88800e8c4001 [ 40.955952] anon flags: 0x100000000000200(slab|node=0|zone=1) [ 40.956478] page_type: 0xffffffff() [ 40.956809] raw: 0100000000000200 ffff88800879fc80 0000000000000000 dead000000000001 [ 40.957481] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff88800e8c4001 [ 40.958162] page dumped because: kasan: bad access detected [ 40.958640] [ 40.958835] Memory state around the buggy address: [ 40.959260] ffff888016916680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 40.959896] ffff888016916700: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb [ 40.960523] >ffff888016916780: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc [ 40.961160] ^ [ 40.961536] ffff888016916800: fc fc fc fc fc 00 00 00 00 00 00 00 00 00 00 00 [ 40.962162] ffff888016916880: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc [ 40.962807] ================================================================== [ 40.963678] Disabling lock debugging due to kernel taint [ 42.623956] BUG: Bad rss-counter state mm:0000000025e8dae2 type:MM_FILEPAGES val:33 [ 42.625143] BUG: Bad rss-counter state mm:0000000025e8dae2 type:MM_ANONPAGES val:22 [ 43.071566] BUG: Bad rss-counter state mm:00000000908728da type:MM_FILEPAGES val:33 [ 43.072262] BUG: Bad rss-counter state mm:00000000908728da type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:32835' (ECDSA) to the list of known hosts. 2023/06/20 09:10:34 fuzzer started 2023/06/20 09:10:34 dialing manager at localhost:44161 2023/06/20 09:10:34 checking machine... 2023/06/20 09:10:34 checking revisions... [ 43.658706] kmemleak: Automatic memory scanning thread ended 2023/06/20 09:10:34 testing simple program... [ 43.697133] cgroup: Unknown subsys name 'net' [ 43.729825] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 09:10:32 Registers: info registers vcpu 0 RAX=0000000000000000 RBX=0005fe8c060a09a6 RCX=00000000000b7566 RDX=0000000000000000 RSI=00007ffd0870d5d0 RDI=000056508bce6290 RBP=00007ffd0870d5e0 RSP=00007ffd0870d5c0 R8 =0000000064916d09 R9 =00007ffd08716080 R10=00007ffd08716080 R11=000000000000f078 R12=00007ffd0870d5d0 R13=ffffffffffffffff R14=0000000000000000 R15=0000000000000000 RIP=000056508a1f43c5 RFL=00000246 [---Z-P-] CPL=3 II=0 A20=1 SMM=0 HLT=0 ES =0000 0000000000000000 00000000 00000000 CS =0033 0000000000000000 ffffffff 00a0fb00 DPL=3 CS64 [-RA] SS =002b 0000000000000000 ffffffff 00c0f300 DPL=3 DS [-WA] DS =0000 0000000000000000 00000000 00000000 FS =0000 00007f2fcd416900 00000000 00000000 GS =0000 0000000000000000 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=00007f2fcc883dc0 CR3=000000000c70c000 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=7e8a42789393c4b7000000000011daa0 XMM01=997a9f81f70ee69f1542bcb2a6442696 XMM02=2c67c8bc2e329bc3000000000011dde0 XMM03=fb795ef6d65770560000000000124780 XMM04=6cecfdb4022bcc4600000000000ae988 XMM05=751b9502027dc0b900000000001352f8 XMM06=347686f3a252822400000000001344d0 XMM07=e042d86d42eb936e0000000000124a58 XMM08=ead6e002090bbb47000000000011de40 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=00007ffe6af1b2c8 RBX=000055689dc5ded0 RCX=0000000000000000 RDX=0000000000000001 RSI=00007ffe6af1b2c8 RDI=000055689dc5dfb0 RBP=00007ffe6af1b2c0 RSP=00007ffe6af1b260 R8 =000055689dc6cd8f R9 =00007f39d2eefbe0 R10=0000000000000100 R11=0000000000000246 R12=00007f39d293d900 R13=00007ffe6af1b2c8 R14=00007f39d2918b22 R15=00007f39d293d710 RIP=00007f39d2da6728 RFL=00000206 [-----P-] CPL=3 II=0 A20=1 SMM=0 HLT=0 ES =0000 0000000000000000 00000000 00000000 CS =0033 0000000000000000 ffffffff 00a0fb00 DPL=3 CS64 [-RA] SS =002b 0000000000000000 ffffffff 00c0f300 DPL=3 DS [-WA] DS =0000 0000000000000000 00000000 00000000 FS =0000 00007f39d293d900 00000000 00000000 GS =0000 0000000000000000 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=00007ffe6af15000 CR3=0000000018cd4000 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=0000ff00000000000000000000000000 XMM01=00000100000000000000000000000000 XMM02=2f00646f6874656d5f74707972636e65 XMM03=72090954434952545345525f4e464843 XMM04=40404040404040404040404040404040 XMM05=5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a XMM06=20202020202020202020202020202020 XMM07=ff0000ffffffffffffffffffffffffff XMM08=00000020202020202020200020202020 XMM09=0000ffffffffffffffffffffffffffff XMM10=00002020202020200020202020202020 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000