panic: receive 1a: so 0xfffffd806f68f640, so_type 3, m 0xfffffd8068df1f00, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 313332 86289 0 0x2 0 1 syz-executor.0 *198989 70863 0 0 0 0 dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f05ee) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68f640,0,ffff800020e1e958,0,0,ffff800020e1e864) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd8075bf71c8,ffff800020e1e958,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc9c8,6,ffff800020e1e958,0,ffff800020e1ea40) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc9c8,ffff800020e1e9f0,ffff800020e1ea40) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1eac0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1eac0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffeff50, 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 1a: so 0xfffffd806f68f640, so_type 3, m 0xfffffd8068df1f00, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f05ee) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68f640,0,ffff800020e1e958,0,0,ffff800020e1e864) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd8075bf71c8,ffff800020e1e958,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc9c8,6,ffff800020e1e958,0,ffff800020e1ea40) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc9c8,ffff800020e1e9f0,ffff800020e1ea40) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1eac0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1eac0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffeff50, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e6a0 rbx 0xffff800020e1e750 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff8150d54f kprintf+0x16f r9 0x1 r10 0x2 r11 0xcedf0b640df1ef55 r12 0x3000000008 r13 0xffff800020e1e6b0 r14 0x100 r15 0x1 rip 0xffffffff818b9b58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e690 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=198989 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddcea8,0xffff800020ddcc48 process=0xffff800020df03f0 user=0xffff800020e19000, vmspace=0xfffffd807effe000 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 26007 425228 86289 0 2 0 syz-executor.0 26007 249844 86289 0 3 0x4000080 fsleep syz-executor.0 80776 221767 26503 0 3 0x82 piperd syz-executor.1 86289 313332 26503 0 7 0x2 syz-executor.0 26503 132740 39763 0 2 0x2 syz-fuzzer 26503 214253 39763 0 3 0x4000082 nanosleep syz-fuzzer 26503 165241 39763 0 3 0x4000082 thrsleep syz-fuzzer 26503 375936 39763 0 3 0x4000082 thrsleep syz-fuzzer 26503 111152 39763 0 3 0x4000082 thrsleep syz-fuzzer 26503 303457 39763 0 3 0x4000082 thrsleep syz-fuzzer 26503 472259 39763 0 3 0x4000082 thrsleep syz-fuzzer 26503 261063 39763 0 3 0x4000082 thrsleep syz-fuzzer 26503 121597 39763 0 3 0x4000082 thrsleep syz-fuzzer 26503 150685 39763 0 3 0x4000082 kqread syz-fuzzer 39763 321207 13202 0 3 0x10008a pause ksh 13202 447692 89169 0 3 0x92 select sshd 53073 62852 1 0 3 0x100083 ttyin getty 89169 89553 1 0 3 0x80 select sshd 5432 150271 54706 74 3 0x100092 bpf pflogd 54706 258789 1 0 3 0x80 netio pflogd 45426 516137 83692 73 3 0x100090 kqread syslogd 83692 367967 1 0 3 0x100082 netio syslogd 1952 401021 1 77 3 0x100090 poll dhclient *70863 198989 1 0 7 0 dhclient 51220 399930 0 0 3 0x14200 bored smr 38379 332292 0 0 2 0x14200 zerothread 6394 13132 0 0 3 0x14200 aiodoned aiodoned 18983 31034 0 0 3 0x14200 syncer update 76428 463582 0 0 3 0x14200 cleaner cleaner 5239 165609 0 0 3 0x14200 reaper reaper 64990 202872 0 0 3 0x14200 pgdaemon pagedaemon 41941 452601 0 0 3 0x14200 bored crynlk 6660 6121 0 0 3 0x14200 bored crypto 16910 131416 0 0 3 0x40014200 acpi0 acpi0 62589 31099 0 0 3 0x40014200 idle1 17223 414436 0 0 3 0x14200 bored softnet 48921 97819 0 0 3 0x14200 bored systqmp 34509 77316 0 0 3 0x14200 bored systq 6620 111880 0 0 2 0x40014200 softclock 68070 202455 0 0 3 0x40014200 idle0 1 214660 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 70863 (dhclient) thread 0xffff800020ddc9c8 (198989) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828fd198) #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 9470 6404K 6664K 78643K 11019 0 pcb 13 8K 8K 78643K 27 0 rtable 105 3K 3K 78643K 201 0 ifaddr 46 11K 11K 78643K 49 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1486 0 iov 0 0K 0K 78643K 2 0 mount 1 1K 1K 78643K 1 0 vnodes 1218 77K 77K 78643K 1242 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 16 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 240 0 sigio 0 0K 0K 78643K 3 0 proc 61 63K 95K 78643K 450 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 3 0 in_multi 40 2K 2K 78643K 45 0 ether_multi 1 0K 0K 78643K 3 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 31 148K 148K 78643K 31 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 122 22K 24K 78643K 1587 0 UVM aobj 8 2K 2K 78643K 8 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 13 0 NDP 6 0K 0K 78643K 10 0 temp 70 3852K 3916K 78643K 2448 0 kqueue 3 4K 12K 78643K 122 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 19 0 17 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 unpcb 120 99 0 89 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 27 0 27 1 1 0 1 0 8 0 tcpcb 544 30 0 25 1 0 1 1 0 8 0 inpcb 296 101 0 93 2 1 1 2 0 8 0 nd6 48 6 0 0 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 pfstitem 24 18 0 3 1 0 1 1 0 8 0 pfstkey 112 18 0 3 1 0 1 1 0 8 0 pfstate 328 18 0 3 2 0 2 2 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 188 0 0 12 0 12 12 0 8 0 art_table 32 189 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 semapl 112 14 0 4 1 0 1 1 0 8 0 shmpl 112 5 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1639 0 233 89 0 89 89 0 8 0 ffsino 272 1639 0 233 95 1 94 94 0 8 0 nchpl 144 2181 0 572 60 0 60 60 0 8 0 uvmvnodes 72 1702 0 0 31 0 31 31 0 8 0 vnodes 208 1702 0 0 90 0 90 90 0 8 0 namei 1024 6062 0 6062 2 1 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 scxspl 192 6201 0 6201 9 8 1 7 0 8 1 plimitpl 152 21 0 13 1 0 1 1 0 8 0 sigapl 424 455 0 424 4 0 4 4 0 8 0 futexpl 56 2742 0 2741 1 0 1 1 0 8 0 knotepl 112 185 0 166 1 0 1 1 0 8 0 kqueuepl 144 168 0 166 1 0 1 1 0 8 0 pipepl 304 97 0 87 2 1 1 2 0 8 0 fdescpl 496 440 0 424 3 0 3 3 0 8 0 filepl 152 2506 0 2405 6 1 5 5 0 8 1 lockfpl 104 30 0 29 1 0 1 1 0 8 0 lockfspl 48 9 0 8 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 125 0 116 1 0 1 1 0 8 0 zombiepl 144 424 0 424 2 1 1 1 0 8 1 processpl 992 455 0 424 6 2 4 5 0 8 0 procpl 624 824 0 783 4 0 4 4 0 8 0 sockpl 400 219 0 199 5 2 3 4 0 8 1 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 9 0 0 2 0 2 2 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 329 0 0 41 0 41 41 0 8 0 mtagpl 96 9 0 0 1 0 1 1 0 8 0 mbufpl 256 335 0 0 21 0 21 21 0 8 0 bufpl 280 3574 0 133 246 0 246 246 0 8 0 anonpl 16 58061 0 41431 85 1 84 84 0 124 17 amapchunkpl 152 2010 0 1856 9 1 8 9 0 158 0 amappl16 192 1897 0 1005 57 4 53 57 0 8 8 amappl15 184 2 0 0 1 0 1 1 0 8 0 amappl14 176 21 0 18 1 0 1 1 0 8 0 amappl13 168 235 0 229 1 0 1 1 0 8 0 amappl12 160 213 0 207 1 0 1 1 0 8 0 amappl11 152 56 0 41 1 0 1 1 0 8 0 amappl10 144 19 0 15 1 0 1 1 0 8 0 amappl9 136 384 0 383 1 0 1 1 0 8 0 amappl8 128 342 0 310 2 0 2 2 0 8 0 amappl7 120 118 0 106 1 0 1 1 0 8 0 amappl6 112 23 0 19 1 0 1 1 0 8 0 amappl5 104 159 0 142 1 0 1 1 0 8 0 amappl4 96 681 0 648 1 0 1 1 0 8 0 amappl3 88 297 0 289 1 0 1 1 0 8 0 amappl2 80 2613 0 2542 2 0 2 2 0 8 0 amappl1 72 20656 0 20216 23 13 10 18 0 8 0 amappl 80 1070 0 1024 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 7 0 0 1 0 1 1 0 8 0 uaddrrnd 24 440 0 424 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 440 0 424 1 0 1 1 0 8 0 vmmpekpl 168 7177 0 7145 2 0 2 2 0 8 0 vmmpepl 168 61795 0 59730 122 18 104 117 0 357 14 vmsppl 368 439 0 424 2 0 2 2 0 8 0 pdppl 4096 887 0 848 7 1 6 6 0 8 0 pvpl 32 186504 0 166716 197 0 197 197 0 265 37 pmappl 232 439 0 424 2 1 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 291 0 8 9 0 9 9 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(ffffffff823f05ee) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68f640,0,ffff800020e1e958,0,0,ffff800020e1e864) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd8075bf71c8,ffff800020e1e958,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc9c8,6,ffff800020e1e958,0,ffff800020e1ea40) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc9c8,ffff800020e1e9f0,ffff800020e1ea40) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1eac0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1eac0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffeff50, count: -8 ddb{0}> machine ddbcpu 1