syzkaller login: [ 30.549298] BUG: Bad rss-counter state mm:00000000393a17a2 type:MM_FILEPAGES val:33 [ 30.550357] BUG: Bad rss-counter state mm:00000000393a17a2 type:MM_ANONPAGES val:22 [ 30.712016] ================================================================== [ 30.712902] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 30.713840] Read of size 8 at addr ffff888019dd03f8 by task sshd/220 [ 30.714606] [ 30.714940] CPU: 0 PID: 220 Comm: sshd Not tainted 6.4.0-rc7-next-20230620 #1 [ 30.715796] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 30.716753] Call Trace: [ 30.717092] [ 30.717374] dump_stack_lvl+0x91/0xf0 [ 30.717870] print_report+0xcc/0x620 [ 30.718346] ? __virt_addr_valid+0x102/0x340 [ 30.718888] ? vma_interval_tree_remove+0xc75/0xec0 [ 30.719507] ? vma_interval_tree_remove+0xc75/0xec0 [ 30.720099] kasan_report+0xbe/0xf0 [ 30.720564] ? vma_interval_tree_remove+0xc75/0xec0 [ 30.721184] vma_interval_tree_remove+0xc75/0xec0 [ 30.721785] vma_prepare+0xc54/0x11a0 [ 30.722256] __split_vma+0x5af/0x950 [ 30.722725] ? __pfx___split_vma+0x10/0x10 [ 30.723244] ? find_held_lock+0x2c/0x110 [ 30.723753] do_vmi_align_munmap+0x2ba/0x11f0 [ 30.724321] ? lock_is_held_type+0x9f/0x120 [ 30.724849] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 30.725454] ? mtree_range_walk+0x632/0x900 [ 30.726010] ? mas_walk+0x5c7/0x7c0 [ 30.726488] do_vmi_munmap+0x1f1/0x2b0 [ 30.726971] mmap_region+0x1f9/0x2660 [ 30.727448] ? vm_mmap_pgoff+0x15c/0x3a0 [ 30.727954] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 30.728667] ? __pfx_lock_acquire+0x10/0x10 [ 30.729188] ? __pfx_mmap_region+0x10/0x10 [ 30.729729] ? security_mmap_addr+0x7d/0xa0 [ 30.730255] ? get_unmapped_area+0x1f5/0x3f0 [ 30.730789] do_mmap+0x854/0xf00 [ 30.731229] vm_mmap_pgoff+0x1a6/0x3a0 [ 30.731707] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 30.732275] ksys_mmap_pgoff+0x3af/0x500 [ 30.732779] do_syscall_64+0x3f/0x90 [ 30.733253] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 30.733907] RIP: 0033:0x7f49fc2cad82 [ 30.734361] 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 [ 30.736476] RSP: 002b:00007fff2d655048 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 30.737373] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007f49fc2cad82 [ 30.738220] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007f49fb704000 [ 30.739030] RBP: 00007f49fb704000 R08: 0000000000000009 R09: 0000000000001000 [ 30.739822] R10: 0000000000000812 R11: 0000000000000206 R12: 000055aa899ecec0 [ 30.740621] R13: 00007fff2d655060 R14: 00007fff2d655090 R15: 00007fff2d6553f0 [ 30.741419] [ 30.741705] [ 30.741914] Allocated by task 213: [ 30.742322] kasan_save_stack+0x22/0x50 [ 30.742798] kasan_set_track+0x25/0x30 [ 30.743266] __kasan_slab_alloc+0x59/0x70 [ 30.743759] kmem_cache_alloc+0x16b/0x370 [ 30.744243] vm_area_dup+0x20/0x160 [ 30.744670] __split_vma+0x170/0x950 [ 30.745111] split_vma+0xc6/0x110 [ 30.745526] mprotect_fixup+0x8d2/0xb30 [ 30.746017] do_mprotect_pkey+0x87e/0xd40 [ 30.746506] __x64_sys_mprotect+0x78/0xc0 [ 30.746999] do_syscall_64+0x3f/0x90 [ 30.747453] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 30.748059] [ 30.748271] Freed by task 213: [ 30.748640] kasan_save_stack+0x22/0x50 [ 30.749122] kasan_set_track+0x25/0x30 [ 30.749591] kasan_save_free_info+0x2b/0x50 [ 30.750105] __kasan_slab_free+0x10a/0x190 [ 30.750605] kmem_cache_free+0x10d/0x4d0 [ 30.751085] rcu_core+0x8c8/0x2860 [ 30.751500] __do_softirq+0x1b7/0x7d4 [ 30.751954] [ 30.752164] Last potentially related work creation: [ 30.752723] kasan_save_stack+0x22/0x50 [ 30.753203] __kasan_record_aux_stack+0x8e/0xa0 [ 30.753755] __call_rcu_common.constprop.0+0x6a/0xb90 [ 30.754355] remove_vma+0x139/0x170 [ 30.754778] do_vmi_align_munmap+0xd4a/0x11f0 [ 30.755304] do_vmi_munmap+0x1f1/0x2b0 [ 30.755764] __vm_munmap+0x138/0x3a0 [ 30.756201] __x64_sys_munmap+0x59/0x80 [ 30.756669] do_syscall_64+0x3f/0x90 [ 30.757132] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 30.757752] [ 30.757958] The buggy address belongs to the object at ffff888019dd03a0 [ 30.757958] which belongs to the cache vm_area_struct of size 168 [ 30.759327] The buggy address is located 88 bytes inside of [ 30.759327] freed 168-byte region [ffff888019dd03a0, ffff888019dd0448) [ 30.760641] [ 30.760848] The buggy address belongs to the physical page: [ 30.761461] page:00000000b454a872 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x19dd0 [ 30.762491] memcg:ffff88800e691101 [ 30.762893] flags: 0x100000000000200(slab|node=0|zone=1) [ 30.763501] page_type: 0xffffffff() [ 30.763929] raw: 0100000000000200 ffff8880087a0c80 dead000000000122 0000000000000000 [ 30.764877] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff88800e691101 [ 30.765828] page dumped because: kasan: bad access detected [ 30.766472] [ 30.766679] Memory state around the buggy address: [ 30.767253] ffff888019dd0280: fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 00 [ 30.768188] ffff888019dd0300: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [ 30.769214] >ffff888019dd0380: fc fc fc fc fa fb fb fb fb fb fb fb fb fb fb fb [ 30.770128] ^ [ 30.770966] ffff888019dd0400: fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc [ 30.771769] ffff888019dd0480: fc fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.772567] ================================================================== [ 30.773498] Disabling lock debugging due to kernel taint [ 32.631319] BUG: Bad rss-counter state mm:000000005d6846b2 type:MM_FILEPAGES val:33 [ 32.632791] BUG: Bad rss-counter state mm:000000005d6846b2 type:MM_ANONPAGES val:22 [ 33.082170] BUG: Bad rss-counter state mm:000000003288d70e type:MM_FILEPAGES val:33 [ 33.083247] BUG: Bad rss-counter state mm:000000003288d70e type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:17560' (ECDSA) to the list of known hosts. 2023/06/20 12:39:03 fuzzer started 2023/06/20 12:39:03 dialing manager at localhost:36067 2023/06/20 12:39:03 checking machine... 2023/06/20 12:39:03 checking revisions... [ 33.791145] kmemleak: Automatic memory scanning thread ended 2023/06/20 12:39:04 testing simple program... [ 33.830383] cgroup: Unknown subsys name 'net' [ 33.873911] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 12:39:03 Registers: info registers vcpu 0 RAX=0000000000000003 RBX=ffff88800eeb0000 RCX=1ffffffff0ba7c92 RDX=0000000000000000 RSI=0000000000000001 RDI=ffff88800eeb0000 RBP=ffff88800d2bfb80 RSP=ffff888008d9fc88 R8 =0000000000000000 R9 =0000000000000000 R10=ffffffff85d3d357 R11=0000000000000128 R12=ffff88806ce361c8 R13=ffffffff87b6a200 R14=0000000000000000 R15=0000000000000001 RIP=ffffffff818282c2 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 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=00007ff783dbcf50 CR3=000000000c4f8000 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=f99891fe22b3af8ec447aea9becb43dd XMM02=ec2efd57dc4c00df000000000011d198 XMM03=21a5018b18975553000000000011d268 XMM04=d4d395ea1bf1974100000000000ae988 XMM05=5669d88408bfe0c00000000000132978 XMM06=19e9129bd510f2350000000000131830 XMM07=fb795ef6d657705600000000001219a8 XMM08=2c67c8bc2e329bc3000000000011d208 XMM09=00000000000000000000000000000000 XMM10=20200000000020202020202020200000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=ffff88806c400000 RBX=00000000e718e040 RCX=ffff88806c870200 RDX=0000000000000008 RSI=0000000000000001 RDI=000000009f7c81b3 RBP=ffff888016682060 RSP=ffff888008e379a0 R8 =000000007319ecdf R9 =ffff888008e37910 R10=0000000000038001 R11=0000000000000128 R12=0000000000000000 R13=0000000000000000 R14=ffff888008e37a08 R15=0000000000000008 RIP=ffffffff822704d3 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=00007f86effc9618 CR3=0000000018c20000 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=39333a3231203032206e754a3e36383c XMM01=7365733a646873732878696e755f6d61 XMM02=736f6c63206e6f6973736573203a296e XMM03=5f6d6170203a5d3932325b6468737320 XMM04=6456774875434142334f726f59427469 XMM05=485320415352203a3268737320323534 XMM06=206d6f726620746f6f7220726f662079 XMM07=00000000000000000000000000000000 XMM08=3a677562656420676f6c737973720000 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000