panic: receive 1: so 0xfffffd806f687320, so_type 3, sb_cc 6376 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 13361 14655 0 0 0 0 syz-executor.0 *138999 89736 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823d9e7d) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f687320,0,ffff800020e1cf78,0,0,ffff800020e1ce84) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd807a7fa1c8,ffff800020e1cf78,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc4e8,6,ffff800020e1cf78,0,ffff800020e1d060) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc4e8,ffff800020e1d010,ffff800020e1d060) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1d0e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1d0e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc4cc0, 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 0xfffffd806f687320, so_type 3, sb_cc 6376 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823d9e7d) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f687320,0,ffff800020e1cf78,0,0,ffff800020e1ce84) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd807a7fa1c8,ffff800020e1cf78,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc4e8,6,ffff800020e1cf78,0,ffff800020e1d060) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc4e8,ffff800020e1d010,ffff800020e1d060) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1d0e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1d0e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc4cc0, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1ccc0 rbx 0xffff800020e1cd70 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff813837bf kprintf+0x16f r9 0x1 r10 0x2 r11 0x9e69fcd99820b534 r12 0x3000000008 r13 0xffff800020e1ccd0 r14 0x100 r15 0x1 rip 0xffffffff8196be18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1ccb0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=138999 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddd118,0xffff800020ddcc48 process=0xffff800020df03e8 user=0xffff800020e18000, vmspace=0xfffffd807f000000 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 14655 13361 63091 0 7 0 syz-executor.0 14655 407478 63091 0 2 0x4000000 syz-executor.0 14655 300226 63091 0 2 0x4000000 syz-executor.0 14655 385756 63091 0 2 0x4000000 syz-executor.0 63091 213359 97529 0 3 0x82 nanosleep syz-executor.0 80660 320910 0 0 3 0x14200 bored sosplice 39814 110254 0 0 3 0x14280 nfsidl nfsio 77012 79879 0 0 3 0x14280 nfsidl nfsio 72063 232699 0 0 3 0x14280 nfsidl nfsio 80355 507673 0 0 3 0x14280 nfsidl nfsio 32594 133601 0 0 3 0x14280 nfsidl nfsio 36066 428496 0 0 3 0x14280 nfsidl nfsio 9274 19716 0 0 3 0x14280 nfsidl nfsio 84247 84967 0 0 3 0x14280 nfsidl nfsio 58512 28558 0 0 3 0x14280 nfsidl nfsio 63577 84675 0 0 3 0x14280 nfsidl nfsio 89367 309840 0 0 3 0x14280 nfsidl nfsio 92659 367469 0 0 3 0x14280 nfsidl nfsio 16733 152295 0 0 3 0x14280 nfsidl nfsio 83912 430336 0 0 3 0x14280 nfsidl nfsio 18214 467062 0 0 3 0x14280 nfsidl nfsio 61839 190810 0 0 3 0x14280 nfsidl nfsio 56695 437181 0 0 3 0x14280 nfsidl nfsio 77984 503799 0 0 3 0x14280 nfsidl nfsio 22812 315871 0 0 3 0x14280 nfsidl nfsio 48387 226316 0 0 3 0x14280 nfsidl nfsio 46354 316388 97529 0 3 0x82 piperd syz-executor.1 97529 430381 54712 0 2 0x2 syz-fuzzer 97529 408285 54712 0 3 0x4000082 nanosleep syz-fuzzer 97529 159116 54712 0 3 0x4000082 thrsleep syz-fuzzer 97529 158381 54712 0 3 0x4000082 thrsleep syz-fuzzer 97529 504295 54712 0 3 0x4000082 thrsleep syz-fuzzer 97529 55667 54712 0 3 0x4000082 thrsleep syz-fuzzer 97529 466665 54712 0 3 0x4000082 thrsleep syz-fuzzer 97529 177202 54712 0 3 0x4000082 thrsleep syz-fuzzer 97529 444488 54712 0 3 0x4000082 thrsleep syz-fuzzer 97529 177162 54712 0 3 0x4000082 kqread syz-fuzzer 97529 326232 54712 0 3 0x4000082 thrsleep syz-fuzzer 54712 231585 9096 0 3 0x10008a pause ksh 9096 236334 60765 0 3 0x92 select sshd 29504 11141 1 0 3 0x100083 ttyin getty 60765 251978 1 0 3 0x80 select sshd 37249 160173 78617 74 3 0x100092 bpf pflogd 78617 424886 1 0 3 0x80 netio pflogd 27471 91257 63131 73 3 0x100090 kqread syslogd 63131 301714 1 0 3 0x100082 netio syslogd 96422 407779 1 77 3 0x100090 poll dhclient *89736 138999 1 0 7 0 dhclient 56377 206658 0 0 3 0x14200 bored smr 95 1626 0 0 2 0x14200 zerothread 11214 100278 0 0 3 0x14200 aiodoned aiodoned 51149 419065 0 0 3 0x14200 syncer update 97568 254890 0 0 3 0x14200 cleaner cleaner 79121 64879 0 0 3 0x14200 reaper reaper 7546 372492 0 0 3 0x14200 pgdaemon pagedaemon 20826 335562 0 0 3 0x14200 bored crynlk 62026 430898 0 0 3 0x14200 bored crypto 61628 175534 0 0 3 0x40014200 acpi0 acpi0 48883 210068 0 0 3 0x40014200 idle1 87548 350772 0 0 3 0x14200 bored softnet 43212 15789 0 0 3 0x14200 bored systqmp 16344 365664 0 0 3 0x14200 bored systq 62630 227616 0 0 3 0x40014200 bored softclock 88689 418971 0 0 3 0x40014200 idle0 1 299012 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 89736 (dhclient) thread 0xffff800020ddc4e8 (138999) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828b9310) #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 9541 6449K 6954K 78643K 11814 0 pcb 14 8K 8K 78643K 133 0 rtable 102 8K 9K 78643K 612 0 ifaddr 101 19K 19K 78643K 234 0 sysctl 3 1K 1K 78643K 3 0 counters 43 33K 34K 78643K 65 0 ioctlops 0 0K 4K 78643K 1583 0 iov 0 0K 16K 78643K 103 0 mount 1 1K 1K 78643K 1 0 vnodes 1217 77K 77K 78643K 1589 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 12 0K 1K 78643K 47 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 765 0 sigio 0 0K 0K 78643K 8 0 proc 62 63K 95K 78643K 542 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 42 0 in_multi 54 2K 2K 78643K 180 0 ether_multi 1 0K 0K 78643K 20 0 mrt 1 0K 0K 78643K 10 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 43 201K 201K 78643K 43 0 exec 0 0K 1K 78643K 258 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 164 171K 171K 78643K 3452 0 UVM aobj 20 2K 2K 78643K 21 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 1K 78643K 111 0 NDP 15 0K 0K 78643K 43 0 temp 141 3865K 3929K 78643K 7291 0 kqueue 3 4K 8K 78643K 27 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 9 0 3 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 75 0 73 1 0 1 1 0 8 0 rtentry 112 105 0 75 2 0 2 2 0 8 0 unpcb 120 397 0 384 1 0 1 1 0 8 0 syncache 264 5 0 5 2 2 0 1 0 8 0 tcpqe 32 434 0 434 1 1 0 1 0 8 0 tcpcb 544 252 0 248 1 0 1 1 0 8 0 inpcb 296 813 0 805 5 3 2 2 0 8 1 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 22 0 19 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 ppxss 1128 1 0 1 1 1 0 1 0 8 0 pfstscr 40 1 0 0 1 0 1 1 0 8 0 pffrag 232 1 0 1 1 1 0 1 0 482 0 pffrnode 88 1 0 1 1 1 0 1 0 8 0 pffrent 40 2 0 2 1 1 0 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 57 0 49 2 1 1 1 0 8 0 pfstitem 24 60 0 24 1 0 1 1 0 8 0 pfstkey 112 60 0 24 2 0 2 2 0 8 0 pfstate 328 59 0 24 4 0 4 4 0 8 0 pfrule 1360 46 0 31 4 2 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 595 0 434 16 5 11 14 0 8 0 art_table 32 596 0 434 2 0 2 2 0 8 0 art_node 16 104 0 79 1 0 1 1 0 8 0 sysvmsgpl 40 36 0 25 2 1 1 1 0 8 0 semupl 112 5 0 5 1 1 0 1 0 8 0 semapl 112 39 0 29 1 0 1 1 0 8 0 shmpl 112 19 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2420 0 1018 90 2 88 89 0 8 0 ffsino 272 2420 0 1018 97 3 94 95 0 8 0 nchpl 144 3967 0 2373 60 0 60 60 0 8 0 uvmvnodes 72 2741 0 0 50 0 50 50 0 8 0 vnodes 208 2741 0 0 145 0 145 145 0 8 0 namei 1024 11087 0 11087 4 3 1 1 0 8 1 percpumem 16 43 0 11 1 0 1 1 0 8 0 vcpupl 1984 13 0 0 2 0 2 2 0 8 0 vmpool 560 18 0 5 1 0 1 1 0 8 0 pfiaddrpl 120 19 0 13 2 1 1 1 0 8 0 scxspl 192 11148 0 11147 11 10 1 7 0 8 0 plimitpl 152 77 0 69 1 0 1 1 0 8 0 sigapl 424 998 0 946 6 0 6 6 0 8 0 futexpl 56 12139 0 12139 3 2 1 1 0 8 1 knotepl 112 103 0 84 1 0 1 1 0 8 0 kqueuepl 144 97 0 94 1 0 1 1 0 8 0 pipelkpl 48 192 0 182 1 0 1 1 0 8 0 pipepl 120 384 0 365 1 0 1 1 0 8 0 fdescpl 496 962 0 946 3 0 3 3 0 8 0 filepl 152 5863 0 5759 8 3 5 5 0 8 1 lockfpl 104 194 0 193 1 0 1 1 0 8 0 lockfspl 48 70 0 69 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 19 0 8 1 0 1 1 0 8 0 ucredpl 96 504 0 495 1 0 1 1 0 8 0 zombiepl 144 946 0 946 3 2 1 1 0 8 1 processpl 984 998 0 946 9 2 7 7 0 8 0 procpl 624 2595 0 2530 6 0 6 6 0 8 0 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 12 0 12 2 1 1 1 0 8 1 sockpl 400 1290 0 1267 9 6 3 4 0 8 0 mcl64k 65536 15 0 0 2 0 2 2 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 11 0 0 2 0 2 2 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 169 0 0 21 0 21 21 0 8 0 mtagpl 96 83 0 0 3 0 3 3 0 8 0 mbufpl 256 434 0 0 26 0 26 26 0 8 0 bufpl 280 5004 0 138 348 0 348 348 0 8 0 anonpl 16 114765 0 98209 101 21 80 83 0 124 12 amapchunkpl 152 5516 0 5366 12 4 8 11 0 158 1 amappl16 192 5091 0 4176 77 26 51 58 0 8 5 amappl15 184 259 0 257 1 0 1 1 0 8 0 amappl14 176 41 0 30 1 0 1 1 0 8 0 amappl13 168 323 0 319 1 0 1 1 0 8 0 amappl12 160 11 0 8 1 0 1 1 0 8 0 amappl11 152 55 0 40 1 0 1 1 0 8 0 amappl10 144 17 0 13 1 0 1 1 0 8 0 amappl9 136 703 0 700 1 0 1 1 0 8 0 amappl8 128 719 0 674 2 0 2 2 0 8 0 amappl7 120 126 0 113 1 0 1 1 0 8 0 amappl6 112 26 0 21 1 0 1 1 0 8 0 amappl5 104 720 0 704 1 0 1 1 0 8 0 amappl4 96 652 0 623 1 0 1 1 0 8 0 amappl3 88 269 0 264 1 0 1 1 0 8 0 amappl2 80 6998 0 6924 2 0 2 2 0 8 0 amappl1 72 30213 0 29755 23 13 10 18 0 8 0 amappl 80 2852 0 2799 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 20 0 1 1 0 1 1 0 8 0 uaddrrnd 24 980 0 951 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 980 0 951 1 0 1 1 0 8 0 vmmpekpl 168 11094 0 11047 3 0 3 3 0 8 0 vmmpepl 168 124188 0 122052 149 51 98 124 0 357 1 vmsppl 368 979 0 951 3 0 3 3 0 8 0 pdppl 4096 1967 0 1915 7 0 7 7 0 8 0 pvpl 32 317711 0 298165 234 45 189 196 0 265 28 pmappl 232 979 0 951 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 296 0 23 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff826fcff0) 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(ffffffff828b9108) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828b9108) at __mp_lock+0x127 sys/kern/kern_lock.c:147 intr_handler(ffff800021eed020,ffff80000004a400) at intr_handler+0x5e sys/arch/amd64/amd64/intr.c:532 Xintr_ioapic_edge17_untramp() at Xintr_ioapic_edge17_untramp+0x19f end of kernel end trace frame: 0x7f7fffff60f0, count: 9 ddb{0}> trace x86_ipi_db(ffffffff826fcff0) 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(ffffffff828b9108) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828b9108) at __mp_lock+0x127 sys/kern/kern_lock.c:147 intr_handler(ffff800021eed020,ffff80000004a400) at intr_handler+0x5e sys/arch/amd64/amd64/intr.c:532 Xintr_ioapic_edge17_untramp() at Xintr_ioapic_edge17_untramp+0x19f end of kernel end trace frame: 0x7f7fffff60f0, 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(ffffffff823d9e7d) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f687320,0,ffff800020e1cf78,0,0,ffff800020e1ce84) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd807a7fa1c8,ffff800020e1cf78,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc4e8,6,ffff800020e1cf78,0,ffff800020e1d060) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc4e8,ffff800020e1d010,ffff800020e1d060) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1d0e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1d0e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc4cc0, count: 7 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823d9e7d) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f687320,0,ffff800020e1cf78,0,0,ffff800020e1ce84) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd807a7fa1c8,ffff800020e1cf78,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc4e8,6,ffff800020e1cf78,0,ffff800020e1d060) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc4e8,ffff800020e1d010,ffff800020e1d060) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1d0e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1d0e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc4cc0, count: -8