syzkaller login: [ 39.461718] BUG: Bad rss-counter state mm:0000000015fa9d6e type:MM_FILEPAGES val:33 [ 39.463011] BUG: Bad rss-counter state mm:0000000015fa9d6e type:MM_ANONPAGES val:22 [ 39.619229] ================================================================== [ 39.620173] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 39.621128] Read of size 8 at addr ffff88800e6583f8 by task sshd/220 [ 39.621900] [ 39.622127] CPU: 1 PID: 220 Comm: sshd Not tainted 6.4.0-rc7-next-20230619 #1 [ 39.623105] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 39.624107] Call Trace: [ 39.624427] [ 39.624716] dump_stack_lvl+0x91/0xf0 [ 39.625210] print_report+0xcc/0x620 [ 39.625695] ? __virt_addr_valid+0x102/0x340 [ 39.626251] ? vma_interval_tree_remove+0xc75/0xec0 [ 39.626864] ? vma_interval_tree_remove+0xc75/0xec0 [ 39.627478] kasan_report+0xbe/0xf0 [ 39.627985] ? vma_interval_tree_remove+0xc75/0xec0 [ 39.628599] vma_interval_tree_remove+0xc75/0xec0 [ 39.629201] vma_prepare+0xc54/0x11a0 [ 39.629679] __split_vma+0x5af/0x950 [ 39.630157] ? __pfx___split_vma+0x10/0x10 [ 39.630683] ? find_held_lock+0x2c/0x110 [ 39.631200] do_vmi_align_munmap+0x2ba/0x11f0 [ 39.631808] ? lock_is_held_type+0x9f/0x120 [ 39.632358] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 39.632984] ? mtree_range_walk+0x632/0x900 [ 39.633542] ? mas_walk+0x5c7/0x7c0 [ 39.634012] do_vmi_munmap+0x1f1/0x2b0 [ 39.634510] mmap_region+0x1f9/0x2660 [ 39.634994] ? vm_mmap_pgoff+0x15c/0x3a0 [ 39.635504] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 39.636237] ? __pfx_lock_acquire+0x10/0x10 [ 39.636790] ? __pfx_mmap_region+0x10/0x10 [ 39.637343] ? security_mmap_addr+0x7d/0xa0 [ 39.637873] ? get_unmapped_area+0x1f5/0x3f0 [ 39.638419] do_mmap+0x854/0xf00 [ 39.638854] vm_mmap_pgoff+0x1a6/0x3a0 [ 39.639351] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 39.639930] ksys_mmap_pgoff+0x3af/0x500 [ 39.640445] do_syscall_64+0x3f/0x90 [ 39.640916] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 39.641558] RIP: 0033:0x7f22444f0d82 [ 39.642010] 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 [ 39.644139] RSP: 002b:00007fff79f2d848 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 39.645039] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007f22444f0d82 [ 39.645881] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007f224392a000 [ 39.646727] RBP: 00007f224392a000 R08: 0000000000000009 R09: 0000000000001000 [ 39.647565] R10: 0000000000000812 R11: 0000000000000206 R12: 0000556d1e538ec0 [ 39.648423] R13: 00007fff79f2d860 R14: 00007fff79f2d890 R15: 00007fff79f2dbf0 [ 39.649284] [ 39.649572] [ 39.649785] Allocated by task 213: [ 39.650213] kasan_save_stack+0x22/0x50 [ 39.650716] kasan_set_track+0x25/0x30 [ 39.651207] __kasan_slab_alloc+0x59/0x70 [ 39.651752] kmem_cache_alloc+0x16b/0x370 [ 39.652273] vm_area_dup+0x20/0x160 [ 39.652728] __split_vma+0x170/0x950 [ 39.653198] split_vma+0xc6/0x110 [ 39.653635] mprotect_fixup+0x8d2/0xb30 [ 39.654143] do_mprotect_pkey+0x87e/0xd40 [ 39.654664] __x64_sys_mprotect+0x78/0xc0 [ 39.655182] do_syscall_64+0x3f/0x90 [ 39.655668] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 39.656307] [ 39.656526] Freed by task 204: [ 39.656934] kasan_save_stack+0x22/0x50 [ 39.657438] kasan_set_track+0x25/0x30 [ 39.657928] kasan_save_free_info+0x2b/0x50 [ 39.658471] __kasan_slab_free+0x10a/0x190 [ 39.659035] kmem_cache_free+0x10d/0x4d0 [ 39.659550] rcu_core+0x8c8/0x2860 [ 39.660011] __do_softirq+0x1b7/0x7d4 [ 39.660504] [ 39.660727] Last potentially related work creation: [ 39.661310] kasan_save_stack+0x22/0x50 [ 39.661822] __kasan_record_aux_stack+0x8e/0xa0 [ 39.662404] __call_rcu_common.constprop.0+0x6a/0xb90 [ 39.663056] remove_vma+0x139/0x170 [ 39.663575] do_vmi_align_munmap+0xd4a/0x11f0 [ 39.664162] do_vmi_munmap+0x1f1/0x2b0 [ 39.664655] __vm_munmap+0x138/0x3a0 [ 39.665139] __x64_sys_munmap+0x59/0x80 [ 39.665643] do_syscall_64+0x3f/0x90 [ 39.666124] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 39.666776] [ 39.666997] Second to last potentially related work creation: [ 39.667690] kasan_save_stack+0x22/0x50 [ 39.668207] __kasan_record_aux_stack+0x8e/0xa0 [ 39.668790] __call_rcu_common.constprop.0+0x6a/0xb90 [ 39.669432] remove_vma+0x139/0x170 [ 39.669880] do_vmi_align_munmap+0xd4a/0x11f0 [ 39.670443] do_vmi_munmap+0x1f1/0x2b0 [ 39.670937] mmap_region+0x1f9/0x2660 [ 39.671414] do_mmap+0x854/0xf00 [ 39.671869] vm_mmap_pgoff+0x1a6/0x3a0 [ 39.672363] ksys_mmap_pgoff+0x7d/0x500 [ 39.672859] do_syscall_64+0x3f/0x90 [ 39.673336] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 39.673982] [ 39.674202] The buggy address belongs to the object at ffff88800e6583a0 [ 39.674202] which belongs to the cache vm_area_struct of size 168 [ 39.675692] The buggy address is located 88 bytes inside of [ 39.675692] freed 168-byte region [ffff88800e6583a0, ffff88800e658448) [ 39.677281] [ 39.677499] The buggy address belongs to the physical page: [ 39.678196] page:00000000ec0c95f2 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xe658 [ 39.679302] memcg:ffff88800e7f2901 [ 39.679769] anon flags: 0x100000000000200(slab|node=0|zone=1) [ 39.680484] page_type: 0xffffffff() [ 39.680932] raw: 0100000000000200 ffff88800879fc80 ffffea00003598c0 dead000000000003 [ 39.681850] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff88800e7f2901 [ 39.682759] page dumped because: kasan: bad access detected [ 39.683459] [ 39.683690] Memory state around the buggy address: [ 39.684300] ffff88800e658280: fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 00 [ 39.685166] ffff88800e658300: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [ 39.686058] >ffff88800e658380: fc fc fc fc fa fb fb fb fb fb fb fb fb fb fb fb [ 39.686916] ^ [ 39.687787] ffff88800e658400: fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc [ 39.688642] ffff88800e658480: fc 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 39.689495] ================================================================== [ 39.690407] Disabling lock debugging due to kernel taint [ 42.296406] BUG: Bad rss-counter state mm:000000004df33c63 type:MM_FILEPAGES val:33 [ 42.297583] BUG: Bad rss-counter state mm:000000004df33c63 type:MM_ANONPAGES val:22 [ 42.731027] BUG: Bad rss-counter state mm:00000000bae9dc90 type:MM_FILEPAGES val:33 [ 42.732096] BUG: Bad rss-counter state mm:00000000bae9dc90 type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:5158' (ECDSA) to the list of known hosts. 2023/06/19 17:38:23 fuzzer started 2023/06/19 17:38:23 dialing manager at localhost:44161 2023/06/19 17:38:23 checking machine... 2023/06/19 17:38:23 checking revisions... [ 43.461625] kmemleak: Automatic memory scanning thread ended 2023/06/19 17:38:24 testing simple program... [ 43.502443] cgroup: Unknown subsys name 'net' [ 43.546279] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 17:38:22 Registers: info registers vcpu 0 RAX=ffff888014788001 RBX=0000000000000001 RCX=0000000000000001 RDX=ffff888014787801 RSI=ffff8880147878e0 RDI=ffff8880147874d0 RBP=ffff888014787518 RSP=ffff888014787448 R8 =ffffffff861c582c R9 =ffff888014787500 R10=0000000000038001 R11=00000000000388b6 R12=ffff888014787520 R13=ffff888014787508 R14=ffff8880147878e8 R15=ffff8880147874c0 RIP=ffffffff811304d5 RFL=00000292 [--S-A--] 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 00007fdf1643f900 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=00007fdf15859010 CR3=000000000c7c4000 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=7165ad7639310aa9de4e5fbd8b77a13d XMM02=000000000011d0a0eff9b2d0a8fce9cb XMM03=000000000011d1702c67c8bc2e329bc3 XMM04=5b7e9e30f12cee1000000000000ae988 XMM05=0741fb6609c6207d0000000000135948 XMM06=4be1889b1d63aa010000000000134680 XMM07=fb795ef6d65770560000000000123ad0 XMM08=2c67c8bc2e329bc3000000000011d110 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=0000000000000001 RBX=ffffffff856529e0 RCX=0000000000000000 RDX=0000000000000000 RSI=ffffffff814c83e7 RDI=ffff8880158fba74 RBP=00007f1fada73e27 RSP=ffff888016de7630 R8 =0000000000000000 R9 =fffffbfff0ba77da R10=ffffffff85d3bed7 R11=00000000000b6996 R12=00007f1fada73e27 R13=0000000000000000 R14=ffff8880158fb680 R15=0000000000002800 RIP=ffffffff814c07e0 RFL=00000293 [--S-A-C] 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 00007f1facee1900 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=00007f1fad155000 CR3=000000000e870000 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=ff0000000000000000000000ff000000 XMM01=0000ff00ffffffffffffffff00ffffff XMM02=00362e322e325f4342494c4700352e32 XMM03=00000000000000000000004700352e32 XMM04=4342494c4700362e322e325f4342494c XMM05=00007f1fad49af6000007f1fad654950 XMM06=00007f1fad65444000007f1fad653f20 XMM07=00007f1facf9e12000007f1facf9db10 XMM08=00007f1facf9d5f000007f1facf9d060 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000