syzkaller login: [ 68.822229] BUG: Bad rss-counter state mm:0000000059ef0b0a type:MM_FILEPAGES val:33 [ 68.823981] BUG: Bad rss-counter state mm:0000000059ef0b0a type:MM_ANONPAGES val:22 [ 68.996332] ================================================================== [ 68.997414] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 68.998522] Read of size 8 at addr ffff888015a17b38 by task sshd/231 [ 68.999620] [ 68.999869] CPU: 1 PID: 231 Comm: sshd Not tainted 6.4.0-rc7-next-20230619 #1 [ 69.000737] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 69.001743] Call Trace: [ 69.002071] [ 69.002363] dump_stack_lvl+0x91/0xf0 [ 69.002865] print_report+0xcc/0x620 [ 69.003362] ? __virt_addr_valid+0x102/0x340 [ 69.003920] ? vma_interval_tree_remove+0xc75/0xec0 [ 69.004549] ? vma_interval_tree_remove+0xc75/0xec0 [ 69.005161] kasan_report+0xbe/0xf0 [ 69.005644] ? vma_interval_tree_remove+0xc75/0xec0 [ 69.006269] vma_interval_tree_remove+0xc75/0xec0 [ 69.006873] vma_prepare+0xc54/0x11a0 [ 69.007367] __split_vma+0x5af/0x950 [ 69.007841] ? __pfx___split_vma+0x10/0x10 [ 69.008370] ? find_held_lock+0x2c/0x110 [ 69.008897] do_vmi_align_munmap+0x2ba/0x11f0 [ 69.009466] ? lock_is_held_type+0x9f/0x120 [ 69.010004] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 69.010609] ? mtree_range_walk+0x632/0x900 [ 69.011169] ? mas_walk+0x5c7/0x7c0 [ 69.011644] do_vmi_munmap+0x1f1/0x2b0 [ 69.012138] mmap_region+0x1f9/0x2660 [ 69.012619] ? vm_mmap_pgoff+0x15c/0x3a0 [ 69.013129] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 69.013842] ? __pfx_lock_acquire+0x10/0x10 [ 69.014380] ? __pfx_mmap_region+0x10/0x10 [ 69.014909] ? security_mmap_addr+0x7d/0xa0 [ 69.015453] ? get_unmapped_area+0x1f5/0x3f0 [ 69.016019] do_mmap+0x854/0xf00 [ 69.016469] vm_mmap_pgoff+0x1a6/0x3a0 [ 69.016970] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 69.017538] ksys_mmap_pgoff+0x3af/0x500 [ 69.018052] do_syscall_64+0x3f/0x90 [ 69.018536] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 69.019198] RIP: 0033:0x7f4172b2fd82 [ 69.019664] 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 [ 69.021790] RSP: 002b:00007ffd7ee07a28 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 69.022704] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007f4172b2fd82 [ 69.023643] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007f4171f69000 [ 69.024493] RBP: 00007f4171f69000 R08: 0000000000000009 R09: 0000000000001000 [ 69.025345] R10: 0000000000000812 R11: 0000000000000206 R12: 0000559205a48d90 [ 69.026192] R13: 00007ffd7ee07a40 R14: 00007ffd7ee07a70 R15: 00007ffd7ee07dd0 [ 69.027035] [ 69.027348] [ 69.027564] Allocated by task 223: [ 69.027993] kasan_save_stack+0x22/0x50 [ 69.028495] kasan_set_track+0x25/0x30 [ 69.028987] __kasan_slab_alloc+0x59/0x70 [ 69.029513] kmem_cache_alloc+0x16b/0x370 [ 69.030030] vm_area_dup+0x20/0x160 [ 69.030485] __split_vma+0x170/0x950 [ 69.030951] split_vma+0xc6/0x110 [ 69.031403] mprotect_fixup+0x8d2/0xb30 [ 69.031915] do_mprotect_pkey+0x87e/0xd40 [ 69.032449] __x64_sys_mprotect+0x78/0xc0 [ 69.032970] do_syscall_64+0x3f/0x90 [ 69.033454] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 69.034100] [ 69.034317] Freed by task 204: [ 69.034714] kasan_save_stack+0x22/0x50 [ 69.035242] kasan_set_track+0x25/0x30 [ 69.035749] kasan_save_free_info+0x2b/0x50 [ 69.036276] __kasan_slab_free+0x10a/0x190 [ 69.036811] kmem_cache_free+0x10d/0x4d0 [ 69.037323] rcu_core+0x8c8/0x2860 [ 69.037771] __do_softirq+0x1b7/0x7d4 [ 69.038250] [ 69.038467] Last potentially related work creation: [ 69.039046] kasan_save_stack+0x22/0x50 [ 69.039566] __kasan_record_aux_stack+0x8e/0xa0 [ 69.040208] __call_rcu_common.constprop.0+0x6a/0xb90 [ 69.040853] remove_vma+0x139/0x170 [ 69.041307] do_vmi_align_munmap+0xd4a/0x11f0 [ 69.041863] do_vmi_munmap+0x1f1/0x2b0 [ 69.042346] __vm_munmap+0x138/0x3a0 [ 69.042817] __x64_sys_munmap+0x59/0x80 [ 69.043325] do_syscall_64+0x3f/0x90 [ 69.043803] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 69.044448] [ 69.044667] The buggy address belongs to the object at ffff888015a17ae0 [ 69.044667] which belongs to the cache vm_area_struct of size 168 [ 69.046135] The buggy address is located 88 bytes inside of [ 69.046135] freed 168-byte region [ffff888015a17ae0, ffff888015a17b88) [ 69.047561] [ 69.047778] The buggy address belongs to the physical page: [ 69.048437] page:00000000dbd20d9d refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x15a17 [ 69.049522] memcg:ffff888016648001 [ 69.049951] flags: 0x100000000000200(slab|node=0|zone=1) [ 69.050597] page_type: 0xffffffff() [ 69.051049] raw: 0100000000000200 ffff88800879fc80 dead000000000122 0000000000000000 [ 69.051990] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff888016648001 [ 69.052902] page dumped because: kasan: bad access detected [ 69.053582] [ 69.053800] Memory state around the buggy address: [ 69.054387] ffff888015a17a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 69.055255] ffff888015a17a80: 00 00 00 00 fc fc fc fc fc fc fc fc fa fb fb fb [ 69.056113] >ffff888015a17b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 69.056975] ^ [ 69.057588] ffff888015a17b80: fb fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb [ 69.058440] ffff888015a17c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc [ 69.059303] ================================================================== [ 69.060417] Disabling lock debugging due to kernel taint [ 71.505282] BUG: Bad rss-counter state mm:00000000154bc1bc type:MM_FILEPAGES val:33 [ 71.506442] BUG: Bad rss-counter state mm:00000000154bc1bc type:MM_ANONPAGES val:22 [ 71.837112] BUG: Bad rss-counter state mm:000000009fccfebe type:MM_FILEPAGES val:33 [ 71.837684] BUG: Bad rss-counter state mm:000000009fccfebe type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:43758' (ECDSA) to the list of known hosts. 2023/06/20 09:23:54 fuzzer started 2023/06/20 09:23:54 dialing manager at localhost:44161 2023/06/20 09:23:54 checking machine... 2023/06/20 09:23:54 checking revisions... [ 72.413040] kmemleak: Automatic memory scanning thread ended 2023/06/20 09:23:54 testing simple program... [ 72.464356] cgroup: Unknown subsys name 'net' [ 72.507371] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 09:23:53 Registers: info registers vcpu 0 RAX=ffff88806ce35000 RBX=0000000000000000 RCX=ffffffff8450c50e RDX=ffffed100d9c6a01 RSI=0000000000000004 RDI=ffffffff812889a5 RBP=dffffc0000000000 RSP=ffffffff85407e10 R8 =0000000000000000 R9 =ffffed100d9c6a00 R10=ffff88806ce35003 R11=ffff888008c58000 R12=ffffffff85d3bed0 R13=1ffffffff0a80fc7 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 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=00007fff22654c38 CR3=0000000005482000 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=00007f0f19a84510000055a1600fc790 XMM02=6f6974707972636e6561737268746977 XMM03=00000000000000000000000000777074 XMM04=40404040404040404040404040404040 XMM05=5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a XMM06=20202020202020202020202020202020 XMM07=ffffffffffff00ffffff00ffffff00ff XMM08=00002000000000202020002020200000 XMM09=ffffffffffff00ffffff00ffffff00ff XMM10=00002000000000202020002020200000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=0000000000000000 RBX=ffff8880146d7590 RCX=0000000000000001 RDX=1ffff110028daeb4 RSI=ffffffff818ace7f RDI=ffff8880146d75a0 RBP=ffff8880146d7560 RSP=ffff8880146d74a8 R8 =0000000000000001 R9 =ffff8880146d7508 R10=0000000000038001 R11=00000000000234d4 R12=ffff8880146d7590 R13=0000000000000000 R14=ffff8880146d8000 R15=0000000000000cc0 RIP=ffffffff813ad446 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 00007f7f5835d900 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=00007f7f5777bd20 CR3=0000000013b0a000 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=756f6a2f646d65747379732f6e75722f XMM01=00676f6c7379732f6c616e72756f6a2f XMM02=756f6a2f646d65747379732f6e75722f XMM03=006c616e72756f6a2f646d6574737973 XMM04=0572a1b7c64d0b0300000000000ae988 XMM05=4b291178fab8c8ed00000000001366b8 XMM06=474038aa6c007e1f00000000001354a8 XMM07=fb795ef6d657705600000000001256b0 XMM08=4f5453444600273d67736d000d0a0920 XMM09=00000000000000000000000000000000 XMM10=20200000000020202020202020200000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000