================================================================== BUG: KASAN: null-ptr-deref in memcpy include/linux/string.h:359 [inline] BUG: KASAN: null-ptr-deref in llcp_sock_getname+0x341/0x440 net/nfc/llcp_sock.c:519 Read of size 63 at addr 0000000000000000 by task syz-executor.5/7865 CPU: 1 PID: 7865 Comm: syz-executor.5 Not tainted 5.3.0+ #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+0x113/0x167 lib/dump_stack.c:113 __kasan_report.cold.11+0x5/0x3a mm/kasan/report.c:510 kasan_report+0x12/0x20 mm/kasan/common.c:634 check_memory_region_inline mm/kasan/generic.c:185 [inline] check_memory_region+0x153/0x1d0 mm/kasan/generic.c:192 memcpy+0x23/0x50 mm/kasan/common.c:122 memcpy include/linux/string.h:359 [inline] llcp_sock_getname+0x341/0x440 net/nfc/llcp_sock.c:519 sock_getsockopt+0xb8f/0x1952 net/core/sock.c:1392 __sys_getsockopt+0x254/0x2e0 net/socket.c:2125 __do_sys_getsockopt net/socket.c:2144 [inline] __se_sys_getsockopt net/socket.c:2141 [inline] __x64_sys_getsockopt+0xb9/0x150 net/socket.c:2141 do_syscall_64+0xca/0x5d0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459a59 Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f69ebe70c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000000459a59 RDX: 000000000000001c RSI: 0000000000000001 RDI: 0000000000000004 RBP: 000000000075bf20 R08: 0000000020000140 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f69ebe716d4 R13: 00000000004c0da3 R14: 00000000004d41a0 R15: 00000000ffffffff ==================================================================