------------[ cut here ]------------ kernel BUG at net/phonet/socket.c:226! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 10122 Comm: syz-executor.1 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 ------------[ cut here ]------------ RIP: 0010:pn_socket_autobind net/phonet/socket.c:226 [inline] RIP: 0010:pn_socket_autobind+0x13c/0x160 net/phonet/socket.c:215 kernel BUG at net/phonet/socket.c:226! 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 24 6c fd f9 <0f> 0b e8 ed 47 33 fa eb 9f e8 06 49 33 fa e9 6d ff ff ff e8 9c 8c RSP: 0018:ffff88803b42f9a8 EFLAGS: 00010202 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc90006122000 RDX: 00000000000001c0 RSI: ffffffff8765194c RDI: 0000000000000003 RBP: 1ffff11007685f35 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff88805011f3c0 R15: ffff88803b42fdd8 FS: 00007ff874a03700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fdf671a8000 CR3: 00000000b4fff000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: pn_socket_sendmsg+0x40/0xd0 net/phonet/socket.c:436 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:661 ___sys_sendmsg+0x3b3/0x8e0 net/socket.c:2227 __sys_sendmmsg+0x195/0x470 net/socket.c:2322 __do_sys_sendmmsg net/socket.c:2351 [inline] __se_sys_sendmmsg net/socket.c:2348 [inline] __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2348 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7ff87608e409 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff874a03168 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007ff8761a0f80 RCX: 00007ff87608e409 RDX: 0000000000000002 RSI: 0000000020002e80 RDI: 0000000000000003 RBP: 00007ff8760e9367 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000040051 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe4fb2a71f R14: 00007ff874a03300 R15: 0000000000022000 Modules linked in: invalid opcode: 0000 [#2] PREEMPT SMP KASAN CPU: 0 PID: 10128 Comm: syz-executor.1 Tainted: G D 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 RIP: 0010:pn_socket_autobind net/phonet/socket.c:226 [inline] RIP: 0010:pn_socket_autobind+0x13c/0x160 net/phonet/socket.c:215 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 24 6c fd f9 <0f> 0b e8 ed 47 33 fa eb 9f e8 06 49 33 fa e9 6d ff ff ff e8 9c 8c RSP: 0018:ffff888031eefc38 EFLAGS: 00010216 ---[ end trace aac49f20dd9712b2 ]--- RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc90006524000 RDX: 000000000000008e RSI: ffffffff8765194c RDI: 0000000000000003 RBP: 1ffff110063ddf87 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000000 R13: dffffc0000000000 R14: 0000000000000010 R15: 7fffffffffffffff RIP: 0010:pn_socket_autobind net/phonet/socket.c:226 [inline] RIP: 0010:pn_socket_autobind+0x13c/0x160 net/phonet/socket.c:215 FS: 00007ff8749e2700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 00000000b4fff000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: pn_socket_connect+0x100/0x8c0 net/phonet/socket.c:240 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 24 6c fd f9 <0f> 0b e8 ed 47 33 fa eb 9f e8 06 49 33 fa e9 6d ff ff ff e8 9c 8c __sys_connect+0x265/0x2c0 net/socket.c:1775 RSP: 0018:ffff88803b42f9a8 EFLAGS: 00010202 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc90006122000 __do_sys_connect net/socket.c:1786 [inline] __se_sys_connect net/socket.c:1783 [inline] __x64_sys_connect+0x6f/0xb0 net/socket.c:1783 RDX: 00000000000001c0 RSI: ffffffff8765194c RDI: 0000000000000003 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7ff87608e409 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 b8 ff ff ff f7 d8 64 89 01 48 RBP: 1ffff11007685f35 R08: 0000000000000001 R09: 0000000000000000 RSP: 002b:00007ff8749e2168 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 00007ff8761a1050 RCX: 00007ff87608e409 RDX: 0000000000000010 RSI: 0000000020000040 RDI: 0000000000000003 R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000000 RBP: 00007ff8760e9367 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe4fb2a71f R14: 00007ff8749e2300 R15: 0000000000022000 Modules linked in: ---[ end trace aac49f20dd9712b3 ]--- R13: dffffc0000000000 R14: ffff88805011f3c0 R15: ffff88803b42fdd8 RIP: 0010:pn_socket_autobind net/phonet/socket.c:226 [inline] RIP: 0010:pn_socket_autobind+0x13c/0x160 net/phonet/socket.c:215 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 24 6c fd f9 <0f> 0b e8 ed 47 33 fa eb 9f e8 06 49 33 fa e9 6d ff ff ff e8 9c 8c FS: 00007ff874a03700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcacac80ff8 CR3: 00000000b4fff000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 RSP: 0018:ffff88803b42f9a8 EFLAGS: 00010202 RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc90006122000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 RDX: 00000000000001c0 RSI: ffffffff8765194c RDI: 0000000000000003