[ 30.690821] BUG: Bad rss-counter state mm:00000000c8fc83c1 type:MM_FILEPAGES val:33 [ 30.691805] BUG: Bad rss-counter state mm:00000000c8fc83c1 type:MM_ANONPAGES val:22 [ 30.791328] ================================================================== [ 30.792019] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 30.792748] Read of size 8 at addr ffff88801bd10ed8 by task sshd/220 [ 30.793344] [ 30.793515] CPU: 0 PID: 220 Comm: sshd Not tainted 6.4.0-rc7-next-20230619 #1 [ 30.794176] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 30.795033] Call Trace: [ 30.795278] [ 30.795496] dump_stack_lvl+0x91/0xf0 [ 30.795866] print_report+0xcc/0x620 [ 30.796238] ? __virt_addr_valid+0x102/0x340 [ 30.796674] ? vma_interval_tree_remove+0xc75/0xec0 [ 30.797111] ? vma_interval_tree_remove+0xc75/0xec0 [ 30.797443] kasan_report+0xbe/0xf0 [ 30.797700] ? vma_interval_tree_remove+0xc75/0xec0 [ 30.798036] vma_interval_tree_remove+0xc75/0xec0 [ 30.798360] vma_prepare+0xc54/0x11a0 [ 30.798619] __split_vma+0x5af/0x950 [ 30.798877] ? __pfx___split_vma+0x10/0x10 [ 30.799162] ? find_held_lock+0x2c/0x110 [ 30.799448] do_vmi_align_munmap+0x2ba/0x11f0 [ 30.799749] ? lock_is_held_type+0x9f/0x120 [ 30.800054] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 30.800399] ? mtree_range_walk+0x632/0x900 [ 30.800725] ? mas_walk+0x5c7/0x7c0 [ 30.801000] do_vmi_munmap+0x1f1/0x2b0 [ 30.801288] mmap_region+0x1f9/0x2660 [ 30.801578] ? vm_mmap_pgoff+0x15c/0x3a0 [ 30.801884] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 30.802301] ? __pfx_lock_acquire+0x10/0x10 [ 30.802610] ? __pfx_mmap_region+0x10/0x10 [ 30.802924] ? security_mmap_addr+0x7d/0xa0 [ 30.803238] ? get_unmapped_area+0x1f5/0x3f0 [ 30.803565] do_mmap+0x854/0xf00 [ 30.803825] vm_mmap_pgoff+0x1a6/0x3a0 [ 30.804117] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 30.804442] ksys_mmap_pgoff+0x3af/0x500 [ 30.804739] do_syscall_64+0x3f/0x90 [ 30.805020] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 30.805393] RIP: 0033:0x7fd1cd3fad82 [ 30.805664] 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.806906] RSP: 002b:00007ffd46079eb8 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 30.807432] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007fd1cd3fad82 [ 30.807927] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007fd1cc834000 [ 30.808420] RBP: 00007fd1cc834000 R08: 0000000000000009 R09: 0000000000001000 [ 30.808935] R10: 0000000000000812 R11: 0000000000000206 R12: 000055f8bf2dcec0 [ 30.809426] R13: 00007ffd46079ed0 R14: 00007ffd46079f00 R15: 00007ffd4607a260 [ 30.809920] [ 30.810083] [ 30.810206] Allocated by task 210: [ 30.810454] kasan_save_stack+0x22/0x50 [ 30.810752] kasan_set_track+0x25/0x30 [ 30.811048] __kasan_slab_alloc+0x59/0x70 [ 30.811357] kmem_cache_alloc+0x16b/0x370 [ 30.811653] vm_area_dup+0x20/0x160 [ 30.811928] __split_vma+0x170/0x950 [ 30.812200] split_vma+0xc6/0x110 [ 30.812454] mprotect_fixup+0x8d2/0xb30 [ 30.812751] do_mprotect_pkey+0x87e/0xd40 [ 30.813052] __x64_sys_mprotect+0x78/0xc0 [ 30.813360] do_syscall_64+0x3f/0x90 [ 30.813638] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 30.814007] [ 30.814133] Freed by task 203: [ 30.814362] kasan_save_stack+0x22/0x50 [ 30.814658] kasan_set_track+0x25/0x30 [ 30.814940] kasan_save_free_info+0x2b/0x50 [ 30.815258] __kasan_slab_free+0x10a/0x190 [ 30.815575] kmem_cache_free+0x10d/0x4d0 [ 30.815877] rcu_core+0x8c8/0x2860 [ 30.816139] __do_softirq+0x1b7/0x7d4 [ 30.816422] [ 30.816549] Last potentially related work creation: [ 30.816926] kasan_save_stack+0x22/0x50 [ 30.817229] __kasan_record_aux_stack+0x8e/0xa0 [ 30.817579] __call_rcu_common.constprop.0+0x6a/0xb90 [ 30.817957] remove_vma+0x139/0x170 [ 30.818220] do_vmi_align_munmap+0xd4a/0x11f0 [ 30.818547] do_vmi_munmap+0x1f1/0x2b0 [ 30.818836] __vm_munmap+0x138/0x3a0 [ 30.819108] __x64_sys_munmap+0x59/0x80 [ 30.819391] do_syscall_64+0x3f/0x90 [ 30.819664] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 30.820048] [ 30.820176] The buggy address belongs to the object at ffff88801bd10e80 [ 30.820176] which belongs to the cache vm_area_struct of size 168 [ 30.821064] The buggy address is located 88 bytes inside of [ 30.821064] freed 168-byte region [ffff88801bd10e80, ffff88801bd10f28) [ 30.821882] [ 30.822004] The buggy address belongs to the physical page: [ 30.822396] page:00000000b7eb014d refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1bd10 [ 30.823060] memcg:ffff88801bcfd501 [ 30.823310] flags: 0x100000000000200(slab|node=0|zone=1) [ 30.823692] page_type: 0xffffffff() [ 30.823966] raw: 0100000000000200 ffff88800879fc80 dead000000000122 0000000000000000 [ 30.824507] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff88801bcfd501 [ 30.825050] page dumped because: kasan: bad access detected [ 30.825445] [ 30.825568] Memory state around the buggy address: [ 30.825922] ffff88801bd10d80: fc fc fc 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.826434] ffff88801bd10e00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 30.826944] >ffff88801bd10e80: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.827456] ^ [ 30.827893] ffff88801bd10f00: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc [ 30.828400] ffff88801bd10f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.828899] ================================================================== [ 30.829539] Disabling lock debugging due to kernel taint Debian GNU/Linux 11 syzkaller ttyS0 syzkaller login: [ 32.837815] BUG: Bad rss-counter state mm:00000000a6a7db15 type:MM_FILEPAGES val:33 [ 32.839073] BUG: Bad rss-counter state mm:00000000a6a7db15 type:MM_ANONPAGES val:22 [ 33.281635] BUG: Bad rss-counter state mm:00000000586b1057 type:MM_FILEPAGES val:33 [ 33.282909] BUG: Bad rss-counter state mm:00000000586b1057 type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:53750' (ECDSA) to the list of known hosts. 2023/06/19 19:59:10 fuzzer started 2023/06/19 19:59:10 dialing manager at localhost:44161 2023/06/19 19:59:10 checking machine... 2023/06/19 19:59:10 checking revisions... [ 33.947756] kmemleak: Automatic memory scanning thread ended 2023/06/19 19:59:10 testing simple program... [ 34.001205] cgroup: Unknown subsys name 'net' [ 34.043574] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 19:59:10 Registers: info registers vcpu 0 RAX=0000000000000001 RBX=0000000000001000 RCX=0000000000000ac0 RDX=0000000000000000 RSI=ffff88801ba76540 RDI=0000556c371519f0 RBP=0000556c371514b0 RSP=ffff8880099af990 R8 =6120646461726573 R9 =762065687420646e R10=73656c6261697261 R11=6874206c6c697720 R12=ffff88801ba76000 R13=0000556c371524b0 R14=0000000000000000 R15=ffff8880099afdb0 RIP=ffffffff844fb866 RFL=00040202 [-------] 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 00007fd8a590d900 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=00007ffeee165000 CR3=000000000eea8000 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=2c2c2c2c2c2c2c2c2c2c2c2c2c2c2c2c XMM01=00ff00000000000000000000000000ff XMM02=00ff00000000000000000000000000ff XMM03=655f6d61702c7374696d696c5f6d6170 XMM04=3d6c616e696d72657420322e322e302e XMM05=3d656d616e74736f682022646873732f XMM06=746f6f72223d746363612078756e696c XMM07=6e655f6d61702c7374696d696c5f6d61 XMM08=6500273d2720676e6974636570786500 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=00000000dead4ead RBX=ffffffff856d8220 RCX=0000000000000000 RDX=0000000000000000 RSI=0000000000000008 RDI=ffffffff856d8224 RBP=1ffff11002064ee9 RSP=ffff888010327740 R8 =0000000000000000 R9 =fffffbfff0ba77da R10=ffffffff85d3bed7 R11=00000000000b6996 R12=0000000000000246 R13=0000000000000000 R14=ffff88800e3e3e88 R15=ffff88800e3e3e40 RIP=ffffffff812e004a 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 00007f5be748d900 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=00007f5be6891b30 CR3=0000000013a36000 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=756f6a2f646d65747379732f6e75722f XMM01=00676f6c7379732f6c616e72756f6a2f XMM02=756f6a2f646d65747379732f6e75722f XMM03=006c616e72756f6a2f646d6574737973 XMM04=495ee8c5f698aeba00000000000ae988 XMM05=6896a079ac66d96d0000000000134958 XMM06=19e9129bd510f2350000000000133480 XMM07=fb795ef6d65770560000000000122f40 XMM08=4f5453444600273d67736d000d0a0920 XMM09=00000000000000000000000000000000 XMM10=20200000000020202020202020200000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000