================================================================== BUG: KASAN: stack-out-of-bounds in unwind_next_frame+0x1aa1/0x22d0 Read of size 8 at addr ffff8880411e77e0 by task syz-executor.4/12431 CPU: 0 PID: 12431 Comm: syz-executor.4 Not tainted 6.2.0-next-20230221 #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_record_aux_stack+0x95/0xb0 __call_rcu_common.constprop.0+0x6a/0xa70 kmem_cache_free+0xb9/0x510 rcu_core+0x826/0x1af0 __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 a6 RSP: 0018:ffff8880411e7740 EFLAGS: 00000202 RAX: 0000000000000015 RBX: ffff88800c8f5490 RCX: 0000000000000005 RDX: 0000000000000006 RSI: ffffffff85517550 RDI: ffffffff84877900 RBP: ffffffff84877900 R08: 0000000000000001 R09: 0000000000000001 R10: fffffbfff0ba4eea R11: 0000000000000001 R12: 0000000000000000 R13: 1ffff1100823cef1 R14: ffff8880411e7808 R15: ffffffff8550e200 asm_sysvec_apic_timer_interrupt+0x1a/0x20 RIP: 0000:trace_contention_end+0xfc/0x140 Code: 05 59 d9 a4 04 e8 64 83 1c 03 85 c0 75 17 65 ff 0d f1 27 d8 7e 0f 85 49 ff ff ff 0f 1f 44 00 00 e9 3f ff ff ff e8 24 72 09 00 <85> c0 75 e0 e8 3b 83 1c 03 85 c0 74 d7 80 3d 09 9a a4 04 00 75 ce RSP: 8448f4c4:ffff8880416a3580 EFLAGS: ffff8880416a3580 ORIG_RAX: ffff8880416a3580 RAX: 0000000000000001 RBX: ffffffff85517550 RCX: ffff8880416a3580 RDX: ffffffff854fb1e0 RSI: dffffc0000000000 RDI: ffffffff8134d412 RBP: 1ffff1100823cef1 R08: ffff8880416a3580 R09: ffffffff812b6470 R10: ffffffff851c6618 R11: 0000000041b58ab3 R12: ffffffff85517568 R13: 0000000000000001 R14: ffffffff854fb1e0 R15: ffffffff8551cdd0 The buggy address belongs to stack of task syz-executor.4/12431 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:00000000ffebd42f refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x411e7 flags: 0x100000000000000(node=0|zone=1) raw: 0100000000000000 0000000000000000 ffffea00010479c8 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880411e7680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880411e7700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880411e7780: 00 f1 f1 f1 f1 f1 f1 04 f2 00 f3 f3 f3 00 00 00 ^ ffff8880411e7800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880411e7880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== random: crng reseeded on system resumption random: crng reseeded on system resumption random: crng reseeded on system resumption loop2: detected capacity change from 0 to 264192 I/O error, dev loop2, sector 264064 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2 loop4: detected capacity change from 0 to 264192 loop2: detected capacity change from 0 to 264192 loop4: detected capacity change from 0 to 264192 loop4: detected capacity change from 0 to 264192 ---------------- 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: a6 cmpsb %es:(%rdi),%ds:(%rsi)