syzkaller login: [ 67.922902] BUG: Bad rss-counter state mm:00000000b8a37293 type:MM_FILEPAGES val:33 [ 67.924529] BUG: Bad rss-counter state mm:00000000b8a37293 type:MM_ANONPAGES val:22 [ 68.090179] ================================================================== [ 68.091301] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 68.092560] Read of size 8 at addr ffff88800e109058 by task sshd/219 [ 68.093471] [ 68.093698] CPU: 0 PID: 219 Comm: sshd Tainted: G L 6.4.0-rc7-next-20230619 #1 [ 68.094746] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 68.095751] Call Trace: [ 68.096078] [ 68.096375] dump_stack_lvl+0x91/0xf0 [ 68.096888] print_report+0xcc/0x620 [ 68.097399] ? __virt_addr_valid+0x102/0x340 [ 68.097967] ? vma_interval_tree_remove+0xc75/0xec0 [ 68.098612] ? vma_interval_tree_remove+0xc75/0xec0 [ 68.099242] kasan_report+0xbe/0xf0 [ 68.099730] ? vma_interval_tree_remove+0xc75/0xec0 [ 68.100369] vma_interval_tree_remove+0xc75/0xec0 [ 68.101023] vma_prepare+0xc54/0x11a0 [ 68.101524] __split_vma+0x5af/0x950 [ 68.102012] ? __pfx___split_vma+0x10/0x10 [ 68.102554] ? find_held_lock+0x2c/0x110 [ 68.103091] do_vmi_align_munmap+0x2ba/0x11f0 [ 68.103671] ? lock_is_held_type+0x9f/0x120 [ 68.104232] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 68.104873] ? mtree_range_walk+0x632/0x900 [ 68.105438] ? mas_walk+0x5c7/0x7c0 [ 68.105926] do_vmi_munmap+0x1f1/0x2b0 [ 68.106427] mmap_region+0x1f9/0x2660 [ 68.106931] ? vm_mmap_pgoff+0x15c/0x3a0 [ 68.107455] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 68.108200] ? __pfx_lock_acquire+0x10/0x10 [ 68.108766] ? __pfx_mmap_region+0x10/0x10 [ 68.109325] ? security_mmap_addr+0x7d/0xa0 [ 68.109880] ? get_unmapped_area+0x1f5/0x3f0 [ 68.110449] do_mmap+0x854/0xf00 [ 68.110905] vm_mmap_pgoff+0x1a6/0x3a0 [ 68.111412] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 68.111996] ksys_mmap_pgoff+0x3af/0x500 [ 68.112516] do_syscall_64+0x3f/0x90 [ 68.113030] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 68.113693] RIP: 0033:0x7fa6676d5d82 [ 68.114171] 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 [ 68.116370] RSP: 002b:00007ffd688b5d38 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 68.117327] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007fa6676d5d82 [ 68.118218] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007fa666b0f000 [ 68.119101] RBP: 00007fa666b0f000 R08: 0000000000000009 R09: 0000000000001000 [ 68.119984] R10: 0000000000000812 R11: 0000000000000206 R12: 0000560657d40b20 [ 68.120874] R13: 00007ffd688b5d50 R14: 00007ffd688b5d80 R15: 00007ffd688b60e0 [ 68.121753] [ 68.122055] [ 68.122274] Allocated by task 212: [ 68.122721] kasan_save_stack+0x22/0x50 [ 68.123244] kasan_set_track+0x25/0x30 [ 68.123758] __kasan_slab_alloc+0x59/0x70 [ 68.124295] kmem_cache_alloc+0x16b/0x370 [ 68.124838] vm_area_dup+0x20/0x160 [ 68.125306] __split_vma+0x170/0x950 [ 68.125786] split_vma+0xc6/0x110 [ 68.126242] mprotect_fixup+0x8d2/0xb30 [ 68.126762] do_mprotect_pkey+0x87e/0xd40 [ 68.127305] __x64_sys_mprotect+0x78/0xc0 [ 68.127849] do_syscall_64+0x3f/0x90 [ 68.128341] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 68.129021] [ 68.129242] Freed by task 212: [ 68.129644] kasan_save_stack+0x22/0x50 [ 68.130167] kasan_set_track+0x25/0x30 [ 68.130680] kasan_save_free_info+0x2b/0x50 [ 68.131231] __kasan_slab_free+0x10a/0x190 [ 68.131779] kmem_cache_free+0x10d/0x4d0 [ 68.132302] rcu_core+0x8c8/0x2860 [ 68.132766] __do_softirq+0x1b7/0x7d4 [ 68.133270] [ 68.133490] Last potentially related work creation: [ 68.134093] kasan_save_stack+0x22/0x50 [ 68.134608] __kasan_record_aux_stack+0x8e/0xa0 [ 68.135205] __call_rcu_common.constprop.0+0x6a/0xb90 [ 68.135874] remove_vma+0x139/0x170 [ 68.136340] do_vmi_align_munmap+0xd4a/0x11f0 [ 68.136930] do_vmi_munmap+0x1f1/0x2b0 [ 68.137429] __vm_munmap+0x138/0x3a0 [ 68.137914] __x64_sys_munmap+0x59/0x80 [ 68.138428] do_syscall_64+0x3f/0x90 [ 68.138927] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 68.139598] [ 68.139826] Second to last potentially related work creation: [ 68.140541] kasan_save_stack+0x22/0x50 [ 68.141077] __kasan_record_aux_stack+0x8e/0xa0 [ 68.141682] __call_rcu_common.constprop.0+0x6a/0xb90 [ 68.142344] remove_vma+0x139/0x170 [ 68.142809] do_vmi_align_munmap+0xd4a/0x11f0 [ 68.143379] do_vmi_munmap+0x1f1/0x2b0 [ 68.143886] mmap_region+0x1f9/0x2660 [ 68.144376] do_mmap+0x854/0xf00 [ 68.144837] vm_mmap_pgoff+0x1a6/0x3a0 [ 68.145341] ksys_mmap_pgoff+0x3af/0x500 [ 68.145863] do_syscall_64+0x3f/0x90 [ 68.146352] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 68.147015] [ 68.147233] The buggy address belongs to the object at ffff88800e109000 [ 68.147233] which belongs to the cache vm_area_struct of size 168 [ 68.148795] The buggy address is located 88 bytes inside of [ 68.148795] freed 168-byte region [ffff88800e109000, ffff88800e1090a8) [ 68.150270] [ 68.150487] The buggy address belongs to the physical page: [ 68.151158] page:0000000094bbfe3a refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xe109 [ 68.152254] memcg:ffff88800dae4b01 [ 68.152686] flags: 0x100000000000200(slab|node=0|zone=1) [ 68.153352] page_type: 0xffffffff() [ 68.153809] raw: 0100000000000200 ffff88800879fc80 ffffea0000267cc0 dead000000000008 [ 68.154735] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff88800dae4b01 [ 68.155655] page dumped because: kasan: bad access detected [ 68.156321] [ 68.156544] Memory state around the buggy address: [ 68.157136] ffff88800e108f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 68.157996] ffff88800e108f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 68.158844] >ffff88800e109000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 68.159698] ^ [ 68.160425] ffff88800e109080: fb fb fb fb fb fc fc fc fc fc fc fc fc 00 00 00 [ 68.161285] ffff88800e109100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 68.162140] ================================================================== [ 68.163175] Disabling lock debugging due to kernel taint [ 70.642040] BUG: Bad rss-counter state mm:000000007ea4f144 type:MM_FILEPAGES val:33 [ 70.643211] BUG: Bad rss-counter state mm:000000007ea4f144 type:MM_ANONPAGES val:22 [ 71.180058] BUG: Bad rss-counter state mm:00000000c3eb1671 type:MM_FILEPAGES val:33 [ 71.181221] BUG: Bad rss-counter state mm:00000000c3eb1671 type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:4356' (ECDSA) to the list of known hosts. 2023/06/19 13:46:39 fuzzer started 2023/06/19 13:46:39 dialing manager at localhost:44161 2023/06/19 13:46:39 checking machine... 2023/06/19 13:46:39 checking revisions... [ 71.822964] kmemleak: Automatic memory scanning thread ended 2023/06/19 13:46:39 testing simple program... [ 71.860004] cgroup: Unknown subsys name 'net' [ 71.894377] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 13:46:01 Registers: info registers vcpu 0 RAX=dffffc0000000000 RBX=0000000000000001 RCX=ffffffff863b440e RDX=1ffff11000d57e4a RSI=0000000000000001 RDI=0000000000000001 RBP=ffff888006abf260 RSP=ffff888006abf198 R8 =ffffffff863b4412 R9 =ffff888006abf248 R10=0000000000038001 R11=000000000008b00b R12=ffff888006abf268 R13=ffff888006abf250 R14=0000000000000005 R15=ffff888006abf208 RIP=ffffffff81130b54 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 00007fa8b74b4900 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=00007fc8d3f85650 CR3=000000000d9da000 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=b252080ce2636bb600000000000ae988 XMM05=a96c840353c828ed000000000013a820 XMM06=806171799158d9670000000000139610 XMM07=fb795ef6d657705600000000001281f0 XMM08=4f5453444600273d67736d000d0a0920 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=ffffffff81ef13be RBX=ffffffff813ad420 RCX=0000000000000001 RDX=1ffff11002d08f43 RSI=ffffffff81ef13be RDI=ffff888016847a88 RBP=ffff888016847a58 RSP=ffff8880168479b8 R8 =0000000000000001 R9 =ffff888016847a00 R10=0000000000038001 R11=0000000000020cb4 R12=ffff888016847a88 R13=0000000000000000 R14=ffff88800ead51c0 R15=ffff88800e999a80 RIP=ffffffff813ad420 RFL=00000286 [--S--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 00007fc8d39d0900 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=00007fc8d3f880b0 CR3=0000000016dc8000 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=ffffffffffffffffffffffff00000000 XMM01=000000000000000000005500746f6f72 XMM02=ff000000000000000000000000000000 XMM03=5320444f4854454d5f54505952434e45 XMM04=40404040404040404040404040404040 XMM05=5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a XMM06=20202020202020202020202020202020 XMM07=00000000000000000000000000000000 XMM08=000a687361622f6e69622f3a746f6f72 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000