Debian GNU/Linux 11 syzkaller ttyS0 syzkaller login: [ 30.580047] BUG: Bad rss-counter state mm:00000000b57ed39f type:MM_FILEPAGES val:33 [ 30.581736] BUG: Bad rss-counter state mm:00000000b57ed39f type:MM_ANONPAGES val:22 [ 30.747511] ================================================================== [ 30.748417] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 30.749351] Read of size 8 at addr ffff888016297140 by task sshd/219 [ 30.750186] [ 30.750423] CPU: 0 PID: 219 Comm: sshd Not tainted 6.4.0-rc7-next-20230620 #1 [ 30.751306] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 30.752289] Call Trace: [ 30.752607] [ 30.752888] dump_stack_lvl+0x91/0xf0 [ 30.753379] print_report+0xcc/0x620 [ 30.753861] ? __virt_addr_valid+0x102/0x340 [ 30.754414] ? vma_interval_tree_remove+0xc75/0xec0 [ 30.755043] ? vma_interval_tree_remove+0xc75/0xec0 [ 30.755664] kasan_report+0xbe/0xf0 [ 30.756146] ? vma_interval_tree_remove+0xc75/0xec0 [ 30.756772] vma_interval_tree_remove+0xc75/0xec0 [ 30.757374] vma_prepare+0xc54/0x11a0 [ 30.757849] __split_vma+0x5af/0x950 [ 30.758320] ? __pfx___split_vma+0x10/0x10 [ 30.758880] ? find_held_lock+0x2c/0x110 [ 30.759393] do_vmi_align_munmap+0x2ba/0x11f0 [ 30.759957] ? lock_is_held_type+0x9f/0x120 [ 30.760488] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 30.761092] ? mtree_range_walk+0x632/0x900 [ 30.761643] ? mas_walk+0x5c7/0x7c0 [ 30.762122] do_vmi_munmap+0x1f1/0x2b0 [ 30.762621] mmap_region+0x1f9/0x2660 [ 30.763097] ? vm_mmap_pgoff+0x15c/0x3a0 [ 30.763605] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 30.764314] ? __pfx_lock_acquire+0x10/0x10 [ 30.764855] ? __pfx_mmap_region+0x10/0x10 [ 30.765383] ? security_mmap_addr+0x7d/0xa0 [ 30.765915] ? get_unmapped_area+0x1f5/0x3f0 [ 30.766466] do_mmap+0x854/0xf00 [ 30.766924] vm_mmap_pgoff+0x1a6/0x3a0 [ 30.767417] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 30.767976] ksys_mmap_pgoff+0x3af/0x500 [ 30.768480] do_syscall_64+0x3f/0x90 [ 30.768962] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 30.769609] RIP: 0033:0x7f8eec04dd82 [ 30.770065] 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 [ 30.772185] RSP: 002b:00007ffd0540fd18 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 30.773088] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007f8eec04dd82 [ 30.773931] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007f8eeb487000 [ 30.774778] RBP: 00007f8eeb487000 R08: 0000000000000009 R09: 0000000000001000 [ 30.775617] R10: 0000000000000812 R11: 0000000000000206 R12: 000055a7bd7b2f60 [ 30.776455] R13: 00007ffd0540fd30 R14: 00007ffd0540fd60 R15: 00007ffd054100c0 [ 30.777309] [ 30.777604] [ 30.777821] Allocated by task 212: [ 30.778251] kasan_save_stack+0x22/0x50 [ 30.778773] kasan_set_track+0x25/0x30 [ 30.779266] __kasan_slab_alloc+0x59/0x70 [ 30.779788] kmem_cache_alloc+0x16b/0x370 [ 30.780301] vm_area_dup+0x20/0x160 [ 30.780759] __split_vma+0x170/0x950 [ 30.781224] split_vma+0xc6/0x110 [ 30.781666] mprotect_fixup+0x8d2/0xb30 [ 30.782170] do_mprotect_pkey+0x87e/0xd40 [ 30.782701] __x64_sys_mprotect+0x78/0xc0 [ 30.783231] do_syscall_64+0x3f/0x90 [ 30.783710] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 30.784356] [ 30.784578] Freed by task 212: [ 30.784971] kasan_save_stack+0x22/0x50 [ 30.785473] kasan_set_track+0x25/0x30 [ 30.785963] kasan_save_free_info+0x2b/0x50 [ 30.786497] __kasan_slab_free+0x10a/0x190 [ 30.787047] kmem_cache_free+0x10d/0x4d0 [ 30.787553] rcu_core+0x8c8/0x2860 [ 30.787998] __do_softirq+0x1b7/0x7d4 [ 30.788471] [ 30.788691] Last potentially related work creation: [ 30.789272] kasan_save_stack+0x22/0x50 [ 30.789781] __kasan_record_aux_stack+0x8e/0xa0 [ 30.790356] __call_rcu_common.constprop.0+0x6a/0xb90 [ 30.791012] remove_vma+0x139/0x170 [ 30.791477] do_vmi_align_munmap+0xd4a/0x11f0 [ 30.792039] do_vmi_munmap+0x1f1/0x2b0 [ 30.792530] __vm_munmap+0x138/0x3a0 [ 30.793000] __x64_sys_munmap+0x59/0x80 [ 30.793497] do_syscall_64+0x3f/0x90 [ 30.793968] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 30.794615] [ 30.794831] The buggy address belongs to the object at ffff8880162970e8 [ 30.794831] which belongs to the cache vm_area_struct of size 168 [ 30.796292] The buggy address is located 88 bytes inside of [ 30.796292] freed 168-byte region [ffff8880162970e8, ffff888016297190) [ 30.797683] [ 30.797900] The buggy address belongs to the physical page: [ 30.798554] page:000000001a5f1e0a refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x16297 [ 30.799661] memcg:ffff888016917401 [ 30.800087] flags: 0x100000000000200(slab|node=0|zone=1) [ 30.800733] page_type: 0xffffffff() [ 30.801184] raw: 0100000000000200 ffff8880087a0c80 ffffea000058a7c0 dead000000000002 [ 30.802106] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff888016917401 [ 30.803024] page dumped because: kasan: bad access detected [ 30.803682] [ 30.803899] Memory state around the buggy address: [ 30.804482] ffff888016297000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.805335] ffff888016297080: fb fb fb fb fb fc fc fc fc fc fc fc fc fa fb fb [ 30.806184] >ffff888016297100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.807039] ^ [ 30.807675] ffff888016297180: fb fb fc fc fc fc fc fc fc fc 00 00 00 00 00 00 [ 30.808530] ffff888016297200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 30.809378] ================================================================== [ 30.810411] Disabling lock debugging due to kernel taint [ 32.723548] BUG: Bad rss-counter state mm:0000000053219bff type:MM_FILEPAGES val:33 [ 32.724559] BUG: Bad rss-counter state mm:0000000053219bff type:MM_ANONPAGES val:22 [ 33.180254] BUG: Bad rss-counter state mm:000000000e814a5d type:MM_FILEPAGES val:33 [ 33.181255] BUG: Bad rss-counter state mm:000000000e814a5d type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:64310' (ECDSA) to the list of known hosts. 2023/06/20 16:09:38 fuzzer started 2023/06/20 16:09:38 dialing manager at localhost:36067 2023/06/20 16:09:38 checking machine... 2023/06/20 16:09:38 checking revisions... [ 33.953410] kmemleak: Automatic memory scanning thread ended 2023/06/20 16:09:38 testing simple program... [ 34.002490] cgroup: Unknown subsys name 'net' [ 34.051809] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 16:09:38 Registers: info registers vcpu 0 RAX=ffffffff8366a3de RBX=ffffffff85fa80a8 RCX=ffffffff8366a4d8 RDX=0000000000000000 RSI=ffffffff863b7f5e RDI=ffffffff85fa80a8 RBP=ffffffff85fa80ac RSP=ffff88800fe0f308 R8 =ffffffff863b7f5e R9 =ffff88800fe0f400 R10=0000000000038001 R11=000000000008b5b9 R12=ffffffff85fa80a8 R13=ffffffff85fa80a8 R14=0000000000000000 R15=dffffc0000000000 RIP=ffffffff8112fca7 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 00007f1ca2b1d900 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=00007f1ca1f5e590 CR3=000000000d8c2000 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=756f6a2f646d65747379732f6e75722f XMM01=00676f6c7379732f6c616e72756f6a2f XMM02=756f6a2f646d65747379732f6e75722f XMM03=006c616e72756f6a2f646d6574737973 XMM04=8077c02fb9f4511300000000000ae988 XMM05=7c95220e3a68863b00000000001333c0 XMM06=dfcdbad4f1609c370000000000131ee8 XMM07=fb795ef6d657705600000000001223e0 XMM08=4f5453444600273d67736d000d0a0920 XMM09=00000000000000000000000000000000 XMM10=20200000000020202020202020200000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=000056049337ceb1 RBX=000056049337ceb0 RCX=0000000000000047 RDX=0000000000000000 RSI=00007fe6466183c0 RDI=000056049337cea0 RBP=0000000000000010 RSP=00007ffd0f531840 R8 =00005604933a9ad5 R9 =00007fe646664be0 R10=0000000000000100 R11=0000000000000246 R12=000056049339aed0 R13=00007ffd0f531848 R14=00007fe64608db22 R15=00007fe6460b2710 RIP=00007fe646bdf3c2 RFL=00000246 [---Z-P-] CPL=3 II=0 A20=1 SMM=0 HLT=0 ES =0000 0000000000000000 00000000 00000000 CS =0033 0000000000000000 ffffffff 00a0fb00 DPL=3 CS64 [-RA] SS =002b 0000000000000000 ffffffff 00c0f300 DPL=3 DS [-WA] DS =0000 0000000000000000 00000000 00000000 FS =0000 00007fe6460b2900 00000000 00000000 GS =0000 0000000000000000 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=00007ffd0f52c000 CR3=000000000dcaa000 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=23232323232323232323232323232323 XMM01=ffffffffffffff00ffff000000000000 XMM02=ffffffffffffff00ffff000000000000 XMM03=0030303031200909094e494d5f444947 XMM04=40404040404040404040404040404040 XMM05=5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a XMM06=20202020202020202020202020202020 XMM07=000000000000000000ffffffffffffff XMM08=00000000000000810000363532616873 XMM09=00000000000000000000000000000000 XMM10=00002020202020200020202020202020 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000