syzkaller login: [ 52.507404] BUG: Bad rss-counter state mm:0000000093b5d06d type:MM_FILEPAGES val:33 [ 52.509093] BUG: Bad rss-counter state mm:0000000093b5d06d type:MM_ANONPAGES val:22 [ 52.692192] ================================================================== [ 52.693351] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 52.694454] Read of size 8 at addr ffff888019b9f058 by task sshd/220 [ 52.695305] [ 52.695550] CPU: 0 PID: 220 Comm: sshd Not tainted 6.4.0-rc7-next-20230619 #1 [ 52.696514] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 52.697601] Call Trace: [ 52.697990] [ 52.698304] dump_stack_lvl+0x91/0xf0 [ 52.698860] print_report+0xcc/0x620 [ 52.699404] ? __virt_addr_valid+0x102/0x340 [ 52.700022] ? vma_interval_tree_remove+0xc75/0xec0 [ 52.700720] ? vma_interval_tree_remove+0xc75/0xec0 [ 52.701414] kasan_report+0xbe/0xf0 [ 52.701945] ? vma_interval_tree_remove+0xc75/0xec0 [ 52.702667] vma_interval_tree_remove+0xc75/0xec0 [ 52.703362] vma_prepare+0xc54/0x11a0 [ 52.703914] __split_vma+0x5af/0x950 [ 52.704470] ? __pfx___split_vma+0x10/0x10 [ 52.705085] ? find_held_lock+0x2c/0x110 [ 52.705701] do_vmi_align_munmap+0x2ba/0x11f0 [ 52.706369] ? lock_is_held_type+0x9f/0x120 [ 52.706999] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 52.707702] ? mtree_range_walk+0x632/0x900 [ 52.708339] ? mas_walk+0x5c7/0x7c0 [ 52.708895] do_vmi_munmap+0x1f1/0x2b0 [ 52.709470] mmap_region+0x1f9/0x2660 [ 52.710053] ? vm_mmap_pgoff+0x15c/0x3a0 [ 52.710648] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 52.711479] ? __pfx_lock_acquire+0x10/0x10 [ 52.712095] ? __pfx_mmap_region+0x10/0x10 [ 52.712713] ? security_mmap_addr+0x7d/0xa0 [ 52.713338] ? get_unmapped_area+0x1f5/0x3f0 [ 52.713996] do_mmap+0x854/0xf00 [ 52.714507] vm_mmap_pgoff+0x1a6/0x3a0 [ 52.715061] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 52.715694] ksys_mmap_pgoff+0x3af/0x500 [ 52.716261] do_syscall_64+0x3f/0x90 [ 52.716788] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 52.717506] RIP: 0033:0x7fba93cead82 [ 52.718030] 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 [ 52.720433] RSP: 002b:00007ffc995858e8 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 52.721444] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007fba93cead82 [ 52.722407] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007fba93124000 [ 52.723349] RBP: 00007fba93124000 R08: 0000000000000009 R09: 0000000000001000 [ 52.724306] R10: 0000000000000812 R11: 0000000000000206 R12: 000055fb67113d90 [ 52.725259] R13: 00007ffc99585900 R14: 00007ffc99585930 R15: 00007ffc99585c90 [ 52.726246] [ 52.726582] [ 52.726821] Allocated by task 213: [ 52.727303] kasan_save_stack+0x22/0x50 [ 52.727862] kasan_set_track+0x25/0x30 [ 52.728420] __kasan_slab_alloc+0x59/0x70 [ 52.729004] kmem_cache_alloc+0x16b/0x370 [ 52.729582] vm_area_dup+0x20/0x160 [ 52.730117] __split_vma+0x170/0x950 [ 52.730642] split_vma+0xc6/0x110 [ 52.731144] mprotect_fixup+0x8d2/0xb30 [ 52.731705] do_mprotect_pkey+0x87e/0xd40 [ 52.732275] __x64_sys_mprotect+0x78/0xc0 [ 52.732854] do_syscall_64+0x3f/0x90 [ 52.733379] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 52.734103] [ 52.734345] Freed by task 213: [ 52.734791] kasan_save_stack+0x22/0x50 [ 52.735357] kasan_set_track+0x25/0x30 [ 52.735911] kasan_save_free_info+0x2b/0x50 [ 52.736511] __kasan_slab_free+0x10a/0x190 [ 52.737116] kmem_cache_free+0x10d/0x4d0 [ 52.737685] rcu_core+0x8c8/0x2860 [ 52.738197] __do_softirq+0x1b7/0x7d4 [ 52.738737] [ 52.738968] Last potentially related work creation: [ 52.739612] kasan_save_stack+0x22/0x50 [ 52.740169] __kasan_record_aux_stack+0x8e/0xa0 [ 52.740789] __call_rcu_common.constprop.0+0x6a/0xb90 [ 52.741484] remove_vma+0x139/0x170 [ 52.741982] do_vmi_align_munmap+0xd4a/0x11f0 [ 52.742602] do_vmi_munmap+0x1f1/0x2b0 [ 52.743147] __vm_munmap+0x138/0x3a0 [ 52.743675] __x64_sys_munmap+0x59/0x80 [ 52.744230] do_syscall_64+0x3f/0x90 [ 52.744764] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 52.745481] [ 52.745725] The buggy address belongs to the object at ffff888019b9f000 [ 52.745725] which belongs to the cache vm_area_struct of size 168 [ 52.747420] The buggy address is located 88 bytes inside of [ 52.747420] freed 168-byte region [ffff888019b9f000, ffff888019b9f0a8) [ 52.749012] [ 52.749259] The buggy address belongs to the physical page: [ 52.750012] page:00000000470ebad6 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x19b9f [ 52.751214] memcg:ffff888019a5e501 [ 52.751679] flags: 0x100000000000200(slab|node=0|zone=1) [ 52.752363] page_type: 0xffffffff() [ 52.752857] raw: 0100000000000200 ffff88800879fc80 dead000000000122 0000000000000000 [ 52.753851] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff888019a5e501 [ 52.754844] page dumped because: kasan: bad access detected [ 52.755559] [ 52.755786] Memory state around the buggy address: [ 52.756406] ffff888019b9ef00: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc [ 52.757324] ffff888019b9ef80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 52.758263] >ffff888019b9f000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.759184] ^ [ 52.759973] ffff888019b9f080: fb fb fb fb fb fc fc fc fc fc fc fc fc fa fb fb [ 52.760901] ffff888019b9f100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.761817] ================================================================== [ 52.762957] Disabling lock debugging due to kernel taint [ 55.118452] BUG: Bad rss-counter state mm:00000000d1557ead type:MM_FILEPAGES val:33 [ 55.119562] BUG: Bad rss-counter state mm:00000000d1557ead type:MM_ANONPAGES val:22 [ 55.591552] BUG: Bad rss-counter state mm:0000000084b38f27 type:MM_FILEPAGES val:33 [ 55.592555] BUG: Bad rss-counter state mm:0000000084b38f27 type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:14609' (ECDSA) to the list of known hosts. 2023/06/20 06:20:09 fuzzer started 2023/06/20 06:20:09 dialing manager at localhost:44161 2023/06/20 06:20:09 checking machine... 2023/06/20 06:20:09 checking revisions... [ 56.328179] kmemleak: Automatic memory scanning thread ended 2023/06/20 06:20:09 testing simple program... [ 56.370062] cgroup: Unknown subsys name 'net' [ 56.411151] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 06:19:47 Registers: info registers vcpu 0 RAX=dffffc0000000000 RBX=0000000000000001 RCX=ffffffff86136de2 RDX=1ffff110028f4e4d RSI=0000000000000001 RDI=ffff8880147a7268 RBP=ffff8880147a7270 RSP=ffff8880147a71a8 R8 =ffffffff86136de6 R9 =ffff8880147a7258 R10=0000000000038001 R11=0000000000020c55 R12=ffff8880147a7278 R13=ffff8880147a7260 R14=0000000000000008 R15=ffff8880147a7218 RIP=ffffffff81131443 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 00007f9187169900 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=00007f918656d098 CR3=0000000009a88000 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=ffffffffffffffffffffffffffffffff XMM01=30306234386136303638616663356134 XMM02=38303062343861363036386166633561 XMM03=2f6c616e72756f6a2f676f6c2f6e7572 XMM04=e93eef08d951ddaa00000000000ae988 XMM05=8f77683ab33ffde10000000000135648 XMM06=19e9129bd510f23500000000001344e0 XMM07=00000000000000000000000000000000 XMM08=415453454d49545f454d49544c414552 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=0000000000000000 RBX=0000000000000001 RCX=ffffffff861476e4 RDX=0000000000000000 RSI=0000000000000001 RDI=0000000000000001 RBP=ffff88800f267ae8 RSP=ffff88800f267a20 R8 =ffffffff861476e8 R9 =ffff88800f267ad0 R10=0000000000038001 R11=0000000000023884 R12=ffff88800f267af0 R13=ffff88800f267ad8 R14=0000000000000005 R15=ffff88800f267a90 RIP=ffffffff81130b3f 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 00007f7999196900 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=00007ffdad7eb000 CR3=000000000d7bc000 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=635f6e6f69737365733a4d41503d706f XMM01=6f6c5f6d61702c78756e696c65735f6d XMM02=61702c74696d7265705f6d61702c7469 XMM03=655f6d61702c7374696d696c5f6d6170 XMM04=3d6c616e696d72657420322e322e302e XMM05=3d656d616e74736f682022646873732f XMM06=746f6f72223d746363612078756e696c XMM07=6e655f6d61702c7374696d696c5f6d61 XMM08=652075253d64692073253d706f000000 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000