================================================================== BUG: KASAN: stack-out-of-bounds in csd_lock_record+0xd2/0xe0 kernel/smp.c:119 Read of size 8 at addr ffffc90001837578 by task syz-executor.3/8754 CPU: 0 PID: 8754 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+0xd2/0xe0 kernel/smp.c:119 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:orc_find arch/x86/kernel/unwind_orc.c:163 [inline] RIP: 0010:unwind_next_frame+0x280/0x1f90 arch/x86/kernel/unwind_orc.c:446 Code: 89 54 24 20 48 89 4c 24 18 e8 cc 66 80 00 4c 8b 44 24 30 48 8b 74 24 28 44 8b 54 24 20 48 8b 4c 24 18 46 8b 1c 85 c0 d4 9b 8b <44> 8d 46 01 48 ba 00 00 00 00 00 fc ff df 4a 8d 3c 85 c0 d4 9b 8b RSP: 0018:ffffc90001867910 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 1ffff9200030cf2a RCX: ffffffff862e867e RDX: 0000000000000003 RSI: 0000000000052e86 RDI: ffffffff8bb08ed8 RBP: 0000000000000001 R08: 0000000000052e86 R09: 0000000000000000 R10: 000000000007201e R11: 000000000010f303 R12: ffffc90001867a30 R13: ffffc90001867a1d R14: ffffc90001867a38 R15: ffffc900018679e8 arch_stack_walk+0x81/0xf0 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:123 save_stack+0x1b/0x40 mm/kasan/common.c:48 set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:494 slab_post_alloc_hook mm/slab.h:535 [inline] slab_alloc mm/slab.c:3316 [inline] kmem_cache_alloc+0x148/0x550 mm/slab.c:3486 sock_alloc_inode+0x18/0x1c0 net/socket.c:253 alloc_inode+0x61/0x230 fs/inode.c:232 new_inode_pseudo+0x14/0xe0 fs/inode.c:928 sock_alloc+0x3c/0x260 net/socket.c:573 __sock_create+0xb9/0x740 net/socket.c:1392 sock_create net/socket.c:1479 [inline] __sys_socket+0xef/0x200 net/socket.c:1521 __do_sys_socket net/socket.c:1530 [inline] __se_sys_socket net/socket.c:1528 [inline] __x64_sys_socket+0x6f/0xb0 net/socket.c:1528 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:00007fbb47d5cc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000029 RAX: ffffffffffffffda RBX: 0000000000508520 RCX: 000000000045cb29 RDX: 0000000000000000 RSI: 4000000000000001 RDI: 0000000000000002 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000bba R14: 00000000004ce1c4 R15: 00007fbb47d5d6d4 Memory state around the buggy address: ffffc90001837400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90001837480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90001837500: 00 00 00 00 f1 f1 f1 f1 00 00 00 00 f3 f3 f3 f3 ^ ffffc90001837580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90001837600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================