kernel BUG at net/phonet/socket.c:213! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 23696 Comm: syz-executor.1 Not tainted 5.16.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:pn_socket_autobind net/phonet/socket.c:213 [inline] RIP: 0010:pn_socket_autobind+0x13c/0x160 net/phonet/socket.c:202 Code: 44 05 00 00 00 00 00 48 8b 44 24 58 65 48 2b 04 25 28 00 00 00 75 26 48 83 c4 60 44 89 e0 5b 5d 41 5c 41 5d c3 e8 a4 ba 1d f9 <0f> 0b e8 ed 7e 64 f9 eb 9f e8 06 7f 64 f9 e9 6d ff ff ff e8 3c 1a RSP: 0018:ffffc90004ad7b30 EFLAGS: 00010212 RAX: 00000000000000b6 RBX: 0000000000000000 RCX: ffffc90003197000 RDX: 0000000000040000 RSI: ffffffff8859f01c RDI: 0000000000000003 RBP: 1ffff9200095af66 R08: 00000000ffffffea R09: 0000000000000000 R10: ffffffff8859efdc R11: 0000000000000000 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff88802627b000 R15: ffff8880264a2a00 FS: 00007f1fa5f6b700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2bc23000 CR3: 000000004c33f000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: pn_socket_sendmsg+0x40/0xd0 net/phonet/socket.c:422 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:724 sock_write_iter+0x289/0x3c0 net/socket.c:1057 call_write_iter include/linux/fs.h:2162 [inline] new_sync_write+0x429/0x660 fs/read_write.c:503 vfs_write+0x7cd/0xae0 fs/read_write.c:590 ksys_write+0x1ee/0x250 fs/read_write.c:643 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f1fa6ff5af9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1fa5f6b188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1fa7108f60 RCX: 00007f1fa6ff5af9 RDX: 000000000000020f RSI: 0000000020000540 RDI: 0000000000000003 RBP: 00007f1fa704fff7 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffec42d783f R14: 00007f1fa5f6b300 R15: 0000000000022000 Modules linked in: ---[ end trace f8ca99cda83f4deb ]--- RIP: 0010:pn_socket_autobind net/phonet/socket.c:213 [inline] RIP: 0010:pn_socket_autobind+0x13c/0x160 net/phonet/socket.c:202 Code: 44 05 00 00 00 00 00 48 8b 44 24 58 65 48 2b 04 25 28 00 00 00 75 26 48 83 c4 60 44 89 e0 5b 5d 41 5c 41 5d c3 e8 a4 ba 1d f9 <0f> 0b e8 ed 7e 64 f9 eb 9f e8 06 7f 64 f9 e9 6d ff ff ff e8 3c 1a RSP: 0018:ffffc90004ad7b30 EFLAGS: 00010212 RAX: 00000000000000b6 RBX: 0000000000000000 RCX: ffffc90003197000 RDX: 0000000000040000 RSI: ffffffff8859f01c RDI: 0000000000000003 RBP: 1ffff9200095af66 R08: 00000000ffffffea R09: 0000000000000000 R10: ffffffff8859efdc R11: 0000000000000000 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff88802627b000 R15: ffff8880264a2a00 FS: 00007f1fa5f6b700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4c7c017390 CR3: 000000004c33f000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400