================================================================== BUG: KASAN: stack-out-of-bounds in csd_lock_record+0xcb/0xe0 kernel/smp.c:118 Read of size 8 at addr ffffc900080b7570 by task syz-executor.3/12091 CPU: 1 PID: 12091 Comm: syz-executor.3 Not tainted 5.8.0-rc3-next-20200703-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+0x18f/0x20d lib/dump_stack.c:118 print_address_description.constprop.0.cold+0x5/0x436 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:530 csd_lock_record+0xcb/0xe0 kernel/smp.c:118 flush_smp_call_function_queue+0x285/0x730 kernel/smp.c:391 __sysvec_call_function_single+0x98/0x490 arch/x86/kernel/smp.c:248 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_call_function_single+0xe0/0x120 arch/x86/kernel/smp.c:243 asm_sysvec_call_function_single+0x12/0x20 arch/x86/include/asm/idtentry.h:604 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:765 [inline] RIP: 0010:generic_exec_single+0x32f/0x4a0 kernel/smp.c:289 Code: 00 fc ff df 48 c1 e8 03 80 3c 10 00 0f 85 63 01 00 00 48 83 3d 91 18 4c 08 00 0f 84 dc 00 00 00 e8 86 20 0b 00 48 89 df 57 9d <0f> 1f 44 00 00 45 31 e4 e9 bb fd ff ff e8 6f 20 0b 00 0f 0b e9 1c RSP: 0018:ffffc90008107a68 EFLAGS: 00000216 RAX: 0000000000000415 RBX: 0000000000000216 RCX: ffffc9000f377000 RDX: 0000000000040000 RSI: ffffffff8168e67a RDI: 0000000000000216 RBP: 0000000000000200 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffffc90008107b60 R13: ffffffff818d1480 R14: ffffc90008107c40 R15: 0000000000000001 smp_call_function_single+0x1c1/0x1080 kernel/smp.c:504 task_function_call+0xd7/0x160 kernel/events/core.c:116 perf_install_in_context+0x2cb/0x550 kernel/events/core.c:2881 __do_sys_perf_event_open+0x1c00/0x2b50 kernel/events/core.c:11961 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:367 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45cb29 Code: Bad RIP value. RSP: 002b:00007fe2b5e5ec78 EFLAGS: 00000246 ORIG_RAX: 000000000000012a RAX: ffffffffffffffda RBX: 00000000004fa720 RCX: 000000000045cb29 RDX: ffffffffffffffff RSI: 0000000000000000 RDI: 000000002001d000 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffffffffffff R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000842 R14: 00000000004cb34b R15: 00007fe2b5e5f6d4 Memory state around the buggy address: ffffc900080b7400: 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 ffffc900080b7480: 00 00 00 00 00 00 00 00 00 f3 f3 f3 f3 f3 00 00 >ffffc900080b7500: 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 ^ ffffc900080b7580: 00 00 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 ffffc900080b7600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================