================================================================== BUG: KASAN: stack-out-of-bounds in unwind_next_frame+0x1aa1/0x22d0 Read of size 8 at addr ffff888019c8f5a0 by task syz-executor.1/138622 CPU: 1 PID: 138622 Comm: syz-executor.1 Not tainted 6.2.0-rc8-next-20230215 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: dump_stack_lvl+0x91/0xf0 print_report+0xcc/0x620 kasan_report+0xc0/0xf0 unwind_next_frame+0x1aa1/0x22d0 arch_stack_walk+0x87/0xf0 stack_trace_save+0x90/0xd0 kasan_save_stack+0x22/0x50 kasan_set_track+0x25/0x30 kasan_save_free_info+0x2e/0x50 __kasan_slab_free+0x10a/0x190 kmem_cache_free+0xff/0x510 rcu_core+0x822/0x1d40 __do_softirq+0x258/0x8a2 __irq_exit_rcu+0xcc/0x110 irq_exit_rcu+0x9/0x20 sysvec_apic_timer_interrupt+0x6e/0x90 asm_sysvec_apic_timer_interrupt+0x1a/0x20 RIP: 0010:strlen+0x6d/0xa0 Code: 48 83 c0 01 48 89 c2 48 89 c1 48 c1 ea 03 83 e1 07 0f b6 14 1a 38 ca 7f 04 84 d2 75 27 80 38 00 75 de 48 83 c4 08 48 29 e8 5b <5d> e9 11 b8 05 00 48 83 c4 08 31 c0 5b 5d e9 04 b8 05 00 e8 6b 52 RSP: 0018:ffff888019c8f500 EFLAGS: 00000202 RAX: 0000000000000010 RBX: ffff88800e2c0690 RCX: 0000000000000000 RDX: 0000000000000001 RSI: ffff88804dcf6bb8 RDI: ffffffff848543e0 RBP: ffffffff848543e0 R08: 0000000000000000 R09: 0000000000000001 R10: fffffbfff0ba4a72 R11: 0000000000000001 R12: 0000000000000001 R13: 1ffff11003391ea9 R14: ffff888019c8f5c8 R15: ffffffff8550e200 asm_sysvec_apic_timer_interrupt+0x1a/0x20 RIP: 0010:lock_acquire.part.0+0x10f/0x320 Code: b6 c9 e8 e4 86 ff ff b8 ff ff ff ff 48 83 c4 28 65 0f c1 05 03 2a d5 7e 83 f8 01 0f 85 ab 01 00 00 48 85 ed 0f 85 9c 01 00 00 <48> b8 00 00 00 00 00 fc ff df 48 01 c3 48 c7 03 00 00 00 00 48 c7 RSP: 0018:ffff888019c8f5c0 EFLAGS: 00000206 RAX: 0000000000000001 RBX: ffff88804dcf6bb8 RCX: 0000000000000001 RDX: 1ffff1100980c12b RSI: 0000000000000008 RDI: ffffffff871384b8 RBP: 1ffff11003391ea9 R08: 0000000000000000 R09: ffffffff812b6380 R10: ffffffff851c43e8 R11: 0000000041b58ab3 R12: ffff88804dcf6bd0 R13: 0000000000000000 R14: ffffea00013a3b40 R15: dffffc0000000000 _raw_spin_lock_nested+0x29/0x40 copy_page_range+0xee0/0x37d0 dup_mmap+0xa7c/0x1120 copy_process+0x3b05/0x7390 kernel_clone+0xeb/0x8c0 __do_sys_clone3+0x1d5/0x2e0 do_syscall_64+0x3f/0x90 entry_SYSCALL_64_after_hwframe+0x72/0xdc RIP: 0033:0x7f99bcbf9b19 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f99ba16f188 EFLAGS: 00000246 ORIG_RAX: 00000000000001b3 RAX: ffffffffffffffda RBX: 00007f99bcd0cf60 RCX: 00007f99bcbf9b19 RDX: 0000000000000000 RSI: 0000000000000058 RDI: 0000000020000640 RBP: 00007f99bcc53f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe52ca2bef R14: 00007f99ba16f300 R15: 0000000000022000 The buggy address belongs to stack of task syz-executor.1/138622 and is located at offset 88 in frame: perf_trace_lock_acquire+0x0/0x500 This frame has 2 objects: [48, 52) 'rctx' [64, 72) '__regs' The buggy address belongs to the physical page: page:000000007b8471dd refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x19c8f flags: 0x100000000000000(node=0|zone=1) raw: 0100000000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888019c8f480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888019c8f500: 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 f1 f1 04 >ffff888019c8f580: f2 00 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888019c8f600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888019c8f680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess): 0: 48 83 c0 01 add $0x1,%rax 4: 48 89 c2 mov %rax,%rdx 7: 48 89 c1 mov %rax,%rcx a: 48 c1 ea 03 shr $0x3,%rdx e: 83 e1 07 and $0x7,%ecx 11: 0f b6 14 1a movzbl (%rdx,%rbx,1),%edx 15: 38 ca cmp %cl,%dl 17: 7f 04 jg 0x1d 19: 84 d2 test %dl,%dl 1b: 75 27 jne 0x44 1d: 80 38 00 cmpb $0x0,(%rax) 20: 75 de jne 0x0 22: 48 83 c4 08 add $0x8,%rsp 26: 48 29 e8 sub %rbp,%rax 29: 5b pop %rbx * 2a: 5d pop %rbp <-- trapping instruction 2b: e9 11 b8 05 00 jmpq 0x5b841 30: 48 83 c4 08 add $0x8,%rsp 34: 31 c0 xor %eax,%eax 36: 5b pop %rbx 37: 5d pop %rbp 38: e9 04 b8 05 00 jmpq 0x5b841 3d: e8 .byte 0xe8 3e: 6b .byte 0x6b 3f: 52 push %rdx