syzkaller login: [ 31.263223] BUG: Bad rss-counter state mm:0000000090382df8 type:MM_FILEPAGES val:33 [ 31.264213] BUG: Bad rss-counter state mm:0000000090382df8 type:MM_ANONPAGES val:22 [ 31.423188] ================================================================== [ 31.424302] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 31.425453] Read of size 8 at addr ffff88800fca1df0 by task sshd/220 [ 31.426545] [ 31.426766] CPU: 1 PID: 220 Comm: sshd Not tainted 6.4.0-rc7-next-20230620 #1 [ 31.427636] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 31.428648] Call Trace: [ 31.428983] [ 31.429269] dump_stack_lvl+0x91/0xf0 [ 31.429767] print_report+0xcc/0x620 [ 31.430291] ? __virt_addr_valid+0x102/0x340 [ 31.430840] ? vma_interval_tree_remove+0xc75/0xec0 [ 31.431479] ? vma_interval_tree_remove+0xc75/0xec0 [ 31.432111] kasan_report+0xbe/0xf0 [ 31.432594] ? vma_interval_tree_remove+0xc75/0xec0 [ 31.433233] vma_interval_tree_remove+0xc75/0xec0 [ 31.433836] vma_prepare+0xc54/0x11a0 [ 31.434367] __split_vma+0x5af/0x950 [ 31.434838] ? __pfx___split_vma+0x10/0x10 [ 31.435384] ? find_held_lock+0x2c/0x110 [ 31.435909] do_vmi_align_munmap+0x2ba/0x11f0 [ 31.436486] ? lock_is_held_type+0x9f/0x120 [ 31.437040] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 31.437698] ? mtree_range_walk+0x632/0x900 [ 31.438454] ? mas_walk+0x5c7/0x7c0 [ 31.439097] do_vmi_munmap+0x1f1/0x2b0 [ 31.439762] mmap_region+0x1f9/0x2660 [ 31.440410] ? vm_mmap_pgoff+0x15c/0x3a0 [ 31.441113] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 31.442072] ? __pfx_lock_acquire+0x10/0x10 [ 31.442735] ? __pfx_mmap_region+0x10/0x10 [ 31.443285] ? security_mmap_addr+0x7d/0xa0 [ 31.443812] ? get_unmapped_area+0x1f5/0x3f0 [ 31.444378] do_mmap+0x854/0xf00 [ 31.444824] vm_mmap_pgoff+0x1a6/0x3a0 [ 31.445335] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 31.445896] ksys_mmap_pgoff+0x3af/0x500 [ 31.446444] do_syscall_64+0x3f/0x90 [ 31.446930] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 31.447598] RIP: 0033:0x7fcc2ff7ad82 [ 31.448069] 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 [ 31.450248] RSP: 002b:00007ffdd6b874c8 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 31.451222] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007fcc2ff7ad82 [ 31.452092] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007fcc2f3b4000 [ 31.452951] RBP: 00007fcc2f3b4000 R08: 0000000000000009 R09: 0000000000001000 [ 31.453825] R10: 0000000000000812 R11: 0000000000000206 R12: 0000562201ec1f70 [ 31.454710] R13: 00007ffdd6b874e0 R14: 00007ffdd6b87510 R15: 00007ffdd6b87870 [ 31.455590] [ 31.455888] [ 31.456125] Allocated by task 213: [ 31.456553] kasan_save_stack+0x22/0x50 [ 31.457084] kasan_set_track+0x25/0x30 [ 31.457577] __kasan_slab_alloc+0x59/0x70 [ 31.458136] kmem_cache_alloc+0x16b/0x370 [ 31.458665] vm_area_dup+0x20/0x160 [ 31.459139] __split_vma+0x170/0x950 [ 31.459604] split_vma+0xc6/0x110 [ 31.460074] mprotect_fixup+0x8d2/0xb30 [ 31.460582] do_mprotect_pkey+0x87e/0xd40 [ 31.461122] __x64_sys_mprotect+0x78/0xc0 [ 31.461646] do_syscall_64+0x3f/0x90 [ 31.462149] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 31.462817] [ 31.463052] Freed by task 19: [ 31.463435] kasan_save_stack+0x22/0x50 [ 31.463950] kasan_set_track+0x25/0x30 [ 31.464465] kasan_save_free_info+0x2b/0x50 [ 31.465021] __kasan_slab_free+0x10a/0x190 [ 31.465557] kmem_cache_free+0x10d/0x4d0 [ 31.466102] rcu_core+0x8c8/0x2860 [ 31.466563] __do_softirq+0x1b7/0x7d4 [ 31.467077] [ 31.467363] Last potentially related work creation: [ 31.467961] kasan_save_stack+0x22/0x50 [ 31.468472] __kasan_record_aux_stack+0x8e/0xa0 [ 31.469067] __call_rcu_common.constprop.0+0x6a/0xb90 [ 31.469716] remove_vma+0x139/0x170 [ 31.470194] do_vmi_align_munmap+0xd4a/0x11f0 [ 31.470776] do_vmi_munmap+0x1f1/0x2b0 [ 31.471288] __vm_munmap+0x138/0x3a0 [ 31.471757] __x64_sys_munmap+0x59/0x80 [ 31.472278] do_syscall_64+0x3f/0x90 [ 31.472769] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 31.473435] [ 31.473651] The buggy address belongs to the object at ffff88800fca1d98 [ 31.473651] which belongs to the cache vm_area_struct of size 168 [ 31.475186] The buggy address is located 88 bytes inside of [ 31.475186] freed 168-byte region [ffff88800fca1d98, ffff88800fca1e40) [ 31.476612] [ 31.476828] The buggy address belongs to the physical page: [ 31.477512] page:0000000080e381ad refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xfca1 [ 31.478637] memcg:ffff888019a7ba01 [ 31.479085] flags: 0x100000000000200(slab|node=0|zone=1) [ 31.479737] page_type: 0xffffffff() [ 31.480199] raw: 0100000000000200 ffff8880087a0c80 dead000000000122 0000000000000000 [ 31.481152] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff888019a7ba01 [ 31.482096] page dumped because: kasan: bad access detected [ 31.482787] [ 31.483021] Memory state around the buggy address: [ 31.483599] ffff88800fca1c80: fc fc fc fc fc fc 00 00 00 00 00 00 00 00 00 00 [ 31.484466] ffff88800fca1d00: 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc [ 31.485337] >ffff88800fca1d80: fc fc fc fa fb fb fb fb fb fb fb fb fb fb fb fb [ 31.486216] ^ [ 31.487058] ffff88800fca1e00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 31.487912] ffff88800fca1e80: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.488771] ================================================================== [ 31.489722] Disabling lock debugging due to kernel taint [ 34.300903] BUG: Bad rss-counter state mm:00000000472963a3 type:MM_FILEPAGES val:33 [ 34.302170] BUG: Bad rss-counter state mm:00000000472963a3 type:MM_ANONPAGES val:22 [ 34.758927] BUG: Bad rss-counter state mm:00000000281c9065 type:MM_FILEPAGES val:33 [ 34.760118] BUG: Bad rss-counter state mm:00000000281c9065 type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:10720' (ECDSA) to the list of known hosts. 2023/06/20 17:23:40 fuzzer started 2023/06/20 17:23:40 dialing manager at localhost:36067 2023/06/20 17:23:40 checking machine... 2023/06/20 17:23:40 checking revisions... [ 35.385726] kmemleak: Automatic memory scanning thread ended 2023/06/20 17:23:40 testing simple program... [ 35.432609] cgroup: Unknown subsys name 'net' [ 35.470474] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 17:23:39 Registers: info registers vcpu 0 RAX=1ffffffff0c77161 RBX=0000000000000001 RCX=ffffffff863b8b0a RDX=0000000000000001 RSI=dffffc0000000000 RDI=ffffffff863b8b0c RBP=ffff888015c87480 RSP=ffff888015c873b8 R8 =ffffffff863b8b0e R9 =ffff888015c87468 R10=0000000000038001 R11=000000000008b7ab R12=ffff888015c87488 R13=ffff888015c87470 R14=ffff888015c879a0 R15=ffff888015c87428 RIP=ffffffff811311c3 RFL=00000213 [----A-C] 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 00007fbe70b98900 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=00007fbe7000d160 CR3=000000000f626000 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=b41d4a5150df80a46a4d410711c32375 XMM02=000000000011a038d59e07bde36eea69 XMM03=000000000011a160ec2efd57dc4c00df XMM04=60ca301d5aa8d6ad00000000000ae988 XMM05=2f3d074380fe03820000000000132658 XMM06=4fda316b135da52b00000000001316f8 XMM07=fb795ef6d65770560000000000121a28 XMM08=2c67c8bc2e329bc3000000000011a160 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=0000000000000000 RBX=ffff88806cf09b40 RCX=0000000000000001 RDX=1ffff1100d9e136a RSI=ffffffff81809add RDI=ffff88806cf09b50 RBP=ffff88806cf09b10 RSP=ffff88806cf09a58 R8 =0000000000000001 R9 =ffff88806cf09ab8 R10=0000000000038001 R11=0000000000020db7 R12=ffff88806cf09b40 R13=0000000000000000 R14=ffff888015ec51c0 R15=ffff88800fae0e00 RIP=ffffffff813ad496 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 00007fc1f7905900 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=00007fc1f7ebc618 CR3=000000000e2d0000 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=6e69676f6c5f6d61702c78756e696c65 XMM02=755f6d61702c74696d7265705f6d6170 XMM03=2c766e655f6d61702c7374696d696c5f XMM04=6d61702c766e655f6d61702c7374696d XMM05=78696e755f6d61702c74696d7265705f XMM06=6469756e69676f6c5f6d61702c78756e XMM07=672065736f6c635f6e6f69737365733a XMM08=61662029286e65706f5f746964756100 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000