syzkaller login: [ 71.909891] BUG: Bad rss-counter state mm:00000000d10172f7 type:MM_FILEPAGES val:33 [ 71.912233] BUG: Bad rss-counter state mm:00000000d10172f7 type:MM_ANONPAGES val:22 [ 72.076116] ================================================================== [ 72.077167] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 72.078188] Read of size 8 at addr ffff88800ff32140 by task sshd/226 [ 72.078954] [ 72.079176] CPU: 0 PID: 226 Comm: sshd Not tainted 6.4.0-rc7-next-20230619 #1 [ 72.080040] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 72.081045] Call Trace: [ 72.081361] [ 72.081652] dump_stack_lvl+0x91/0xf0 [ 72.082148] print_report+0xcc/0x620 [ 72.082640] ? __virt_addr_valid+0x102/0x340 [ 72.083192] ? vma_interval_tree_remove+0xc75/0xec0 [ 72.083820] ? vma_interval_tree_remove+0xc75/0xec0 [ 72.084441] kasan_report+0xbe/0xf0 [ 72.084942] ? vma_interval_tree_remove+0xc75/0xec0 [ 72.085562] vma_interval_tree_remove+0xc75/0xec0 [ 72.086160] vma_prepare+0xc54/0x11a0 [ 72.086635] __split_vma+0x5af/0x950 [ 72.087104] ? __pfx___split_vma+0x10/0x10 [ 72.087639] ? find_held_lock+0x2c/0x110 [ 72.088161] do_vmi_align_munmap+0x2ba/0x11f0 [ 72.088733] ? lock_is_held_type+0x9f/0x120 [ 72.089289] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 72.089895] ? mtree_range_walk+0x632/0x900 [ 72.090448] ? mas_walk+0x5c7/0x7c0 [ 72.090919] do_vmi_munmap+0x1f1/0x2b0 [ 72.091410] mmap_region+0x1f9/0x2660 [ 72.091888] ? vm_mmap_pgoff+0x15c/0x3a0 [ 72.092397] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 72.093116] ? __pfx_lock_acquire+0x10/0x10 [ 72.093650] ? __pfx_mmap_region+0x10/0x10 [ 72.094187] ? security_mmap_addr+0x7d/0xa0 [ 72.094727] ? get_unmapped_area+0x1f5/0x3f0 [ 72.095277] do_mmap+0x854/0xf00 [ 72.095715] vm_mmap_pgoff+0x1a6/0x3a0 [ 72.096208] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 72.096805] ksys_mmap_pgoff+0x3af/0x500 [ 72.097316] do_syscall_64+0x3f/0x90 [ 72.097790] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 72.098428] RIP: 0033:0x7f072c114d82 [ 72.098883] 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 [ 72.101020] RSP: 002b:00007ffdac2dcab8 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 72.101923] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007f072c114d82 [ 72.102782] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007f072b54e000 [ 72.103623] RBP: 00007f072b54e000 R08: 0000000000000009 R09: 0000000000001000 [ 72.104464] R10: 0000000000000812 R11: 0000000000000206 R12: 000055af6a547ec0 [ 72.105320] R13: 00007ffdac2dcad0 R14: 00007ffdac2dcb00 R15: 00007ffdac2dce60 [ 72.106171] [ 72.106465] [ 72.106679] Allocated by task 219: [ 72.107111] kasan_save_stack+0x22/0x50 [ 72.107611] kasan_set_track+0x25/0x30 [ 72.108104] __kasan_slab_alloc+0x59/0x70 [ 72.108655] kmem_cache_alloc+0x16b/0x370 [ 72.109170] vm_area_dup+0x20/0x160 [ 72.109620] __split_vma+0x170/0x950 [ 72.110085] split_vma+0xc6/0x110 [ 72.110525] mprotect_fixup+0x8d2/0xb30 [ 72.111030] do_mprotect_pkey+0x87e/0xd40 [ 72.111545] __x64_sys_mprotect+0x78/0xc0 [ 72.112067] do_syscall_64+0x3f/0x90 [ 72.112541] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 72.113199] [ 72.113415] Freed by task 203: [ 72.113804] kasan_save_stack+0x22/0x50 [ 72.114304] kasan_set_track+0x25/0x30 [ 72.114802] kasan_save_free_info+0x2b/0x50 [ 72.115334] __kasan_slab_free+0x10a/0x190 [ 72.115867] kmem_cache_free+0x10d/0x4d0 [ 72.116373] rcu_core+0x8c8/0x2860 [ 72.116828] __do_softirq+0x1b7/0x7d4 [ 72.117300] [ 72.117516] Last potentially related work creation: [ 72.118096] kasan_save_stack+0x22/0x50 [ 72.118593] __kasan_record_aux_stack+0x8e/0xa0 [ 72.119164] __call_rcu_common.constprop.0+0x6a/0xb90 [ 72.119800] remove_vma+0x139/0x170 [ 72.120250] do_vmi_align_munmap+0xd4a/0x11f0 [ 72.120815] do_vmi_munmap+0x1f1/0x2b0 [ 72.121308] __vm_munmap+0x138/0x3a0 [ 72.121772] __x64_sys_munmap+0x59/0x80 [ 72.122263] do_syscall_64+0x3f/0x90 [ 72.122741] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 72.123391] [ 72.123605] The buggy address belongs to the object at ffff88800ff320e8 [ 72.123605] which belongs to the cache vm_area_struct of size 168 [ 72.125068] The buggy address is located 88 bytes inside of [ 72.125068] freed 168-byte region [ffff88800ff320e8, ffff88800ff32190) [ 72.126469] [ 72.126686] The buggy address belongs to the physical page: [ 72.127369] page:000000006305f722 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xff32 [ 72.128444] memcg:ffff8880179d0701 [ 72.128874] flags: 0x100000000000200(slab|node=0|zone=1) [ 72.129524] page_type: 0xffffffff() [ 72.129978] raw: 0100000000000200 ffff88800879fc80 dead000000000122 0000000000000000 [ 72.130897] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff8880179d0701 [ 72.131807] page dumped because: kasan: bad access detected [ 72.132466] [ 72.132703] Memory state around the buggy address: [ 72.133288] ffff88800ff32000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 72.134147] ffff88800ff32080: 00 00 00 00 00 fc fc fc fc fc fc fc fc fa fb fb [ 72.135007] >ffff88800ff32100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 72.135861] ^ [ 72.136503] ffff88800ff32180: fb fb fc fc fc fc fc fc fc fc fa fb fb fb fb fb [ 72.137365] ffff88800ff32200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc [ 72.138221] ================================================================== [ 72.139202] Disabling lock debugging due to kernel taint [ 74.368699] BUG: Bad rss-counter state mm:000000006ed074bf type:MM_FILEPAGES val:33 [ 74.369708] BUG: Bad rss-counter state mm:000000006ed074bf type:MM_ANONPAGES val:22 [ 74.847198] BUG: Bad rss-counter state mm:0000000042143ef1 type:MM_FILEPAGES val:33 [ 74.848273] BUG: Bad rss-counter state mm:0000000042143ef1 type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:33539' (ECDSA) to the list of known hosts. 2023/06/19 13:57:04 fuzzer started 2023/06/19 13:57:04 dialing manager at localhost:44161 2023/06/19 13:57:04 checking machine... 2023/06/19 13:57:04 checking revisions... [ 75.574176] kmemleak: Automatic memory scanning thread ended 2023/06/19 13:57:04 testing simple program... [ 75.627404] cgroup: Unknown subsys name 'net' [ 75.697812] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 13:56:53 Registers: info registers vcpu 0 RAX=0000000000000000 RBX=0000000000000000 RCX=0000000000000000 RDX=0000000000000000 RSI=0000000000000008 RDI=ffff88800fa1d668 RBP=dffffc0000000000 RSP=ffff888017887d78 R8 =0000000000000000 R9 =fffffbfff0ba77da R10=ffffffff85d3bed7 R11=00000000000b6996 R12=ffffe8ffffc164c0 R13=ffff88800ff6a500 R14=000000116c5f141f R15=ffff88800fa1d1c0 RIP=ffffffff81374466 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 00007f74f2098700 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=00007f402912c430 CR3=000000000decc000 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=656e6e6f637369642064657669656365 XMM02=63736964203a31313a38393432352074 XMM03=66207463656e6e6f6373696420646576 XMM04=6456774875434142334f726f59427469 XMM05=485320415352203a3268737320383934 XMM06=206d6f726620746f6f7220726f662079 XMM07=00000000000000000000000000000000 XMM08=3a677562656420676f6c737973720000 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=0000000000000000 RBX=1ffff11001e40f2e RCX=ffffffff812d8ec3 RDX=0000000000000001 RSI=0000000000000008 RDI=ffffffff85d3bed0 RBP=0000000000000001 RSP=ffff88800f207958 R8 =0000000000000001 R9 =0000000000000000 R10=ffffffff85d3bed7 R11=0000000000000000 R12=0000000000000000 R13=0000000000000000 R14=ffffffff856d8238 R15=0000000000000000 RIP=ffffffff8180fd28 RFL=00000056 [---ZAP-] 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 00007f3808dd5900 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=00007ffed3b63000 CR3=0000000016cb8000 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=6720646572637465733a4d41503d706f 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