syzkaller login: [   38.758732] BUG: Bad rss-counter state mm:0000000007b95afe type:MM_FILEPAGES val:33
[   38.760110] BUG: Bad rss-counter state mm:0000000007b95afe type:MM_ANONPAGES val:22
[   38.906106] ==================================================================
[   38.907037] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0
[   38.907985] Read of size 8 at addr ffff88800c57ac20 by task sshd/225
[   38.908776] 
[   38.908997] CPU: 1 PID: 225 Comm: sshd Not tainted 6.4.0-rc7-next-20230620 #1
[   38.910025] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[   38.911020] Call Trace:
[   38.911344]  <TASK>
[   38.911636]  dump_stack_lvl+0x91/0xf0
[   38.912138]  print_report+0xcc/0x620
[   38.912660]  ? __virt_addr_valid+0x102/0x340
[   38.913223]  ? vma_interval_tree_remove+0xc75/0xec0
[   38.913854]  ? vma_interval_tree_remove+0xc75/0xec0
[   38.914481]  kasan_report+0xbe/0xf0
[   38.914971]  ? vma_interval_tree_remove+0xc75/0xec0
[   38.915609]  vma_interval_tree_remove+0xc75/0xec0
[   38.916223]  vma_prepare+0xc54/0x11a0
[   38.916728]  __split_vma+0x5af/0x950
[   38.917203]  ? __pfx___split_vma+0x10/0x10
[   38.917749]  ? find_held_lock+0x2c/0x110
[   38.918282]  do_vmi_align_munmap+0x2ba/0x11f0
[   38.918870]  ? lock_is_held_type+0x9f/0x120
[   38.919424]  ? __pfx_do_vmi_align_munmap+0x10/0x10
[   38.920053]  ? mtree_range_walk+0x632/0x900
[   38.920644]  ? mas_walk+0x5c7/0x7c0
[   38.921129]  do_vmi_munmap+0x1f1/0x2b0
[   38.921633]  mmap_region+0x1f9/0x2660
[   38.922129]  ? vm_mmap_pgoff+0x15c/0x3a0
[   38.922652]  ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10
[   38.923378]  ? __pfx_lock_acquire+0x10/0x10
[   38.923925]  ? __pfx_mmap_region+0x10/0x10
[   38.924477]  ? security_mmap_addr+0x7d/0xa0
[   38.925021]  ? get_unmapped_area+0x1f5/0x3f0
[   38.925583]  do_mmap+0x854/0xf00
[   38.926030]  vm_mmap_pgoff+0x1a6/0x3a0
[   38.926529]  ? __pfx_vm_mmap_pgoff+0x10/0x10
[   38.927104]  ksys_mmap_pgoff+0x3af/0x500
[   38.927619]  do_syscall_64+0x3f/0x90
[   38.928109]  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[   38.928769] RIP: 0033:0x7fd98b377d82
[   38.929234] 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
[   38.931400] RSP: 002b:00007ffe5a049c58 EFLAGS: 00000206 ORIG_RAX: 0000000000000009
[   38.932347] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007fd98b377d82
[   38.933217] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007fd98a7b1000
[   38.934087] RBP: 00007fd98a7b1000 R08: 0000000000000009 R09: 0000000000001000
[   38.934946] R10: 0000000000000812 R11: 0000000000000206 R12: 000056189d470d90
[   38.935817] R13: 00007ffe5a049c70 R14: 00007ffe5a049ca0 R15: 00007ffe5a04a000
[   38.936712]  </TASK>
[   38.937009] 
[   38.937232] Allocated by task 218:
[   38.937667]  kasan_save_stack+0x22/0x50
[   38.938180]  kasan_set_track+0x25/0x30
[   38.938681]  __kasan_slab_alloc+0x59/0x70
[   38.939216]  kmem_cache_alloc+0x16b/0x370
[   38.939741]  vm_area_dup+0x20/0x160
[   38.940202]  __split_vma+0x170/0x950
[   38.940693]  split_vma+0xc6/0x110
[   38.941143]  mprotect_fixup+0x8d2/0xb30
[   38.941659]  do_mprotect_pkey+0x87e/0xd40
[   38.942186]  __x64_sys_mprotect+0x78/0xc0
[   38.942726]  do_syscall_64+0x3f/0x90
[   38.943216]  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[   38.943897] 
[   38.944122] Freed by task 218:
[   38.944532]  kasan_save_stack+0x22/0x50
[   38.945075]  kasan_set_track+0x25/0x30
[   38.945588]  kasan_save_free_info+0x2b/0x50
[   38.946146]  __kasan_slab_free+0x10a/0x190
[   38.946706]  kmem_cache_free+0x10d/0x4d0
[   38.947240]  rcu_core+0x8c8/0x2860
[   38.947738]  __do_softirq+0x1b7/0x7d4
[   38.948247] 
[   38.948479] Last potentially related work creation:
[   38.949093]  kasan_save_stack+0x22/0x50
[   38.949617]  __kasan_record_aux_stack+0x8e/0xa0
[   38.950219]  __call_rcu_common.constprop.0+0x6a/0xb90
[   38.950902]  remove_vma+0x139/0x170
[   38.951440]  do_vmi_align_munmap+0xd4a/0x11f0
[   38.952040]  do_vmi_munmap+0x1f1/0x2b0
[   38.952552]  __vm_munmap+0x138/0x3a0
[   38.953037]  __x64_sys_munmap+0x59/0x80
[   38.953558]  do_syscall_64+0x3f/0x90
[   38.954056]  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[   38.954745] 
[   38.954967] Second to last potentially related work creation:
[   38.955683]  kasan_save_stack+0x22/0x50
[   38.956203]  __kasan_record_aux_stack+0x8e/0xa0
[   38.956806]  __call_rcu_common.constprop.0+0x6a/0xb90
[   38.957475]  remove_vma+0x139/0x170
[   38.957959]  do_vmi_align_munmap+0xd4a/0x11f0
[   38.958544]  do_vmi_munmap+0x1f1/0x2b0
[   38.959049]  mmap_region+0x1f9/0x2660
[   38.959555]  do_mmap+0x854/0xf00
[   38.960010]  vm_mmap_pgoff+0x1a6/0x3a0
[   38.960549]  ksys_mmap_pgoff+0x3af/0x500
[   38.961092]  do_syscall_64+0x3f/0x90
[   38.961595]  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[   38.962274] 
[   38.962507] The buggy address belongs to the object at ffff88800c57abc8
[   38.962507]  which belongs to the cache vm_area_struct of size 168
[   38.964053] The buggy address is located 88 bytes inside of
[   38.964053]  freed 168-byte region [ffff88800c57abc8, ffff88800c57ac70)
[   38.965525] 
[   38.965741] The buggy address belongs to the physical page:
[   38.966403] page:0000000064897380 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xc57a
[   38.967483] memcg:ffff88800e04b001
[   38.967912] flags: 0x100000000000200(slab|node=0|zone=1)
[   38.968558] page_type: 0xffffffff()
[   38.969009] raw: 0100000000000200 ffff8880087a0c80 ffffea00003169c0 dead000000000008
[   38.969924] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff88800e04b001
[   38.970833] page dumped because: kasan: bad access detected
[   38.971485] 
[   38.971700] Memory state around the buggy address:
[   38.972271]  ffff88800c57ab00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[   38.973137]  ffff88800c57ab80: fb fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb
[   38.973980] >ffff88800c57ac00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc
[   38.974835]                                ^
[   38.975357]  ffff88800c57ac80: fc fc fc fc fc fc fa fb fb fb fb fb fb fb fb fb
[   38.976212]  ffff88800c57ad00: fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc fc
[   38.977076] ==================================================================
[   38.978073] Disabling lock debugging due to kernel taint
[   40.970615] BUG: Bad rss-counter state mm:00000000a1f35bcc type:MM_FILEPAGES val:33
[   40.971612] BUG: Bad rss-counter state mm:00000000a1f35bcc type:MM_ANONPAGES val:22
[   41.487581] BUG: Bad rss-counter state mm:000000002f291ebf type:MM_FILEPAGES val:33
[   41.488776] BUG: Bad rss-counter state mm:000000002f291ebf type:MM_ANONPAGES val:22
Warning: Permanently added '[localhost]:41719' (ECDSA) to the list of known hosts.
2023/06/20 12:17:39 fuzzer started
2023/06/20 12:17:39 dialing manager at localhost:36067
2023/06/20 12:17:39 checking machine...
2023/06/20 12:17:39 checking revisions...
[   42.194883] kmemleak: Automatic memory scanning thread ended
2023/06/20 12:17:40 testing simple program...
[   42.244693] cgroup: Unknown subsys name 'net'
[   42.292913] cgroup: Unknown subsys name 'rlimit'
executing program
executing program
executing program

