syzkaller login: [ 78.997051] BUG: Bad rss-counter state mm:0000000015b92010 type:MM_FILEPAGES val:33 [ 78.998167] BUG: Bad rss-counter state mm:0000000015b92010 type:MM_ANONPAGES val:22 [ 79.142358] ================================================================== [ 79.143424] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 79.144559] Read of size 8 at addr ffff88800e8a8d08 by task sshd/220 [ 79.145677] [ 79.145967] CPU: 1 PID: 220 Comm: sshd Tainted: G L 6.4.0-rc7-next-20230619 #1 [ 79.147114] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 79.148239] Call Trace: [ 79.148593] [ 79.148916] dump_stack_lvl+0x91/0xf0 [ 79.149455] print_report+0xcc/0x620 [ 79.149983] ? __virt_addr_valid+0x102/0x340 [ 79.150598] ? vma_interval_tree_remove+0xc75/0xec0 [ 79.151286] ? vma_interval_tree_remove+0xc75/0xec0 [ 79.151998] kasan_report+0xbe/0xf0 [ 79.152512] ? vma_interval_tree_remove+0xc75/0xec0 [ 79.153187] vma_interval_tree_remove+0xc75/0xec0 [ 79.153845] vma_prepare+0xc54/0x11a0 [ 79.154366] __split_vma+0x5af/0x950 [ 79.154876] ? __pfx___split_vma+0x10/0x10 [ 79.155443] ? find_held_lock+0x2c/0x110 [ 79.156050] do_vmi_align_munmap+0x2ba/0x11f0 [ 79.156672] ? lock_is_held_type+0x9f/0x120 [ 79.157259] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 79.157946] ? mtree_range_walk+0x632/0x900 [ 79.158553] ? mas_walk+0x5c7/0x7c0 [ 79.159077] do_vmi_munmap+0x1f1/0x2b0 [ 79.159641] mmap_region+0x1f9/0x2660 [ 79.160170] ? vm_mmap_pgoff+0x15c/0x3a0 [ 79.160724] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 79.161502] ? __pfx_lock_acquire+0x10/0x10 [ 79.162087] ? __pfx_mmap_region+0x10/0x10 [ 79.162674] ? security_mmap_addr+0x7d/0xa0 [ 79.163257] ? get_unmapped_area+0x1f5/0x3f0 [ 79.163885] do_mmap+0x854/0xf00 [ 79.164363] vm_mmap_pgoff+0x1a6/0x3a0 [ 79.164904] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 79.165507] ksys_mmap_pgoff+0x3af/0x500 [ 79.166066] do_syscall_64+0x3f/0x90 [ 79.166586] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 79.167296] RIP: 0033:0x7f8ccae9bd82 [ 79.167829] 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 [ 79.170160] RSP: 002b:00007ffd612ae4d8 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 79.171154] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007f8ccae9bd82 [ 79.172109] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007f8cca2d5000 [ 79.173045] RBP: 00007f8cca2d5000 R08: 0000000000000009 R09: 0000000000001000 [ 79.173980] R10: 0000000000000812 R11: 0000000000000206 R12: 000055bccb24eec0 [ 79.174915] R13: 00007ffd612ae4f0 R14: 00007ffd612ae520 R15: 00007ffd612ae880 [ 79.175888] [ 79.176210] [ 79.176447] Allocated by task 213: [ 79.176915] kasan_save_stack+0x22/0x50 [ 79.177465] kasan_set_track+0x25/0x30 [ 79.177999] __kasan_slab_alloc+0x59/0x70 [ 79.178576] kmem_cache_alloc+0x16b/0x370 [ 79.179149] vm_area_dup+0x20/0x160 [ 79.179673] __split_vma+0x170/0x950 [ 79.180194] split_vma+0xc6/0x110 [ 79.180675] mprotect_fixup+0x8d2/0xb30 [ 79.181225] do_mprotect_pkey+0x87e/0xd40 [ 79.181797] __x64_sys_mprotect+0x78/0xc0 [ 79.182368] do_syscall_64+0x3f/0x90 [ 79.182889] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 79.183608] [ 79.183853] Freed by task 213: [ 79.184283] kasan_save_stack+0x22/0x50 [ 79.184839] kasan_set_track+0x25/0x30 [ 79.185384] kasan_save_free_info+0x2b/0x50 [ 79.185966] __kasan_slab_free+0x10a/0x190 [ 79.186608] kmem_cache_free+0x10d/0x4d0 [ 79.187172] rcu_core+0x8c8/0x2860 [ 79.187693] __do_softirq+0x1b7/0x7d4 [ 79.188221] [ 79.188461] Last potentially related work creation: [ 79.189104] kasan_save_stack+0x22/0x50 [ 79.189666] __kasan_record_aux_stack+0x8e/0xa0 [ 79.190296] __call_rcu_common.constprop.0+0x6a/0xb90 [ 79.191000] remove_vma+0x139/0x170 [ 79.191493] do_vmi_align_munmap+0xd4a/0x11f0 [ 79.192136] do_vmi_munmap+0x1f1/0x2b0 [ 79.192676] __vm_munmap+0x138/0x3a0 [ 79.193192] __x64_sys_munmap+0x59/0x80 [ 79.193738] do_syscall_64+0x3f/0x90 [ 79.194257] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 79.194957] [ 79.195193] The buggy address belongs to the object at ffff88800e8a8cb0 [ 79.195193] which belongs to the cache vm_area_struct of size 168 [ 79.196891] The buggy address is located 88 bytes inside of [ 79.196891] freed 168-byte region [ffff88800e8a8cb0, ffff88800e8a8d58) [ 79.198481] [ 79.198730] The buggy address belongs to the physical page: [ 79.199469] page:000000005ea911e3 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xe8a8 [ 79.200725] memcg:ffff888018264c01 [ 79.201224] flags: 0x100000000000200(slab|node=0|zone=1) [ 79.201951] page_type: 0xffffffff() [ 79.202455] raw: 0100000000000200 ffff88800879fc80 dead000000000122 0000000000000000 [ 79.203497] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff888018264c01 [ 79.204539] page dumped because: kasan: bad access detected [ 79.205295] [ 79.205541] Memory state around the buggy address: [ 79.206184] ffff88800e8a8c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc [ 79.207143] ffff88800e8a8c80: fc fc fc fc fc fc fa fb fb fb fb fb fb fb fb fb [ 79.208153] >ffff88800e8a8d00: fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc fc [ 79.209120] ^ [ 79.209607] ffff88800e8a8d80: fc fc fc fa fb fb fb fb fb fb fb fb fb fb fb fb [ 79.210581] ffff88800e8a8e00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 79.211547] ================================================================== [ 79.212615] Disabling lock debugging due to kernel taint [ 81.306806] BUG: Bad rss-counter state mm:00000000609dd432 type:MM_FILEPAGES val:33 [ 81.307602] BUG: Bad rss-counter state mm:00000000609dd432 type:MM_ANONPAGES val:22 [ 81.728796] BUG: Bad rss-counter state mm:00000000e0eb5d1c type:MM_FILEPAGES val:33 [ 81.729544] BUG: Bad rss-counter state mm:00000000e0eb5d1c type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:37045' (ECDSA) to the list of known hosts. 2023/06/19 13:11:23 fuzzer started 2023/06/19 13:11:23 dialing manager at localhost:44161 2023/06/19 13:11:23 checking machine... 2023/06/19 13:11:23 checking revisions... [ 82.343971] kmemleak: Automatic memory scanning thread ended 2023/06/19 13:11:23 testing simple program... [ 82.389213] cgroup: Unknown subsys name 'net' [ 82.424742] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 13:10:34 Registers: info registers vcpu 0 RAX=0000000000000000 RBX=ffffffff8661f20f RCX=0000000000000100 RDX=ffffffff8542a6c0 RSI=ffffffff813a0a74 RDI=ffffffff8661f20f RBP=ffffffff8661f20f RSP=ffff88806ce09a08 R8 =0000000000000007 R9 =ffffffffff600000 R10=ffffffff8661f000 R11=00000000000b5420 R12=ffff88806ce09b40 R13=0000000000000000 R14=ffffffff8542a6c0 R15=ffff88800f074300 RIP=ffffffff813a0a7b RFL=00000282 [--S----] 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=00007ffce2aca2d8 CR3=000000000e16c000 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=2032323a31313a3331203931206e754a XMM01=73732878696e755f6d6170203a5d3932 XMM02=65736f6c63206e6f6973736573203a29 XMM03=755f6d6170203a5d3932325b64687373 XMM04=69662068637573206f4e203a656c6163 XMM05=3a656c696620766e65206e65706f206f XMM06=65733a6468737328766e655f6d617020 XMM07=6b7a79732032323a31313a3331203931 XMM08=3d656e696c646d632022656369767265 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=0000000000000000 RBX=0000000000000001 RCX=ffffffff84494137 RDX=ffff888016799b40 RSI=0000000000000000 RDI=0000000000000006 RBP=000000000001c000 RSP=ffff88800c66f0e0 R8 =0000000000000006 R9 =0000299260f30000 R10=000000000001c000 R11=ffff88800c56500c R12=dffffc0000000000 R13=0000299260f30000 R14=ffff88800c66f768 R15=0000000000000006 RIP=ffffffff814c07e0 RFL=00000206 [-----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 00007f99ad379900 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=00007f99ad358020 CR3=000000000e804000 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=652022746f6f72223d74636361207469 XMM02=3d6c616e696d72657420322e322e302e XMM03=3d656d616e74736f682022646873732f XMM04=40404040404040404040404040404040 XMM05=5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a XMM06=20202020202020202020202020202020 XMM07=00000000000000000000000000000000 XMM08=652075253d64692073253d706f000000 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000