================================================================== BUG: KASAN: stack-out-of-bounds in get_reg arch/x86/kernel/unwind_orc.c:411 [inline] BUG: KASAN: stack-out-of-bounds in unwind_next_frame+0x17b3/0x1f90 arch/x86/kernel/unwind_orc.c:585 Read of size 8 at addr ffffc900060f7658 by task syz-executor.4/9784 CPU: 0 PID: 9784 Comm: syz-executor.4 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 get_reg arch/x86/kernel/unwind_orc.c:411 [inline] unwind_next_frame+0x17b3/0x1f90 arch/x86/kernel/unwind_orc.c:585 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 f4 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:ffffc900060f7448 EFLAGS: 00000286 RAX: 1ffffffff13f8d7c RBX: 0000000000000001 RCX: ffffffff815c096e RDX: dffffc0000000000 RSI: ffffffff8a067e80 RDI: 0000000000000000 RBP: ffffffff8a168ba0 R08: 0000000000000000 R09: ffffffff8b597ecf R10: fffffbfff16b2fd9 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: ffff8880a5fc4480 kmalloc include/linux/slab.h:559 [inline] kzalloc include/linux/slab.h:666 [inline] __register_sysctl_table+0x112/0x1090 fs/proc/proc_sysctl.c:1314 lockdep_hardirqs_on+0x53/0x100 kernel/locking/lockdep.c:3759 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:581 RIP: 60f7730:0xa Code: Bad RIP value. RSP: 9783d000:ffff88805a302000 EFLAGS: ffff88808c57d000 ORIG_RAX: 1e487588d7f93f00 RAX: dffffc0000000000 RBX: ffffffff89b38ac0 RCX: 1ffff110118afa00 RDX: ffff88809783d008 RSI: ffffc900060f7730 RDI: ffff88808b0ea140 RBP: 0000000041b58ab3 R08: 0000000000000004 R09: ffffc900060f773e R10: 0000000000000000 R11: ffffffff81eadb50 R12: ffff88808c57d000 R13: ffff88805a302000 R14: 1ffff92000c1eecb R15: ffffffff89450a60 addr ffffc900060f7658 is located in stack of task syz-executor.4/9784 at offset 0 in frame: __register_sysctl_table+0x0/0x1090 include/linux/list.h:831 this frame has 1 object: [32, 40) 'head' Memory state around the buggy address: ffffc900060f7500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900060f7580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc900060f7600: 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 ^ ffffc900060f7680: f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900060f7700: f1 f1 f1 f1 f1 f1 00 00 00 00 00 04 f3 f3 f3 f3 ==================================================================