================================================================== 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 ffffc900064176e8 by task syz-executor.0/6806 CPU: 1 PID: 6806 Comm: syz-executor.0 Not tainted 5.9.0-rc6-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_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:706 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [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 94 42 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:ffffc900064174d8 EFLAGS: 00000286 RAX: 1ffffffff13f8d7c RBX: 0000000000000001 RCX: ffffffff815c28ce RDX: dffffc0000000000 RSI: ffffffff8a068380 RDI: 0000000000000000 RBP: ffffffff8a16d380 R08: 0000000000000000 R09: ffffffff8b5c8ccf R10: fffffbfff16b9199 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: ffff888055c0c340 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: 64177c0:0xffff88805d698000 Code: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <00> 00 00 00 00 00 00 00 20 30 51 89 ff ff ff ff 58 89 6c a7 80 88 RSP: 1c445f90:ffff88806070a040 EFLAGS: ffff8880a76c8950 ORIG_RAX: c28e83cf73c01200 RAX: 000000000000000f RBX: ffffffff89b629e8 RCX: 1ffff92000c82ec1 RDX: ffff88805d698008 RSI: ffffc900064177c0 RDI: ffff88806070a040 RBP: 0000000041b58ab3 R08: 0000000000000004 R09: ffffc900064177cd R10: 0000000000000000 R11: ffffffff81ec25a0 R12: ffff8880a76c8950 R13: ffff88806070a040 R14: 1ffff92000c82edd R15: ffff88805d698810 addr ffffc900064176e8 is located in stack of task syz-executor.0/6806 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: ffffc90006417580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90006417600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90006417680: 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 ^ ffffc90006417700: f1 00 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 ffffc90006417780: 00 00 00 00 f1 f1 f1 f1 00 00 00 07 f3 f3 f3 f3 ==================================================================