panic: receive 1: so 0xfffffd806b6b7320, so_type 3, sb_cc 2096 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *114476 2648 0 0 0 0 dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823deace) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806b6b7320,0,ffff80001d6e5398,0,0,ffff80001d6e52a4) at soreceive+0x16ac sys/kern/uipc_socket.c:829 soo_read(fffffd805eab3528,ffff80001d6e5398,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff80001d6a9758,6,ffff80001d6e5398,0,ffff80001d6e5480) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff80001d6a9758,ffff80001d6e5430,ffff80001d6e5480) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff80001d6e5500) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc9200, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic receive 1: so 0xfffffd806b6b7320, so_type 3, sb_cc 2096 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823deace) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806b6b7320,0,ffff80001d6e5398,0,0,ffff80001d6e52a4) at soreceive+0x16ac sys/kern/uipc_socket.c:829 soo_read(fffffd805eab3528,ffff80001d6e5398,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff80001d6a9758,6,ffff80001d6e5398,0,ffff80001d6e5480) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff80001d6a9758,ffff80001d6e5430,ffff80001d6e5480) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff80001d6e5500) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc9200, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d6e50e0 rbx 0xffff80001d6e5190 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff819e2c3f kprintf+0x15f r9 0x1 r10 0x2 r11 0xa85f6c0af2ca6123 r12 0x3000000008 r13 0xffff80001d6e50f0 r14 0x100 r15 0x1 rip 0xffffffff823b1bf8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d6e50d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (dhclient) pid=114476 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d6aa388,0xffff80001d6a99d8 process=0xffff80001d6c4af0 user=0xffff80001d6e0000, vmspace=0xfffffd806bc0a110 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 37403 516865 81193 0 2 0 syz-executor.1 37403 317825 81193 0 2 0x4000000 syz-executor.1 81193 148295 21530 0 3 0x82 nanosleep syz-executor.1 58841 465488 1 0 3 0x100083 ttyin getty 47553 411720 21530 0 3 0x82 piperd syz-executor.0 21530 9840 38079 0 2 0x2 syz-fuzzer 21530 96900 38079 0 3 0x4000082 nanosleep syz-fuzzer 21530 439449 38079 0 3 0x4000082 thrsleep syz-fuzzer 21530 501801 38079 0 3 0x4000082 thrsleep syz-fuzzer 21530 194552 38079 0 3 0x4000082 thrsleep syz-fuzzer 21530 36404 38079 0 3 0x4000082 thrsleep syz-fuzzer 38079 518873 1949 0 3 0x10008a pause ksh 1949 26465 98188 0 3 0x92 select sshd 98188 415923 1 0 3 0x80 select sshd 47804 169899 97740 73 3 0x100090 kqread syslogd 97740 418693 1 0 3 0x100082 netio syslogd 12230 212555 1 77 2 0x100010 dhclient * 2648 114476 1 0 7 0 dhclient 17638 421152 0 0 3 0x14200 bored smr 35127 131161 0 0 2 0x14200 zerothread 50357 127237 0 0 3 0x14200 aiodoned aiodoned 54477 251241 0 0 3 0x14200 syncer update 41427 130122 0 0 3 0x14200 cleaner cleaner 25943 57577 0 0 3 0x14200 reaper reaper 52198 104367 0 0 3 0x14200 pgdaemon pagedaemon 60847 59667 0 0 3 0x14200 bored crynlk 83662 436069 0 0 3 0x14200 bored crypto 77007 275053 0 0 3 0x40014200 acpi0 acpi0 60298 207459 0 0 3 0x14200 bored softnet 53340 495935 0 0 3 0x14200 bored systqmp 20807 252483 0 0 3 0x14200 bored systq 87253 337947 0 0 3 0x40014200 bored softclock 44998 193223 0 0 3 0x40014200 idle0 1 200705 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9464 6337K 6596K 78643K 10863 0 pcb 13 8K 8K 78643K 45 0 rtable 98 4K 7K 78643K 388 0 ifaddr 55 12K 13K 78643K 116 0 counters 21 16K 16K 78643K 26 0 ioctlops 0 0K 4K 78643K 51 0 iov 0 0K 16K 78643K 273 0 mount 1 1K 1K 78643K 1 0 vnodes 1225 77K 77K 78643K 1342 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 5 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 32 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 266 0 sigio 0 0K 0K 78643K 16 0 proc 49 38K 54K 78643K 424 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 16 0 in_multi 46 2K 2K 78643K 93 0 ether_multi 1 0K 0K 78643K 3 0 mrt 0 0K 0K 78643K 3 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 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 132 39K 40K 78643K 1476 0 UVM aobj 23 3K 4K 78643K 33 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 29 0 NDP 7 0K 0K 78643K 22 0 temp 90 3866K 3932K 78643K 4958 0 kqueue 3 4K 22K 78643K 22 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 9 0 2 1 0 1 1 0 8 0 rtpcb 80 39 0 37 1 0 1 1 0 8 0 rtentry 112 67 0 30 2 0 2 2 0 8 0 unpcb 120 125 0 117 1 0 1 1 0 8 0 syncache 264 6 0 6 2 2 0 1 0 8 0 tcpqe 32 447 0 447 1 1 0 1 0 8 0 tcpcb 544 56 0 52 1 0 1 1 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 2 0 2 1 1 0 1 0 8 0 inpcb 296 192 0 178 3 1 2 2 0 8 0 rttmr 72 1 0 1 1 0 1 1 0 8 1 nd6 48 15 0 9 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 ppxss 1136 1 0 1 1 1 0 1 0 8 0 pfrktable 1344 48 0 46 1 0 1 1 0 8 0 pftag 88 8 0 8 1 1 0 1 0 8 0 pfrule 1360 12 0 6 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 276 0 97 15 3 12 13 0 8 0 art_table 32 277 0 97 2 0 2 2 0 8 0 art_node 16 66 0 35 1 0 1 1 0 8 0 sysvmsgpl 40 18 0 8 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 28 0 18 1 0 1 1 0 8 0 shmpl 112 30 0 11 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1705 0 308 88 0 88 88 0 8 0 ffsino 240 1705 0 308 83 0 83 83 0 8 0 nchpl 144 2402 0 822 60 0 60 60 0 8 0 uvmvnodes 72 1841 0 0 34 0 34 34 0 8 0 vnodes 208 1841 0 0 97 0 97 97 0 8 0 namei 1024 6231 0 6231 2 1 1 1 0 8 1 vcpupl 1984 1 0 0 1 0 1 1 0 8 0 vmpool 528 8 0 7 1 0 1 1 0 8 0 pfiaddrpl 120 16 0 14 2 1 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 6695 0 6695 6 5 1 1 0 8 1 plimitpl 152 32 0 25 1 0 1 1 0 8 0 sigapl 424 450 0 422 4 0 4 4 0 8 0 futexpl 56 4508 0 4508 2 1 1 1 0 8 1 knotepl 112 137 0 117 2 1 1 2 0 8 0 kqueuepl 144 121 0 118 1 0 1 1 0 8 0 pipepl 272 112 0 101 2 1 1 2 0 8 0 fdescpl 432 436 0 422 2 0 2 2 0 8 0 filepl 120 2594 0 2491 4 0 4 4 0 8 0 lockfpl 104 34 0 33 1 0 1 1 0 8 0 lockfspl 48 14 0 13 1 0 1 1 0 8 0 sessionpl 112 19 0 9 1 0 1 1 0 8 0 pgrppl 48 21 0 11 1 0 1 1 0 8 0 ucredpl 96 199 0 192 1 0 1 1 0 8 0 zombiepl 144 422 0 422 2 1 1 1 0 8 1 processpl 928 450 0 422 4 0 4 4 0 8 0 procpl 624 721 0 687 4 1 3 4 0 8 0 sockpl 400 359 0 337 4 1 3 3 0 8 0 mcl64k 65536 14 0 14 1 1 0 1 0 8 0 mcl16k 16384 1 0 1 1 1 0 1 0 8 0 mcl12k 12288 11 0 11 2 1 1 1 0 8 1 mcl9k 9216 7 0 7 1 1 0 1 0 8 0 mcl8k 8192 7 0 7 1 1 0 1 0 8 0 mcl4k 4096 24 0 24 3 3 0 1 0 8 0 mcl2k2 2112 2 0 2 1 1 0 1 0 8 0 mcl2k 2048 90240 0 90179 23 14 9 20 0 8 0 mtagpl 96 31 0 16 2 1 1 1 0 8 0 mbufpl 256 144453 0 144274 23 6 17 18 0 8 2 bufpl 280 3670 0 118 254 0 254 254 0 8 0 anonpl 16 59750 0 44619 79 7 72 77 0 107 0 amapchunkpl 152 2235 0 2055 13 5 8 12 0 158 0 amappl16 192 1813 0 885 49 1 48 48 0 8 1 amappl15 184 180 0 178 1 0 1 1 0 8 0 amappl14 176 39 0 37 1 0 1 1 0 8 0 amappl13 168 34 0 31 1 0 1 1 0 8 0 amappl12 160 28 0 22 1 0 1 1 0 8 0 amappl11 152 87 0 75 1 0 1 1 0 8 0 amappl10 144 189 0 186 1 0 1 1 0 8 0 amappl9 136 352 0 351 1 0 1 1 0 8 0 amappl8 128 315 0 283 2 0 2 2 0 8 0 amappl7 120 183 0 170 1 0 1 1 0 8 0 amappl6 112 65 0 58 1 0 1 1 0 8 0 amappl5 104 331 0 319 1 0 1 1 0 8 0 amappl4 96 478 0 449 1 0 1 1 0 8 0 amappl3 88 136 0 127 1 0 1 1 0 8 0 amappl2 80 2700 0 2638 2 0 2 2 0 8 0 amappl1 72 18550 0 18139 23 14 9 17 0 8 0 amappl 80 977 0 922 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 32 0 10 1 0 1 1 0 8 0 uaddrrnd 24 444 0 429 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 444 0 429 1 0 1 1 0 8 0 vmmpekpl 168 6667 0 6639 2 0 2 2 0 8 0 vmmpepl 168 60137 0 58111 153 34 119 125 0 357 30 vmsppl 272 443 0 429 2 0 2 2 0 8 0 pdppl 4096 894 0 859 6 1 5 6 0 8 0 pvpl 32 187849 0 169597 183 16 167 183 0 265 0 pmappl 200 443 0 429 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 266 0 36 7 0 7 7 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823deace) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806b6b7320,0,ffff80001d6e5398,0,0,ffff80001d6e52a4) at soreceive+0x16ac sys/kern/uipc_socket.c:829 soo_read(fffffd805eab3528,ffff80001d6e5398,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff80001d6a9758,6,ffff80001d6e5398,0,ffff80001d6e5480) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff80001d6a9758,ffff80001d6e5430,ffff80001d6e5480) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff80001d6e5500) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc9200, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823deace) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806b6b7320,0,ffff80001d6e5398,0,0,ffff80001d6e52a4) at soreceive+0x16ac sys/kern/uipc_socket.c:829 soo_read(fffffd805eab3528,ffff80001d6e5398,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff80001d6a9758,6,ffff80001d6e5398,0,ffff80001d6e5480) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff80001d6a9758,ffff80001d6e5430,ffff80001d6e5480) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff80001d6e5500) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc9200, count: -8