[ OK ] Finished Update UTMP about System Runlevel Changes. [ 23.815575] BUG: Bad rss-counter state mm:000000005981de8f type:MM_FILEPAGES val:33 [ 23.815609] BUG: Bad rss-counter state mm:000000005981de8f type:MM_ANONPAGES val:22 [ 24.165209] ================================================================== [ 24.166353] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 24.167638] Read of size 8 at addr ffff88800e491ed8 by task sshd/221 [ 24.168407] [ 24.168621] CPU: 1 PID: 221 Comm: sshd Not tainted 6.4.0-rc7-next-20230620 #1 [ 24.169494] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 24.170469] Call Trace: [ 24.170789] [ 24.171089] dump_stack_lvl+0x91/0xf0 [ 24.171567] print_report+0xcc/0x620 [ 24.172037] ? __virt_addr_valid+0x102/0x340 [ 24.172576] ? vma_interval_tree_remove+0xc75/0xec0 [ 24.173181] ? vma_interval_tree_remove+0xc75/0xec0 [ 24.173785] kasan_report+0xbe/0xf0 [ 24.174254] ? vma_interval_tree_remove+0xc75/0xec0 [ 24.174894] vma_interval_tree_remove+0xc75/0xec0 [ 24.175492] vma_prepare+0xc54/0x11a0 [ 24.175959] __split_vma+0x5af/0x950 [ 24.176416] ? __pfx___split_vma+0x10/0x10 [ 24.176940] ? find_held_lock+0x2c/0x110 [ 24.177459] do_vmi_align_munmap+0x2ba/0x11f0 [ 24.178016] ? lock_is_held_type+0x9f/0x120 [ 24.178546] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 24.179151] ? mtree_range_walk+0x632/0x900 [ 24.179706] ? mas_walk+0x5c7/0x7c0 [ 24.180172] do_vmi_munmap+0x1f1/0x2b0 [ 24.180658] mmap_region+0x1f9/0x2660 [ 24.181136] ? vm_mmap_pgoff+0x15c/0x3a0 [ 24.181647] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 24.182369] ? __pfx_lock_acquire+0x10/0x10 [ 24.182911] ? __pfx_mmap_region+0x10/0x10 [ 24.183440] ? security_mmap_addr+0x7d/0xa0 [ 24.183975] ? get_unmapped_area+0x1f5/0x3f0 [ 24.184527] do_mmap+0x854/0xf00 [ 24.184970] vm_mmap_pgoff+0x1a6/0x3a0 [ 24.185459] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 24.186011] ksys_mmap_pgoff+0x3af/0x500 [ 24.186515] do_syscall_64+0x3f/0x90 [ 24.186993] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 24.187639] RIP: 0033:0x7f7fa1ecdd82 [ 24.188100] 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 [ 24.190240] RSP: 002b:00007fff498a6148 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 24.191159] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007f7fa1ecdd82 [ 24.192015] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007f7fa1307000 [ 24.192847] RBP: 00007f7fa1307000 R08: 0000000000000009 R09: 0000000000001000 [ 24.193696] R10: 0000000000000812 R11: 0000000000000206 R12: 0000556a5b96aec0 [ 24.194541] R13: 00007fff498a6160 R14: 00007fff498a6190 R15: 00007fff498a64f0 [ 24.195418] [ 24.195704] [ 24.195913] Allocated by task 206: [ 24.196333] kasan_save_stack+0x22/0x50 [ 24.196833] kasan_set_track+0x25/0x30 [ 24.197314] __kasan_slab_alloc+0x59/0x70 [ 24.197826] kmem_cache_alloc+0x16b/0x370 [ 24.198351] vm_area_dup+0x20/0x160 [ 24.198802] __split_vma+0x170/0x950 [ 24.199270] split_vma+0xc6/0x110 [ 24.199702] mprotect_fixup+0x8d2/0xb30 [ 24.200199] do_mprotect_pkey+0x87e/0xd40 [ 24.200718] __x64_sys_mprotect+0x78/0xc0 [ 24.201234] do_syscall_64+0x3f/0x90 [ 24.201711] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 24.202351] [ 24.202567] Freed by task 103: [ 24.202961] kasan_save_stack+0x22/0x50 [ 24.203456] kasan_set_track+0x25/0x30 [ 24.203940] kasan_save_free_info+0x2b/0x50 [ 24.204468] __kasan_slab_free+0x10a/0x190 [ 24.204999] kmem_cache_free+0x10d/0x4d0 [ 24.205511] rcu_core+0x8c8/0x2860 [ 24.205956] __do_softirq+0x1b7/0x7d4 [ 24.206426] [ 24.206637] Last potentially related work creation: [ 24.207227] kasan_save_stack+0x22/0x50 [ 24.207726] __kasan_record_aux_stack+0x8e/0xa0 [ 24.208342] __call_rcu_common.constprop.0+0x6a/0xb90 [ 24.208983] remove_vma+0x139/0x170 [ 24.209426] do_vmi_align_munmap+0xd4a/0x11f0 [ 24.209977] do_vmi_munmap+0x1f1/0x2b0 [ 24.210460] __vm_munmap+0x138/0x3a0 [ 24.210928] __x64_sys_munmap+0x59/0x80 [ 24.211416] do_syscall_64+0x3f/0x90 [ 24.211885] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 24.212522] [ 24.212735] Second to last potentially related work creation: [ 24.213411] kasan_save_stack+0x22/0x50 [ 24.213912] __kasan_record_aux_stack+0x8e/0xa0 [ 24.214493] __call_rcu_common.constprop.0+0x6a/0xb90 [ 24.215133] remove_vma+0x139/0x170 [ 24.215580] do_vmi_align_munmap+0xd4a/0x11f0 [ 24.216130] do_vmi_munmap+0x1f1/0x2b0 [ 24.216613] mmap_region+0x1f9/0x2660 [ 24.217091] do_mmap+0x854/0xf00 [ 24.217519] vm_mmap_pgoff+0x1a6/0x3a0 [ 24.218009] ksys_mmap_pgoff+0x3af/0x500 [ 24.218505] do_syscall_64+0x3f/0x90 [ 24.218982] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 24.219624] [ 24.219837] The buggy address belongs to the object at ffff88800e491e80 [ 24.219837] which belongs to the cache vm_area_struct of size 168 [ 24.221291] The buggy address is located 88 bytes inside of [ 24.221291] freed 168-byte region [ffff88800e491e80, ffff88800e491f28) [ 24.222694] [ 24.222931] The buggy address belongs to the physical page: [ 24.223582] page:00000000b7b4e695 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xe491 [ 24.224655] memcg:ffff88800de07e01 [ 24.225076] flags: 0x100000000000200(slab|node=0|zone=1) [ 24.225723] page_type: 0xffffffff() [ 24.226171] raw: 0100000000000200 ffff8880087a0c80 ffffea0000409f00 dead000000000008 [ 24.227098] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff88800de07e01 [ 24.228010] page dumped because: kasan: bad access detected [ 24.228671] [ 24.228886] Memory state around the buggy address: [ 24.229463] ffff88800e491d80: fc fc fc 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.230320] ffff88800e491e00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 24.231176] >ffff88800e491e80: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.232018] ^ [ 24.232738] ffff88800e491f00: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc [ 24.233603] ffff88800e491f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.234441] ================================================================== [ 24.235377] Disabling lock debugging due to kernel taint Debian GNU/Linux 11 syzkaller ttyS0 syzkaller login: [ 26.241278] BUG: Bad rss-counter state mm:00000000175bedae type:MM_FILEPAGES val:33 [ 26.242210] BUG: Bad rss-counter state mm:00000000175bedae type:MM_ANONPAGES val:22 [ 26.832282] BUG: Bad rss-counter state mm:0000000009278e44 type:MM_FILEPAGES val:33 [ 26.833426] BUG: Bad rss-counter state mm:0000000009278e44 type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:53709' (ECDSA) to the list of known hosts. [ 26.871855] general protection fault, probably for non-canonical address 0xe0d23c206000000d: 0000 [#1] PREEMPT SMP KASAN NOPTI [ 26.873514] KASAN: maybe wild-memory-access in range [0x0692010300000068-0x069201030000006f] [ 26.874708] CPU: 1 PID: 238 Comm: sshd Tainted: G B 6.4.0-rc7-next-20230620 #1 [ 26.875883] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 26.876898] RIP: 0010:__rb_insert_augmented+0x9d/0x8b0 [ 26.877594] Code: c2 48 c1 ea 03 42 80 3c 2a 00 0f 85 55 05 00 00 4d 8b 74 24 08 49 39 ee 0f 84 77 01 00 00 4d 85 f6 74 1c 4c 89 f2 48 c1 ea 03 <42> 80 3c 2a 00 0f 85 61 05 00 00 41 f6 06 01 0f 84 7a 04 00 00 48 [ 26.879847] RSP: 0018:ffff888016bff8a8 EFLAGS: 00010212 [ 26.880521] RAX: ffff888019305510 RBX: ffff8880102fdb20 RCX: ffffffff844d49f9 [ 26.881419] RDX: 00d240206000000d RSI: 0000000000000008 RDI: ffff888009a85e88 [ 26.882311] RBP: ffff88800ee8dc80 R08: ffff888009a85e88 R09: 0000000000000000 [ 26.883213] R10: 0000000000000000 R11: 00000000000b6a61 R12: ffff888009a85e80 [ 26.884102] R13: dffffc0000000000 R14: 069201030000006a R15: ffffffff816e6340 [ 26.885002] FS: 00007f9cc7e63900(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000 [ 26.886003] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 26.886741] CR2: 00007f9cc7e2a000 CR3: 000000000e816000 CR4: 0000000000350ee0 [ 26.887660] Call Trace: [ 26.887997] [ 26.888295] ? die_addr+0x3c/0xa0 [ 26.888762] ? exc_general_protection+0x125/0x220 [ 26.889418] ? asm_exc_general_protection+0x26/0x30 [ 26.890085] ? __pfx_vma_interval_tree_augment_rotate+0x10/0x10 [ 26.890867] ? __rb_insert_augmented+0x5e9/0x8b0 [ 26.891512] ? __rb_insert_augmented+0x9d/0x8b0 [ 26.892133] ? __rb_insert_augmented+0x5e9/0x8b0 [ 26.892772] vma_prepare+0xa1a/0x11a0 [ 26.893279] __split_vma+0x5af/0x950 [ 26.893787] ? __pfx___split_vma+0x10/0x10 [ 26.894346] ? lock_acquire+0x434/0x4c0 [ 26.894884] do_vmi_align_munmap+0x361/0x11f0 [ 26.895492] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 26.896142] ? mtree_range_walk+0x632/0x900 [ 26.896733] ? mas_walk+0x5c7/0x7c0 [ 26.897238] do_vmi_munmap+0x1f1/0x2b0 [ 26.897760] mmap_region+0x1f9/0x2660 [ 26.898274] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 26.899053] ? __pfx_lock_acquire+0x10/0x10 [ 26.899620] ? __pfx_mmap_region+0x10/0x10 [ 26.900182] ? security_mmap_addr+0x7d/0xa0 [ 26.900750] ? get_unmapped_area+0x1f5/0x3f0 [ 26.901337] do_mmap+0x854/0xf00 [ 26.901806] vm_mmap_pgoff+0x1a6/0x3a0 [ 26.902336] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 26.902936] ksys_mmap_pgoff+0x3af/0x500 [ 26.903479] do_syscall_64+0x3f/0x90 [ 26.903989] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 26.904674] RIP: 0033:0x7f9cc89f5d82 [ 26.905159] 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 [ 26.907408] RSP: 002b:00007ffd8b200c78 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 26.908369] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007f9cc89f5d82 [ 26.909262] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007f9cc7e25000 [ 26.910162] RBP: 00007f9cc7e25000 R08: 0000000000000008 R09: 0000000000001000 [ 26.911101] R10: 0000000000000812 R11: 0000000000000206 R12: 000056265ab9d800 [ 26.912006] R13: 00007ffd8b200c90 R14: 00007ffd8b200cc0 R15: 00007ffd8b201020 [ 26.912934] [ 26.913243] Modules linked in: [ 26.914024] ---[ end trace 0000000000000000 ]--- [ 26.914866] RIP: 0010:__rb_insert_augmented+0x9d/0x8b0 [ 26.915699] Code: c2 48 c1 ea 03 42 80 3c 2a 00 0f 85 55 05 00 00 4d 8b 74 24 08 49 39 ee 0f 84 77 01 00 00 4d 85 f6 74 1c 4c 89 f2 48 c1 ea 03 <42> 80 3c 2a 00 0f 85 61 05 00 00 41 f6 06 01 0f 84 7a 04 00 00 48 [ 26.918379] RSP: 0018:ffff888016bff8a8 EFLAGS: 00010212 [ 26.919380] RAX: ffff888019305510 RBX: ffff8880102fdb20 RCX: ffffffff844d49f9 [ 26.920679] RDX: 00d240206000000d RSI: 0000000000000008 RDI: ffff888009a85e88 [ 26.921694] RBP: ffff88800ee8dc80 R08: ffff888009a85e88 R09: 0000000000000000 [ 26.922645] R10: 0000000000000000 R11: 00000000000b6a61 R12: ffff888009a85e80 [ 26.923609] R13: dffffc0000000000 R14: 069201030000006a R15: ffffffff816e6340 [ 26.924575] FS: 00007f9cc7e63900(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000 [ 26.925648] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 26.926445] CR2: 00007f9cc7e2a000 CR3: 000000000e816000 CR4: 0000000000350ee0 VM DIAGNOSIS: 14:57:26 Registers: info registers vcpu 0 RAX=0000000000000000 RBX=00005643f38f2ed0 RCX=0000000000000a23 RDX=0000000000000002 RSI=0000000000000a23 RDI=00005643f38f2fb0 RBP=00007ffd20f151c0 RSP=00007ffd20f15160 R8 =00005643f39017e9 R9 =00007f03b2b4dbe0 R10=0000000000000100 R11=0000000000000246 R12=0000000000000002 R13=00005643f39017ea R14=0000000000000002 R15=0000000000000000 RIP=00007f03b2a04865 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 00007f03b259b900 00000000 00000000 GS =0000 0000000000000000 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=00007ffd20f0f000 CR3=000000000e57e000 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=0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a XMM01=0000000000ff00ff0000000000000000 XMM02=ffffffffffffff00ffff000000000000 XMM03=756f7267207972616d69727020656874 XMM04=40404040404040404040404040404040 XMM05=5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a XMM06=20202020202020202020202020202020 XMM07=ff0000000000000000ffffffffffffff XMM08=00000000000000810000363532616873 XMM09=00000000000000000000000000000000 XMM10=00002020202020200020202020202020 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=ffff88806cf35000 RBX=0000000000000001 RCX=ffffffff8451250e RDX=ffffed100d9e6a01 RSI=0000000000000004 RDI=ffffffff81288ac5 RBP=dffffc0000000000 RSP=ffff888008e07e70 R8 =0000000000000000 R9 =ffffed100d9e6a00 R10=ffff88806cf35003 R11=ffff888008c04400 R12=ffffffff85d3d350 R13=1ffff110011c0fd3 R14=0000000000000000 R15=0000000000000000 RIP=ffffffff8451349f RFL=00000246 [---Z-P-] CPL=0 II=0 A20=1 SMM=0 HLT=1 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=00007f437ecd6b80 CR3=000000000db4e000 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=3ebb09a8296e36add94f2512fe055323 XMM02=000000000011a140eff9b2d0a8fce9cb XMM03=000000000011a2102c67c8bc2e329bc3 XMM04=53ae119e0ba5fa2600000000000ae988 XMM05=4366b5eac2fdcd2600000000001321d8 XMM06=4fda316b135da52b0000000000131948 XMM07=e042d86d42eb936e000000000011dee8 XMM08=3ad9606061b926c8000000000011a210 XMM09=00000000000000000000000000000000 XMM10=20200000000020202020202020200000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000