panic: receive 1a: so 0xfffffd806f6864b0, so_type 3, m 0xfffffd806f12a600, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 234583 69829 0 0 0 0 syz-executor.0 *419947 18942 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e937f) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6864b0,0,ffff800020e1ec28,0,0,ffff800020e1eb34) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd807a3f74c0,ffff800020e1ec28,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc4e8,6,ffff800020e1ec28,0,ffff800020e1ed10) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc4e8,ffff800020e1ecc0,ffff800020e1ed10) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ed90) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ed90) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdc160, 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 1a: so 0xfffffd806f6864b0, so_type 3, m 0xfffffd806f12a600, m_type 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e937f) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6864b0,0,ffff800020e1ec28,0,0,ffff800020e1eb34) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd807a3f74c0,ffff800020e1ec28,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc4e8,6,ffff800020e1ec28,0,ffff800020e1ed10) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc4e8,ffff800020e1ecc0,ffff800020e1ed10) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ed90) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ed90) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdc160, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e970 rbx 0xffff800020e1ea20 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff8112c89f kprintf+0x16f r9 0x1 r10 0x2 r11 0xab3df1b113416c46 r12 0x3000000008 r13 0xffff800020e1e980 r14 0x100 r15 0x1 rip 0xffffffff82282b78 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e960 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=419947 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddcea8,0xffff800020ddcc48 process=0xffff800020df1370 user=0xffff800020e19000, 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 69829 234583 34807 0 7 0 syz-executor.0 69829 492077 34807 0 3 0x4000080 fsleep syz-executor.0 4631 512618 0 0 3 0x14200 bored sosplice 73080 359983 89151 0 3 0x82 nanosleep syz-executor.1 34807 164840 89151 0 3 0x82 nanosleep syz-executor.0 89151 441536 54099 0 3 0x82 thrsleep syz-fuzzer 89151 496477 54099 0 3 0x4000082 nanosleep syz-fuzzer 89151 350786 54099 0 3 0x4000082 thrsleep syz-fuzzer 89151 277087 54099 0 3 0x4000082 thrsleep syz-fuzzer 89151 513988 54099 0 3 0x4000082 thrsleep syz-fuzzer 89151 49408 54099 0 3 0x4000082 thrsleep syz-fuzzer 89151 195302 54099 0 3 0x4000082 thrsleep syz-fuzzer 89151 922 54099 0 3 0x4000082 thrsleep syz-fuzzer 89151 444118 54099 0 3 0x4000082 kqread syz-fuzzer 89151 346036 54099 0 3 0x4000082 thrsleep syz-fuzzer 54099 463478 48627 0 3 0x10008a pause ksh 48627 485822 3798 0 3 0x92 select sshd 44221 155208 1 0 3 0x100083 ttyin getty 3798 178662 1 0 3 0x80 select sshd 31627 338081 93891 74 3 0x100092 bpf pflogd 93891 205042 1 0 3 0x80 netio pflogd 35077 488572 42800 73 3 0x100090 kqread syslogd 42800 161310 1 0 3 0x100082 netio syslogd 29023 443703 1 77 2 0x100010 dhclient *18942 419947 1 0 7 0 dhclient 84474 389921 0 0 3 0x14200 bored smr 98105 276909 0 0 2 0x14200 zerothread 23647 17963 0 0 3 0x14200 aiodoned aiodoned 84035 314002 0 0 3 0x14200 syncer update 30382 173284 0 0 3 0x14200 cleaner cleaner 82037 252131 0 0 3 0x14200 reaper reaper 71020 32793 0 0 3 0x14200 pgdaemon pagedaemon 97835 193933 0 0 3 0x14200 bored crynlk 36313 280520 0 0 3 0x14200 bored crypto 79979 32564 0 0 3 0x40014200 acpi0 acpi0 17877 28340 0 0 3 0x40014200 idle1 26937 362224 0 0 3 0x14200 bored softnet 11935 324836 0 0 3 0x14200 bored systqmp 11127 15225 0 0 3 0x14200 bored systq 19465 129987 0 0 3 0x40014200 bored softclock 90046 211588 0 0 3 0x40014200 idle0 1 293637 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 18942 (dhclient) thread 0xffff800020ddc4e8 (419947) 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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9514 6414K 6927K 78643K 10828 0 pcb 13 8K 8K 78643K 29 0 rtable 102 3K 7K 78643K 249 0 ifaddr 64 12K 13K 78643K 78 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1485 0 iov 0 0K 16K 78643K 16 0 mount 1 1K 1K 78643K 1 0 vnodes 1222 77K 77K 78643K 1298 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 3 5K 5K 78643K 3 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 35 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 131 0 sigio 0 0K 0K 78643K 2 0 proc 61 63K 83K 78643K 456 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 27 0 in_multi 29 1K 2K 78643K 55 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 214 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 112 38K 42K 78643K 1345 0 UVM aobj 7 2K 2K 78643K 7 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 9 0 NDP 11 0K 0K 78643K 18 0 temp 91 3857K 3921K 78643K 3643 0 kqueue 3 4K 8K 78643K 29 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 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 54 0 12 2 0 2 2 0 8 0 unpcb 120 71 0 61 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 13 0 13 1 1 0 1 0 8 0 tcpcb 544 60 0 54 1 0 1 1 0 8 0 inpcb 296 183 0 176 2 1 1 2 0 8 0 nd6 48 12 0 7 1 0 1 1 0 8 0 pffrag 232 1 0 0 1 0 1 1 0 482 0 pffrnode 88 1 0 0 1 0 1 1 0 8 0 pffrent 40 2 0 1 1 0 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 10 0 10 1 1 0 1 0 8 0 pfstitem 24 20 0 4 1 0 1 1 0 8 0 pfstkey 112 20 0 4 1 0 1 1 0 8 0 pfstate 328 20 0 4 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 215 0 40 12 1 11 12 0 8 0 art_table 32 216 0 40 2 0 2 2 0 8 0 art_node 16 53 0 14 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 2 1 1 0 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 27 0 17 1 0 1 1 0 8 0 shmpl 112 4 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1580 0 173 89 0 89 89 0 8 0 ffsino 272 1580 0 173 95 0 95 95 0 8 0 nchpl 144 1938 0 323 60 0 60 60 0 8 0 uvmvnodes 72 1687 0 0 31 0 31 31 0 8 0 vnodes 208 1687 0 0 89 0 89 89 0 8 0 namei 1024 5178 0 5178 2 1 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 1 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 3 0 3 1 1 0 1 0 8 0 scxspl 192 5724 0 5724 8 5 3 7 0 8 3 plimitpl 152 19 0 11 1 0 1 1 0 8 0 sigapl 424 347 0 315 4 0 4 4 0 8 0 futexpl 56 1590 0 1589 2 1 1 1 0 8 0 knotepl 112 88 0 69 1 0 1 1 0 8 0 kqueuepl 144 40 0 38 1 0 1 1 0 8 0 pipepl 304 93 0 83 2 1 1 2 0 8 0 fdescpl 496 331 0 315 3 0 3 3 0 8 0 filepl 152 1789 0 1687 5 0 5 5 0 8 1 lockfpl 104 21 0 20 1 0 1 1 0 8 0 lockfspl 48 8 0 7 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 18 0 7 1 0 1 1 0 8 0 ucredpl 96 126 0 117 1 0 1 1 0 8 0 zombiepl 144 315 0 314 1 0 1 1 0 8 0 processpl 992 347 0 314 5 0 5 5 0 8 0 procpl 624 582 0 539 4 0 4 4 0 8 0 sosppl 128 1 0 1 1 1 0 1 0 8 0 sockpl 400 275 0 256 5 2 3 4 0 8 1 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 172 0 0 21 0 21 21 0 8 0 mtagpl 96 12 0 0 1 0 1 1 0 8 0 mbufpl 256 227 0 0 14 0 14 14 0 8 0 bufpl 280 3494 0 135 240 0 240 240 0 8 0 anonpl 16 45671 0 29052 68 1 67 67 0 124 0 amapchunkpl 152 1615 0 1457 9 2 7 9 0 158 0 amappl16 192 1330 0 438 45 0 45 45 0 8 0 amappl15 184 99 0 96 2 1 1 1 0 8 0 amappl14 176 22 0 18 1 0 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 10 0 8 1 0 1 1 0 8 0 amappl11 152 61 0 46 1 0 1 1 0 8 0 amappl10 144 112 0 106 1 0 1 1 0 8 0 amappl9 136 388 0 386 1 0 1 1 0 8 0 amappl8 128 338 0 313 1 0 1 1 0 8 0 amappl7 120 169 0 157 1 0 1 1 0 8 0 amappl6 112 22 0 19 1 0 1 1 0 8 0 amappl5 104 233 0 214 1 0 1 1 0 8 0 amappl4 96 485 0 459 1 0 1 1 0 8 0 amappl3 88 114 0 107 1 0 1 1 0 8 0 amappl2 80 1744 0 1673 2 0 2 2 0 8 0 amappl1 72 17421 0 16981 23 13 10 18 0 8 0 amappl 80 839 0 793 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 6 0 0 1 0 1 1 0 8 0 uaddrrnd 24 332 0 315 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 332 0 315 1 0 1 1 0 8 0 vmmpekpl 168 6653 0 6615 2 0 2 2 0 8 0 vmmpepl 168 47800 0 45757 119 15 104 116 0 357 10 vmsppl 368 331 0 315 2 0 2 2 0 8 0 pdppl 4096 671 0 631 6 0 6 6 0 8 0 pvpl 32 156603 0 136840 164 2 162 164 0 265 1 pmappl 232 331 0 315 2 0 2 2 0 8 1 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 262 0 7 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82797ff0) 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(ffffffff828dfb40) at __mp_lock+0x12e __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828dfb40) at __mp_lock+0x12e sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff828dfb40) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828dfb40) at __mp_lock+0x127 sys/kern/kern_lock.c:147 pageflttrap(ffff800023f2ef50,1) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 usertrap(ffff800023f2ef50) at usertrap+0x21a sys/arch/amd64/amd64/trap.c:384 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f7ffffbfd70, count: 5 ddb{0}> trace x86_ipi_db(ffffffff82797ff0) 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(ffffffff828dfb40) at __mp_lock+0x12e __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828dfb40) at __mp_lock+0x12e sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff828dfb40) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828dfb40) at __mp_lock+0x127 sys/kern/kern_lock.c:147 pageflttrap(ffff800023f2ef50,1) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 usertrap(ffff800023f2ef50) at usertrap+0x21a sys/arch/amd64/amd64/trap.c:384 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f7ffffbfd70, count: -10 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(ffffffff823e937f) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6864b0,0,ffff800020e1ec28,0,0,ffff800020e1eb34) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd807a3f74c0,ffff800020e1ec28,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc4e8,6,ffff800020e1ec28,0,ffff800020e1ed10) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc4e8,ffff800020e1ecc0,ffff800020e1ed10) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ed90) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ed90) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdc160, count: 7 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e937f) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6864b0,0,ffff800020e1ec28,0,0,ffff800020e1eb34) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd807a3f74c0,ffff800020e1ec28,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc4e8,6,ffff800020e1ec28,0,ffff800020e1ed10) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc4e8,ffff800020e1ecc0,ffff800020e1ed10) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ed90) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ed90) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdc160, count: -8