syzkaller login: [ 89.238404] BUG: Bad rss-counter state mm:00000000f6d51f9e type:MM_FILEPAGES val:33 [ 89.239661] BUG: Bad rss-counter state mm:00000000f6d51f9e type:MM_ANONPAGES val:22 [ 89.325480] ================================================================== [ 89.326422] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 89.327415] Read of size 8 at addr ffff8880159bfed8 by task sshd/227 [ 89.328227] [ 89.328458] CPU: 1 PID: 227 Comm: sshd Not tainted 6.4.0-rc7-next-20230620 #1 [ 89.329453] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 89.330465] Call Trace: [ 89.330841] [ 89.331137] dump_stack_lvl+0x91/0xf0 [ 89.331651] print_report+0xcc/0x620 [ 89.332163] ? __virt_addr_valid+0x102/0x340 [ 89.332741] ? vma_interval_tree_remove+0xc75/0xec0 [ 89.333382] ? vma_interval_tree_remove+0xc75/0xec0 [ 89.334031] kasan_report+0xbe/0xf0 [ 89.334530] ? vma_interval_tree_remove+0xc75/0xec0 [ 89.335186] vma_interval_tree_remove+0xc75/0xec0 [ 89.335819] vma_prepare+0xc54/0x11a0 [ 89.336325] __split_vma+0x5af/0x950 [ 89.336825] ? __pfx___split_vma+0x10/0x10 [ 89.337375] ? find_held_lock+0x2c/0x110 [ 89.337910] do_vmi_align_munmap+0x2ba/0x11f0 [ 89.338503] ? lock_is_held_type+0x9f/0x120 [ 89.339089] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 89.339723] ? mtree_range_walk+0x632/0x900 [ 89.340296] ? mas_walk+0x5c7/0x7c0 [ 89.340790] do_vmi_munmap+0x1f1/0x2b0 [ 89.341303] mmap_region+0x1f9/0x2660 [ 89.341803] ? vm_mmap_pgoff+0x15c/0x3a0 [ 89.342349] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 89.343094] ? __pfx_lock_acquire+0x10/0x10 [ 89.343648] ? __pfx_mmap_region+0x10/0x10 [ 89.344206] ? security_mmap_addr+0x7d/0xa0 [ 89.344756] ? get_unmapped_area+0x1f5/0x3f0 [ 89.345327] do_mmap+0x854/0xf00 [ 89.345788] vm_mmap_pgoff+0x1a6/0x3a0 [ 89.346312] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 89.346910] ksys_mmap_pgoff+0x3af/0x500 [ 89.347430] do_syscall_64+0x3f/0x90 [ 89.347935] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 89.348615] RIP: 0033:0x7fe030325d82 [ 89.349094] 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 [ 89.351346] RSP: 002b:00007ffd9a01c908 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 89.352314] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007fe030325d82 [ 89.353218] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007fe02f75f000 [ 89.354103] RBP: 00007fe02f75f000 R08: 0000000000000009 R09: 0000000000001000 [ 89.354976] R10: 0000000000000812 R11: 0000000000000206 R12: 0000558d5c12fec0 [ 89.355822] R13: 00007ffd9a01c920 R14: 00007ffd9a01c950 R15: 00007ffd9a01ccb0 [ 89.356683] [ 89.356977] [ 89.357195] Allocated by task 220: [ 89.357632] kasan_save_stack+0x22/0x50 [ 89.358134] kasan_set_track+0x25/0x30 [ 89.358637] __kasan_slab_alloc+0x59/0x70 [ 89.359164] kmem_cache_alloc+0x16b/0x370 [ 89.359678] vm_area_dup+0x20/0x160 [ 89.360131] __split_vma+0x170/0x950 [ 89.360599] split_vma+0xc6/0x110 [ 89.361035] mprotect_fixup+0x8d2/0xb30 [ 89.361538] do_mprotect_pkey+0x87e/0xd40 [ 89.362065] __x64_sys_mprotect+0x78/0xc0 [ 89.362615] do_syscall_64+0x3f/0x90 [ 89.363095] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 89.363755] [ 89.363988] Freed by task 204: [ 89.364410] kasan_save_stack+0x22/0x50 [ 89.364941] kasan_set_track+0x25/0x30 [ 89.365471] kasan_save_free_info+0x2b/0x50 [ 89.366050] __kasan_slab_free+0x10a/0x190 [ 89.366632] kmem_cache_free+0x10d/0x4d0 [ 89.367177] rcu_core+0x8c8/0x2860 [ 89.367655] __do_softirq+0x1b7/0x7d4 [ 89.368172] [ 89.368401] Last potentially related work creation: [ 89.369037] kasan_save_stack+0x22/0x50 [ 89.369644] __kasan_record_aux_stack+0x8e/0xa0 [ 89.370253] __call_rcu_common.constprop.0+0x6a/0xb90 [ 89.370962] remove_vma+0x139/0x170 [ 89.371436] do_vmi_align_munmap+0xd4a/0x11f0 [ 89.372014] do_vmi_munmap+0x1f1/0x2b0 [ 89.372527] __vm_munmap+0x138/0x3a0 [ 89.373014] __x64_sys_munmap+0x59/0x80 [ 89.373535] do_syscall_64+0x3f/0x90 [ 89.374031] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 89.374717] [ 89.374939] The buggy address belongs to the object at ffff8880159bfe80 [ 89.374939] which belongs to the cache vm_area_struct of size 168 [ 89.376479] The buggy address is located 88 bytes inside of [ 89.376479] freed 168-byte region [ffff8880159bfe80, ffff8880159bff28) [ 89.377951] [ 89.378181] The buggy address belongs to the physical page: [ 89.378882] page:0000000082615a3d refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x159bf [ 89.380034] memcg:ffff8880164b6c01 [ 89.380480] flags: 0x100000000000200(slab|node=0|zone=1) [ 89.381161] page_type: 0xffffffff() [ 89.381629] raw: 0100000000000200 ffff8880087a0c80 dead000000000122 0000000000000000 [ 89.382616] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff8880164b6c01 [ 89.383571] page dumped because: kasan: bad access detected [ 89.384257] [ 89.384482] Memory state around the buggy address: [ 89.385089] ffff8880159bfd80: fc fc fc 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 89.385985] ffff8880159bfe00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 89.386891] >ffff8880159bfe80: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 89.387778] ^ [ 89.388550] ffff8880159bff00: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc [ 89.389444] ffff8880159bff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 89.390339] ================================================================== [ 89.391431] Disabling lock debugging due to kernel taint [ 91.591314] BUG: Bad rss-counter state mm:0000000070e2824b type:MM_FILEPAGES val:33 [ 91.592495] BUG: Bad rss-counter state mm:0000000070e2824b type:MM_ANONPAGES val:22 [ 91.999988] BUG: Bad rss-counter state mm:000000007de7816d type:MM_FILEPAGES val:33 [ 92.001166] BUG: Bad rss-counter state mm:000000007de7816d type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:53061' (ECDSA) to the list of known hosts. 2023/06/20 17:59:56 fuzzer started 2023/06/20 17:59:57 dialing manager at localhost:36067 2023/06/20 17:59:57 checking machine... 2023/06/20 17:59:57 checking revisions... [ 92.708292] kmemleak: Automatic memory scanning thread ended 2023/06/20 17:59:57 testing simple program... [ 92.762351] cgroup: Unknown subsys name 'net' [ 92.808414] cgroup: Unknown subsys name 'rlimit' executing program [ 96.247843] kmemleak: 2 new suspected memory leaks (see /sys/kernel/debug/kmemleak) executing program executing program VM DIAGNOSIS: 17:59:56 Registers: info registers vcpu 0 RAX=0000000000000001 RBX=ffffffff813ad470 RCX=ffffffff860a1401 RDX=1ffff1100d9c1382 RSI=ffffffff8451105e RDI=ffff88806ce09a98 RBP=ffff88806ce09b30 RSP=ffff88806ce09a98 R8 =ffffffff860a1444 R9 =ffff88806ce09ad8 R10=0000000000038001 R11=000000000000792d R12=ffff88806ce09b60 R13=0000000000000000 R14=ffffffff8542a6c0 R15=ffff88800de7b8d0 RIP=ffffffff810bd052 RFL=00000202 [-------] 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=00007ffd6f1f7438 CR3=0000000005482000 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=00007ff1d2066510000055913c0c6790 XMM02=6f6974707972636e6561737268746977 XMM03=00000000000000000000000000777074 XMM04=40404040404040404040404040404040 XMM05=5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a XMM06=20202020202020202020202020202020 XMM07=ffffffffffff00ffffff00ffffff00ff XMM08=00002000000000202020002020200000 XMM09=ffffffffffff00ffffff00ffffff00ff XMM10=00002000000000202020002020200000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=0000000000000000 RBX=0000000000000255 RCX=ffffffff8171ad2d RDX=ffff888016f8d1c0 RSI=0000000000000000 RDI=0000000000000005 RBP=ffff88800e098488 RSP=ffff888016637e70 R8 =0000000000000005 R9 =0000000000000000 R10=0000000000000000 R11=0000000000000000 R12=0000000000000000 R13=00007fdf239a7044 R14=ffff88800e098498 R15=ffff888008458940 RIP=ffffffff814c027c 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 =0000 0000000000000000 00000000 00000000 DS =0000 0000000000000000 00000000 00000000 FS =0000 00007fdf22e53900 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=00007fdf239a7044 CR3=000000000f144000 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=00000000000000000000000000000000 XMM02=b4edbdf47a82b66d212dcde701c9245a XMM03=4f82410bfd389fa00916ef5af0c2f7c8 XMM04=74c9741a035021636de6e482bd78a618 XMM05=00000000000000000000000000000000 XMM06=4f82410b033821630916e45abd78a618 XMM07=672065736f6c635f6e6f69737365733a XMM08=652075253d64692073253d706f000000 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000