syzbot


kernel BUG in pn_socket_connect

Status: internal: reported on 2026/04/30 00:01
Subsystems: net
[Documentation on labels]
Fix commit: 5b0c911bcdbd net: phonet: do not BUG_ON() in pn_socket_autobind() on failed bind
Patched on: [ci-qemu-gce-upstream-auto ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-snapshot-upstream-root ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci-upstream-rust-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce], missing on: [ci-qemu-native-arm64-kvm ci-qemu2-riscv64 ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci2-upstream-usb]
First crash: 1d22h, last: 1d22h

Sample crash report:
------------[ cut here ]------------
kernel BUG at net/phonet/socket.c:213!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5328 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:pn_socket_autobind net/phonet/socket.c:213 [inline]
RIP: 0010:pn_socket_connect+0xb91/0xba0 net/phonet/socket.c:227
Code: 8b 7c 24 18 e9 6f fd ff ff 44 89 e1 80 e1 07 38 c1 0f 8c 1e fd ff ff 4c 89 e7 e8 ba 1d 59 f7 e9 11 fd ff ff e8 b0 55 ec f6 90 <0f> 0b 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90
RSP: 0018:ffffc900032ffc00 EFLAGS: 00010293
RAX: ffffffff8ad964f0 RBX: 0000000000000000 RCX: ffff888000b24a00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900032ffd70 R08: ffffffff9030bdf7 R09: 1ffffffff20617be
R10: dffffc0000000000 R11: fffffbfff20617bf R12: ffff888049091858
R13: 1ffff9200065ff90 R14: dffffc0000000000 R15: 1ffff1100921230b
FS:  00007f46442dd6c0(0000) GS:ffff88808c888000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f46442bcd58 CR3: 00000000368d2000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 __sys_connect_file net/socket.c:2148 [inline]
 __sys_connect+0x312/0x450 net/socket.c:2167
 __do_sys_connect net/socket.c:2173 [inline]
 __se_sys_connect net/socket.c:2170 [inline]
 __x64_sys_connect+0x7a/0x90 net/socket.c:2170
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f464339cdd9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 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 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f46442dcfe8 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007f4643616090 RCX: 00007f464339cdd9
RDX: 000000000000006e RSI: 00002000000002c0 RDI: 0000000000000007
RBP: 00007f4643432d69 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f4643616128 R14: 00007f4643616090 R15: 00007ffcf9c914f8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:pn_socket_autobind net/phonet/socket.c:213 [inline]
RIP: 0010:pn_socket_connect+0xb91/0xba0 net/phonet/socket.c:227
Code: 8b 7c 24 18 e9 6f fd ff ff 44 89 e1 80 e1 07 38 c1 0f 8c 1e fd ff ff 4c 89 e7 e8 ba 1d 59 f7 e9 11 fd ff ff e8 b0 55 ec f6 90 <0f> 0b 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90
RSP: 0018:ffffc900032ffc00 EFLAGS: 00010293
RAX: ffffffff8ad964f0 RBX: 0000000000000000 RCX: ffff888000b24a00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900032ffd70 R08: ffffffff9030bdf7 R09: 1ffffffff20617be
R10: dffffc0000000000 R11: fffffbfff20617bf R12: ffff888049091858
R13: 1ffff9200065ff90 R14: dffffc0000000000 R15: 1ffff1100921230b
FS:  00007f46442dd6c0(0000) GS:ffff88808c888000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000000368d2000 CR4: 0000000000352ef0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/04/30 00:00 upstream 57b8e2d666a3 005438fc .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in pn_socket_connect
* Struck through repros no longer work on HEAD.