================================================================== BUG: KASAN: null-ptr-deref in llcp_sock_getname+0x24b/0x3c0 net/nfc/llcp_sock.c:519 Read of size 63 at addr 0000000000000000 by task syz-executor183/7968 CPU: 0 PID: 7968 Comm: syz-executor183 Not tainted 5.4.0-rc3+ #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+0x1d8/0x2f8 lib/dump_stack.c:113 __kasan_report+0x169/0x1c0 mm/kasan/report.c:510 kasan_report+0x26/0x50 mm/kasan/common.c:634 check_memory_region_inline mm/kasan/generic.c:182 [inline] check_memory_region+0x2cf/0x2e0 mm/kasan/generic.c:192 memcpy+0x28/0x60 mm/kasan/common.c:122 llcp_sock_getname+0x24b/0x3c0 net/nfc/llcp_sock.c:519 sock_getsockopt+0xc08/0x2d00 net/core/sock.c:1392 __sys_getsockopt+0x1e1/0x2b0 net/socket.c:2125 __do_sys_getsockopt net/socket.c:2144 [inline] __se_sys_getsockopt net/socket.c:2141 [inline] __x64_sys_getsockopt+0xbf/0xd0 net/socket.c:2141 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4412c9 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:00007ffef91d8c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004412c9 RDX: 000000000000001c RSI: 0000000000000001 RDI: 0000000000000003 RBP: 00000000006cb018 R08: 0000000020000140 R09: 00000000004002c8 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402040 R13: 00000000004020d0 R14: 0000000000000000 R15: 0000000000000000 ==================================================================