panic: receive 1a: so 0xfffffd806f6d6640, so_type 3, m 0xfffffd8068e59600, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 491520 84947 0 0 0x4000080 1 syz-executor.0 *130241 63581 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821c2260) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6d6640,0,ffff800020abcee8,0,0,ffff800020abcdf4) at soreceive+0x174a sys/kern/uipc_socket.c:977 soo_read(fffffd80711fb000,ffff800020abcee8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c758,6,ffff800020abcee8,0,ffff800020abcfd0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:236 sys_read(ffff800020a7c758,ffff800020abcf80,ffff800020abcfd0) at sys_read+0x83 sys/kern/sys_generic.c:156 syscall(ffff800020abd050) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abd050) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffeb750, 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 0xfffffd806f6d6640, so_type 3, m 0xfffffd8068e59600, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821c2260) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6d6640,0,ffff800020abcee8,0,0,ffff800020abcdf4) at soreceive+0x174a sys/kern/uipc_socket.c:977 soo_read(fffffd80711fb000,ffff800020abcee8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c758,6,ffff800020abcee8,0,ffff800020abcfd0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:236 sys_read(ffff800020a7c758,ffff800020abcf80,ffff800020abcfd0) at sys_read+0x83 sys/kern/sys_generic.c:156 syscall(ffff800020abd050) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abd050) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffeb750, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abcc30 rbx 0xffff800020abcce0 rdx 0xffff800020a7c758 rcx 0 rax 0 r8 0xffffffff818e716f kprintf+0x16f r9 0x1 r10 0x25 r11 0x9afa80b2e195d2a9 r12 0x3000000008 r13 0xffff800020abcc40 r14 0x100 r15 0x1 rip 0xffffffff81267f78 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abcc20 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=130241 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7cea8,0xffff800020a7cc48 process=0xffff800020a90f10 user=0xffff800020ab8000, vmspace=0xfffffd807efff000 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 84947 7000 58910 0 2 0 syz-executor.0 84947 491520 58910 0 7 0x4000080 syz-executor.0 56726 76417 18819 0 2 0x490 syz-executor.1 56726 504133 18819 0 3 0x4000090 lockf syz-executor.1 56726 397156 18819 0 3 0x4000090 lockf syz-executor.1 56726 430827 18819 0 3 0x4000090 lockf syz-executor.1 56726 151124 18819 0 3 0x4000090 lockf syz-executor.1 56726 252349 18819 0 3 0x4000090 fsleep syz-executor.1 98507 146797 0 0 3 0x14200 bored sosplice 18819 470439 81773 0 2 0x482 syz-executor.1 58910 125754 81773 0 3 0x82 nanosleep syz-executor.0 81773 144736 63766 0 3 0x82 thrsleep syz-fuzzer 81773 473276 63766 0 2 0x4000482 syz-fuzzer 81773 232008 63766 0 3 0x4000082 thrsleep syz-fuzzer 81773 124362 63766 0 3 0x4000082 thrsleep syz-fuzzer 81773 171550 63766 0 3 0x4000082 thrsleep syz-fuzzer 81773 393998 63766 0 3 0x4000082 thrsleep syz-fuzzer 81773 497731 63766 0 3 0x4000082 thrsleep syz-fuzzer 81773 338990 63766 0 3 0x4000082 kqread syz-fuzzer 81773 153123 63766 0 3 0x4000082 thrsleep syz-fuzzer 81773 75530 63766 0 2 0x4000482 syz-fuzzer 63766 155303 16156 0 3 0x10008a pause ksh 16156 453012 62958 0 3 0x92 select sshd 27999 480251 1 0 3 0x100083 ttyin getty 62958 489280 1 0 3 0x80 select sshd 59022 6807 66323 74 3 0x100092 bpf pflogd 66323 508621 1 0 3 0x80 netio pflogd 50910 387804 92956 73 3 0x100090 kqread syslogd 92956 440387 1 0 3 0x100082 netio syslogd 81994 472770 1 77 3 0x100090 poll dhclient *63581 130241 1 0 7 0 dhclient 24442 81845 0 0 3 0x14200 pgzero zerothread 40710 9151 0 0 3 0x14200 aiodoned aiodoned 21111 503951 0 0 3 0x14200 syncer update 51858 420358 0 0 3 0x14200 cleaner cleaner 84648 130322 0 0 3 0x14200 reaper reaper 63403 454483 0 0 3 0x14200 pgdaemon pagedaemon 17702 289478 0 0 3 0x14200 bored crynlk 89161 147665 0 0 3 0x14200 bored crypto 49207 367929 0 0 3 0x40014200 acpi0 acpi0 66409 374136 0 0 3 0x40014200 idle1 78536 76302 0 0 3 0x14200 bored softnet 50024 469523 0 0 3 0x14200 bored systqmp 81101 491350 0 0 3 0x14200 bored systq 42402 97295 0 0 3 0x40014200 bored softclock 83941 351544 0 0 3 0x40014200 idle0 45401 508523 0 0 3 0x14200 bored smr 1 71173 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 63581 (dhclient) thread 0xffff800020a7c758 (130241) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82632c00) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 solock+0x66 sys/kern/uipc_socket2.c:292 #2 soreceive+0x114 sys/kern/uipc_socket.c:731 #3 soo_read+0x53 sys/kern/sys_socket.c:70 #4 dofilereadv+0x1a1 sys/kern/sys_generic.c:236 #5 sys_read+0x83 sys/kern/sys_generic.c:156 #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 9496 6533K 6724K 78643K 10705 0 pcb 13 8K 8K 78643K 23 0 rtable 105 3K 3K 78643K 207 0 ifaddr 53 11K 11K 78643K 58 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1471 0 iov 0 0K 12K 78643K 2 0 mount 1 1K 1K 78643K 1 0 vnodes 1219 77K 77K 78643K 1251 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 1809 196K 290K 78643K 12766 0 file desc 6 17K 25K 78643K 66 0 proc 60 63K 95K 78643K 446 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 10 0 in_multi 33 2K 2K 78643K 36 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 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 207 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 22K 22K 78643K 1160 0 UVM aobj 2 2K 2K 78643K 2 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 5 0 NDP 8 0K 0K 78643K 12 0 temp 92 3012K 3076K 78643K 2205 0 kqueue 3 4K 8K 78643K 5 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 45 0 1 2 0 2 2 0 8 0 unpcb 120 59 0 40 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 311 0 311 1 0 1 1 0 8 1 tcpcb 544 32 0 28 1 0 1 1 0 8 0 inpcb 280 106 0 98 1 0 1 1 0 8 0 nd6 48 4 0 0 1 0 1 1 0 8 0 pffrag 232 1 0 1 1 0 1 1 0 482 1 pffrnode 88 1 0 1 1 0 1 1 0 8 1 pffrent 40 45 0 45 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 pfstitem 24 17 0 0 1 0 1 1 0 8 0 pfstkey 112 17 0 0 1 0 1 1 0 8 0 pfstate 328 17 0 0 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 213 0 0 14 0 14 14 0 8 0 art_table 32 214 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 3 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 14 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1470 0 61 46 0 46 46 0 8 0 ffsino 272 1470 0 61 95 0 95 95 0 8 0 nchpl 144 1772 0 151 61 0 61 61 0 8 0 uvmvnodes 72 1542 0 0 29 0 29 29 0 8 0 vnodes 208 1542 0 0 82 0 82 82 0 8 0 namei 1024 4601 0 4601 1 0 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 scxspl 192 5245 0 5245 8 1 7 7 0 8 7 plimitpl 152 17 0 9 1 0 1 1 0 8 0 sigapl 432 265 0 249 3 0 3 3 0 8 1 futexpl 56 912 0 911 1 0 1 1 0 8 0 knotepl 112 55 0 36 1 0 1 1 0 8 0 kqueuepl 104 8 0 6 1 0 1 1 0 8 0 pipelkpl 48 86 0 76 1 0 1 1 0 8 0 pipepl 120 172 0 153 1 0 1 1 0 8 0 fdescpl 496 266 0 249 4 1 3 3 0 8 0 filepl 152 1463 0 1343 6 0 6 6 0 8 1 lockfpl 104 26 0 18 1 0 1 1 0 8 0 lockfspl 48 9 0 5 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 79 0 68 1 0 1 1 0 8 0 zombiepl 144 249 0 249 1 0 1 1 0 8 1 processpl 960 282 0 249 5 0 5 5 0 8 0 procpl 624 385 0 337 5 0 5 5 0 8 1 sosppl 128 2 0 2 1 0 1 1 0 8 1 sockpl 400 186 0 157 4 0 4 4 0 8 0 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 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 3 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 164 0 0 20 0 20 20 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 250 0 0 16 0 16 16 0 8 0 bufpl 280 4159 0 190 284 0 284 284 0 8 0 anonpl 16 40269 0 24489 65 1 64 64 0 125 0 amapchunkpl 152 1212 0 1055 8 0 8 8 0 158 1 amappl16 192 1035 0 191 43 0 43 43 0 8 0 amappl15 184 68 0 62 1 0 1 1 0 8 0 amappl14 176 45 0 41 1 0 1 1 0 8 0 amappl12 160 3 0 2 1 0 1 1 0 8 0 amappl11 152 53 0 38 1 0 1 1 0 8 0 amappl10 144 26 0 20 1 0 1 1 0 8 0 amappl9 136 602 0 599 1 0 1 1 0 8 0 amappl8 128 125 0 99 1 0 1 1 0 8 0 amappl7 120 117 0 105 1 0 1 1 0 8 0 amappl6 112 57 0 50 1 0 1 1 0 8 0 amappl5 104 130 0 116 1 0 1 1 0 8 0 amappl4 96 500 0 472 1 0 1 1 0 8 0 amappl3 88 156 0 144 1 0 1 1 0 8 0 amappl2 80 1207 0 1120 3 1 2 3 0 8 0 amappl1 72 16059 0 15578 26 14 12 21 0 8 2 amappl 80 635 0 583 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 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 266 0 249 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 266 0 249 1 0 1 1 0 8 0 vmmpekpl 168 6115 0 6075 2 0 2 2 0 8 0 vmmpepl 168 40556 0 38406 125 3 122 122 0 357 28 vmsppl 368 265 0 249 2 0 2 2 0 8 0 pdppl 4096 539 0 498 6 0 6 6 0 8 0 pvpl 32 140768 0 121557 160 0 160 160 0 265 4 pmappl 232 265 0 249 2 0 2 2 0 8 1 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 175 0 3 5 0 5 5 0 8 0