bisecting fixing commit since e42617b825f8073569da76dc4510bfa019b1c35a building syzkaller on b31eda3df81f62eb7efde0c5d7a9f24ee7e34e6f testing commit e42617b825f8073569da76dc4510bfa019b1c35a with gcc (GCC) 8.1.0 kernel signature: 5e709278c9b6f0cbcc12b1c940dc272bb2046e2571f5216646834c18cd597875 all runs: crashed: KASAN: null-ptr-deref Read in llcp_sock_getname testing current HEAD 40a03b750bb3ded71a0f21a0b7dfbf3b24068dcb testing commit 40a03b750bb3ded71a0f21a0b7dfbf3b24068dcb with gcc (GCC) 8.1.0 kernel signature: d7ffac3667027bb375cb7d8b5bf487024a88256bf13b24e2d59e0b120a026152 all runs: crashed: BUG: unable to handle kernel NULL pointer dereference in __sys_getpeername revisions tested: 2, total time: 20m29.686294969s (build: 13m13.74062137s, test: 6m19.316749465s) the crash still happens on HEAD commit msg: Merge tag 'sound-fix-5.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound crash: BUG: unable to handle kernel NULL pointer dereference in __sys_getpeername BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 11db82067 P4D 11db82067 PUD 11db81067 PMD 0 Oops: 0000 [#1] PREEMPT SMP CPU: 0 PID: 7778 Comm: syz-executor.2 Not tainted 5.9.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:memcpy_erms+0x6/0x10 arch/x86/lib/memcpy_64.S:57 Code: cc cc cc cc eb 1e 0f 1f 00 48 89 f8 48 89 d1 48 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 c3 66 0f 1f 44 00 00 48 89 f8 48 89 d1 a4 c3 0f 1f 80 00 00 00 00 48 89 f8 48 83 fa 20 72 7e 40 38 fe RSP: 0018:ffffc900025ffe50 EFLAGS: 00010286 RAX: ffffc900025ffe92 RBX: ffffc900025ffe80 RCX: 000000000000002b RDX: 000000000000002b RSI: 0000000000000000 RDI: ffffc900025ffe92 RBP: ffffc900025ffe68 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000002a05 R11: 0000000000000001 R12: ffff88811cdfd800 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f723f1c3700(0000) GS:ffff88813bc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000011db83000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __sys_getpeername+0x68/0xe0 net/socket.c:1940 __do_sys_getpeername net/socket.c:1953 [inline] __se_sys_getpeername net/socket.c:1950 [inline] __x64_sys_getpeername+0x15/0x20 net/socket.c:1950 do_syscall_64+0x31/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45a779 Code: 2d b6 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 fb b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f723f1c2c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000034 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045a779 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f723f1c36d4 R13: 00000000004c14b0 R14: 00000000004d56d8 R15: 00000000ffffffff Modules linked in: CR2: 0000000000000000 ---[ end trace 34436757d18a3aaa ]--- RIP: 0010:memcpy_erms+0x6/0x10 arch/x86/lib/memcpy_64.S:57 Code: cc cc cc cc eb 1e 0f 1f 00 48 89 f8 48 89 d1 48 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 c3 66 0f 1f 44 00 00 48 89 f8 48 89 d1 a4 c3 0f 1f 80 00 00 00 00 48 89 f8 48 83 fa 20 72 7e 40 38 fe RSP: 0018:ffffc900025ffe50 EFLAGS: 00010286 RAX: ffffc900025ffe92 RBX: ffffc900025ffe80 RCX: 000000000000002b RDX: 000000000000002b RSI: 0000000000000000 RDI: ffffc900025ffe92 RBP: ffffc900025ffe68 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000002a05 R11: 0000000000000001 R12: ffff88811cdfd800 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f723f1c3700(0000) GS:ffff88813bc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000011db83000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400