panic: receive 1: so 0xfffffd806f6e94b0, so_type 3, sb_cc 33 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 263872 79809 0 0x2 0x4000000 0 syz-fuzzer *187651 53296 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821f0d83) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6e94b0,0,ffff800020ead888,0,0,ffff800020ead794) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd807c1f4390,ffff800020ead888,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020e6c9c8,6,ffff800020ead888,0,ffff800020ead970) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e6c9c8,ffff800020ead920,ffff800020ead970) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020ead9f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020ead9f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff0660, count: 7 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic receive 1: so 0xfffffd806f6e94b0, so_type 3, sb_cc 33 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821f0d83) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6e94b0,0,ffff800020ead888,0,0,ffff800020ead794) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd807c1f4390,ffff800020ead888,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020e6c9c8,6,ffff800020ead888,0,ffff800020ead970) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e6c9c8,ffff800020ead920,ffff800020ead970) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020ead9f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020ead9f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff0660, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020ead5d0 rbx 0xffff800020ead680 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff813a0f8f kprintf+0x16f r9 0x1 r10 0x2 r11 0x1b953f296a541521 r12 0x3000000008 r13 0xffff800020ead5e0 r14 0x100 r15 0x1 rip 0xffffffff8140a528 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020ead5c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=187651 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020e6d388,0xffff800020e6cc48 process=0xffff800020e807c0 user=0xffff800020ea8000, vmspace=0xfffffd807efff5c0 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 79608 400908 0 0 3 0x14200 bored sosplice 25468 260153 79809 0 3 0x82 piperd syz-executor.0 35604 439936 0 0 3 0x14280 nfsidl nfsio 38728 502725 0 0 3 0x14280 nfsidl nfsio 55659 434691 0 0 3 0x14280 nfsidl nfsio 82455 360756 0 0 3 0x14280 nfsidl nfsio 50172 384325 0 0 3 0x14280 nfsidl nfsio 29190 522913 0 0 3 0x14280 nfsidl nfsio 42735 203755 0 0 3 0x14280 nfsidl nfsio 10232 306297 0 0 3 0x14280 nfsidl nfsio 54808 80290 0 0 3 0x14280 nfsidl nfsio 85772 71072 0 0 3 0x14280 nfsidl nfsio 18153 337078 0 0 3 0x14280 nfsidl nfsio 19604 467133 0 0 3 0x14280 nfsidl nfsio 83977 244171 0 0 3 0x14280 nfsidl nfsio 85945 475906 0 0 3 0x14280 nfsidl nfsio 58095 476389 0 0 3 0x14280 nfsidl nfsio 7142 393531 0 0 3 0x14280 nfsidl nfsio 17956 19149 0 0 3 0x14280 nfsidl nfsio 28329 286791 0 0 3 0x14280 nfsidl nfsio 60291 344213 0 0 3 0x14280 nfsidl nfsio 99566 24612 0 0 3 0x14280 nfsidl nfsio 54197 342170 79809 0 3 0x82 nanosleep syz-executor.1 79809 97543 8389 0 3 0x82 thrsleep syz-fuzzer 79809 316723 8389 0 3 0x4000082 nanosleep syz-fuzzer 79809 449762 8389 0 3 0x4000082 thrsleep syz-fuzzer 79809 20274 8389 0 3 0x4000082 kqread syz-fuzzer 79809 482082 8389 0 3 0x4000082 thrsleep syz-fuzzer 79809 263872 8389 0 7 0x4000002 syz-fuzzer 79809 4591 8389 0 3 0x4000082 thrsleep syz-fuzzer 79809 452289 8389 0 3 0x4000082 thrsleep syz-fuzzer 79809 86665 8389 0 3 0x4000082 thrsleep syz-fuzzer 79809 330573 8389 0 3 0x4000082 thrsleep syz-fuzzer 8389 70717 34608 0 3 0x10008a pause ksh 34608 299096 75461 0 3 0x92 select sshd 34698 246597 1 0 3 0x100083 ttyin getty 75461 380691 1 0 3 0x80 select sshd 3418 517574 28365 74 3 0x100092 bpf pflogd 28365 503971 1 0 3 0x80 netio pflogd 53185 509758 4173 73 3 0x100090 kqread syslogd 4173 137890 1 0 3 0x100082 netio syslogd 17102 171681 1 77 3 0x100090 poll dhclient *53296 187651 1 0 7 0 dhclient 11147 322071 0 0 3 0x14200 bored smr 45208 18006 0 0 2 0x14200 zerothread 93809 89674 0 0 3 0x14200 aiodoned aiodoned 99827 17077 0 0 3 0x14200 syncer update 36766 230211 0 0 3 0x14200 cleaner cleaner 89476 435896 0 0 3 0x14200 reaper reaper 78799 444218 0 0 3 0x14200 pgdaemon pagedaemon 52770 308411 0 0 3 0x14200 bored crynlk 85576 362855 0 0 3 0x14200 bored crypto 57596 212615 0 0 3 0x40014200 acpi0 acpi0 80232 403964 0 0 3 0x40014200 idle1 75181 295038 0 0 3 0x14200 bored softnet 41530 318945 0 0 3 0x14200 bored systqmp 79680 315363 0 0 3 0x14200 bored systq 26353 137798 0 0 3 0x40014200 bored softclock 33611 325049 0 0 3 0x40014200 idle0 1 21280 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 53296 (dhclient) thread 0xffff800020e6c9c8 (187651) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82642d90) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 solock+0x66 sys/kern/uipc_socket2.c:292 #2 soreceive+0x114 sys/kern/uipc_socket.c:731 #3 soo_read+0x53 sys/kern/sys_socket.c:70 #4 dofilereadv+0x1a1 sys/kern/sys_generic.c:237 #5 sys_read+0x83 sys/kern/sys_generic.c:157 #6 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #6 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #7 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9542 6436K 7080K 78643K 12412 0 pcb 13 8K 8K 78643K 145 0 rtable 109 6K 7K 78643K 736 0 ifaddr 103 20K 20K 78643K 169 0 sysctl 2 0K 0K 78643K 2 0 counters 45 34K 34K 78643K 61 0 ioctlops 0 0K 4K 78643K 1565 0 iov 0 0K 32K 78643K 671 0 mount 1 1K 1K 78643K 1 0 vnodes 1234 78K 78K 78643K 1778 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 7 0 VM map 2 1K 1K 78643K 2 0 sem 10 1K 1K 78643K 15 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 944 0 sigio 0 0K 0K 78643K 5 0 proc 61 63K 95K 78643K 548 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 51 0 in_multi 81 3K 4K 78643K 186 0 ether_multi 1 0K 0K 78643K 24 0 mrt 0 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 67 307K 307K 78643K 67 0 exec 0 0K 1K 78643K 269 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 135 88K 104K 78643K 4026 0 UVM aobj 20 2K 2K 78643K 24 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 126 0 NDP 15 0K 0K 78643K 35 0 temp 144 3048K 3112K 78643K 11441 0 kqueue 3 4K 14K 78643K 38 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 10 0 4 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 266 0 264 1 0 1 1 0 8 0 rtentry 112 190 0 151 2 0 2 2 0 8 0 unpcb 120 641 0 631 1 0 1 1 0 8 0 syncache 264 11 0 11 4 4 0 1 0 8 0 tcpqe 32 649 0 649 1 1 0 1 0 8 0 tcpcb 544 284 0 280 1 0 1 1 0 8 0 inpcb 280 789 0 781 7 6 1 2 0 8 0 nd6 48 17 0 14 1 0 1 1 0 8 0 pkpcb 40 6 0 6 2 2 0 1 0 8 0 swfcl 56 3 0 0 1 0 1 1 0 8 0 ppxss 1128 3 0 3 3 3 0 1 0 8 0 pfstscr 40 2 0 1 1 0 1 1 0 8 0 pffrag 232 2 0 1 1 0 1 1 0 482 0 pffrnode 88 2 0 1 1 0 1 1 0 8 0 pffrent 40 7 0 6 2 1 1 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfrktable 1344 9 0 5 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 38 0 35 1 0 1 1 0 8 0 pfstkey 112 38 0 35 1 0 1 1 0 8 0 pfstate 328 37 0 34 2 0 2 2 0 8 0 pfrule 1360 39 0 24 3 1 2 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 424 0 238 15 2 13 13 0 8 1 art_table 32 426 0 238 2 0 2 2 0 8 0 art_node 16 87 0 51 1 0 1 1 0 8 0 sysvmsgpl 40 38 0 22 3 2 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 9 0 1 1 0 1 1 0 8 0 shmpl 112 22 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2636 0 1234 89 0 89 89 0 8 0 ffsino 272 2636 0 1234 95 0 95 95 0 8 0 nchpl 144 4456 0 2860 60 0 60 60 0 8 0 uvmvnodes 72 3095 0 0 57 0 57 57 0 8 0 vnodes 208 3095 0 0 163 0 163 163 0 8 0 namei 1024 14384 0 14384 2 1 1 1 0 8 1 percpumem 16 41 0 8 1 0 1 1 0 8 0 vcpupl 1984 6 0 0 1 0 1 1 0 8 0 vmpool 560 19 0 13 2 1 1 1 0 8 0 pfiaddrpl 120 4 0 2 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 11632 0 11632 13 10 3 7 0 8 3 plimitpl 152 65 0 57 1 0 1 1 0 8 0 sigapl 424 1177 0 1125 6 0 6 6 0 8 0 futexpl 56 14517 0 14517 2 1 1 1 0 8 1 knotepl 112 117 0 98 1 0 1 1 0 8 0 kqueuepl 144 94 0 92 1 0 1 1 0 8 0 pipelkpl 48 174 0 164 1 0 1 1 0 8 0 pipepl 120 348 0 329 2 1 1 2 0 8 0 fdescpl 496 1141 0 1125 3 0 3 3 0 8 0 filepl 152 8407 0 8304 7 2 5 7 0 8 0 lockfpl 104 161 0 160 1 0 1 1 0 8 0 lockfspl 48 60 0 59 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 27 0 16 1 0 1 1 0 8 0 ucredpl 96 2733 0 2724 1 0 1 1 0 8 0 zombiepl 144 1126 0 1125 2 1 1 1 0 8 0 processpl 984 1177 0 1125 8 1 7 7 0 8 0 procpl 624 3176 0 3115 7 1 6 6 0 8 1 sosppl 128 9 0 9 4 3 1 1 0 8 1 sockpl 400 1705 0 1686 9 6 3 4 0 8 1 mcl64k 65536 13 0 0 2 0 2 2 0 8 0 mcl16k 16384 15 0 0 2 0 2 2 0 8 0 mcl12k 12288 12 0 0 2 0 2 2 0 8 0 mcl9k 9216 10 0 0 1 0 1 1 0 8 0 mcl8k 8192 14 0 0 2 0 2 2 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 202 0 0 24 0 24 24 0 8 0 mtagpl 80 135 0 0 3 0 3 3 0 8 0 mbufpl 256 587 0 0 33 0 33 33 0 8 0 bufpl 280 7259 0 1015 447 0 447 447 0 8 0 anonpl 16 119691 0 104163 109 40 69 80 0 124 5 amapchunkpl 152 7229 0 7096 34 15 19 19 0 158 13 amappl16 192 5243 0 4382 76 31 45 56 0 8 1 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 530 0 525 1 0 1 1 0 8 0 amappl13 168 154 0 151 1 0 1 1 0 8 0 amappl12 160 518 0 513 1 0 1 1 0 8 0 amappl11 152 60 0 45 1 0 1 1 0 8 0 amappl10 144 347 0 343 1 0 1 1 0 8 0 amappl9 136 380 0 379 1 0 1 1 0 8 0 amappl8 128 385 0 350 2 0 2 2 0 8 0 amappl7 120 453 0 441 1 0 1 1 0 8 0 amappl6 112 27 0 21 1 0 1 1 0 8 0 amappl5 104 506 0 492 1 0 1 1 0 8 0 amappl4 96 1114 0 1076 2 1 1 2 0 8 0 amappl3 88 724 0 716 1 0 1 1 0 8 0 amappl2 80 8204 0 8133 2 0 2 2 0 8 0 amappl1 72 33774 0 33326 22 12 10 18 0 8 0 amappl 80 3449 0 3401 2 0 2 2 0 84 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 64 23 0 4 1 0 1 1 0 8 0 uaddrrnd 24 1160 0 1138 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1160 0 1138 1 0 1 1 0 8 0 vmmpekpl 168 12141 0 12099 3 0 3 3 0 8 0 vmmpepl 168 143902 0 141865 155 60 95 125 0 357 2 vmsppl 368 1159 0 1138 3 0 3 3 0 8 1 pdppl 4096 2328 0 2282 8 1 7 7 0 8 1 pvpl 32 343363 0 324564 242 58 184 195 0 265 30 pmappl 232 1159 0 1138 4 2 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 305 0 14 9 0 9 9 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff824d1ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82642b88) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82642b88) at __mp_lock+0x127 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f end of kernel end trace frame: 0xc002046c58, count: 9 ddb{0}> trace x86_ipi_db(ffffffff824d1ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82642b88) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82642b88) at __mp_lock+0x127 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f end of kernel end trace frame: 0xc002046c58, count: -6 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821f0d83) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6e94b0,0,ffff800020ead888,0,0,ffff800020ead794) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd807c1f4390,ffff800020ead888,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020e6c9c8,6,ffff800020ead888,0,ffff800020ead970) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e6c9c8,ffff800020ead920,ffff800020ead970) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020ead9f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020ead9f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff0660, count: 7 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821f0d83) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6e94b0,0,ffff800020ead888,0,0,ffff800020ead794) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd807c1f4390,ffff800020ead888,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020e6c9c8,6,ffff800020ead888,0,ffff800020ead970) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e6c9c8,ffff800020ead920,ffff800020ead970) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020ead9f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020ead9f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff0660, count: -8