================================================================== BUG: KASAN: null-ptr-deref in memcpy include/linux/string.h:359 [inline] BUG: KASAN: null-ptr-deref in llcp_sock_getname+0x358/0x460 net/nfc/llcp_sock.c:519 Read of size 1 at addr 0000000000000000 by task syz-executor808/8732 CPU: 1 PID: 8732 Comm: syz-executor808 Not tainted 5.4.0-rc1+ #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+0x172/0x1f0 lib/dump_stack.c:113 __kasan_report.cold+0x5/0x41 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+0x134/0x1a0 mm/kasan/generic.c:192 memcpy+0x24/0x50 mm/kasan/common.c:122 memcpy include/linux/string.h:359 [inline] llcp_sock_getname+0x358/0x460 net/nfc/llcp_sock.c:519 __sys_getpeername+0x12b/0x290 net/socket.c:1900 __do_sys_getpeername net/socket.c:1913 [inline] __se_sys_getpeername net/socket.c:1910 [inline] __x64_sys_getpeername+0x73/0xb0 net/socket.c:1910 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4412b9 Code: e8 ac e8 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 eb 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffec6cef178 EFLAGS: 00000246 ORIG_RAX: 0000000000000034 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004412b9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 00000000006cb018 R08: 00000000004002c8 R09: 00000000004002c8 R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000402030 R13: 00000000004020c0 R14: 0000000000000000 R15: 0000000000000000 ==================================================================