panic: receive 3: so 0xfffffd805e531190, so_type 3, m 0xfffffd8059903e00, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 20936 32563 0 0 0 0 dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823c87f7) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd805e531190,0,ffff80001d6e5cb8,0,0,ffff80001d6e5bc4) at soreceive+0x16e7 soo_read(fffffd805eab8870,ffff80001d6e5cb8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff80001d6a99c8,6,ffff80001d6e5cb8,0,ffff80001d6e5da0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff80001d6a99c8,ffff80001d6e5d50,ffff80001d6e5da0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff80001d6e5e20) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbbf10, 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 3: so 0xfffffd805e531190, so_type 3, m 0xfffffd8059903e00, m_type 0 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823c87f7) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd805e531190,0,ffff80001d6e5cb8,0,0,ffff80001d6e5bc4) at soreceive+0x16e7 soo_read(fffffd805eab8870,ffff80001d6e5cb8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff80001d6a99c8,6,ffff80001d6e5cb8,0,ffff80001d6e5da0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff80001d6a99c8,ffff80001d6e5d50,ffff80001d6e5da0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff80001d6e5e20) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbbf10, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d6e5a00 rbx 0xffff80001d6e5ab0 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff82040b7f kprintf+0x15f r9 0x1 r10 0x2 r11 0x2888a5249addc162 r12 0x3000000008 r13 0xffff80001d6e5a10 r14 0x100 r15 0x1 rip 0xffffffff8130eb58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d6e59f0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (dhclient) pid=20936 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d6a9ea8,0xffff80001d6a9c48 process=0xffff80001d6c43b0 user=0xffff80001d6e0000, vmspace=0xfffffd806bc0a000 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 92796 301830 26928 0 3 0x80 fsleep syz-executor.1 92796 108146 26928 0 2 0x4000000 syz-executor.1 28408 367044 0 0 3 0x14200 acct acct 24532 246122 0 0 3 0x14200 bored sosplice 26928 426888 15482 0 3 0x82 nanosleep syz-executor.1 44714 139680 15482 0 2 0x482 syz-executor.0 15482 180928 56814 0 3 0x82 thrsleep syz-fuzzer 15482 363830 56814 0 3 0x4000082 nanosleep syz-fuzzer 15482 183374 56814 0 3 0x4000082 kqread syz-fuzzer 15482 279534 56814 0 3 0x4000082 thrsleep syz-fuzzer 15482 48898 56814 0 3 0x4000082 thrsleep syz-fuzzer 15482 391456 56814 0 3 0x4000082 thrsleep syz-fuzzer 15482 260893 56814 0 3 0x4000082 thrsleep syz-fuzzer 56814 221508 99074 0 3 0x10008a pause ksh 99074 518666 84532 0 3 0x92 select sshd 34178 490763 1 0 3 0x100083 ttyin getty 84532 142655 1 0 3 0x80 select sshd 92314 189466 4074 73 3 0x100090 kqread syslogd 4074 49374 1 0 3 0x100082 netio syslogd 1717 140941 1 77 2 0x100010 dhclient *32563 20936 1 0 7 0 dhclient 63972 373975 0 0 3 0x14200 bored smr 35850 88927 0 0 2 0x14200 zerothread 38626 233685 0 0 3 0x14200 aiodoned aiodoned 70040 207036 0 0 3 0x14200 syncer update 8063 328985 0 0 3 0x14200 cleaner cleaner 83072 177447 0 0 3 0x14200 reaper reaper 39238 411349 0 0 3 0x14200 pgdaemon pagedaemon 26305 306339 0 0 3 0x14200 bored crynlk 96697 215980 0 0 3 0x14200 bored crypto 21390 224219 0 0 3 0x40014200 acpi0 acpi0 35964 281290 0 0 3 0x14200 bored softnet 3328 399700 0 0 3 0x14200 bored systqmp 63904 406549 0 0 3 0x14200 bored systq 65227 364091 0 0 3 0x40014200 bored softclock 43844 422604 0 0 3 0x40014200 idle0 1 72208 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 9467 6455K 6646K 78643K 10649 0 pcb 13 8K 8K 78643K 35 0 rtable 116 5K 6K 78643K 217 0 ifaddr 49 11K 11K 78643K 55 0 counters 21 16K 16K 78643K 21 0 ioctlops 0 0K 4K 78643K 24 0 iov 0 0K 2K 78643K 4 0 mount 1 1K 1K 78643K 1 0 vnodes 1217 77K 77K 78643K 1246 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 0K 0K 78643K 2 0 sem 8 0K 0K 78643K 10 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 88 0 proc 49 38K 63K 78643K 365 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 4 0 in_multi 33 2K 2K 78643K 55 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 43 201K 201K 78643K 43 0 exec 0 0K 1K 78643K 187 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 114 22K 22K 78643K 1071 0 UVM aobj 5 2K 2K 78643K 5 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 8 0 NDP 6 0K 0K 78643K 10 0 temp 71 3853K 3917K 78643K 1924 0 kqueue 3 4K 14K 78643K 11 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 6 0 0 1 0 1 1 0 8 0 rtpcb 80 19 0 17 1 0 1 1 0 8 0 rtentry 112 49 0 5 2 0 2 2 0 8 0 unpcb 120 65 0 57 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 312 0 312 1 1 0 1 0 8 0 tcpcb 544 88 0 81 3 0 3 3 0 8 2 inpcb 296 142 0 135 2 0 2 2 0 8 1 nd6 48 10 0 4 1 0 1 1 0 8 0 pfrke_plain 160 2 0 0 1 0 1 1 0 8 0 pfrktable 1344 8 0 3 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfrule 1360 2 0 0 1 0 1 1 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 48 0 8 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 4 1 1 0 1 0 8 0 semupl 112 3 0 3 1 0 1 1 0 8 1 semapl 112 6 0 0 1 0 1 1 0 8 0 shmpl 112 2 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1488 0 86 88 0 88 88 0 8 0 ffsino 240 1488 0 86 83 0 83 83 0 8 0 nchpl 144 1791 0 183 60 0 60 60 0 8 0 rtmask 32 4 0 2 1 0 1 1 0 8 0 uvmvnodes 72 1551 0 0 29 0 29 29 0 8 0 vnodes 208 1551 0 0 82 0 82 82 0 8 0 namei 1024 4442 0 4442 1 0 1 1 0 8 1 pfiaddrpl 120 4 0 0 1 0 1 1 0 8 0 scxspl 192 5202 0 5202 1 0 1 1 0 8 1 plimitpl 152 19 0 12 1 0 1 1 0 8 0 sigapl 424 276 0 246 4 0 4 4 0 8 0 futexpl 56 1170 0 1169 1 0 1 1 0 8 0 knotepl 112 85 0 66 1 0 1 1 0 8 0 kqueuepl 144 12 0 10 1 0 1 1 0 8 0 pipepl 272 80 0 70 1 0 1 1 0 8 0 fdescpl 432 260 0 246 2 0 2 2 0 8 0 filepl 120 1352 0 1256 4 0 4 4 0 8 1 lockfpl 104 18 0 17 1 0 1 1 0 8 0 lockfspl 48 6 0 5 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 17 0 7 1 0 1 1 0 8 0 ucredpl 96 90 0 82 1 0 1 1 0 8 0 zombiepl 144 246 0 245 1 0 1 1 0 8 0 processpl 928 276 0 245 4 0 4 4 0 8 0 procpl 624 376 0 338 4 0 4 4 0 8 0 sosppl 128 2 0 2 1 0 1 1 0 8 1 sockpl 400 226 0 209 3 0 3 3 0 8 1 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 2 0 2 1 0 1 1 0 8 1 mcl4k 4096 13 0 13 2 1 1 1 0 8 1 mcl2k 2048 93578 0 93524 22 12 10 19 0 8 2 mtagpl 96 5 0 2 2 1 1 1 0 8 0 mbufpl 256 147975 0 147795 16 1 15 15 0 8 0 bufpl 280 3339 0 126 230 0 230 230 0 8 0 anonpl 16 46084 0 29947 80 1 79 79 0 107 14 amapchunkpl 152 1251 0 1118 8 1 7 8 0 158 0 amappl16 192 1420 0 535 55 2 53 55 0 8 8 amappl15 184 31 0 28 1 0 1 1 0 8 0 amappl14 176 22 0 18 1 0 1 1 0 8 0 amappl13 168 26 0 23 1 0 1 1 0 8 0 amappl12 160 14 0 11 1 0 1 1 0 8 0 amappl11 152 47 0 38 1 0 1 1 0 8 0 amappl10 144 44 0 39 1 0 1 1 0 8 0 amappl9 136 399 0 396 1 0 1 1 0 8 0 amappl8 128 314 0 279 2 0 2 2 0 8 0 amappl7 120 108 0 95 1 0 1 1 0 8 0 amappl6 112 25 0 20 1 0 1 1 0 8 0 amappl5 104 195 0 184 1 0 1 1 0 8 0 amappl4 96 419 0 393 1 0 1 1 0 8 0 amappl3 88 103 0 98 1 0 1 1 0 8 0 amappl2 80 1274 0 1207 2 0 2 2 0 8 0 amappl1 72 15233 0 14813 23 14 9 17 0 8 0 amappl 80 609 0 569 1 0 1 1 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 4 0 0 1 0 1 1 0 8 0 uaddrrnd 24 260 0 246 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 260 0 246 1 0 1 1 0 8 0 vmmpekpl 168 5962 0 5937 2 0 2 2 0 8 0 vmmpepl 168 39771 0 37795 124 10 114 118 0 357 27 vmsppl 272 259 0 246 2 1 1 2 0 8 0 pdppl 4096 526 0 492 6 1 5 6 0 8 0 pvpl 32 145453 0 126352 191 0 191 191 0 265 36 pmappl 200 259 0 246 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 252 0 18 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(ffffffff823c87f7) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd805e531190,0,ffff80001d6e5cb8,0,0,ffff80001d6e5bc4) at soreceive+0x16e7 soo_read(fffffd805eab8870,ffff80001d6e5cb8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff80001d6a99c8,6,ffff80001d6e5cb8,0,ffff80001d6e5da0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff80001d6a99c8,ffff80001d6e5d50,ffff80001d6e5da0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff80001d6e5e20) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbbf10, 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(ffffffff823c87f7) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd805e531190,0,ffff80001d6e5cb8,0,0,ffff80001d6e5bc4) at soreceive+0x16e7 soo_read(fffffd805eab8870,ffff80001d6e5cb8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff80001d6a99c8,6,ffff80001d6e5cb8,0,ffff80001d6e5da0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff80001d6a99c8,ffff80001d6e5d50,ffff80001d6e5da0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff80001d6e5e20) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbbf10, count: -8