================================================================== BUG: KASAN: out-of-bounds in csd_lock_record+0xcb/0xe0 kernel/smp.c:118 Read of size 8 at addr ffffc90017d57550 by task syz-executor.4/15576 CPU: 0 PID: 15576 Comm: syz-executor.4 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:____nf_conntrack_find net/netfilter/nf_conntrack_core.c:743 [inline] RIP: 0010:__nf_conntrack_find_get+0x11b/0xf30 net/netfilter/nf_conntrack_core.c:778 Code: e8 9a cd ff fa 48 0f af ac 24 98 00 00 00 48 c1 ed 20 48 89 ac 24 90 00 00 00 48 8d 1c eb 48 89 d8 48 c1 e8 03 42 80 3c 38 00 <0f> 85 e8 0d 00 00 4c 8b 33 31 ff 44 89 f3 83 e3 01 89 de e8 dd c9 RSP: 0018:ffffc90017b37258 EFLAGS: 00000246 RAX: 1ffff110133c2e3d RBX: ffff888099e171e8 RCX: ffffc90011c15000 RDX: 0000000000040000 RSI: ffffffff86743966 RDI: 0000000000000004 RBP: 0000000000002e3d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: dffffc0000000000 resolve_normal_ct net/netfilter/nf_conntrack_core.c:1684 [inline] nf_conntrack_in+0x484/0x12a0 net/netfilter/nf_conntrack_core.c:1846 ipv4_conntrack_local+0x11c/0x220 net/netfilter/nf_conntrack_proto.c:200 nf_hook_entry_hookfn include/linux/netfilter.h:135 [inline] nf_hook_slow+0xc5/0x1e0 net/netfilter/core.c:512 nf_hook+0x2b8/0x540 include/linux/netfilter.h:262 __ip_local_out+0x26e/0x530 net/ipv4/ip_output.c:114 ip_local_out net/ipv4/ip_output.c:123 [inline] ip_send_skb+0x46/0x260 net/ipv4/ip_output.c:1566 udp_send_skb+0x6cd/0x11a0 net/ipv4/udp.c:894 udp_sendmsg+0x1c6b/0x26c0 net/ipv4/udp.c:1181 inet_sendmsg+0x99/0xe0 net/ipv4/af_inet.c:814 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:672 ____sys_sendmsg+0x331/0x810 net/socket.c:2352 ___sys_sendmsg+0xf3/0x170 net/socket.c:2406 __sys_sendmmsg+0x195/0x480 net/socket.c:2496 __do_sys_sendmmsg net/socket.c:2525 [inline] __se_sys_sendmmsg net/socket.c:2522 [inline] __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2522 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:00007f5440719c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00000000004fd760 RCX: 000000000045cb29 RDX: 04000000000000a8 RSI: 00000000200038c0 RDI: 0000000000000004 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000903 R14: 00000000004cbe13 R15: 00007f544071a6d4 Memory state around the buggy address: ffffc90017d57400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90017d57480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90017d57500: 00 00 00 00 f1 f1 f1 f1 00 00 00 00 f3 f3 f3 f3 ^ ffffc90017d57580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90017d57600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================