syzkaller login: [ 34.083571] BUG: Bad rss-counter state mm:000000002df4d1ec type:MM_FILEPAGES val:33 [ 34.084647] BUG: Bad rss-counter state mm:000000002df4d1ec type:MM_ANONPAGES val:22 [ 34.259534] ================================================================== [ 34.260667] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 34.261906] Read of size 8 at addr ffff88800e9bb058 by task sshd/220 [ 34.262784] [ 34.263016] CPU: 0 PID: 220 Comm: sshd Not tainted 6.4.0-rc7-next-20230619 #1 [ 34.263948] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 34.265016] Call Trace: [ 34.265367] [ 34.265672] dump_stack_lvl+0x91/0xf0 [ 34.266216] print_report+0xcc/0x620 [ 34.266752] ? __virt_addr_valid+0x102/0x340 [ 34.267357] ? vma_interval_tree_remove+0xc75/0xec0 [ 34.268040] ? vma_interval_tree_remove+0xc75/0xec0 [ 34.268741] kasan_report+0xbe/0xf0 [ 34.269265] ? vma_interval_tree_remove+0xc75/0xec0 [ 34.269977] vma_interval_tree_remove+0xc75/0xec0 [ 34.270646] vma_prepare+0xc54/0x11a0 [ 34.271170] __split_vma+0x5af/0x950 [ 34.271689] ? __pfx___split_vma+0x10/0x10 [ 34.272252] ? find_held_lock+0x2c/0x110 [ 34.272828] do_vmi_align_munmap+0x2ba/0x11f0 [ 34.273426] ? lock_is_held_type+0x9f/0x120 [ 34.273995] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 34.274638] ? mtree_range_walk+0x632/0x900 [ 34.275220] ? mas_walk+0x5c7/0x7c0 [ 34.275724] do_vmi_munmap+0x1f1/0x2b0 [ 34.276252] mmap_region+0x1f9/0x2660 [ 34.276773] ? vm_mmap_pgoff+0x15c/0x3a0 [ 34.277317] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 34.278075] ? __pfx_lock_acquire+0x10/0x10 [ 34.278637] ? __pfx_mmap_region+0x10/0x10 [ 34.279204] ? security_mmap_addr+0x7d/0xa0 [ 34.279780] ? get_unmapped_area+0x1f5/0x3f0 [ 34.280389] do_mmap+0x854/0xf00 [ 34.280896] vm_mmap_pgoff+0x1a6/0x3a0 [ 34.281444] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 34.282068] ksys_mmap_pgoff+0x3af/0x500 [ 34.282627] do_syscall_64+0x3f/0x90 [ 34.283148] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 34.283858] RIP: 0033:0x7fa52b8a2d82 [ 34.284368] 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.286693] RSP: 002b:00007ffc2adb5518 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 34.287664] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007fa52b8a2d82 [ 34.288582] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007fa52acdc000 [ 34.289482] RBP: 00007fa52acdc000 R08: 0000000000000009 R09: 0000000000001000 [ 34.290382] R10: 0000000000000812 R11: 0000000000000206 R12: 00005563bf91aec0 [ 34.291306] R13: 00007ffc2adb5530 R14: 00007ffc2adb5560 R15: 00007ffc2adb58c0 [ 34.292255] [ 34.292594] [ 34.292830] Allocated by task 213: [ 34.293299] kasan_save_stack+0x22/0x50 [ 34.293854] kasan_set_track+0x25/0x30 [ 34.294404] __kasan_slab_alloc+0x59/0x70 [ 34.294982] kmem_cache_alloc+0x16b/0x370 [ 34.295546] vm_area_dup+0x20/0x160 [ 34.296045] __split_vma+0x170/0x950 [ 34.296558] split_vma+0xc6/0x110 [ 34.297037] mprotect_fixup+0x8d2/0xb30 [ 34.297595] do_mprotect_pkey+0x87e/0xd40 [ 34.298172] __x64_sys_mprotect+0x78/0xc0 [ 34.298748] do_syscall_64+0x3f/0x90 [ 34.299271] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 34.299975] [ 34.300211] Freed by task 213: [ 34.300665] kasan_save_stack+0x22/0x50 [ 34.301267] kasan_set_track+0x25/0x30 [ 34.301813] kasan_save_free_info+0x2b/0x50 [ 34.302396] __kasan_slab_free+0x10a/0x190 [ 34.302992] kmem_cache_free+0x10d/0x4d0 [ 34.303544] rcu_core+0x8c8/0x2860 [ 34.304035] __do_softirq+0x1b7/0x7d4 [ 34.304569] [ 34.304806] Last potentially related work creation: [ 34.305458] kasan_save_stack+0x22/0x50 [ 34.306005] __kasan_record_aux_stack+0x8e/0xa0 [ 34.306627] __call_rcu_common.constprop.0+0x6a/0xb90 [ 34.307317] remove_vma+0x139/0x170 [ 34.307798] do_vmi_align_munmap+0xd4a/0x11f0 [ 34.308394] do_vmi_munmap+0x1f1/0x2b0 [ 34.308938] __vm_munmap+0x138/0x3a0 [ 34.309438] __x64_sys_munmap+0x59/0x80 [ 34.309972] do_syscall_64+0x3f/0x90 [ 34.310483] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 34.311167] [ 34.311398] The buggy address belongs to the object at ffff88800e9bb000 [ 34.311398] which belongs to the cache vm_area_struct of size 168 [ 34.312983] The buggy address is located 88 bytes inside of [ 34.312983] freed 168-byte region [ffff88800e9bb000, ffff88800e9bb0a8) [ 34.314476] [ 34.314729] The buggy address belongs to the physical page: [ 34.315454] page:000000009db6ee32 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xe9bb [ 34.316612] memcg:ffff88800955e001 [ 34.317069] anon flags: 0x100000000000200(slab|node=0|zone=1) [ 34.317811] page_type: 0xffffffff() [ 34.318289] raw: 0100000000000200 ffff88800879fc80 ffffea0000318340 dead000000000007 [ 34.319266] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff88800955e001 [ 34.320229] page dumped because: kasan: bad access detected [ 34.320956] [ 34.321190] Memory state around the buggy address: [ 34.321805] ffff88800e9baf00: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc [ 34.322713] ffff88800e9baf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.323624] >ffff88800e9bb000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.324537] ^ [ 34.325312] ffff88800e9bb080: fb fb fb fb fb fc fc fc fc fc fc fc fc 00 00 00 [ 34.326269] ffff88800e9bb100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 34.327180] ================================================================== [ 34.328278] Disabling lock debugging due to kernel taint [ 36.304663] BUG: Bad rss-counter state mm:00000000dd41a930 type:MM_FILEPAGES val:33 [ 36.305924] BUG: Bad rss-counter state mm:00000000dd41a930 type:MM_ANONPAGES val:22 [ 36.796200] BUG: Bad rss-counter state mm:000000001695fc7d type:MM_FILEPAGES val:33 [ 36.797258] BUG: Bad rss-counter state mm:000000001695fc7d type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:52108' (ECDSA) to the list of known hosts. 2023/06/20 05:49:07 fuzzer started 2023/06/20 05:49:07 dialing manager at localhost:44161 2023/06/20 05:49:07 checking machine... 2023/06/20 05:49:07 checking revisions... [ 37.550033] kmemleak: Automatic memory scanning thread ended 2023/06/20 05:49:07 testing simple program... [ 37.603461] cgroup: Unknown subsys name 'net' [ 37.642972] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 05:49:03 Registers: info registers vcpu 0 RAX=0000000000000000 RBX=ffffffff813ad420 RCX=ffffffff812d869a RDX=0000000000000000 RSI=0000000000000008 RDI=ffffffff85d3bed0 RBP=ffff888018ec7920 RSP=ffff888018ec7888 R8 =0000000000000000 R9 =fffffbfff0ba77da R10=ffffffff85d3bed7 R11=00000000000b6996 R12=ffff888018ec7950 R13=0000000000000000 R14=ffff888016573680 R15=0000000000092cc0 RIP=ffffffff810bd06d 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 00007f9989be4900 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=00007f998a19b618 CR3=000000000ef20000 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=6e69676f6c5f6d61702c78756e696c65 XMM02=755f6d61702c74696d7265705f6d6170 XMM03=2c766e655f6d61702c7374696d696c5f XMM04=6d61702c766e655f6d61702c7374696d XMM05=78696e755f6d61702c74696d7265705f XMM06=6469756e69676f6c5f6d61702c78756e XMM07=672065736f6c635f6e6f69737365733a XMM08=61662029286e65706f5f746964756100 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=ffff88806cf407b0 RBX=ffff888016a1a000 RCX=ffff888016a180e8 RDX=ffff888016a180e8 RSI=ffffea00005a8600 RDI=ffff88800879fc80 RBP=0000000000000000 RSP=ffff88800d95f800 R8 =0000000000000001 R9 =ffffffff818101af R10=ffffea00005a8600 R11=0000000080120000 R12=dffffc0000000000 R13=ffff88800d95f848 R14=ffff88800879fc80 R15=ffff888016a180e8 RIP=ffffffff81809460 RFL=00000287 [--S--PC] 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 =0000 0000000000000000 00000000 00000000 DS =0000 0000000000000000 00000000 00000000 FS =0000 00007f9b32dfd900 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=00007f9b3228d300 CR3=000000000f7fc000 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=454d49544c4145525f454352554f535f XMM01=3d504d415453454d49545f454d49544c XMM02=ffffffffffffffffffffffffffffffff XMM03=2f6c616e72756f6a2f676f6c2f6e7572 XMM04=26aa7f22957d5cc800000000000ae988 XMM05=b300b270c8cd00710000000000134590 XMM06=19e9129bd510f2350000000000133428 XMM07=00000000000000000000000000000000 XMM08=415453454d49545f454d49544c414552 XMM09=00000000000000000000000000000000 XMM10=20200000000020202020202020200000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000