panic: receive 1: so 0xfffffd806f689320, so_type 3, sb_cc 3018 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 169820 57655 0 0x2 0x4000000 0 syz-fuzzer *269612 38385 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f1556) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f689320,0,ffff800020e1e008,0,0,ffff800020e1df14) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd80703f7000,ffff800020e1e008,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc008,6,ffff800020e1e008,0,ffff800020e1e0f0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc008,ffff800020e1e0a0,ffff800020e1e0f0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e170) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e170) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc8bd0, 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 0xfffffd806f689320, so_type 3, sb_cc 3018 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f1556) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f689320,0,ffff800020e1e008,0,0,ffff800020e1df14) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd80703f7000,ffff800020e1e008,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc008,6,ffff800020e1e008,0,ffff800020e1e0f0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc008,ffff800020e1e0a0,ffff800020e1e0f0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e170) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e170) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc8bd0, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1dd50 rbx 0xffff800020e1de00 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81cf234f kprintf+0x16f r9 0x1 r10 0x2 r11 0x84fe8c30d0d6a3d4 r12 0x3000000008 r13 0xffff800020e1dd60 r14 0x100 r15 0x1 rip 0xffffffff81df9468 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1dd40 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=269612 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddd388,0xffff800020ddc4f8 process=0xffff800020df0bb0 user=0xffff800020e19000, vmspace=0xfffffd807f000170 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 4804 213020 6494 0 2 0 syz-executor.0 4804 33656 6494 0 3 0x4000080 fsleep syz-executor.0 37120 475703 1 0 3 0x100083 ttyin getty 84358 463518 0 0 3 0x14280 nfsidl nfsio 78291 266405 0 0 3 0x14280 nfsidl nfsio 68407 372698 0 0 3 0x14280 nfsidl nfsio 27692 266822 0 0 3 0x14280 nfsidl nfsio 32774 439373 0 0 3 0x14280 nfsidl nfsio 39852 284111 0 0 3 0x14280 nfsidl nfsio 46628 359210 0 0 3 0x14280 nfsidl nfsio 99804 239198 0 0 3 0x14280 nfsidl nfsio 53242 360816 0 0 3 0x14280 nfsidl nfsio 48816 477006 0 0 3 0x14280 nfsidl nfsio 5888 501166 0 0 3 0x14280 nfsidl nfsio 12960 53723 0 0 3 0x14280 nfsidl nfsio 41868 337345 0 0 3 0x14280 nfsidl nfsio 26546 159180 0 0 3 0x14280 nfsidl nfsio 70275 483688 0 0 3 0x14280 nfsidl nfsio 19836 411712 0 0 3 0x14280 nfsidl nfsio 9349 421734 0 0 3 0x14280 nfsidl nfsio 793 360564 0 0 3 0x14280 nfsidl nfsio 82485 81672 0 0 3 0x14280 nfsidl nfsio 27991 33769 0 0 3 0x14280 nfsidl nfsio 68381 302168 57655 0 3 0x82 piperd syz-executor.1 19448 456080 0 0 3 0x14200 acct acct 66248 309884 0 0 3 0x14200 bored sosplice 6494 185281 57655 0 3 0x82 nanosleep syz-executor.0 57655 446182 38117 0 3 0x82 thrsleep syz-fuzzer 57655 323201 38117 0 3 0x4000082 nanosleep syz-fuzzer 57655 462451 38117 0 3 0x4000082 thrsleep syz-fuzzer 57655 54275 38117 0 3 0x4000082 thrsleep syz-fuzzer 57655 169820 38117 0 7 0x4000002 syz-fuzzer 57655 185973 38117 0 3 0x4000082 thrsleep syz-fuzzer 57655 388779 38117 0 3 0x4000082 thrsleep syz-fuzzer 57655 48922 38117 0 3 0x4000082 thrsleep syz-fuzzer 57655 477858 38117 0 3 0x4000082 kqread syz-fuzzer 57655 483740 38117 0 3 0x4000082 thrsleep syz-fuzzer 38117 424699 57016 0 3 0x10008a pause ksh 57016 285757 36958 0 3 0x92 select sshd 36958 211888 1 0 3 0x80 select sshd 14230 213584 76065 74 3 0x100092 bpf pflogd 76065 102195 1 0 3 0x80 netio pflogd 69920 465271 66805 73 3 0x100090 kqread syslogd 66805 426837 1 0 3 0x100082 netio syslogd 69650 403828 1 77 3 0x100090 poll dhclient *38385 269612 1 0 7 0 dhclient 34900 22151 0 0 3 0x14200 bored smr 45542 272238 0 0 2 0x14200 zerothread 31022 416829 0 0 3 0x14200 aiodoned aiodoned 4868 164886 0 0 3 0x14200 syncer update 49602 71462 0 0 3 0x14200 cleaner cleaner 800 99990 0 0 3 0x14200 reaper reaper 88798 227328 0 0 3 0x14200 pgdaemon pagedaemon 69883 326332 0 0 3 0x14200 bored crynlk 29081 496903 0 0 3 0x14200 bored crypto 74322 233357 0 0 3 0x40014200 acpi0 acpi0 18081 165008 0 0 3 0x40014200 idle1 79568 82778 0 0 3 0x14200 bored softnet 16328 23767 0 0 3 0x14200 bored systqmp 67043 64028 0 0 3 0x14200 bored systq 10114 21523 0 0 3 0x40014200 bored softclock 13784 276940 0 0 3 0x40014200 idle0 1 328696 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 38385 (dhclient) thread 0xffff800020ddc008 (269612) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff829156c0) #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:737 #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 9549 6436K 7072K 78643K 12573 0 pcb 13 8K 8K 78643K 158 0 rtable 114 14K 18K 78643K 631 0 ifaddr 112 21K 22K 78643K 239 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 59 0 ioctlops 0 0K 4K 78643K 1608 0 iov 0 0K 32K 78643K 124 0 mount 1 1K 1K 78643K 1 0 vnodes 1219 77K 77K 78643K 1843 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 18 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 152 0 dirhash 6 1K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 1001 0 sigio 0 0K 0K 78643K 20 0 proc 63 63K 95K 78643K 590 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 72 0 in_multi 111 4K 5K 78643K 339 0 ether_multi 1 0K 0K 78643K 29 0 mrt 0 0K 0K 78643K 12 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 61 281K 281K 78643K 61 0 exec 0 0K 1K 78643K 293 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 147 137K 138K 78643K 4285 0 UVM aobj 49 6K 6K 78643K 60 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 144 0 NDP 16 0K 0K 78643K 57 0 temp 155 3879K 3943K 78643K 9079 0 kqueue 3 4K 10K 78643K 44 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 11 0 3 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 61 0 59 1 0 1 1 0 8 0 rtentry 112 127 0 88 2 0 2 2 0 8 0 unpcb 120 943 0 933 1 0 1 1 0 8 0 syncache 264 12 0 12 4 4 0 1 0 8 0 tcpqe 32 106 0 106 1 1 0 1 0 8 0 tcpcb 544 504 0 500 1 0 1 1 0 8 0 inpcb 296 1256 0 1249 6 4 2 2 0 8 1 rttmr 72 5 0 5 3 3 0 1 0 8 0 nd6 48 40 0 38 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 swfcl 56 3 0 0 1 0 1 1 0 8 0 ppxss 1128 3 0 3 2 2 0 1 0 8 0 pfstscr 40 2 0 2 1 1 0 1 0 8 0 pffrag 232 9 0 8 4 3 1 1 0 482 0 pffrnode 88 9 0 8 4 3 1 1 0 8 0 pffrent 40 190 0 189 4 3 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 pfrke_plain 160 16 0 10 2 1 1 1 0 8 0 pfrktable 1344 56 0 52 3 2 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 26 0 24 1 0 1 1 0 8 0 pfstkey 112 28 0 26 1 0 1 1 0 8 0 pfstate 328 28 0 26 2 1 1 2 0 8 0 pfrule 1360 49 0 30 3 1 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 681 0 510 20 6 14 16 0 8 1 art_table 32 682 0 510 2 0 2 2 0 8 0 art_node 16 126 0 90 1 0 1 1 0 8 0 sysvmsgpl 40 37 0 17 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 150 0 140 1 0 1 1 0 8 0 shmpl 112 57 0 11 2 0 2 2 0 8 0 dirhash 1024 17 0 13 3 1 2 3 0 8 0 dino2pl 256 2736 0 1329 89 0 89 89 0 8 0 ffsino 272 2736 0 1329 95 1 94 95 0 8 0 nchpl 144 4546 0 2956 60 0 60 60 0 8 0 rtmask 32 20 0 20 3 3 0 1 0 8 0 uvmvnodes 72 3243 0 0 59 0 59 59 0 8 0 vnodes 208 3243 0 0 171 0 171 171 0 8 0 namei 1024 15545 0 15545 3 2 1 1 0 8 1 percpumem 16 40 0 8 1 0 1 1 0 8 0 vcpupl 1984 14 0 0 2 0 2 2 0 8 0 vmpool 560 20 0 6 1 0 1 1 0 8 0 pfiaddrpl 120 17 0 13 3 2 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 12560 0 12560 10 9 1 7 0 8 1 plimitpl 152 107 0 99 1 0 1 1 0 8 0 sigapl 424 1237 0 1184 8 1 7 7 0 8 0 futexpl 56 16714 0 16713 3 2 1 1 0 8 0 knotepl 112 124 0 105 1 0 1 1 0 8 0 kqueuepl 144 143 0 135 1 0 1 1 0 8 0 pipepl 304 250 0 240 7 6 1 2 0 8 0 fdescpl 496 1200 0 1184 3 0 3 3 0 8 0 filepl 152 9760 0 9659 7 2 5 7 0 8 1 lockfpl 104 230 0 229 1 0 1 1 0 8 0 lockfspl 48 87 0 86 1 0 1 1 0 8 0 sessionpl 112 21 0 10 1 0 1 1 0 8 0 pgrppl 48 45 0 34 1 0 1 1 0 8 0 ucredpl 96 2882 0 2873 1 0 1 1 0 8 0 zombiepl 144 1184 0 1184 1 0 1 1 0 8 1 processpl 992 1237 0 1184 7 0 7 7 0 8 0 procpl 624 3415 0 3352 6 0 6 6 0 8 0 srpgc 64 4 0 4 2 2 0 1 0 8 0 sosppl 128 4 0 4 2 2 0 1 0 8 0 sockpl 400 2264 0 2245 11 8 3 4 0 8 1 mcl64k 65536 13 0 0 2 0 2 2 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 8 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 11 0 0 2 0 2 2 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 183 0 0 22 1 21 22 0 8 0 mtagpl 96 119 0 0 3 0 3 3 0 8 0 mbufpl 256 574 0 0 30 0 30 30 0 8 0 bufpl 280 5070 0 138 353 0 353 353 0 8 0 anonpl 16 114620 0 97331 81 9 72 77 0 124 0 amapchunkpl 152 7006 0 6851 18 10 8 12 0 158 0 amappl16 192 4623 0 3659 52 3 49 50 0 8 0 amappl15 184 2 0 2 2 2 0 1 0 8 0 amappl14 176 35 0 27 1 0 1 1 0 8 0 amappl13 168 988 0 982 1 0 1 1 0 8 0 amappl12 160 681 0 678 2 1 1 1 0 8 0 amappl11 152 61 0 46 1 0 1 1 0 8 0 amappl10 144 31 0 23 1 0 1 1 0 8 0 amappl9 136 390 0 389 1 0 1 1 0 8 0 amappl8 128 385 0 344 2 0 2 2 0 8 0 amappl7 120 130 0 115 1 0 1 1 0 8 0 amappl6 112 25 0 19 1 0 1 1 0 8 0 amappl5 104 897 0 879 1 0 1 1 0 8 0 amappl4 96 995 0 965 1 0 1 1 0 8 0 amappl3 88 337 0 331 1 0 1 1 0 8 0 amappl2 80 9069 0 8998 2 0 2 2 0 8 0 amappl1 72 35612 0 35164 23 13 10 18 0 8 0 amappl 80 3681 0 3628 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 59 0 11 1 0 1 1 0 8 0 uaddrrnd 24 1220 0 1190 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1220 0 1190 1 0 1 1 0 8 0 vmmpekpl 168 13086 0 13047 3 1 2 3 0 8 0 vmmpepl 168 153092 0 150893 150 48 102 132 0 357 0 vmsppl 368 1219 0 1190 3 0 3 3 0 8 0 pdppl 4096 2447 0 2394 8 1 7 8 0 8 0 pvpl 32 359962 0 339674 194 23 171 183 0 265 0 pmappl 232 1219 0 1190 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 303 0 23 9 0 9 9 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82742ff0) 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 end of kernel end trace frame: 0xc00252aeb8, count: 12 ddb{0}> trace x86_ipi_db(ffffffff82742ff0) 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 end of kernel end trace frame: 0xc00252aeb8, count: -3 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(ffffffff823f1556) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f689320,0,ffff800020e1e008,0,0,ffff800020e1df14) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd80703f7000,ffff800020e1e008,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc008,6,ffff800020e1e008,0,ffff800020e1e0f0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc008,ffff800020e1e0a0,ffff800020e1e0f0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e170) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e170) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc8bd0, count: 7 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f1556) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f689320,0,ffff800020e1e008,0,0,ffff800020e1df14) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd80703f7000,ffff800020e1e008,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc008,6,ffff800020e1e008,0,ffff800020e1e0f0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc008,ffff800020e1e0a0,ffff800020e1e0f0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e170) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e170) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc8bd0, count: -8