Starting Update UTMP about System Runlevel Changes... [ 33.642861] BUG: Bad rss-counter state mm:00000000800995bb type:MM_FILEPAGES val:33 [ 33.643429] BUG: Bad rss-counter state mm:00000000800995bb type:MM_ANONPAGES val:22 [ OK ] Finished Update UTMP about System Runlevel Changes. [ 33.794566] ================================================================== [ 33.794576] BUG: KASAN: slab-use-after-free in vma_interval_tree_remove+0xc75/0xec0 [ 33.794609] Read of size 8 at addr ffff88801a244310 by task sshd/218 [ 33.794623] [ 33.794626] CPU: 1 PID: 218 Comm: sshd Not tainted 6.4.0-rc7-next-20230619 #1 [ 33.794645] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 33.794654] Call Trace: [ 33.794660] [ 33.794666] dump_stack_lvl+0x91/0xf0 [ 33.794693] print_report+0xcc/0x620 [ 33.794722] ? __virt_addr_valid+0x102/0x340 [ 33.794743] ? vma_interval_tree_remove+0xc75/0xec0 [ 33.794768] ? vma_interval_tree_remove+0xc75/0xec0 [ 33.794789] kasan_report+0xbe/0xf0 [ 33.794817] ? vma_interval_tree_remove+0xc75/0xec0 [ 33.794840] vma_interval_tree_remove+0xc75/0xec0 [ 33.794864] vma_prepare+0xc54/0x11a0 [ 33.794884] __split_vma+0x5af/0x950 [ 33.794905] ? __pfx___split_vma+0x10/0x10 [ 33.794927] ? find_held_lock+0x2c/0x110 [ 33.794956] do_vmi_align_munmap+0x2ba/0x11f0 [ 33.794979] ? lock_is_held_type+0x9f/0x120 [ 33.795001] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 33.795022] ? mtree_range_walk+0x632/0x900 [ 33.795052] ? mas_walk+0x5c7/0x7c0 [ 33.795079] do_vmi_munmap+0x1f1/0x2b0 [ 33.795101] mmap_region+0x1f9/0x2660 [ 33.795122] ? vm_mmap_pgoff+0x15c/0x3a0 [ 33.795146] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 33.795167] ? __pfx_lock_acquire+0x10/0x10 [ 33.795187] ? __pfx_mmap_region+0x10/0x10 [ 33.795209] ? security_mmap_addr+0x7d/0xa0 [ 33.795229] ? get_unmapped_area+0x1f5/0x3f0 [ 33.795248] do_mmap+0x854/0xf00 [ 33.795270] vm_mmap_pgoff+0x1a6/0x3a0 [ 33.795294] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 33.795320] ksys_mmap_pgoff+0x3af/0x500 [ 33.795340] do_syscall_64+0x3f/0x90 [ 33.795364] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 33.795393] RIP: 0033:0x7f683e1a3d82 [ 33.795405] 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 [ 33.795422] RSP: 002b:00007ffd478f8f38 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 33.795438] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007f683e1a3d82 [ 33.795451] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007f683d5dd000 [ 33.795479] RBP: 00007f683d5dd000 R08: 0000000000000009 R09: 0000000000001000 [ 33.795490] R10: 0000000000000812 R11: 0000000000000206 R12: 0000559cee98ef70 [ 33.795501] R13: 00007ffd478f8f50 R14: 00007ffd478f8f80 R15: 00007ffd478f92e0 [ 33.795518] [ 33.795522] [ 33.795525] Allocated by task 205: [ 33.795531] kasan_save_stack+0x22/0x50 [ 33.795556] kasan_set_track+0x25/0x30 [ 33.795579] __kasan_slab_alloc+0x59/0x70 [ 33.795603] kmem_cache_alloc+0x16b/0x370 [ 33.795623] vm_area_dup+0x20/0x160 [ 33.795640] __split_vma+0x170/0x950 [ 33.795657] split_vma+0xc6/0x110 [ 33.795674] mprotect_fixup+0x8d2/0xb30 [ 33.795697] do_mprotect_pkey+0x87e/0xd40 [ 33.795719] __x64_sys_mprotect+0x78/0xc0 [ 33.795742] do_syscall_64+0x3f/0x90 [ 33.795763] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 33.795788] [ 33.795790] Freed by task 202: [ 33.795797] kasan_save_stack+0x22/0x50 [ 33.795820] kasan_set_track+0x25/0x30 [ 33.795843] kasan_save_free_info+0x2b/0x50 [ 33.795861] __kasan_slab_free+0x10a/0x190 [ 33.795886] kmem_cache_free+0x10d/0x4d0 [ 33.795906] rcu_core+0x8c8/0x2860 [ 33.795922] __do_softirq+0x1b7/0x7d4 [ 33.795940] [ 33.795943] Last potentially related work creation: [ 33.795947] kasan_save_stack+0x22/0x50 [ 33.795970] __kasan_record_aux_stack+0x8e/0xa0 [ 33.795988] __call_rcu_common.constprop.0+0x6a/0xb90 [ 33.796015] remove_vma+0x139/0x170 [ 33.796029] do_vmi_align_munmap+0xd4a/0x11f0 [ 33.796048] do_vmi_munmap+0x1f1/0x2b0 [ 33.796066] __vm_munmap+0x138/0x3a0 [ 33.796084] __x64_sys_munmap+0x59/0x80 [ 33.796103] do_syscall_64+0x3f/0x90 [ 33.796124] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 33.796149] [ 33.796151] The buggy address belongs to the object at ffff88801a2442b8 [ 33.796151] which belongs to the cache vm_area_struct of size 168 [ 33.796164] The buggy address is located 88 bytes inside of [ 33.796164] freed 168-byte region [ffff88801a2442b8, ffff88801a244360) [ 33.796181] [ 33.796183] The buggy address belongs to the physical page: [ 33.796189] page:00000000690ab370 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1a244 [ 33.796209] memcg:ffff88801a1c9b01 [ 33.796216] flags: 0x100000000000200(slab|node=0|zone=1) [ 33.796231] page_type: 0xffffffff() [ 33.796245] raw: 0100000000000200 ffff88800879fc80 dead000000000122 0000000000000000 [ 33.796261] raw: 0000000000000000 0000000000110011 00000001ffffffff ffff88801a1c9b01 [ 33.796270] page dumped because: kasan: bad access detected [ 33.796276] [ 33.796278] Memory state around the buggy address: [ 33.796285] ffff88801a244200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 33.796296] ffff88801a244280: fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb fb [ 33.796307] >ffff88801a244300: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 33.796315] ^ [ 33.796322] ffff88801a244380: fc fc fc fc fa fb fb fb fb fb fb fb fb fb fb fb [ 33.796333] ffff88801a244400: fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc [ 33.796342] ================================================================== [ 33.796410] Disabling lock debugging due to kernel taint Debian GNU/Linux 11 syzkaller ttyS0 syzkaller login: [ 35.854492] BUG: Bad rss-counter state mm:00000000c531bc4d type:MM_FILEPAGES val:33 [ 35.855912] BUG: Bad rss-counter state mm:00000000c531bc4d type:MM_ANONPAGES val:22 [ 36.452803] BUG: Bad rss-counter state mm:0000000082b052e8 type:MM_FILEPAGES val:33 [ 36.453973] BUG: Bad rss-counter state mm:0000000082b052e8 type:MM_ANONPAGES val:22 Warning: Permanently added '[localhost]:5330' (ECDSA) to the list of known hosts. [ 36.493357] general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN NOPTI [ 36.494667] KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] [ 36.495538] CPU: 1 PID: 236 Comm: sshd Tainted: G B 6.4.0-rc7-next-20230619 #1 [ 36.496514] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 36.497442] RIP: 0010:__rb_insert_augmented+0x78/0x8b0 [ 36.498066] Code: ea 48 c1 ea 03 42 80 3c 2a 00 0f 85 65 05 00 00 4c 8b 65 00 41 f6 c4 01 0f 85 18 05 00 00 4d 8d 44 24 08 4c 89 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 [ 36.500055] RSP: 0018:ffff888016e3f8a8 EFLAGS: 00010212 [ 36.500662] RAX: ffff888019b0a388 RBX: ffff88800df53780 RCX: ffffffff844ce9df [ 36.501456] RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff88800cb09780 [ 36.502256] RBP: ffff88800cb09780 R08: 0000000000000008 R09: 0000000000000000 [ 36.503054] R10: 0000000000000000 R11: 00000000000b6996 R12: 0000000000000000 [ 36.503858] R13: dffffc0000000000 R14: ffff888016e3f988 R15: ffffffff816e61c0 [ 36.504658] FS: 00007f6a36a66900(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000 [ 36.505558] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 36.506213] CR2: 00007f6a36a22000 CR3: 000000000e996000 CR4: 0000000000350ee0 [ 36.507014] Call Trace: [ 36.507312] [ 36.507598] ? die_addr+0x3c/0xa0 [ 36.508017] ? exc_general_protection+0x125/0x220 [ 36.508593] ? asm_exc_general_protection+0x26/0x30 [ 36.509187] ? __pfx_vma_interval_tree_augment_rotate+0x10/0x10 [ 36.509884] ? __rb_insert_augmented+0x5cf/0x8b0 [ 36.510450] ? __rb_insert_augmented+0x78/0x8b0 [ 36.511006] ? __rb_insert_augmented+0x5cf/0x8b0 [ 36.511572] vma_prepare+0xa1a/0x11a0 [ 36.512031] __split_vma+0x5af/0x950 [ 36.512478] ? __pfx___split_vma+0x10/0x10 [ 36.512980] ? lock_acquire+0x434/0x4c0 [ 36.513456] do_vmi_align_munmap+0x361/0x11f0 [ 36.513995] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 36.514567] ? mtree_range_walk+0x632/0x900 [ 36.515090] ? mas_walk+0x5c7/0x7c0 [ 36.515560] do_vmi_munmap+0x1f1/0x2b0 [ 36.516030] mmap_region+0x1f9/0x2660 [ 36.516488] ? __pfx_arch_get_unmapped_area_topdown+0x10/0x10 [ 36.517163] ? __pfx_lock_acquire+0x10/0x10 [ 36.517662] ? __pfx_mmap_region+0x10/0x10 [ 36.518165] ? security_mmap_addr+0x7d/0xa0 [ 36.518666] ? get_unmapped_area+0x1f5/0x3f0 [ 36.519180] do_mmap+0x854/0xf00 [ 36.519626] vm_mmap_pgoff+0x1a6/0x3a0 [ 36.520102] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 36.520640] ksys_mmap_pgoff+0x3af/0x500 [ 36.521121] do_syscall_64+0x3f/0x90 [ 36.521574] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 36.522178] RIP: 0033:0x7f6a375f8d82 [ 36.522606] 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 [ 36.524601] RSP: 002b:00007ffe81c66b18 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 [ 36.525446] RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007f6a375f8d82 [ 36.526243] RDX: 0000000000000005 RSI: 0000000000001000 RDI: 00007f6a36a1c000 [ 36.527038] RBP: 00007f6a36a1c000 R08: 0000000000000008 R09: 0000000000001000 [ 36.527853] R10: 0000000000000812 R11: 0000000000000206 R12: 00005641b6a02930 [ 36.528669] R13: 00007ffe81c66b30 R14: 00007ffe81c66b60 R15: 00007ffe81c66ec0 [ 36.529532] [ 36.529823] Modules linked in: [ 36.530401] ---[ end trace 0000000000000000 ]--- [ 36.531129] RIP: 0010:__rb_insert_augmented+0x78/0x8b0 [ 36.531954] Code: ea 48 c1 ea 03 42 80 3c 2a 00 0f 85 65 05 00 00 4c 8b 65 00 41 f6 c4 01 0f 85 18 05 00 00 4d 8d 44 24 08 4c 89 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 [ 36.534472] RSP: 0018:ffff888016e3f8a8 EFLAGS: 00010212 [ 36.535283] RAX: ffff888019b0a388 RBX: ffff88800df53780 RCX: ffffffff844ce9df [ 36.536433] RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff88800cb09780 [ 36.537310] RBP: ffff88800cb09780 R08: 0000000000000008 R09: 0000000000000000 [ 36.538187] R10: 0000000000000000 R11: 00000000000b6996 R12: 0000000000000000 [ 36.539067] R13: dffffc0000000000 R14: ffff888016e3f988 R15: ffffffff816e61c0 [ 36.539976] FS: 00007f6a36a66900(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000 [ 36.540971] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 36.541670] CR2: 00007f6a36a22000 CR3: 000000000e996000 CR4: 0000000000350ee0 VM DIAGNOSIS: 10:38:51 Registers: info registers vcpu 0 RAX=ffffffff8450b05e RBX=ffffffff813ad420 RCX=ffffffff8609fb01 RDX=1ffff1100d9c135e RSI=ffffffff8450b05e RDI=ffff88806ce09b60 RBP=ffff88806ce09b30 RSP=ffff88806ce09a90 R8 =ffffffff8609fb08 R9 =ffff88806ce09ad8 R10=0000000000038001 R11=000000000000792d R12=ffff88806ce09b60 R13=0000000000000000 R14=ffff888016eb1b40 R15=ffff8880168e2b30 RIP=ffffffff813ad424 RFL=00000282 [--S----] 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 =0000 0000000000000000 00000000 00000000 DS =0000 0000000000000000 00000000 00000000 FS =0000 00007fd1a173b900 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=00007fd1a1cf2618 CR3=000000001bba0000 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=6e69676f6c5f6d61702c78756e696c65 XMM02=755f6d61702c74696d7265705f6d6170 XMM03=2c766e655f6d61702c7374696d696c5f XMM04=6d61702c766e655f6d61702c7374696d XMM05=78696e755f6d61702c74696d7265705f XMM06=6469756e69676f6c5f6d61702c78756e XMM07=672065736f6c635f6e6f69737365733a XMM08=61662029286e65706f5f746964756100 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000 info registers vcpu 1 RAX=0000000000000000 RBX=0000000000000002 RCX=0000000000000001 RDX=ffff888016c7f501 RSI=ffff888016c7f5d0 RDI=ffff888016c7f5d0 RBP=ffff88806cf09ad0 RSP=ffff88806cf09a08 R8 =0000000000000001 R9 =ffff88806cf09ab8 R10=0000000000038001 R11=00000000000b523e R12=ffff88806cf09ad8 R13=ffff88806cf09ac0 R14=ffff888016c7f5d0 R15=ffff88806cf09a78 RIP=ffffffff81131236 RFL=00000202 [-------] 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 00007f69abd83700 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=00007f3b4ff49ca0 CR3=0000000016b4e000 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=2033353a38333a3031203032206e754a XMM01=73732878696e755f6d6170203a5d3732 XMM02=65736f6c63206e6f6973736573203a29 XMM03=755f6d6170203a5d3732325b64687373 XMM04=69662068637573206f4e203a656c6163 XMM05=3a656c696620766e65206e65706f206f XMM06=65733a6468737328766e655f6d617020 XMM07=6b7a79732033353a38333a3031203032 XMM08=3d656e696c646d632022656369767265 XMM09=00000000000000000000000000000000 XMM10=00000000000000000000000000000000 XMM11=00000000000000000000000000000000 XMM12=00000000000000000000000000000000 XMM13=00000000000000000000000000000000 XMM14=00000000000000000000000000000000 XMM15=00000000000000000000000000000000