------------[ cut here ]------------ kernel BUG at net/phonet/socket.c:213! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 32339 Comm: syz-executor.0 Not tainted 5.8.0-rc4-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 84 b3 25 fa <0f> 0b e8 6d 17 65 fa eb 9f e8 86 17 65 fa e9 6d ff ff ff e8 6c c6 RSP: 0018:ffffc9001741fb30 EFLAGS: 00010216 RAX: 00000000000000b9 RBX: 0000000000000000 RCX: ffffc90001f2a000 RDX: 0000000000040000 RSI: ffffffff874e067c RDI: 0000000000000003 RBP: 1ffff92002e83f66 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff8880591f6dc0 R15: ffff88804f423000 FS: 00007f43ce25b700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d829000 CR3: 0000000056a94000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: pn_socket_sendmsg+0x40/0xd0 net/phonet/socket.c:423 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:672 sock_write_iter+0x28c/0x3c0 net/socket.c:999 call_write_iter include/linux/fs.h:1908 [inline] new_sync_write+0x422/0x650 fs/read_write.c:503 vfs_write+0x59d/0x6b0 fs/read_write.c:578 ksys_write+0x1ee/0x250 fs/read_write.c:631 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:384 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45c1f9 Code: Bad RIP value. RSP: 002b:00007f43ce25ac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000037200 RCX: 000000000045c1f9 RDX: 000000000000ff4d RSI: 0000000020000140 RDI: 0000000000000007 RBP: 000000000078bfe0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000078bfac R13: 00007fffe6b789df R14: 00007f43ce25b9c0 R15: 000000000078bfac Modules linked in: ---[ end trace 38ace389f04f6e4f ]--- 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 84 b3 25 fa <0f> 0b e8 6d 17 65 fa eb 9f e8 86 17 65 fa e9 6d ff ff ff e8 6c c6 RSP: 0018:ffffc9001741fb30 EFLAGS: 00010216 RAX: 00000000000000b9 RBX: 0000000000000000 RCX: ffffc90001f2a000 RDX: 0000000000040000 RSI: ffffffff874e067c RDI: 0000000000000003 RBP: 1ffff92002e83f66 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff8880591f6dc0 R15: ffff88804f423000 FS: 00007f43ce25b700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2f625000 CR3: 0000000056a94000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400