================================================================== BUG: KASAN: null-ptr-deref in memcpy include/linux/string.h:347 [inline] BUG: KASAN: null-ptr-deref in llcp_sock_getname+0x38f/0x4a0 net/nfc/llcp_sock.c:532 Read of size 22 at addr (null) by task syz-executor.0/16233 CPU: 0 PID: 16233 Comm: syz-executor.0 Not tainted 4.14.166-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x142/0x197 lib/dump_stack.c:58 netlink: 16 bytes leftover after parsing attributes in process `syz-executor.2'. kasan_report_error mm/kasan/report.c:349 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0x127/0x2af mm/kasan/report.c:393 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x123/0x190 mm/kasan/kasan.c:267 memcpy+0x24/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:347 [inline] llcp_sock_getname+0x38f/0x4a0 net/nfc/llcp_sock.c:532 SYSC_getpeername+0x120/0x270 net/socket.c:1715 SyS_getpeername+0x24/0x30 net/socket.c:1699 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45b349 RSP: 002b:00007fd41464ac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000034 RAX: ffffffffffffffda RBX: 00007fd41464b6d4 RCX: 000000000045b349 RDX: 0000000020000000 RSI: 00000000200000c0 RDI: 0000000000000005 RBP: 000000000075c070 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000000f1 R14: 00000000004c2235 R15: 000000000075c07c ================================================================== netlink: 20 bytes leftover after parsing attributes in process `syz-executor.1'. netlink: 36 bytes leftover after parsing attributes in process `syz-executor.1'. netlink: 36 bytes leftover after parsing attributes in process `syz-executor.1'.