syzkaller login: [ 102.509666] BUG: Bad rss-counter state mm:00000000ccb21cc0 type:MM_FILEPAGES val:33 [ 102.510686] BUG: Bad rss-counter state mm:00000000ccb21cc0 type:MM_ANONPAGES val:22 [ 102.681041] ================================================================== [ 102.681919] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 102.682805] Read of size 8 at addr ffff88801425bd08 by task sshd/219 [ 102.683526] [ 102.683745] CPU: 1 PID: 219 Comm: sshd Tainted: G L 6.4.0-rc7-next-20230619 #1 [ 102.684892] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 102.685830] Call Trace: [ 102.686135] [ 102.686406] dump_stack_lvl+0x91/0xf0 [ 102.686886] print_report+0xcc/0x620 [ 102.687348] ? __virt_addr_valid+0x102/0x340 [ 102.687872] ? vma_interval_tree_remove+0xc75/0xec0 [ 102.688454] ? vma_interval_tree_remove+0xc75/0xec0 [ 102.689038] kasan_report+0xbe/0xf0 [ 102.689499] ? vma_interval_tree_remove+0xc75/0xec0 [ 102.690091] vma_interval_tree_remove+0xc75/0xec0 [ 102.690663] vma_prepare+0xc54/0x11a0 [ 102.691134] __split_vma+0x5af/0x950 [ 102.691607] ? __pfx___split_vma+0x10/0x10 [ 102.692130] ? find_held_lock+0x2c/0x110 [ 102.692640] do_vmi_align_munmap+0x2ba/0x11f0 [ 102.693195] ? lock_is_held_type+0x9f/0x120 [ 102.693749] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 102.694360] ? mtree_range_walk+0x632/0x900 [ 102.694908] ? mas_walk+0x5c7/0x7c0 [ 102.695375] do_vmi_munmap+0x1f1/0x2b0 [ 102.695860] mmap_region+0x1f9/0x2660 [ 102.696336] ? vm_mmap_pgoff+0x15c/0x3a0 [ 102.696842] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 102.697561] ? __pfx_lock_acquire+0x10/0x10 [ 102.698089] ? __pfx_mmap_region+0x10/0x10 [ 102.698610] ? security_mmap_addr+0x7d/0xa0 [ 102.699140] ? get_unmapped_area+0x1f5/0x3f0 [ 102.699704] do_mmap+0x854/0xf00 [ 102.700137] vm_mmap_pgoff+0x1a6/0x3a0 [ 102.700633] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 102.701177] ksys_mmap_pgoff+0x3af/0x500 [ 102.701680] do_syscall_64+0x3f/0x90 [ 102.702151] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 102.702797] RIP: 0033:0x7f145e91bd82 [ 102.703254] 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 [ 102.705366] RSP: 002b:00007ffd09405a38 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 102.706280] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007f145e91bd82 [ 102.707112] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007f145dd55000 [ 102.707960] RBP: 00007f145dd55000 R08: 0000000000000009 R09: 0000000000001000 [ 102.708803] R10: 0000000000000812 R11: 0000000000000206 R12: 0000557eb0209ec0 [ 102.709660] R13: 00007ffd09405a50 R14: 00007ffd09405a80 R15: 00007ffd09405de0 [ 102.710519] [ 102.710814] [ 102.711028] Allocated by task 212: [ 102.711458] kasan_save_stack+0x22/0x50 [ 102.711951] kasan_set_track+0x25/0x30 [ 102.712446] __kasan_slab_alloc+0x59/0x70 [ 102.712970] kmem_cache_alloc+0x16b/0x370 [ 102.713486] vm_area_dup+0x20/0x160 [ 102.713940] __split_vma+0x170/0x950 [ 102.714410] split_vma+0xc6/0x110 [ 102.714846] mprotect_fixup+0x8d2/0xb30 [ 102.715348] do_mprotect_pkey+0x87e/0xd40 [ 102.715874] __x64_sys_mprotect+0x78/0xc0 [ 102.716389] do_syscall_64+0x3f/0x90 [ 102.716860] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 102.717514] [ 102.717728] Freed by task 212: [ 102.718113] kasan_save_stack+0x22/0x50 [ 102.718614] kasan_set_track+0x25/0x30 [ 102.719096] kasan_save_free_info+0x2b/0x50 [ 102.719637] __kasan_slab_free+0x10a/0x190 [ 102.720173] kmem_cache_free+0x10d/0x4d0 [ 102.720670] rcu_core+0x8c8/0x2860 [ 102.721105] __do_softirq+0x1b7/0x7d4 [ 102.721592] [ 102.721806] Last potentially related work creation: [ 102.722397] kasan_save_stack+0x22/0x50 [ 102.722891] __kasan_record_aux_stack+0x8e/0xa0 [ 102.723464] __call_rcu_common.constprop.0+0x6a/0xb90 [ 102.724099] remove_vma+0x139/0x170 [ 102.724549] do_vmi_align_munmap+0xd4a/0x11f0 [ 102.725104] do_vmi_munmap+0x1f1/0x2b0 [ 102.725599] __vm_munmap+0x138/0x3a0 [ 102.726070] __x64_sys_munmap+0x59/0x80 [ 102.726652] do_syscall_64+0x3f/0x90 [ 102.727118] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 102.727748] [ 102.727964] The buggy address belongs to the object at ffff88801425bcb0 [ 102.727964] which belongs to the cache vm_area_struct of size 168 [ 102.729428] The buggy address is located 88 bytes inside of [ 102.729428] freed 168-byte region [ffff88801425bcb0, ffff88801425bd58) [ 102.730856] [ 102.731070] The buggy address belongs to the physical page: [ 102.731728] page:00000000a8caa5ba refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1425b [ 102.732817] memcg:ffff88801610de01 [ 102.733244] flags: 0x100000000000200(slab|node=0|zone=1) [ 102.733889] page_type: 0xffffffff() [ 102.734337] raw: 0100000000000200 ffff88800879fc80 dead000000000122 0000000000000000 [ 102.735264] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff88801610de01 [ 102.736166] page dumped because: kasan: bad access detected [ 102.736824] [ 102.737036] Memory state around the buggy address: [ 102.737652] ffff88801425bc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc [ 102.738506] ffff88801425bc80: fc fc fc fc fc fc fa fb fb fb fb fb fb fb fb fb [ 102.739351] >ffff88801425bd00: fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc fc [ 102.740195] ^ [ 102.740628] ffff88801425bd80: fc fc fc fa fb fb fb fb fb fb fb fb fb fb fb fb [ 102.741486] ffff88801425be00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 102.742334] ================================================================== [ 102.743252] Disabling lock debugging due to kernel taint [ 105.365369] BUG: Bad rss-counter state mm:000000009ffc56fa type:MM_FILEPAGES val:33 [ 105.366548] BUG: Bad rss-counter state mm:000000009ffc56fa type:MM_ANONPAGES val:22 [ 105.896632] BUG: Bad rss-counter state mm:0000000001284bc8 type:MM_FILEPAGES val:33 [ 105.897857] BUG: Bad rss-counter state mm:0000000001284bc8 type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:6536' (ECDSA) to the list of known hosts. 2023/06/19 17:14:07 fuzzer started 2023/06/19 17:14:07 dialing manager at localhost:44161 2023/06/19 17:14:07 checking machine... 2023/06/19 17:14:07 checking revisions... [ 106.626160] kmemleak: Automatic memory scanning thread ended 2023/06/19 17:14:08 testing simple program... [ 106.690218] cgroup: Unknown subsys name 'net' [ 106.765955] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 17:13:03 Registers: info registers vcpu 0 RAX=ffffffff863b489a RBX=ffffffff85fa5708 RCX=ffffffff83655556 RDX=0000000000000000 RSI=ffffffff863b489a RDI=ffffffff85fa5708 RBP=ffffffff85fa570c RSP=ffff88800d917348 R8 =ffffffff863b489a R9 =ffff88800d917440 R10=0000000000038001 R11=000000000008b0cd R12=ffffffff85fa5708 R13=ffffffff85fa5708 R14=0000000000000000 R15=dffffc0000000000 RIP=ffffffff8112fcb3 RFL=00000256 [---ZAP-] 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 00007fc55df88900 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=00007fc55d4b5000 CR3=000000000c754000 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=e63b1fc2b10393b5d34efe642f7e211f XMM02=000000000012a500eff9b2d0a8fce9cb XMM03=000000000012a5d02c67c8bc2e329bc3 XMM04=7b7575dd207f0fae00000000000ae988 XMM05=134258ce325089940000000000141e48 XMM06=d3ba77103d44ffbc0000000000140ef0 XMM07=fb795ef6d65770560000000000130f18 XMM08=2c67c8bc2e329bc3000000000012a570 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=0000000000000000 RBX=0000000000000000 RCX=0000000000000000 RDX=0000000000000002 RSI=ffffffff844f03dd RDI=ffff888017f4fb0a RBP=ffff888017f4faf8 RSP=ffff888017f4fa90 R8 =0000000000000007 R9 =0000000000000002 R10=0000000000000000 R11=00000000000b6996 R12=ffff888009935d00 R13=dffffc0000000000 R14=0000000000000000 R15=0000000000000000 RIP=ffffffff844f2595 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 00007f9e8592d900 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=00007f9e85ee50b0 CR3=000000000f628000 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=2037303a34313a3731203931206e754a XMM01=73732878696e755f6d6170203a5d3932 XMM02=65736f6c63206e6f6973736573203a29 XMM03=755f6d6170203a5d3932325b64687373 XMM04=69662068637573206f4e203a656c6163 XMM05=3a656c696620766e65206e65706f206f XMM06=65733a6468737328766e655f6d617020 XMM07=6b7a79732037303a34313a3731203931 XMM08=3d656e696c646d632022656369767265 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000