================================================================== BUG: KASAN: stack-out-of-bounds in deref_stack_regs arch/x86/kernel/unwind_orc.c:376 [inline] BUG: KASAN: stack-out-of-bounds in unwind_next_frame+0x19f8/0x1f90 arch/x86/kernel/unwind_orc.c:550 Read of size 8 at addr ffffc9000914fea0 by task syz-executor.2/15141 CPU: 1 PID: 15141 Comm: syz-executor.2 Not tainted 5.9.0-rc8-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x198/0x1fd lib/dump_stack.c:118 print_address_description.constprop.0.cold+0x5/0x497 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:530 deref_stack_regs arch/x86/kernel/unwind_orc.c:376 [inline] unwind_next_frame+0x19f8/0x1f90 arch/x86/kernel/unwind_orc.c:550 perf_callchain_kernel+0x444/0x6a0 arch/x86/events/core.c:2449 get_perf_callchain+0x171/0x640 kernel/events/callchain.c:200 perf_callchain+0x165/0x1c0 kernel/events/core.c:6985 perf_prepare_sample+0x8fd/0x1d40 kernel/events/core.c:7012 __perf_event_output kernel/events/core.c:7170 [inline] perf_event_output_forward+0xf3/0x270 kernel/events/core.c:7190 __perf_event_overflow+0x13c/0x370 kernel/events/core.c:8845 perf_swevent_hrtimer+0x37c/0x3f0 kernel/events/core.c:10247 __run_hrtimer kernel/time/hrtimer.c:1524 [inline] __hrtimer_run_queues+0x1d5/0xfc0 kernel/time/hrtimer.c:1588 hrtimer_interrupt+0x334/0x940 kernel/time/hrtimer.c:1650 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1080 [inline] __sysvec_apic_timer_interrupt+0x147/0x5f0 arch/x86/kernel/apic/apic.c:1097 asm_call_irq_on_stack+0xf/0x20 __run_sysvec_on_irqstack arch/x86/include/asm/irq_stack.h:37 [inline] run_sysvec_on_irqstack_cond arch/x86/include/asm/irq_stack.h:89 [inline] sysvec_apic_timer_interrupt+0xb2/0xf0 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:581 RIP: 0010:arch_local_save_flags arch/x86/include/asm/paravirt.h:765 [inline] RIP: 0010:arch_local_irq_save arch/x86/include/asm/paravirt.h:787 [inline] RIP: 0010:lock_acquire+0x143/0xaf0 kernel/locking/lockdep.c:5025 Code: 6b fc 89 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 0f 85 2d 08 00 00 48 83 3d 74 61 a0 08 00 0f 84 9c 06 00 00 9c <58> 0f 1f 44 00 00 48 ba 00 00 00 00 00 fc ff df 49 89 c7 48 c7 c0 RSP: 0018:ffffc9000914fbb0 EFLAGS: 00000286 RAX: 1ffffffff13f8d7c RBX: 0000000000000001 RCX: ffffffff815c09ee RDX: dffffc0000000000 RSI: ffffffff8a067e80 RDI: 0000000000000000 RBP: ffffffff8a168ba0 R08: 0000000000000000 R09: ffffffff8b59974f R10: fffffbfff16b32e9 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: ffff88809333e340 kvm_vcpu_ioctl+0x529/0xdf0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3255 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:581 RIP: 0000:tomoyo_hooks+0x280/0x460 Code: ff ff 48 c9 69 8a ff ff ff ff c8 b7 5e 8d ff ff ff ff c8 b7 5e 8d ff ff ff ff e0 cc 89 83 ff ff ff ff a0 e9 d1 88 ff ff ff ff be 6a 8a ff ff ff ff 58 b8 5e 8d ff ff ff ff 58 b8 5e 8d ff ff RSP: 4090ae82:00007fb5e7ba45e0 EFLAGS: 00000006 ORIG_RAX: 40cabf078a820800 RAX: 00007fb5e7ba4501 RBX: 0000000000000001 RCX: ffffffff81c9bc84 RDX: 0000000000000001 RSI: ffff888090657bc0 RDI: ffffed10120caf83 RBP: 40cabf078a820800 R08: 0000000000000006 R09: dffffc0000000000 R10: ffff88808ff057c0 R11: ffff88808ff05838 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000003238 R15: 4541303930347830 addr ffffc9000914fea0 is located in stack of task syz-executor.2/15141 at offset 264 in frame: kvm_vcpu_ioctl+0x0/0xdf0 include/linux/kvm_host.h:632 this frame has 5 objects: [48, 52) 'mp_state' [64, 68) 'kvm_sigmask' [80, 88) 'sigset' [112, 136) 'tr' [176, 248) 'dbg' Memory state around the buggy address: ffffc9000914fd80: 00 00 00 f1 f1 f1 f1 f1 f1 04 f2 00 00 00 f2 f2 ffffc9000914fe00: f2 00 00 00 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 >ffffc9000914fe80: 00 00 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 ^ ffffc9000914ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc9000914ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================