[ 33.748626] sshd (213) used greatest stack depth: 24424 bytes left [ 33.749758] BUG: Bad rss-counter state mm:00000000ea6ffec3 type:MM_FILEPAGES val:33 [ 33.751443] BUG: Bad rss-counter state mm:00000000ea6ffec3 type:MM_ANONPAGES val:22 [ 33.916687] ================================================================== [ 33.917605] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 33.918534] Read of size 8 at addr ffff88800ca51d08 by task sshd/220 [ 33.919303] [ 33.919520] CPU: 0 PID: 220 Comm: sshd Not tainted 6.4.0-rc7-next-20230619 #1 [ 33.920476] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 33.921475] Call Trace: [ 33.921792] [ 33.922073] dump_stack_lvl+0x91/0xf0 [ 33.922560] print_report+0xcc/0x620 [ 33.923039] ? __virt_addr_valid+0x102/0x340 [ 33.923588] ? vma_interval_tree_remove+0xc75/0xec0 [ 33.924207] ? vma_interval_tree_remove+0xc75/0xec0 [ 33.924830] kasan_report+0xbe/0xf0 [ 33.925312] ? vma_interval_tree_remove+0xc75/0xec0 [ 33.925933] vma_interval_tree_remove+0xc75/0xec0 [ 33.926542] vma_prepare+0xc54/0x11a0 [ 33.927021] __split_vma+0x5af/0x950 [ 33.927488] ? __pfx___split_vma+0x10/0x10 [ 33.928025] ? find_held_lock+0x2c/0x110 [ 33.928545] do_vmi_align_munmap+0x2ba/0x11f0 [ 33.929111] ? lock_is_held_type+0x9f/0x120 [ 33.929662] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 33.930271] ? mtree_range_walk+0x632/0x900 [ 33.930821] ? mas_walk+0x5c7/0x7c0 [ 33.931293] do_vmi_munmap+0x1f1/0x2b0 [ 33.931791] mmap_region+0x1f9/0x2660 [ 33.932273] ? vm_mmap_pgoff+0x15c/0x3a0 [ 33.932784] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 33.933518] ? __pfx_lock_acquire+0x10/0x10 [ 33.934063] ? __pfx_mmap_region+0x10/0x10 [ 33.934594] ? security_mmap_addr+0x7d/0xa0 [ 33.935124] ? get_unmapped_area+0x1f5/0x3f0 [ 33.935673] do_mmap+0x854/0xf00 [ 33.936120] vm_mmap_pgoff+0x1a6/0x3a0 [ 33.936621] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 33.937183] ksys_mmap_pgoff+0x3af/0x500 [ 33.937702] do_syscall_64+0x3f/0x90 [ 33.938179] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 33.938833] RIP: 0033:0x7f372403bd82 [ 33.939291] 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 [ 33.941441] RSP: 002b:00007ffff1f6c158 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 33.942361] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007f372403bd82 [ 33.943212] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007f3723475000 [ 33.944079] RBP: 00007f3723475000 R08: 0000000000000009 R09: 0000000000001000 [ 33.944923] R10: 0000000000000812 R11: 0000000000000206 R12: 00005558588c3ec0 [ 33.945783] R13: 00007ffff1f6c170 R14: 00007ffff1f6c1a0 R15: 00007ffff1f6c500 [ 33.946645] [ 33.946940] [ 33.947157] Allocated by task 213: [ 33.947587] kasan_save_stack+0x22/0x50 [ 33.948101] kasan_set_track+0x25/0x30 [ 33.948596] __kasan_slab_alloc+0x59/0x70 [ 33.949129] kmem_cache_alloc+0x16b/0x370 [ 33.949675] vm_area_dup+0x20/0x160 [ 33.950133] __split_vma+0x170/0x950 [ 33.950609] split_vma+0xc6/0x110 [ 33.951046] mprotect_fixup+0x8d2/0xb30 [ 33.951551] do_mprotect_pkey+0x87e/0xd40 [ 33.952067] __x64_sys_mprotect+0x78/0xc0 [ 33.952590] do_syscall_64+0x3f/0x90 [ 33.953064] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 33.953718] [ 33.953930] Freed by task 213: [ 33.954316] kasan_save_stack+0x22/0x50 [ 33.954813] kasan_set_track+0x25/0x30 [ 33.955301] kasan_save_free_info+0x2b/0x50 [ 33.955831] __kasan_slab_free+0x10a/0x190 [ 33.956353] kmem_cache_free+0x10d/0x4d0 [ 33.956853] rcu_core+0x8c8/0x2860 [ 33.957301] __do_softirq+0x1b7/0x7d4 [ 33.957776] [ 33.957989] Last potentially related work creation: [ 33.958566] kasan_save_stack+0x22/0x50 [ 33.959062] __kasan_record_aux_stack+0x8e/0xa0 [ 33.959638] __call_rcu_common.constprop.0+0x6a/0xb90 [ 33.960278] remove_vma+0x139/0x170 [ 33.960730] do_vmi_align_munmap+0xd4a/0x11f0 [ 33.961300] do_vmi_munmap+0x1f1/0x2b0 [ 33.961780] __vm_munmap+0x138/0x3a0 [ 33.962246] __x64_sys_munmap+0x59/0x80 [ 33.962743] do_syscall_64+0x3f/0x90 [ 33.963217] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 33.963858] [ 33.964069] Second to last potentially related work creation: [ 33.964745] kasan_save_stack+0x22/0x50 [ 33.965258] __kasan_record_aux_stack+0x8e/0xa0 [ 33.965835] __call_rcu_common.constprop.0+0x6a/0xb90 [ 33.966469] remove_vma+0x139/0x170 [ 33.966916] do_vmi_align_munmap+0xd4a/0x11f0 [ 33.967472] do_vmi_munmap+0x1f1/0x2b0 [ 33.967957] mmap_region+0x1f9/0x2660 [ 33.968429] do_mmap+0x854/0xf00 [ 33.968859] vm_mmap_pgoff+0x1a6/0x3a0 [ 33.969345] ksys_mmap_pgoff+0x3af/0x500 [ 33.969848] do_syscall_64+0x3f/0x90 [ 33.970316] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 33.970954] [ 33.971169] The buggy address belongs to the object at ffff88800ca51cb0 [ 33.971169] which belongs to the cache vm_area_struct of size 168 [ 33.972634] The buggy address is located 88 bytes inside of [ 33.972634] freed 168-byte region [ffff88800ca51cb0, ffff88800ca51d58) [ 33.974045] [ 33.974259] The buggy address belongs to the physical page: [ 33.974910] page:00000000bdfb6847 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xca51 [ 33.975986] memcg:ffff88800cb06301 [ 33.976410] flags: 0x100000000000200(slab|node=0|zone=1) [ 33.977053] page_type: 0xffffffff() [ 33.977504] raw: 0100000000000200 ffff88800879fc80 ffffea0000369240 dead000000000008 [ 33.978417] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff88800cb06301 [ 33.979313] page dumped because: kasan: bad access detected [ 33.979974] [ 33.980186] Memory state around the buggy address: [ 33.980766] ffff88800ca51c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc [ 33.981630] ffff88800ca51c80: fc fc fc fc fc fc fa fb fb fb fb fb fb fb fb fb [ 33.982483] >ffff88800ca51d00: fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc fc [ 33.983332] ^ [ 33.983760] ffff88800ca51d80: fc fc fc 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.984597] ffff88800ca51e00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 33.985441] ================================================================== [ 33.986412] Disabling lock debugging due to kernel taint Debian GNU/Linux 11 syzkaller ttyS0 syzkaller login: [ 36.361385] BUG: Bad rss-counter state mm:00000000ab964c66 type:MM_FILEPAGES val:33 [ 36.362633] BUG: Bad rss-counter state mm:00000000ab964c66 type:MM_ANONPAGES val:22 [ 36.752043] BUG: Bad rss-counter state mm:00000000f8d11c73 type:MM_FILEPAGES val:33 [ 36.753061] BUG: Bad rss-counter state mm:00000000f8d11c73 type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:52501' (ECDSA) to the list of known hosts. 2023/06/19 14:38:11 fuzzer started 2023/06/19 14:38:11 dialing manager at localhost:44161 2023/06/19 14:38:11 checking machine... 2023/06/19 14:38:11 checking revisions... [ 37.554747] kmemleak: Automatic memory scanning thread ended 2023/06/19 14:38:11 testing simple program... [ 37.597006] cgroup: Unknown subsys name 'net' [ 37.645223] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 14:38:01 Registers: info registers vcpu 0 RAX=0000000000000001 RBX=ffffffff813ad420 RCX=0000000000000001 RDX=1ffff1100d9c1387 RSI=ffffffff81708066 RDI=ffff88806ce09a98 RBP=ffff88806ce09b30 RSP=ffff88806ce09a98 R8 =0000000000000001 R9 =ffff88806ce09ad8 R10=0000000000038001 R11=000000000002ca18 R12=ffff88806ce09b60 R13=0000000000000000 R14=ffff8880159a1b40 R15=ffff888015b307a0 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 =0000 0000000000000000 00000000 00000000 DS =0000 0000000000000000 00000000 00000000 FS =0000 00007f238ed4f900 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=00007f238e203ba0 CR3=0000000009532000 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=454d49544c4145525f454352554f535f XMM01=3d504d415453454d49545f454d49544c XMM02=ffffffffffffffffffffffffffffffff XMM03=2f6c616e72756f6a2f676f6c2f6e7572 XMM04=27050cb3b426f4df00000000000ae988 XMM05=2d7f88982e9f7be00000000000136540 XMM06=19e9129bd510f2350000000000135068 XMM07=00000000000000000000000000000000 XMM08=415453454d49545f454d49544c414552 XMM09=00000000000000000000000000000000 XMM10=20200000000020202020202020200000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=dffffc0000000000 RBX=ffff888008e57a40 RCX=0000000000000001 RDX=1ffff110011caf5d RSI=ffffffff8118d7d9 RDI=ffff888008e57a4c RBP=ffff888008e57ae8 RSP=ffff888008e57958 R8 =0000000000000001 R9 =ffff888008e579b8 R10=0000000000038001 R11=00000000000b5c92 R12=ffff888008e57a40 R13=0000000000000000 R14=ffff888008e2d1c0 R15=ffff88800dcbf170 RIP=ffffffff813ad4f7 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 0000000000000000 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=00007fb0562b7020 CR3=000000000dedc000 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