syzkaller login: [ 44.927161] BUG: Bad rss-counter state mm:000000004dba20e2 type:MM_FILEPAGES val:33 [ 44.928489] BUG: Bad rss-counter state mm:000000004dba20e2 type:MM_ANONPAGES val:22 [ 45.089189] ================================================================== [ 45.090110] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 45.091048] Read of size 8 at addr ffff88801009a058 by task sshd/220 [ 45.091923] [ 45.092142] CPU: 0 PID: 220 Comm: sshd Not tainted 6.4.0-rc7-next-20230619 #1 [ 45.093012] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 45.094019] Call Trace: [ 45.094347] [ 45.094638] dump_stack_lvl+0x91/0xf0 [ 45.095135] print_report+0xcc/0x620 [ 45.095619] ? __virt_addr_valid+0x102/0x340 [ 45.096176] ? vma_interval_tree_remove+0xc75/0xec0 [ 45.096788] ? vma_interval_tree_remove+0xc75/0xec0 [ 45.097406] kasan_report+0xbe/0xf0 [ 45.097902] ? vma_interval_tree_remove+0xc75/0xec0 [ 45.098515] vma_interval_tree_remove+0xc75/0xec0 [ 45.099116] vma_prepare+0xc54/0x11a0 [ 45.099595] __split_vma+0x5af/0x950 [ 45.100072] ? __pfx___split_vma+0x10/0x10 [ 45.100599] ? find_held_lock+0x2c/0x110 [ 45.101123] do_vmi_align_munmap+0x2ba/0x11f0 [ 45.101693] ? lock_is_held_type+0x9f/0x120 [ 45.102254] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 45.102878] ? mtree_range_walk+0x632/0x900 [ 45.103434] ? mas_walk+0x5c7/0x7c0 [ 45.103906] do_vmi_munmap+0x1f1/0x2b0 [ 45.104399] mmap_region+0x1f9/0x2660 [ 45.104880] ? vm_mmap_pgoff+0x15c/0x3a0 [ 45.105394] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 45.106119] ? __pfx_lock_acquire+0x10/0x10 [ 45.106652] ? __pfx_mmap_region+0x10/0x10 [ 45.107180] ? security_mmap_addr+0x7d/0xa0 [ 45.107718] ? get_unmapped_area+0x1f5/0x3f0 [ 45.108271] do_mmap+0x854/0xf00 [ 45.108711] vm_mmap_pgoff+0x1a6/0x3a0 [ 45.109203] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 45.109769] ksys_mmap_pgoff+0x3af/0x500 [ 45.110281] do_syscall_64+0x3f/0x90 [ 45.110762] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 45.111398] RIP: 0033:0x7fcceb6b0d82 [ 45.111856] 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 [ 45.114076] RSP: 002b:00007ffd76819ed8 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 45.115022] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007fcceb6b0d82 [ 45.115906] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007fcceaaea000 [ 45.116780] RBP: 00007fcceaaea000 R08: 0000000000000009 R09: 0000000000001000 [ 45.117654] R10: 0000000000000812 R11: 0000000000000206 R12: 0000564f3dd25ec0 [ 45.118541] R13: 00007ffd76819ef0 R14: 00007ffd76819f20 R15: 00007ffd7681a280 [ 45.119430] [ 45.119733] [ 45.119957] Allocated by task 212: [ 45.120399] kasan_save_stack+0x22/0x50 [ 45.120926] kasan_set_track+0x25/0x30 [ 45.121434] __kasan_slab_alloc+0x59/0x70 [ 45.121994] kmem_cache_alloc+0x16b/0x370 [ 45.122536] vm_area_dup+0x20/0x160 [ 45.123006] __split_vma+0x170/0x950 [ 45.123487] split_vma+0xc6/0x110 [ 45.123947] mprotect_fixup+0x8d2/0xb30 [ 45.124467] do_mprotect_pkey+0x87e/0xd40 [ 45.125003] __x64_sys_mprotect+0x78/0xc0 [ 45.125537] do_syscall_64+0x3f/0x90 [ 45.126027] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 45.126688] [ 45.126912] Freed by task 19: [ 45.127305] kasan_save_stack+0x22/0x50 [ 45.127824] kasan_set_track+0x25/0x30 [ 45.128338] kasan_save_free_info+0x2b/0x50 [ 45.128891] __kasan_slab_free+0x10a/0x190 [ 45.129441] kmem_cache_free+0x10d/0x4d0 [ 45.129973] rcu_core+0x8c8/0x2860 [ 45.130437] __do_softirq+0x1b7/0x7d4 [ 45.130929] [ 45.131144] Last potentially related work creation: [ 45.131746] kasan_save_stack+0x22/0x50 [ 45.132274] __kasan_record_aux_stack+0x8e/0xa0 [ 45.132875] __call_rcu_common.constprop.0+0x6a/0xb90 [ 45.133538] remove_vma+0x139/0x170 [ 45.134016] do_vmi_align_munmap+0xd4a/0x11f0 [ 45.134591] do_vmi_munmap+0x1f1/0x2b0 [ 45.135100] __vm_munmap+0x138/0x3a0 [ 45.135584] __x64_sys_munmap+0x59/0x80 [ 45.136101] do_syscall_64+0x3f/0x90 [ 45.136593] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 45.137265] [ 45.137487] Second to last potentially related work creation: [ 45.138208] kasan_save_stack+0x22/0x50 [ 45.138729] __kasan_record_aux_stack+0x8e/0xa0 [ 45.139315] __call_rcu_common.constprop.0+0x6a/0xb90 [ 45.139982] remove_vma+0x139/0x170 [ 45.140454] do_vmi_align_munmap+0xd4a/0x11f0 [ 45.141032] do_vmi_munmap+0x1f1/0x2b0 [ 45.141533] mmap_region+0x1f9/0x2660 [ 45.142044] do_mmap+0x854/0xf00 [ 45.142490] vm_mmap_pgoff+0x1a6/0x3a0 [ 45.142996] ksys_mmap_pgoff+0x7d/0x500 [ 45.143499] do_syscall_64+0x3f/0x90 [ 45.143987] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 45.144651] [ 45.144874] The buggy address belongs to the object at ffff88801009a000 [ 45.144874] which belongs to the cache vm_area_struct of size 168 [ 45.146402] The buggy address is located 88 bytes inside of [ 45.146402] freed 168-byte region [ffff88801009a000, ffff88801009a0a8) [ 45.147871] [ 45.148092] The buggy address belongs to the physical page: [ 45.148778] page:0000000060e2829c refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1009a [ 45.149913] memcg:ffff888014472101 [ 45.150352] anon flags: 0x100000000000200(slab|node=0|zone=1) [ 45.151078] page_type: 0xffffffff() [ 45.151553] raw: 0100000000000200 ffff88800879fc80 ffffea0000402600 dead000000000005 [ 45.152513] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff888014472101 [ 45.153448] page dumped because: kasan: bad access detected [ 45.154149] [ 45.154372] Memory state around the buggy address: [ 45.154983] ffff888010099f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 45.155869] ffff888010099f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 45.156754] >ffff88801009a000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 45.157645] ^ [ 45.158401] ffff88801009a080: fb fb fb fb fb fc fc fc fc fc fc fc fc fa fb fb [ 45.159290] ffff88801009a100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 45.160168] ================================================================== [ 45.161249] Disabling lock debugging due to kernel taint [ 47.875840] BUG: Bad rss-counter state mm:000000008a190b73 type:MM_FILEPAGES val:33 [ 47.877071] BUG: Bad rss-counter state mm:000000008a190b73 type:MM_ANONPAGES val:22 [ 48.425720] BUG: Bad rss-counter state mm:00000000d3bf4366 type:MM_FILEPAGES val:33 [ 48.426868] BUG: Bad rss-counter state mm:00000000d3bf4366 type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:56630' (ECDSA) to the list of known hosts. 2023/06/19 19:57:05 fuzzer started 2023/06/19 19:57:06 dialing manager at localhost:44161 2023/06/19 19:57:06 checking machine... 2023/06/19 19:57:06 checking revisions... [ 49.103434] kmemleak: Automatic memory scanning thread ended 2023/06/19 19:57:06 testing simple program... [ 49.163280] cgroup: Unknown subsys name 'net' [ 49.201307] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 19:56:49 Registers: info registers vcpu 0 RAX=dffffc0000000000 RBX=ffff88806ce09a78 RCX=0000000000000001 RDX=1ffff1100d9c135a RSI=ffff88806ce09f50 RDI=ffffffff84531da7 RBP=ffff88806ce09ad0 RSP=ffff88806ce09a60 R8 =0000000000000001 R9 =ffff88806ce09ab8 R10=0000000000038001 R11=000000000000fdc6 R12=ffff88806ce09b40 R13=0000000000000000 R14=ffff8880144c1b40 R15=ffff8880144a1900 RIP=ffffffff811303b2 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 =0000 0000000000000000 00000000 00000000 DS =0000 0000000000000000 00000000 00000000 FS =0000 00007f68e8bc5900 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=00007f68e8037170 CR3=000000000cb56000 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=656e6e6f637369443d4547415353454d XMM01=2e303120746f6f722072657375206d6f XMM02=ffffffffffffffffffffffffffffffff XMM03=2f6c616e72756f6a2f676f6c2f6e7572 XMM04=279cd61c730bd03700000000000ae988 XMM05=cf302fc6a322a58700000000001361b0 XMM06=4fda316b135da52b0000000000135250 XMM07=00000000000000000000000000000000 XMM08=415453454d49545f454d49544c414552 XMM09=00000000000000000000000000000000 XMM10=20200000000020202020202020200000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=ffffffff846000aa RBX=0000000000000008 RCX=0000000000000001 RDX=0000000000000800 RSI=0000000000000009 RDI=ffff88800f937c48 RBP=dffffc0000000000 RSP=ffff88800f937b58 R8 =0000000000000000 R9 =fffffbfff0ba77da R10=ffffffff85d3bed7 R11=00000000000b6996 R12=0000000000000009 R13=0000000000000800 R14=ffff88800f937c08 R15=ffff88800e994000 RIP=ffffffff813ad601 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 00007f4677b1f900 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=00007f46780d6618 CR3=0000000016adc000 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=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