panic: receive 1: so 0xfffffd806f691190, so_type 3, sb_cc 7104 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 16154 22687 73 0x100010 0 1 syslogd *447004 29487 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f391b) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f691190,0,ffff800020e1e1f8,0,0,ffff800020e1e104) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd807cdf7098,ffff800020e1e1f8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc278,6,ffff800020e1e1f8,0,ffff800020e1e2e0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc278,ffff800020e1e290,ffff800020e1e2e0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e360) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e360) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcbe80, 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 0xfffffd806f691190, so_type 3, sb_cc 7104 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f391b) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f691190,0,ffff800020e1e1f8,0,0,ffff800020e1e104) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd807cdf7098,ffff800020e1e1f8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc278,6,ffff800020e1e1f8,0,ffff800020e1e2e0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc278,ffff800020e1e290,ffff800020e1e2e0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e360) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e360) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcbe80, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1df40 rbx 0xffff800020e1dff0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81c18a0f kprintf+0x16f r9 0x1 r10 0x2 r11 0xa35eff8630326063 r12 0x3000000008 r13 0xffff800020e1df50 r14 0x100 r15 0x1 rip 0xffffffff81a6ce18 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1df30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=447004 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddd5f8,0xffff800020ddc018 process=0xffff800020df03f0 user=0xffff800020e19000, vmspace=0xfffffd807f000170 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 4287 497458 6018 0 2 0 syz-executor.1 4287 320019 6018 0 3 0x4000080 fsleep syz-executor.1 74062 262505 68846 0 2 0x480 syz-executor.0 74062 10105 68846 0 3 0x4000080 poll syz-executor.0 93860 239170 0 0 3 0x14200 bored sosplice 6018 449393 36276 0 2 0x482 syz-executor.1 68846 371906 36276 0 2 0x482 syz-executor.0 36276 105747 99155 0 3 0x82 kqread syz-fuzzer 36276 320472 99155 0 2 0x4000482 syz-fuzzer 36276 249273 99155 0 3 0x4000082 thrsleep syz-fuzzer 36276 224065 99155 0 3 0x4000082 thrsleep syz-fuzzer 36276 43964 99155 0 3 0x4000082 thrsleep syz-fuzzer 36276 421634 99155 0 3 0x4000082 thrsleep syz-fuzzer 36276 290798 99155 0 3 0x4000082 thrsleep syz-fuzzer 36276 172923 99155 0 3 0x4000082 thrsleep syz-fuzzer 36276 430781 99155 0 2 0x4000482 syz-fuzzer 36276 397772 99155 0 3 0x4000082 thrsleep syz-fuzzer 99155 91840 80703 0 3 0x10008a pause ksh 80703 20354 89027 0 3 0x92 select sshd 89183 473337 1 0 3 0x100083 ttyin getty 89027 262181 1 0 3 0x80 select sshd 78234 369843 44748 74 3 0x100092 bpf pflogd 44748 44434 1 0 3 0x80 netio pflogd 22687 16154 15490 73 7 0x100010 syslogd 15490 221800 1 0 3 0x100082 netio syslogd 12825 81423 1 77 3 0x100090 poll dhclient *29487 447004 1 0 7 0 dhclient 21845 512738 0 0 3 0x14200 bored smr 78739 432131 0 0 3 0x14200 pgzero zerothread 4697 519585 0 0 3 0x14200 aiodoned aiodoned 40445 163715 0 0 3 0x14200 syncer update 98279 216655 0 0 3 0x14200 cleaner cleaner 9568 264598 0 0 3 0x14200 reaper reaper 51748 48390 0 0 3 0x14200 pgdaemon pagedaemon 95375 247638 0 0 3 0x14200 bored crynlk 70764 16213 0 0 3 0x14200 bored crypto 14989 100759 0 0 3 0x40014200 acpi0 acpi0 70084 203595 0 0 3 0x40014200 idle1 21736 138964 0 0 3 0x14200 bored softnet 95576 441134 0 0 3 0x14200 bored systqmp 38371 22138 0 0 3 0x14200 bored systq 94994 371364 0 0 2 0x40014200 softclock 79679 136175 0 0 3 0x40014200 idle0 1 217712 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 29487 (dhclient) thread 0xffff800020ddc278 (447004) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828eb278) #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 9484 6402K 6665K 78643K 10722 0 pcb 13 8K 8K 78643K 25 0 rtable 103 3K 6K 78643K 253 0 ifaddr 50 11K 12K 78643K 67 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1484 0 iov 0 0K 0K 78643K 2 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1267 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 3 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 29 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 131 0 sigio 0 0K 0K 78643K 2 0 proc 62 63K 95K 78643K 454 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 2 0 in_multi 36 2K 2K 78643K 73 0 ether_multi 1 0K 0K 78643K 2 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 209 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 125 39K 39K 78643K 1336 0 UVM aobj 5 2K 2K 78643K 5 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 8 0 NDP 7 0K 0K 78643K 18 0 temp 71 3856K 3919K 78643K 2265 0 kqueue 3 4K 4K 78643K 3 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 6 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 21 0 19 1 0 1 1 0 8 0 rtentry 112 57 0 16 2 0 2 2 0 8 0 unpcb 120 60 0 49 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 181 0 181 1 1 0 1 0 8 0 tcpcb 544 34 0 30 1 0 1 1 0 8 0 inpcb 296 109 0 102 1 0 1 1 0 8 0 nd6 48 13 0 9 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 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 6 0 6 1 0 1 1 0 8 1 pfstitem 24 19 0 2 1 0 1 1 0 8 0 pfstkey 112 19 0 2 1 0 1 1 0 8 0 pfstate 328 19 0 2 2 0 2 2 0 8 0 pfrule 1360 22 0 17 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 213 0 40 12 0 12 12 0 8 1 art_table 32 214 0 40 2 0 2 2 0 8 0 art_node 16 54 0 16 1 0 1 1 0 8 0 semupl 112 3 0 3 1 0 1 1 0 8 1 semapl 112 24 0 14 1 0 1 1 0 8 0 shmpl 112 2 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1559 0 154 89 0 89 89 0 8 0 ffsino 272 1559 0 154 94 0 94 94 0 8 0 nchpl 144 1910 0 295 60 0 60 60 0 8 0 uvmvnodes 72 1631 0 0 30 0 30 30 0 8 0 vnodes 208 1631 0 0 86 0 86 86 0 8 0 namei 1024 5195 0 5195 1 0 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 vcpupl 1984 1 0 0 1 0 1 1 0 8 0 vmpool 560 3 0 2 1 0 1 1 0 8 0 pfiaddrpl 120 1 0 1 1 0 1 1 0 8 1 scxspl 192 5674 0 5674 8 4 4 7 0 8 4 plimitpl 152 19 0 11 1 0 1 1 0 8 0 sigapl 424 347 0 314 4 0 4 4 0 8 0 futexpl 56 1392 0 1391 1 0 1 1 0 8 0 knotepl 112 61 0 42 1 0 1 1 0 8 0 kqueuepl 144 10 0 8 1 0 1 1 0 8 0 pipepl 304 93 0 83 2 0 2 2 0 8 1 fdescpl 496 331 0 314 3 0 3 3 0 8 0 filepl 152 1746 0 1644 5 0 5 5 0 8 1 lockfpl 104 13 0 12 1 0 1 1 0 8 0 lockfspl 48 6 0 5 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 120 0 111 1 0 1 1 0 8 0 zombiepl 144 314 0 314 1 0 1 1 0 8 1 processpl 992 347 0 314 5 0 5 5 0 8 0 procpl 624 567 0 523 4 0 4 4 0 8 0 sockpl 400 192 0 172 3 0 3 3 0 8 0 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 204 0 0 25 0 25 25 0 8 0 mtagpl 96 13 0 0 1 0 1 1 0 8 0 mbufpl 256 243 0 0 14 0 14 14 0 8 0 bufpl 280 3482 0 133 240 0 240 240 0 8 0 anonpl 16 51123 0 34435 79 1 78 78 0 124 10 amapchunkpl 152 1532 0 1366 9 1 8 9 0 158 0 amappl16 192 1666 0 781 52 3 49 52 0 8 4 amappl15 184 9 0 7 1 0 1 1 0 8 0 amappl14 176 24 0 20 1 0 1 1 0 8 0 amappl13 168 80 0 75 1 0 1 1 0 8 0 amappl12 160 14 0 13 2 1 1 1 0 8 0 amappl11 152 59 0 44 1 0 1 1 0 8 0 amappl10 144 31 0 24 1 0 1 1 0 8 0 amappl9 136 435 0 432 1 0 1 1 0 8 0 amappl8 128 403 0 368 2 0 2 2 0 8 0 amappl7 120 119 0 106 1 0 1 1 0 8 0 amappl6 112 21 0 19 1 0 1 1 0 8 0 amappl5 104 228 0 211 1 0 1 1 0 8 0 amappl4 96 529 0 501 1 0 1 1 0 8 0 amappl3 88 98 0 93 1 0 1 1 0 8 0 amappl2 80 1709 0 1630 2 0 2 2 0 8 0 amappl1 72 18265 0 17793 23 13 10 18 0 8 0 amappl 80 819 0 770 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 4 0 0 1 0 1 1 0 8 0 uaddrrnd 24 334 0 316 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 334 0 316 1 0 1 1 0 8 0 vmmpekpl 168 6669 0 6630 2 0 2 2 0 8 0 vmmpepl 168 49538 0 47367 124 10 114 119 0 357 19 vmsppl 368 333 0 316 2 0 2 2 0 8 0 pdppl 4096 675 0 633 6 0 6 6 0 8 0 pvpl 32 165956 0 145987 186 0 186 186 0 265 24 pmappl 232 333 0 316 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 262 0 3 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(ffffffff823f391b) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f691190,0,ffff800020e1e1f8,0,0,ffff800020e1e104) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd807cdf7098,ffff800020e1e1f8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc278,6,ffff800020e1e1f8,0,ffff800020e1e2e0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc278,ffff800020e1e290,ffff800020e1e2e0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e360) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e360) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcbe80, 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(8b2e3,8b2e4) at __sanitizer_cov_trace_cmp4+0x10 sys/dev/kcov.c:134 __mp_lock(ffffffff828eb070) at __mp_lock+0x139 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828eb070) at __mp_lock+0x139 sys/kern/kern_lock.c:147 solock(fffffd806eadce18) at solock+0x66 sys/kern/uipc_socket2.c:292 soreceive(fffffd806eadce18,ffff800020e545a0,ffff800020e54568,0,0,ffff800020e54694) at soreceive+0x114 sys/kern/uipc_socket.c:737 recvit(ffff800020e40390,8,ffff800020e54668,7f7ffffc8274,ffff800020e54750) at recvit+0x32b sys/kern/uipc_syscalls.c:817 sys_recvfrom(ffff800020e40390,ffff800020e54700,ffff800020e54750) at sys_recvfrom+0xd0 sys/kern/uipc_syscalls.c:717 syscall(ffff800020e547d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e547d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc81f0, count: 4 ddb{1}> trace 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(8b2e3,8b2e4) at __sanitizer_cov_trace_cmp4+0x10 sys/dev/kcov.c:134 __mp_lock(ffffffff828eb070) at __mp_lock+0x139 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828eb070) at __mp_lock+0x139 sys/kern/kern_lock.c:147 solock(fffffd806eadce18) at solock+0x66 sys/kern/uipc_socket2.c:292 soreceive(fffffd806eadce18,ffff800020e545a0,ffff800020e54568,0,0,ffff800020e54694) at soreceive+0x114 sys/kern/uipc_socket.c:737 recvit(ffff800020e40390,8,ffff800020e54668,7f7ffffc8274,ffff800020e54750) at recvit+0x32b sys/kern/uipc_syscalls.c:817 sys_recvfrom(ffff800020e40390,ffff800020e54700,ffff800020e54750) at sys_recvfrom+0xd0 sys/kern/uipc_syscalls.c:717 syscall(ffff800020e547d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e547d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc81f0, count: -11