panic: receive 1: so 0xfffffd806f685190, so_type 3, sb_cc 5854 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 26513 43672 73 0x100010 0x1 1 syslogd *249937 51023 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f01d3) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f685190,0,ffff800020e1e068,0,0,ffff800020e1df74) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd807b7f7260,ffff800020e1e068,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc9c8,6,ffff800020e1e068,0,ffff800020e1e150) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc9c8,ffff800020e1e100,ffff800020e1e150) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e1d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e1d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc1670, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic receive 1: so 0xfffffd806f685190, so_type 3, sb_cc 5854 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f01d3) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f685190,0,ffff800020e1e068,0,0,ffff800020e1df74) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd807b7f7260,ffff800020e1e068,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc9c8,6,ffff800020e1e068,0,ffff800020e1e150) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc9c8,ffff800020e1e100,ffff800020e1e150) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e1d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e1d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc1670, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1ddb0 rbx 0xffff800020e1de60 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff8112c89f kprintf+0x16f r9 0x1 r10 0x2 r11 0xc7e4dadf36d41468 r12 0x3000000008 r13 0xffff800020e1ddc0 r14 0x100 r15 0x1 rip 0xffffffff82282b78 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1dda0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=249937 stat=onproc flags process=0 proc=0 pri=24, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddcc38,0xffff800020ddceb8 process=0xffff800020df0bb0 user=0xffff800020e19000, vmspace=0xfffffd807f000000 estcpu=1, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 42442 445737 56624 0 2 0x10 syz-executor.0 42442 420346 56624 0 3 0x4000010 smrbar syz-executor.0 8248 457109 0 0 3 0x14280 nfsidl nfsio 63571 265988 0 0 3 0x14280 nfsidl nfsio 63769 294482 0 0 3 0x14280 nfsidl nfsio 65282 58224 0 0 3 0x14280 nfsidl nfsio 380 68783 0 0 3 0x14280 nfsidl nfsio 42024 477060 0 0 3 0x14280 nfsidl nfsio 61850 154664 0 0 3 0x14280 nfsidl nfsio 58506 34710 0 0 3 0x14280 nfsidl nfsio 18319 376455 0 0 3 0x14280 nfsidl nfsio 91968 340615 0 0 3 0x14280 nfsidl nfsio 81392 172498 0 0 3 0x14280 nfsidl nfsio 26516 77783 0 0 3 0x14280 nfsidl nfsio 81378 332994 0 0 3 0x14280 nfsidl nfsio 22104 440947 0 0 3 0x14280 nfsidl nfsio 16053 53930 0 0 3 0x14280 nfsidl nfsio 33803 279116 0 0 3 0x14280 nfsidl nfsio 65072 29021 0 0 3 0x14280 nfsidl nfsio 259 172306 0 0 3 0x14280 nfsidl nfsio 82467 164540 0 0 3 0x14280 nfsidl nfsio 80847 184295 0 0 3 0x14280 nfsidl nfsio 12702 306945 0 0 3 0x14200 bored sosplice 1839 10197 89383 0 3 0x82 piperd syz-executor.1 56624 245492 89383 0 3 0x82 nanosleep syz-executor.0 89383 437364 28946 0 3 0x82 thrsleep syz-fuzzer 89383 504540 28946 0 3 0x4000082 nanosleep syz-fuzzer 89383 232498 28946 0 3 0x4000082 thrsleep syz-fuzzer 89383 306112 28946 0 3 0x4000082 thrsleep syz-fuzzer 89383 357412 28946 0 3 0x4000082 thrsleep syz-fuzzer 89383 50268 28946 0 3 0x4000082 kqread syz-fuzzer 89383 284239 28946 0 3 0x4000082 thrsleep syz-fuzzer 89383 394216 28946 0 2 0x4000002 syz-fuzzer 89383 229796 28946 0 3 0x4000082 thrsleep syz-fuzzer 89383 37493 28946 0 3 0x4000082 thrsleep syz-fuzzer 28946 212693 19442 0 3 0x10008a pause ksh 19442 515145 61658 0 3 0x92 select sshd 49016 484281 1 0 3 0x100083 ttyin getty 61658 449007 1 0 3 0x80 select sshd 33886 127355 76203 74 3 0x100092 bpf pflogd 76203 488276 1 0 3 0x80 netio pflogd 43672 26513 47797 73 7 0x100011 syslogd 47797 43378 1 0 3 0x100082 netio syslogd 52400 312642 1 77 3 0x100090 poll dhclient *51023 249937 1 0 7 0 dhclient 76208 258635 0 0 3 0x14200 bored smr 19986 137360 0 0 2 0x14200 zerothread 45382 31807 0 0 3 0x14200 aiodoned aiodoned 46400 383139 0 0 3 0x14200 syncer update 38274 33824 0 0 3 0x14200 cleaner cleaner 26580 30851 0 0 3 0x14200 reaper reaper 86880 100998 0 0 3 0x14200 pgdaemon pagedaemon 44195 75865 0 0 3 0x14200 bored crynlk 44820 216519 0 0 3 0x14200 bored crypto 29193 331321 0 0 3 0x40014200 acpi0 acpi0 66824 519368 0 0 3 0x40014200 idle1 62482 341753 0 0 3 0x14200 bored softnet 90674 193231 0 0 3 0x14200 bored systqmp 15602 47402 0 0 3 0x14200 bored systq 94502 268130 0 0 2 0x40014200 softclock 45410 107149 0 0 3 0x40014200 idle0 1 351059 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 51023 (dhclient) thread 0xffff800020ddc9c8 (249937) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828dfd48) #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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9520 6416K 6675K 78643K 11084 0 pcb 15 8K 9K 78643K 681 0 rtable 105 7K 8K 78643K 430 0 ifaddr 81 16K 16K 78643K 129 0 counters 43 33K 34K 78643K 53 0 ioctlops 0 0K 4K 78643K 1545 0 iov 0 0K 32K 78643K 53 0 mount 1 1K 1K 78643K 1 0 vnodes 1217 77K 77K 78643K 1392 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 9 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 43 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 405 0 sigio 0 0K 0K 78643K 14 0 proc 61 63K 95K 78643K 488 0 subproc 32 2K 2K 78643K 34 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 58 3K 3K 78643K 121 0 ether_multi 1 0K 0K 78643K 11 0 mrt 0 0K 0K 78643K 4 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 243 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 133 55K 64K 78643K 2244 0 UVM aobj 16 2K 3K 78643K 18 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 42 0 NDP 13 0K 0K 78643K 27 0 temp 115 3864K 3930K 78643K 4045 0 kqueue 3 4K 8K 78643K 14 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 7 0 1 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 43 0 41 1 0 1 1 0 8 0 rtentry 112 72 0 39 2 0 2 2 0 8 0 unpcb 120 981 0 967 1 0 1 1 0 8 0 syncache 264 10 0 10 3 3 0 1 0 8 0 tcpqe 32 1035 0 1035 1 1 0 1 0 8 0 tcpcb 544 132 0 128 1 0 1 1 0 8 0 inpcb 296 1054 0 1044 2 0 2 2 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 14 0 9 1 0 1 1 0 8 0 pkpcb 40 6 0 6 1 1 0 1 0 8 0 pfstscr 40 2 0 2 1 1 0 1 0 8 0 pffrag 232 7 0 7 2 2 0 1 0 482 0 pffrnode 88 7 0 7 2 2 0 1 0 8 0 pffrent 40 315 0 315 2 2 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 pfrke_plain 160 54 0 50 1 0 1 1 0 8 0 pfrktable 1344 41 0 33 1 0 1 1 0 8 0 pftag 88 3 0 2 1 0 1 1 0 8 0 pfstitem 24 22 0 11 1 0 1 1 0 8 0 pfstkey 112 24 0 13 1 0 1 1 0 8 0 pfstate 328 22 0 11 2 0 2 2 0 8 0 pfrule 1360 35 0 21 3 1 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 364 0 231 13 1 12 13 0 8 2 art_table 32 365 0 231 2 0 2 2 0 8 0 art_node 16 71 0 43 1 0 1 1 0 8 0 sysvmsgpl 40 46 0 24 1 0 1 1 0 8 0 semapl 112 41 0 31 1 0 1 1 0 8 0 shmpl 112 15 0 2 2 1 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1952 0 549 89 0 89 89 0 8 0 ffsino 272 1952 0 549 97 2 95 95 0 8 0 nchpl 144 2697 0 1088 60 0 60 60 0 8 0 rtmask 32 12 0 10 1 0 1 1 0 8 0 uvmvnodes 72 2097 0 0 39 0 39 39 0 8 0 vnodes 208 2097 0 0 111 0 111 111 0 8 0 namei 1024 7400 0 7400 3 2 1 1 0 8 1 percpumem 16 37 0 5 1 0 1 1 0 8 0 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 560 6 0 2 1 0 1 1 0 8 0 pfiaddrpl 120 7 0 3 1 0 1 1 0 8 0 scxspl 192 7710 0 7710 8 7 1 7 0 8 1 plimitpl 152 51 0 43 1 0 1 1 0 8 0 sigapl 424 641 0 589 6 0 6 6 0 8 0 futexpl 56 7020 0 7020 2 1 1 1 0 8 1 knotepl 112 71 0 52 1 0 1 1 0 8 0 kqueuepl 144 50 0 48 1 0 1 1 0 8 0 pipepl 304 129 0 119 2 0 2 2 0 8 1 fdescpl 496 605 0 589 3 0 3 3 0 8 0 filepl 152 4512 0 4405 6 1 5 5 0 8 0 lockfpl 104 61 0 60 1 0 1 1 0 8 0 lockfspl 48 23 0 22 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 20 0 9 1 0 1 1 0 8 0 ucredpl 96 436 0 425 1 0 1 1 0 8 0 zombiepl 144 589 0 589 2 1 1 1 0 8 1 processpl 992 641 0 589 8 1 7 7 0 8 0 procpl 624 1468 0 1406 6 0 6 6 0 8 1 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 7 0 7 2 2 0 1 0 8 0 sockpl 400 2091 0 2065 7 2 5 5 0 8 2 mcl64k 65536 10 0 0 2 0 2 2 0 8 0 mcl12k 12288 8 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 8 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 202 0 0 25 0 25 25 0 8 0 mtagpl 96 17 0 0 1 0 1 1 0 8 0 mbufpl 256 296 0 0 18 0 18 18 0 8 0 bufpl 280 3860 0 133 267 0 267 267 0 8 0 anonpl 16 70553 0 53326 87 3 84 86 0 124 13 amapchunkpl 152 3330 0 3184 11 0 11 11 0 158 2 amappl16 192 2932 0 1996 59 6 53 59 0 8 6 amappl15 184 158 0 155 1 0 1 1 0 8 0 amappl14 176 26 0 22 1 0 1 1 0 8 0 amappl13 168 29 0 25 1 0 1 1 0 8 0 amappl12 160 7 0 6 2 1 1 1 0 8 0 amappl11 152 55 0 40 1 0 1 1 0 8 0 amappl10 144 21 0 16 1 0 1 1 0 8 0 amappl9 136 610 0 606 1 0 1 1 0 8 0 amappl8 128 361 0 326 2 0 2 2 0 8 0 amappl7 120 119 0 107 1 0 1 1 0 8 0 amappl6 112 27 0 20 1 0 1 1 0 8 0 amappl5 104 503 0 487 1 0 1 1 0 8 0 amappl4 96 489 0 461 1 0 1 1 0 8 0 amappl3 88 122 0 116 1 0 1 1 0 8 0 amappl2 80 4062 0 3989 2 0 2 2 0 8 0 amappl1 72 22935 0 22490 23 12 11 18 0 8 0 amappl 80 1709 0 1663 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 17 0 2 1 0 1 1 0 8 0 uaddrrnd 24 611 0 591 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 611 0 591 1 0 1 1 0 8 0 vmmpekpl 168 8713 0 8673 2 0 2 2 0 8 0 vmmpepl 168 80752 0 78635 136 30 106 119 0 357 10 vmsppl 368 610 0 591 2 0 2 2 0 8 0 pdppl 4096 1229 0 1186 7 1 6 6 0 8 0 pvpl 32 224379 0 203900 210 8 202 207 0 265 35 pmappl 232 610 0 591 4 2 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 281 0 11 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f01d3) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f685190,0,ffff800020e1e068,0,0,ffff800020e1df74) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd807b7f7260,ffff800020e1e068,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc9c8,6,ffff800020e1e068,0,ffff800020e1e150) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc9c8,ffff800020e1e100,ffff800020e1e150) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e1d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e1d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc1670, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020d70ff0) 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 __sanitizer_cov_trace_cmp4(a0e80,a0e81) at __sanitizer_cov_trace_cmp4+0x64 sys/dev/kcov.c:137 __mp_lock(ffffffff828dfb40) at __mp_lock+0x139 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828dfb40) at __mp_lock+0x139 sys/kern/kern_lock.c:147 ktrgenio(ffff800020e40390,e,1,ffff800000b31980,2e) at ktrgenio+0x232 ktrwrite2 sys/kern/kern_ktrace.c:611 [inline] ktrgenio(ffff800020e40390,e,1,ffff800000b31980,2e) at ktrgenio+0x232 sys/kern/kern_ktrace.c:261 dofilewritev(ffff800020e40390,e,ffff800020e54ab0,0,ffff800020e54ba0) at dofilewritev+0x393 sys/kern/sys_generic.c:386 sys_writev(ffff800020e40390,ffff800020e54b50,ffff800020e54ba0) at sys_writev+0xa7 sys/kern/sys_generic.c:312 syscall(ffff800020e54c20) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e54c20) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe1d80, count: 5