VM DIAGNOSIS:
12:17:39  Registers:
info registers vcpu 0
RAX=ffffffff8363b743 RBX=0000000000000001 RCX=0000000000000001 RDX=ffff888015a77ac8
RSI=ffffffff8363b743 RDI=ffff888015a77a80 RBP=ffff888015a77ad8 RSP=ffff888015a77a10
R8 =0000000000000001 R9 =ffff888015a77ac0 R10=0000000000038001 R11=000000000008a95e
R12=ffff888015a77b48 R13=ffff888015a77ac8 R14=ffff888017741b40 R15=ffff888015a77a80
RIP=ffffffff81130641 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 00007fe342f9b900 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=00007fe3435530b0 CR3=0000000014710000 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=25252525252525252525252525252525 XMM01=000000000000000000000000000000ff
XMM02=000000000000000000000000000000ff XMM03=5320444f4854454d5f54505952434e45
XMM04=40404040404040404040404040404040 XMM05=5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a
XMM06=20202020202020202020202020202020 XMM07=00000000000000000000000000000000
XMM08=662079726f6d656d20666f2074756f00 XMM09=00000000000000000000000000000000
XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000
XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000
XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000
info registers vcpu 1
RAX=dffffc0000000000 RBX=0000000000000001 RCX=0000000000000000 RDX=0000000000000000
RSI=0000000000000000 RDI=ffff88806cf293d8 RBP=ffff88806cf293c0 RSP=ffff888008da7ad0
R8 =0000000000000001 R9 =0000000000000000 R10=ffffffff85d3d357 R11=0000000000000003
R12=0000000000000293 R13=ffff888008da7c98 R14=ffffed10011b4f97 R15=dffffc0000000000
RIP=ffffffff812d8e70 RFL=00000046 [---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 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=00007f9736ddab80 CR3=000000000978a000 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=3b1c178664cf21d600000000000ae988 XMM05=a2ebb77df7b88ca900000000001350b0
XMM06=e7a3b750822471340000000000133f10 XMM07=00000000000000000000000000000000
XMM08=415453454d49545f454d49544c414552 XMM09=00000000000000000000000000000000
XMM10=20200000000020202020202020200000 XMM11=00000000000000000000000000000000
XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000
XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000