login: panic: receive 3: so 0xfffffd806f6f2000, so_type 3, m 0xfffffd806b989900, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 248255 34928 0 0 0 1 syz-executor.1 *414784 29758 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821cc552) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f2000,0,ffff800020abd6f8,0,0,ffff800020abd604) at soreceive+0x1727 soo_read(fffffd8072e72130,ffff800020abd6f8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c278,6,ffff800020abd6f8,0,ffff800020abd7e0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7c278,ffff800020abd790,ffff800020abd7e0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abd860) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abd860) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff97b0, 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 3: so 0xfffffd806f6f2000, so_type 3, m 0xfffffd806b989900, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821cc552) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f2000,0,ffff800020abd6f8,0,0,ffff800020abd604) at soreceive+0x1727 soo_read(fffffd8072e72130,ffff800020abd6f8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c278,6,ffff800020abd6f8,0,ffff800020abd7e0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7c278,ffff800020abd790,ffff800020abd7e0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abd860) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abd860) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff97b0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abd440 rbx 0xffff800020abd4f0 rdx 0xffff800020a7c278 rcx 0 rax 0 r8 0xffffffff8150282f kprintf+0x16f r9 0x1 r10 0x25 r11 0x7a014a23484fe2ec r12 0x3000000008 r13 0xffff800020abd450 r14 0x100 r15 0x1 rip 0xffffffff812400e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abd430 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=414784 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7d388,0xffff800020a7c768 process=0xffff800020a90790 user=0xffff800020ab8000, vmspace=0xfffffd807f0005c0 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 34928 248255 24664 0 7 0 syz-executor.1 34928 66230 24664 0 3 0x4000080 fsleep syz-executor.1 24664 487493 84849 0 2 0x482 syz-executor.1 60938 410850 84849 0 2 0x482 syz-executor.0 84849 377137 11203 0 3 0x82 kqread syz-fuzzer 84849 281374 11203 0 2 0x4000482 syz-fuzzer 84849 168547 11203 0 3 0x4000082 thrsleep syz-fuzzer 84849 439276 11203 0 3 0x4000082 thrsleep syz-fuzzer 84849 111699 11203 0 3 0x4000082 thrsleep syz-fuzzer 84849 86459 11203 0 3 0x4000082 thrsleep syz-fuzzer 84849 318850 11203 0 3 0x4000082 thrsleep syz-fuzzer 84849 81099 11203 0 2 0x4000482 syz-fuzzer 84849 468311 11203 0 3 0x4000082 thrsleep syz-fuzzer 84849 221134 11203 0 3 0x4000082 thrsleep syz-fuzzer 11203 162737 3333 0 3 0x10008a pause ksh 3333 64117 96519 0 3 0x92 select sshd 3140 198852 1 0 3 0x100083 ttyin getty 96519 54676 1 0 3 0x80 select sshd 61998 408785 2537 74 3 0x100092 bpf pflogd 2537 60793 1 0 3 0x80 netio pflogd 30878 404994 63820 73 3 0x100090 kqread syslogd 63820 91629 1 0 3 0x100082 netio syslogd 99394 477296 1 77 3 0x100090 poll dhclient *29758 414784 1 0 7 0 dhclient 39124 168126 0 0 3 0x14200 pgzero zerothread 33653 375740 0 0 3 0x14200 aiodoned aiodoned 59513 54457 0 0 3 0x14200 syncer update 429 221209 0 0 3 0x14200 cleaner cleaner 63616 223195 0 0 3 0x14200 reaper reaper 79465 37030 0 0 3 0x14200 pgdaemon pagedaemon 22473 258131 0 0 3 0x14200 bored crynlk 35410 328359 0 0 3 0x14200 bored crypto 97524 211133 0 0 3 0x40014200 acpi0 acpi0 89089 179410 0 0 3 0x40014200 idle1 5509 432566 0 0 3 0x14200 bored softnet 26958 80254 0 0 3 0x14200 bored systqmp 4063 320775 0 0 3 0x14200 bored systq 25405 508966 0 0 3 0x40014200 bored softclock 42605 271218 0 0 3 0x40014200 idle0 67492 236933 0 0 3 0x14200 bored smr 1 395852 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 29758 (dhclient) thread 0xffff800020a7c278 (414784) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82680c20) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 solock+0x66 sys/kern/uipc_socket2.c:292 #2 soreceive+0xb3a sys/kern/uipc_socket.c:950 #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 9486 6530K 6721K 78643K 10640 0 pcb 13 8K 8K 78643K 26 0 rtable 105 3K 3K 78643K 210 0 ifaddr 49 11K 11K 78643K 58 0 counters 43 33K 34K 78643K 45 0 ioctlops 0 0K 4K 78643K 1469 0 iov 0 0K 12K 78643K 8 0 mount 1 1K 1K 78643K 1 0 vnodes 1225 77K 77K 78643K 1247 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 6 0K 0K 78643K 6 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 73 0 sigio 0 0K 0K 78643K 2 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 6 0 in_multi 33 2K 2K 78643K 43 0 ether_multi 1 0K 0K 78643K 5 0 mrt 0 0K 0K 78643K 2 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 211 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 109 22K 22K 78643K 1163 0 UVM aobj 6 2K 2K 78643K 6 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 16 0 NDP 7 0K 0K 78643K 12 0 temp 76 3013K 3076K 78643K 2259 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 23 0 21 1 0 1 1 0 8 0 rtentry 112 46 0 2 2 0 2 2 0 8 0 unpcb 120 83 0 73 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 1238 0 1238 1 0 1 1 0 8 1 tcpcb 544 76 0 72 2 0 2 2 0 8 1 inpcb 280 168 0 161 2 0 2 2 0 8 1 rttmr 72 1 0 1 1 0 1 1 0 8 1 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 0 1 0 1 1 0 8 0 pfstkey 112 18 0 0 1 0 1 1 0 8 0 pfstate 328 18 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 189 0 0 12 0 12 12 0 8 0 art_table 32 190 0 0 2 0 2 2 0 8 0 art_node 16 45 0 5 1 0 1 1 0 8 0 semapl 112 4 0 0 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 dino1pl 128 1481 0 74 46 0 46 46 0 8 0 ffsino 272 1481 0 74 94 0 94 94 0 8 0 nchpl 144 1764 0 144 61 0 61 61 0 8 0 uvmvnodes 72 1544 0 0 29 0 29 29 0 8 0 vnodes 208 1544 0 0 82 0 82 82 0 8 0 namei 1024 4576 0 4576 1 0 1 1 0 8 1 percpumem 16 33 0 1 1 0 1 1 0 8 0 scxspl 192 5105 0 5105 2 1 1 2 0 8 1 plimitpl 152 21 0 13 1 0 1 1 0 8 0 sigapl 424 288 0 257 4 0 4 4 0 8 0 futexpl 56 925 0 924 1 0 1 1 0 8 0 knotepl 112 57 0 38 1 0 1 1 0 8 0 kqueuepl 144 8 0 6 1 0 1 1 0 8 0 pipelkpl 48 90 0 80 1 0 1 1 0 8 0 pipepl 120 180 0 161 1 0 1 1 0 8 0 fdescpl 496 273 0 257 3 0 3 3 0 8 0 filepl 152 1550 0 1449 6 0 6 6 0 8 2 lockfpl 104 21 0 20 1 0 1 1 0 8 0 lockfspl 48 7 0 6 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 96 0 87 1 0 1 1 0 8 0 zombiepl 144 257 0 256 1 0 1 1 0 8 0 processpl 960 288 0 256 5 0 5 5 0 8 0 procpl 624 407 0 365 4 0 4 4 0 8 0 sockpl 400 275 0 256 4 0 4 4 0 8 2 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 220 0 0 27 0 27 27 0 8 0 mtagpl 80 3 0 0 1 0 1 1 0 8 0 mbufpl 256 254 0 0 16 0 16 16 0 8 0 bufpl 280 4104 0 175 281 0 281 281 0 8 0 anonpl 16 40979 0 25005 66 1 65 65 0 124 0 amapchunkpl 152 1406 0 1264 8 0 8 8 0 158 1 amappl16 192 1176 0 302 45 0 45 45 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 2 0 2 2 2 0 1 0 8 0 amappl13 168 47 0 44 1 0 1 1 0 8 0 amappl12 160 5 0 5 1 1 0 1 0 8 0 amappl11 152 76 0 58 1 0 1 1 0 8 0 amappl10 144 26 0 19 1 0 1 1 0 8 0 amappl9 136 390 0 386 1 0 1 1 0 8 0 amappl8 128 318 0 296 1 0 1 1 0 8 0 amappl7 120 126 0 114 1 0 1 1 0 8 0 amappl6 112 25 0 22 1 0 1 1 0 8 0 amappl5 104 173 0 156 1 0 1 1 0 8 0 amappl4 96 522 0 492 1 0 1 1 0 8 0 amappl3 88 106 0 100 1 0 1 1 0 8 0 amappl2 80 1267 0 1196 3 1 2 3 0 8 0 amappl1 72 16193 0 15751 24 13 11 20 0 8 1 amappl 80 657 0 612 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 5 0 0 1 0 1 1 0 8 0 uaddrrnd 24 273 0 257 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 273 0 257 1 0 1 1 0 8 0 vmmpekpl 168 6195 0 6162 2 0 2 2 0 8 0 vmmpepl 168 40757 0 38738 122 3 119 119 0 357 30 vmsppl 368 272 0 257 2 0 2 2 0 8 0 pdppl 4096 553 0 514 6 0 6 6 0 8 1 pvpl 32 139774 0 120674 156 0 156 156 0 265 1 pmappl 232 272 0 257 2 0 2 2 0 8 1 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 180 0 3 6 0 6 6 0 8 0