Debian GNU/Linux 11 syzkaller ttyS0 syzkaller login: [ 78.750188] BUG: Bad rss-counter state mm:00000000b4750f20 type:MM_FILEPAGES val:33 [ 78.751381] BUG: Bad rss-counter state mm:00000000b4750f20 type:MM_ANONPAGES val:22 [ 78.825835] ================================================================== [ 78.826732] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 78.827670] Read of size 8 at addr ffff88800f696880 by task sshd/226 [ 78.828439] [ 78.828763] CPU: 0 PID: 226 Comm: sshd Not tainted 6.4.0-rc7-next-20230619 #1 [ 78.829645] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 78.830650] Call Trace: [ 78.830979] [ 78.831259] dump_stack_lvl+0x91/0xf0 [ 78.831748] print_report+0xcc/0x620 [ 78.832233] ? __virt_addr_valid+0x102/0x340 [ 78.832788] ? vma_interval_tree_remove+0xc75/0xec0 [ 78.833406] ? vma_interval_tree_remove+0xc75/0xec0 [ 78.834036] kasan_report+0xbe/0xf0 [ 78.834518] ? vma_interval_tree_remove+0xc75/0xec0 [ 78.835140] vma_interval_tree_remove+0xc75/0xec0 [ 78.835735] vma_prepare+0xc54/0x11a0 [ 78.836213] __split_vma+0x5af/0x950 [ 78.836688] ? __pfx___split_vma+0x10/0x10 [ 78.837217] ? find_held_lock+0x2c/0x110 [ 78.837744] do_vmi_align_munmap+0x2ba/0x11f0 [ 78.838304] ? lock_is_held_type+0x9f/0x120 [ 78.838838] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 78.839444] ? mtree_range_walk+0x632/0x900 [ 78.839994] ? mas_walk+0x5c7/0x7c0 [ 78.840470] do_vmi_munmap+0x1f1/0x2b0 [ 78.840963] mmap_region+0x1f9/0x2660 [ 78.841446] ? vm_mmap_pgoff+0x15c/0x3a0 [ 78.841975] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 78.842688] ? __pfx_lock_acquire+0x10/0x10 [ 78.843221] ? __pfx_mmap_region+0x10/0x10 [ 78.843750] ? security_mmap_addr+0x7d/0xa0 [ 78.844280] ? get_unmapped_area+0x1f5/0x3f0 [ 78.844836] do_mmap+0x854/0xf00 [ 78.845274] vm_mmap_pgoff+0x1a6/0x3a0 [ 78.845774] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 78.846337] ksys_mmap_pgoff+0x3af/0x500 [ 78.846845] do_syscall_64+0x3f/0x90 [ 78.847320] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 78.847964] RIP: 0033:0x7f9badd9dd82 [ 78.848423] 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 [ 78.850559] RSP: 002b:00007ffcebee5e88 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 78.851469] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007f9badd9dd82 [ 78.852321] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007f9bad1d7000 [ 78.853175] RBP: 00007f9bad1d7000 R08: 0000000000000009 R09: 0000000000001000 [ 78.854027] R10: 0000000000000812 R11: 0000000000000206 R12: 0000557e096b4d90 [ 78.854870] R13: 00007ffcebee5ea0 R14: 00007ffcebee5ed0 R15: 00007ffcebee6230 [ 78.855727] [ 78.856022] [ 78.856238] Allocated by task 219: [ 78.856670] kasan_save_stack+0x22/0x50 [ 78.857187] kasan_set_track+0x25/0x30 [ 78.857686] __kasan_slab_alloc+0x59/0x70 [ 78.858258] kmem_cache_alloc+0x16b/0x370 [ 78.858776] vm_area_dup+0x20/0x160 [ 78.859237] __split_vma+0x170/0x950 [ 78.859709] split_vma+0xc6/0x110 [ 78.860152] mprotect_fixup+0x8d2/0xb30 [ 78.860656] do_mprotect_pkey+0x87e/0xd40 [ 78.861179] __x64_sys_mprotect+0x78/0xc0 [ 78.861702] do_syscall_64+0x3f/0x90 [ 78.862197] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 78.862843] [ 78.863060] Freed by task 219: [ 78.863459] kasan_save_stack+0x22/0x50 [ 78.863959] kasan_set_track+0x25/0x30 [ 78.864446] kasan_save_free_info+0x2b/0x50 [ 78.864976] __kasan_slab_free+0x10a/0x190 [ 78.865516] kmem_cache_free+0x10d/0x4d0 [ 78.866030] rcu_core+0x8c8/0x2860 [ 78.866472] __do_softirq+0x1b7/0x7d4 [ 78.866946] [ 78.867160] Last potentially related work creation: [ 78.867749] kasan_save_stack+0x22/0x50 [ 78.868252] __kasan_record_aux_stack+0x8e/0xa0 [ 78.868823] __call_rcu_common.constprop.0+0x6a/0xb90 [ 78.869465] remove_vma+0x139/0x170 [ 78.869919] do_vmi_align_munmap+0xd4a/0x11f0 [ 78.870472] do_vmi_munmap+0x1f1/0x2b0 [ 78.870959] __vm_munmap+0x138/0x3a0 [ 78.871431] __x64_sys_munmap+0x59/0x80 [ 78.871922] do_syscall_64+0x3f/0x90 [ 78.872396] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 78.873035] [ 78.873254] The buggy address belongs to the object at ffff88800f696828 [ 78.873254] which belongs to the cache vm_area_struct of size 168 [ 78.874749] The buggy address is located 88 bytes inside of [ 78.874749] freed 168-byte region [ffff88800f696828, ffff88800f6968d0) [ 78.876150] [ 78.876367] The buggy address belongs to the physical page: [ 78.877027] page:0000000069c8bcf2 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xf696 [ 78.878127] memcg:ffff888016b13701 [ 78.878557] flags: 0x100000000000200(slab|node=0|zone=1) [ 78.879204] page_type: 0xffffffff() [ 78.879658] raw: 0100000000000200 ffff88800879fc80 dead000000000122 0000000000000000 [ 78.880575] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff888016b13701 [ 78.881494] page dumped because: kasan: bad access detected [ 78.882180] [ 78.882398] Memory state around the buggy address: [ 78.882977] ffff88800f696780: 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc [ 78.883839] ffff88800f696800: fc fc fc fc fc fa fb fb fb fb fb fb fb fb fb fb [ 78.884696] >ffff88800f696880: fb fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc [ 78.885558] ^ [ 78.885978] ffff88800f696900: fc fc fa fb fb fb fb fb fb fb fb fb fb fb fb fb [ 78.886834] ffff88800f696980: fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc 00 [ 78.887694] ================================================================== [ 78.888669] Disabling lock debugging due to kernel taint [ 80.730582] BUG: Bad rss-counter state mm:0000000029dc13b4 type:MM_FILEPAGES val:33 [ 80.731743] BUG: Bad rss-counter state mm:0000000029dc13b4 type:MM_ANONPAGES val:22 [ 81.128452] BUG: Bad rss-counter state mm:0000000090f053fa type:MM_FILEPAGES val:33 [ 81.129486] BUG: Bad rss-counter state mm:0000000090f053fa type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:28077' (ECDSA) to the list of known hosts. 2023/06/20 01:03:40 fuzzer started 2023/06/20 01:03:40 dialing manager at localhost:44161 2023/06/20 01:03:40 checking machine... 2023/06/20 01:03:40 checking revisions... [ 81.878660] kmemleak: Automatic memory scanning thread ended 2023/06/20 01:03:40 testing simple program... [ 81.939499] cgroup: Unknown subsys name 'net' [ 81.993043] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 01:03:22 Registers: info registers vcpu 0 RAX=dffffc0000000000 RBX=0000000000000001 RCX=ffffffff8363dca6 RDX=00000000000263dc RSI=00000000000263dc RDI=ffffffff86580b30 RBP=ffff888015ca7a00 RSP=ffff888015ca7938 R8 =0000000000000000 R9 =ffff888015ca79e8 R10=0000000000038001 R11=000000000008a8e5 R12=ffff888015ca7a08 R13=ffff888015ca79f0 R14=ffff888015ca79e9 R15=ffff888015ca79a8 RIP=ffffffff8113077a RFL=00000216 [----AP-] 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 00007f3c77676900 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=00007f3c77c2e0b0 CR3=0000000009a78000 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=25252525252525252525252525252525 XMM01=000000000000000000000000000000ff XMM02=000000000000000000000000000000ff XMM03=5320444f4854454d5f54505952434e45 XMM04=40404040404040404040404040404040 XMM05=5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a XMM06=20202020202020202020202020202020 XMM07=00000000000000000000000000000000 XMM08=662079726f6d656d20666f2074756f00 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=1ffff110011be33f RBX=ffff888008df19e8 RCX=ffffffff812e00e5 RDX=0000000000000000 RSI=0000000000000000 RDI=ffff888008df19f8 RBP=ffff888008df2000 RSP=ffff88806cf09dd8 R8 =0000000000000001 R9 =ffffed100d9e13af R10=0000000000000003 R11=0000000000000000 R12=dffffc0000000000 R13=ffff888008a731a0 R14=ffffffff813782a8 R15=ffff888013e17780 RIP=ffffffff81846343 RFL=00000046 [---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=00007f8101ab9660 CR3=000000000d5e4000 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=6a657e9ae1ccc4ad3e48edffd9574a7c XMM02=000000000011dd40eff9b2d0a8fce9cb XMM03=000000000011de102c67c8bc2e329bc3 XMM04=7f84cce3ccd2bc8c00000000000ae988 XMM05=0b8d8a57ce3a9ee800000000001351f0 XMM06=13e856d8d71426c80000000000133f20 XMM07=e042d86d42eb936e0000000000124a50 XMM08=ddab60b1c219920a000000000011de10 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000