================================================================== BUG: KASAN: null-ptr-deref in memcpy include/linux/string.h:347 [inline] BUG: KASAN: null-ptr-deref in llcp_sock_getname+0x37b/0x490 net/nfc/llcp_sock.c:532 Read of size 11 at addr (null) by task syz-executor.3/29078 CPU: 1 PID: 29078 Comm: syz-executor.3 Not tainted 4.14.184-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+0x1b2/0x283 lib/dump_stack.c:58 kasan_report_error mm/kasan/report.c:349 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0x127/0x2b9 mm/kasan/report.c:393 memcpy+0x20/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:347 [inline] llcp_sock_getname+0x37b/0x490 net/nfc/llcp_sock.c:532 SYSC_getpeername net/socket.c:1715 [inline] SyS_getpeername+0x10a/0x220 net/socket.c:1699 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x45ca69 RSP: 002b:00007fa20b65cc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000034 RAX: ffffffffffffffda RBX: 00000000004dd040 RCX: 000000000045ca69 RDX: 0000000020000080 RSI: 0000000020000000 RDI: 0000000000000007 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000000fd R14: 00000000004c3a52 R15: 00007fa20b65d6d4 ================================================================== block nbd0: Attempted send on invalid socket print_req_error: I/O error, dev nbd0, sector 0 XFS (nbd0): SB validate failed with error -5. block nbd0: Attempted send on invalid socket print_req_error: I/O error, dev nbd0, sector 0 XFS (nbd0): SB validate failed with error -5. netlink: 28 bytes leftover after parsing attributes in process `syz-executor.2'. netlink: 20 bytes leftover after parsing attributes in process `syz-executor.2'. netlink: 28 bytes leftover after parsing attributes in process `syz-executor.2'. netlink: 20 bytes leftover after parsing attributes in process `syz-executor.2'. block nbd0: Attempted send on invalid socket print_req_error: I/O error, dev nbd0, sector 0 XFS (nbd0): SB validate failed with error -5.