================================================================== BUG: KASAN: stack-out-of-bounds in csd_lock_record+0xcb/0xe0 kernel/smp.c:118 Read of size 8 at addr ffffc90005517bd0 by task syz-executor.5/7433 CPU: 1 PID: 7433 Comm: syz-executor.5 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:__sanitizer_cov_trace_pc+0x30/0x60 kernel/kcov.c:197 Code: fe 01 00 65 8b 05 70 f7 8d 7e a9 00 01 ff 00 48 8b 34 24 74 0f f6 c4 01 74 35 8b 82 0c 14 00 00 85 c0 74 2b 8b 82 e8 13 00 00 <83> f8 02 75 20 48 8b 8a f0 13 00 00 8b 92 ec 13 00 00 48 8b 01 48 RSP: 0018:ffffc90008267978 EFLAGS: 00000246 RAX: 0000000000000000 RBX: fffff5203fffffff RCX: ffffffff81a45374 RDX: ffff88804da9a000 RSI: ffffffff81a45382 RDI: 0000000000000001 RBP: fffff5200063b000 R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000000 R12: fffff5200063afff R13: 0000000000000001 R14: dffffc0000000000 R15: fffff5200063a000 apply_to_pmd_range mm/memory.c:2252 [inline] apply_to_pud_range mm/memory.c:2291 [inline] apply_to_p4d_range mm/memory.c:2318 [inline] __apply_to_page_range+0x332/0xed0 mm/memory.c:2344 alloc_vmap_area+0xaf1/0x1de0 mm/vmalloc.c:1216 __get_vm_area_node+0x17b/0x3b0 mm/vmalloc.c:2060 __vmalloc_node_range mm/vmalloc.c:2484 [inline] __vmalloc_node mm/vmalloc.c:2532 [inline] vzalloc+0xf2/0x1a0 mm/vmalloc.c:2585 do_arpt_get_ctl+0x4a1/0x7e0 net/ipv4/netfilter/arp_tables.c:659 nf_sockopt net/netfilter/nf_sockopt.c:104 [inline] nf_getsockopt+0x72/0xd0 net/netfilter/nf_sockopt.c:122 ip_getsockopt net/ipv4/ip_sockglue.c:1749 [inline] ip_getsockopt+0x167/0x1c0 net/ipv4/ip_sockglue.c:1729 tcp_getsockopt+0x86/0xd0 net/ipv4/tcp.c:3890 __sys_getsockopt+0x14b/0x2e0 net/socket.c:2172 __do_sys_getsockopt net/socket.c:2187 [inline] __se_sys_getsockopt net/socket.c:2184 [inline] __x64_sys_getsockopt+0xba/0x150 net/socket.c:2184 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:367 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45f63a Code: Bad RIP value. RSP: 002b:00007fff90eb7748 EFLAGS: 00000212 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 00007fff90eb7850 RCX: 000000000045f63a RDX: 0000000000000061 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 0000000000000003 R08: 00007fff90eb775c R09: 000000000000000a R10: 00007fff90eb7850 R11: 0000000000000212 R12: 0000000000000000 R13: 00007fff90eb7ed0 R14: 00000000000ad4a1 R15: 00007fff90eb7ee0 Memory state around the buggy address: ffffc90005517a80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00 ffffc90005517b00: 00 00 00 00 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 >ffffc90005517b80: 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 ^ ffffc90005517c00: f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 ffffc90005517c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================