syzkaller login: [ 60.377002] BUG: Bad rss-counter state mm:000000008fe21ec8 type:MM_FILEPAGES val:33 [ 60.378200] BUG: Bad rss-counter state mm:000000008fe21ec8 type:MM_ANONPAGES val:22 [ 60.544710] ================================================================== [ 60.545881] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 60.547010] Read of size 8 at addr ffff8880147d9880 by task sshd/220 [ 60.548029] [ 60.548296] CPU: 0 PID: 220 Comm: sshd Tainted: G L 6.4.0-rc7-next-20230619 #1 [ 60.549549] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 60.550780] Call Trace: [ 60.551178] [ 60.551517] dump_stack_lvl+0x91/0xf0 [ 60.552111] print_report+0xcc/0x620 [ 60.552689] ? __virt_addr_valid+0x102/0x340 [ 60.553358] ? vma_interval_tree_remove+0xc75/0xec0 [ 60.554138] ? vma_interval_tree_remove+0xc75/0xec0 [ 60.554901] kasan_report+0xbe/0xf0 [ 60.555480] ? vma_interval_tree_remove+0xc75/0xec0 [ 60.556243] vma_interval_tree_remove+0xc75/0xec0 [ 60.556970] vma_prepare+0xc54/0x11a0 [ 60.557560] __split_vma+0x5af/0x950 [ 60.558172] ? __pfx___split_vma+0x10/0x10 [ 60.558821] ? find_held_lock+0x2c/0x110 [ 60.559462] do_vmi_align_munmap+0x2ba/0x11f0 [ 60.560155] ? lock_is_held_type+0x9f/0x120 [ 60.560678] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 60.561258] ? mtree_range_walk+0x632/0x900 [ 60.561796] ? mas_walk+0x5c7/0x7c0 [ 60.562252] do_vmi_munmap+0x1f1/0x2b0 [ 60.562719] mmap_region+0x1f9/0x2660 [ 60.563179] ? vm_mmap_pgoff+0x15c/0x3a0 [ 60.563669] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 60.564340] ? __pfx_lock_acquire+0x10/0x10 [ 60.564846] ? __pfx_mmap_region+0x10/0x10 [ 60.565347] ? security_mmap_addr+0x7d/0xa0 [ 60.565867] ? get_unmapped_area+0x1f5/0x3f0 [ 60.566392] do_mmap+0x854/0xf00 [ 60.566810] vm_mmap_pgoff+0x1a6/0x3a0 [ 60.567284] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 60.567821] ksys_mmap_pgoff+0x3af/0x500 [ 60.568301] do_syscall_64+0x3f/0x90 [ 60.568755] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 60.569368] RIP: 0033:0x7fa2ac1bdd82 [ 60.569818] 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 [ 60.571875] RSP: 002b:00007ffdea9333a8 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 60.572774] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007fa2ac1bdd82 [ 60.573620] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007fa2ab5f7000 [ 60.574463] RBP: 00007fa2ab5f7000 R08: 0000000000000009 R09: 0000000000001000 [ 60.575278] R10: 0000000000000812 R11: 0000000000000206 R12: 000055cee20dcec0 [ 60.576098] R13: 00007ffdea9333c0 R14: 00007ffdea9333f0 R15: 00007ffdea933750 [ 60.576941] [ 60.577224] [ 60.577434] Allocated by task 213: [ 60.577855] kasan_save_stack+0x22/0x50 [ 60.578359] kasan_set_track+0x25/0x30 [ 60.578853] __kasan_slab_alloc+0x59/0x70 [ 60.579370] kmem_cache_alloc+0x16b/0x370 [ 60.579886] vm_area_dup+0x20/0x160 [ 60.580329] __split_vma+0x170/0x950 [ 60.580793] split_vma+0xc6/0x110 [ 60.581216] mprotect_fixup+0x8d2/0xb30 [ 60.581729] do_mprotect_pkey+0x87e/0xd40 [ 60.582241] __x64_sys_mprotect+0x78/0xc0 [ 60.582764] do_syscall_64+0x3f/0x90 [ 60.583236] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 60.583870] [ 60.584077] Freed by task 213: [ 60.584466] kasan_save_stack+0x22/0x50 [ 60.584956] kasan_set_track+0x25/0x30 [ 60.585441] kasan_save_free_info+0x2b/0x50 [ 60.585987] __kasan_slab_free+0x10a/0x190 [ 60.586506] kmem_cache_free+0x10d/0x4d0 [ 60.587004] rcu_core+0x8c8/0x2860 [ 60.587438] __do_softirq+0x1b7/0x7d4 [ 60.587900] [ 60.588108] Last potentially related work creation: [ 60.588682] kasan_save_stack+0x22/0x50 [ 60.589179] __kasan_record_aux_stack+0x8e/0xa0 [ 60.589766] __call_rcu_common.constprop.0+0x6a/0xb90 [ 60.590402] remove_vma+0x139/0x170 [ 60.590846] do_vmi_align_munmap+0xd4a/0x11f0 [ 60.591393] do_vmi_munmap+0x1f1/0x2b0 [ 60.591868] __vm_munmap+0x138/0x3a0 [ 60.592331] __x64_sys_munmap+0x59/0x80 [ 60.592827] do_syscall_64+0x3f/0x90 [ 60.593294] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 60.593937] [ 60.594147] The buggy address belongs to the object at ffff8880147d9828 [ 60.594147] which belongs to the cache vm_area_struct of size 168 [ 60.595614] The buggy address is located 88 bytes inside of [ 60.595614] freed 168-byte region [ffff8880147d9828, ffff8880147d98d0) [ 60.597011] [ 60.597221] The buggy address belongs to the physical page: [ 60.597882] page:00000000d7022c29 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x147d9 [ 60.598967] memcg:ffff8880102edc01 [ 60.599385] flags: 0x100000000000200(slab|node=0|zone=1) [ 60.600024] page_type: 0xffffffff() [ 60.600469] raw: 0100000000000200 ffff88800879fc80 dead000000000122 0000000000000000 [ 60.601370] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff8880102edc01 [ 60.602312] page dumped because: kasan: bad access detected [ 60.602963] [ 60.603176] Memory state around the buggy address: [ 60.603761] ffff8880147d9780: 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc [ 60.604598] ffff8880147d9800: fc fc fc fc fc fa fb fb fb fb fb fb fb fb fb fb [ 60.605446] >ffff8880147d9880: fb fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc [ 60.606309] ^ [ 60.606718] ffff8880147d9900: fc fc fa fb fb fb fb fb fb fb fb fb fb fb fb fb [ 60.607555] ffff8880147d9980: fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc 00 [ 60.608388] ================================================================== [ 60.609339] Disabling lock debugging due to kernel taint [ 62.417879] BUG: Bad rss-counter state mm:0000000019a01165 type:MM_FILEPAGES val:33 [ 62.418586] BUG: Bad rss-counter state mm:0000000019a01165 type:MM_ANONPAGES val:22 [ 62.891759] BUG: Bad rss-counter state mm:000000003903858f type:MM_FILEPAGES val:33 [ 62.892982] BUG: Bad rss-counter state mm:000000003903858f type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:29158' (ECDSA) to the list of known hosts. 2023/06/19 21:05:09 fuzzer started 2023/06/19 21:05:10 dialing manager at localhost:44161 2023/06/19 21:05:10 checking machine... 2023/06/19 21:05:10 checking revisions... [ 63.578718] kmemleak: Automatic memory scanning thread ended 2023/06/19 21:05:10 testing simple program... [ 63.629203] cgroup: Unknown subsys name 'net' [ 63.680369] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 21:04:40 Registers: info registers vcpu 0 RAX=ffff88806ce0a001 RBX=ffff88806ce09a98 RCX=0000000000000002 RDX=ffff88806ce09d01 RSI=ffff88806ce09df0 RDI=ffff88806ce09aa8 RBP=ffff88806ce09df0 RSP=ffff88806ce099f0 R8 =ffffffff86137542 R9 =ffff88806ce09ad8 R10=0000000000038001 R11=0000000000020d8a R12=0000000000000008 R13=ffff88806ce02000 R14=ffff88806ce09df8 R15=ffff88806ce09a98 RIP=ffffffff8113048d 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 00007f1e39b70900 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=00007f1e3a127618 CR3=0000000013428000 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=ffff88806cf35000 RBX=0000000000000001 RCX=ffffffff8450c50e RDX=ffffed100d9e6a01 RSI=0000000000000004 RDI=ffffffff812889a5 RBP=dffffc0000000000 RSP=ffff888008e27e70 R8 =0000000000000000 R9 =ffffed100d9e6a00 R10=ffff88806cf35003 R11=0000000000000001 R12=ffffffff85d3bed0 R13=1ffff110011c4fd3 R14=0000000000000000 R15=0000000000000000 RIP=ffffffff8450d49f 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=00007fdb2f25b000 CR3=00000000098ee000 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=00000000000000000000000000000000 XMM01=833e84e50bd677ad32464c7ae90e07c3 XMM02=2c67c8bc2e329bc300000000001214c0 XMM03=fb795ef6d65770560000000000128928 XMM04=9a7e568852616bb700000000000ae988 XMM05=19e9129bd510f2350000000000138ae8 XMM06=103e2b0ca22bb50c0000000000137950 XMM07=e042d86d42eb936e0000000000128ba8 XMM08=824121938a3fad650000000000121520 XMM09=00000000000000000000000000000000 XMM10=20200000000020202020202020200000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000