panic: receive 3: so 0xfffffd806f686000, so_type 3, m 0xfffffd8068995a00, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 298782 98982 0 0x2 0x4000480 1 syz-fuzzer *417499 62194 0 0 0 0 dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e367f) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f686000,0,ffff800020e1e8c8,0,0,ffff800020e1e7d4) at soreceive+0x1727 soo_read(fffffd80713f74c0,ffff800020e1e8c8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc758,6,ffff800020e1e8c8,0,ffff800020e1e9b0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc758,ffff800020e1e960,ffff800020e1e9b0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ea30) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ea30) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff8620, 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 0xfffffd806f686000, so_type 3, m 0xfffffd8068995a00, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e367f) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f686000,0,ffff800020e1e8c8,0,0,ffff800020e1e7d4) at soreceive+0x1727 soo_read(fffffd80713f74c0,ffff800020e1e8c8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc758,6,ffff800020e1e8c8,0,ffff800020e1e9b0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc758,ffff800020e1e960,ffff800020e1e9b0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ea30) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ea30) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff8620, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e610 rbx 0xffff800020e1e6c0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff816102df kprintf+0x16f r9 0x1 r10 0x2 r11 0xb39bb57370cfb1c8 r12 0x3000000008 r13 0xffff800020e1e620 r14 0x100 r15 0x1 rip 0xffffffff81fed948 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e600 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=417499 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddd118,0xffff800020ddc9d8 process=0xffff800020df1370 user=0xffff800020e19000, vmspace=0xfffffd807effe5c0 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 55783 143535 43393 0 2 0 syz-executor.0 55783 87878 43393 0 2 0x4000000 syz-executor.0 62468 19084 0 0 3 0x14200 acct acct 80233 367396 98982 0 3 0x82 piperd syz-executor.1 43393 305306 98982 0 2 0x482 syz-executor.0 98982 199562 55810 0 3 0x82 thrsleep syz-fuzzer 98982 298782 55810 0 7 0x4000482 syz-fuzzer 98982 328998 55810 0 3 0x4000082 thrsleep syz-fuzzer 98982 329311 55810 0 2 0x4000002 syz-fuzzer 98982 6701 55810 0 3 0x4000082 thrsleep syz-fuzzer 98982 466758 55810 0 3 0x4000082 thrsleep syz-fuzzer 98982 150950 55810 0 3 0x4000082 thrsleep syz-fuzzer 98982 480158 55810 0 3 0x4000082 thrsleep syz-fuzzer 98982 171559 55810 0 3 0x4000082 thrsleep syz-fuzzer 98982 510076 55810 0 2 0x4000482 syz-fuzzer 55810 81293 92085 0 3 0x10008a pause ksh 92085 4835 67503 0 3 0x92 select sshd 39377 223586 1 0 3 0x100083 ttyin getty 67503 520976 1 0 3 0x80 select sshd 23793 350067 97017 74 2 0x100012 pflogd 97017 156955 1 0 3 0x80 netio pflogd 46292 447787 69299 73 3 0x100090 kqread syslogd 69299 219187 1 0 3 0x100082 netio syslogd 61118 313878 1 77 3 0x100090 poll dhclient *62194 417499 1 0 7 0 dhclient 81684 516028 0 0 3 0x14200 bored smr 82519 358984 0 0 2 0x14200 zerothread 16134 27828 0 0 3 0x14200 aiodoned aiodoned 8536 86896 0 0 3 0x14200 syncer update 32872 18443 0 0 3 0x14200 cleaner cleaner 86451 283491 0 0 3 0x14200 reaper reaper 46757 197841 0 0 3 0x14200 pgdaemon pagedaemon 15919 261956 0 0 3 0x14200 bored crynlk 14389 447992 0 0 3 0x14200 bored crypto 49980 131381 0 0 3 0x40014200 acpi0 acpi0 78718 43128 0 0 3 0x40014200 idle1 10482 429595 0 0 3 0x14200 bored softnet 29628 300549 0 0 3 0x14200 bored systqmp 41705 473450 0 0 3 0x14200 bored systq 73582 306987 0 0 2 0x40014200 softclock 89204 323737 0 0 3 0x40014200 idle0 1 50938 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 62194 (dhclient) thread 0xffff800020ddc758 (417499) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828c5528) #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 9534 6548K 6729K 78643K 11016 0 pcb 13 8K 8K 78643K 87 0 rtable 115 5K 9K 78643K 469 0 ifaddr 87 16K 17K 78643K 192 0 sysctl 2 0K 0K 78643K 2 0 counters 45 34K 34K 78643K 69 0 ioctlops 0 0K 4K 78643K 1525 0 iov 0 0K 16K 78643K 36 0 mount 1 1K 1K 78643K 1 0 vnodes 1213 76K 77K 78643K 1386 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 12 0K 0K 78643K 104 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 459 0 sigio 0 0K 0K 78643K 2 0 proc 61 63K 95K 78643K 506 0 subproc 32 2K 2K 78643K 53 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 39 0 in_multi 50 2K 3K 78643K 127 0 ether_multi 1 0K 0K 78643K 9 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 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 257 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 133 88K 90K 78643K 2441 0 UVM aobj 14 2K 2K 78643K 14 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 48 0 NDP 14 0K 0K 78643K 42 0 temp 121 3860K 3924K 78643K 20007 0 kqueue 3 4K 12K 78643K 25 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 8 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 25 0 23 1 0 1 1 0 8 0 rtentry 112 78 0 34 2 0 2 2 0 8 0 unpcb 120 283 0 273 2 1 1 2 0 8 0 syncache 264 8 0 8 2 2 0 1 0 8 0 tcpqe 32 726 0 726 2 2 0 1 0 8 0 tcpcb 544 262 0 257 1 0 1 1 0 8 0 inpcb 296 579 0 571 2 0 2 2 0 8 1 rttmr 72 1 0 1 1 0 1 1 0 8 1 nd6 48 26 0 20 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 ppxss 1136 1 0 1 1 1 0 1 0 8 0 pfstscr 40 4 0 4 1 1 0 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 pfrktable 1344 42 0 40 2 1 1 1 0 8 0 pfstitem 24 45 0 13 1 0 1 1 0 8 0 pfstkey 112 49 0 17 1 0 1 1 0 8 0 pfstate 328 47 0 15 3 0 3 3 0 8 0 pfrule 1360 30 0 24 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 315 0 123 16 3 13 16 0 8 1 art_table 32 316 0 123 3 1 2 3 0 8 0 art_node 16 77 0 37 1 0 1 1 0 8 0 sysvmsgpl 40 11 0 4 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 94 0 84 1 0 1 1 0 8 0 shmpl 112 11 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1991 0 590 89 1 88 89 0 8 0 ffsino 272 1991 0 590 94 0 94 94 0 8 0 nchpl 144 3008 0 1411 60 0 60 60 0 8 0 uvmvnodes 72 2142 0 0 39 0 39 39 0 8 0 vnodes 208 2142 0 0 113 0 113 113 0 8 0 namei 1024 8310 0 8310 1 0 1 1 0 8 1 percpumem 16 45 0 12 1 0 1 1 0 8 0 vcpupl 1984 8 0 0 1 0 1 1 0 8 0 vmpool 560 12 0 4 1 0 1 1 0 8 0 pfiaddrpl 120 13 0 11 1 0 1 1 0 8 0 scxspl 192 8568 0 8568 8 7 1 7 0 8 1 plimitpl 152 36 0 28 1 0 1 1 0 8 0 sigapl 424 672 0 640 4 0 4 4 0 8 0 futexpl 56 5580 0 5580 1 0 1 1 0 8 1 knotepl 112 94 0 75 1 0 1 1 0 8 0 kqueuepl 144 32 0 28 1 0 1 1 0 8 0 pipepl 304 166 0 156 4 2 2 2 0 8 1 fdescpl 496 656 0 640 3 0 3 3 0 8 0 filepl 152 3952 0 3850 6 0 6 6 0 8 2 lockfpl 104 80 0 79 1 0 1 1 0 8 0 lockfspl 48 30 0 29 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 25 0 14 1 0 1 1 0 8 0 ucredpl 96 507 0 497 1 0 1 1 0 8 0 zombiepl 144 640 0 640 1 0 1 1 0 8 1 processpl 992 672 0 640 6 1 5 5 0 8 0 procpl 624 1583 0 1541 4 0 4 4 0 8 0 sockpl 400 894 0 874 6 2 4 5 0 8 1 mcl64k 65536 9 0 0 2 0 2 2 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 5 0 0 1 0 1 1 0 8 0 mcl9k 9216 6 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 222 0 0 27 0 27 27 0 8 0 mtagpl 96 35 0 0 1 0 1 1 0 8 0 mbufpl 256 246 0 0 15 0 15 15 0 8 0 bufpl 280 4345 0 141 301 0 301 301 0 8 0 anonpl 16 82195 0 65934 80 6 74 79 0 124 1 amapchunkpl 152 3885 0 3714 12 0 12 12 0 158 4 amappl16 192 2984 0 2047 48 0 48 48 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 76 0 71 1 0 1 1 0 8 0 amappl13 168 43 0 40 1 0 1 1 0 8 0 amappl12 160 15 0 13 2 1 1 1 0 8 0 amappl11 152 118 0 101 1 0 1 1 0 8 0 amappl10 144 185 0 176 1 0 1 1 0 8 0 amappl9 136 370 0 369 1 0 1 1 0 8 0 amappl8 128 378 0 347 2 0 2 2 0 8 0 amappl7 120 292 0 278 1 0 1 1 0 8 0 amappl6 112 83 0 73 1 0 1 1 0 8 0 amappl5 104 536 0 519 1 0 1 1 0 8 0 amappl4 96 555 0 525 1 0 1 1 0 8 0 amappl3 88 118 0 112 1 0 1 1 0 8 0 amappl2 80 4245 0 4171 2 0 2 2 0 8 0 amappl1 72 28452 0 28009 23 13 10 18 0 8 0 amappl 80 1875 0 1824 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 13 0 0 1 0 1 1 0 8 0 uaddrrnd 24 668 0 644 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 668 0 644 1 0 1 1 0 8 0 vmmpekpl 168 8948 0 8910 2 0 2 2 0 8 0 vmmpepl 168 91287 0 89154 152 24 128 130 0 357 29 vmsppl 368 667 0 644 3 0 3 3 0 8 0 pdppl 4096 1343 0 1296 7 0 7 7 0 8 0 pvpl 32 252022 0 232848 187 8 179 187 0 265 13 pmappl 232 667 0 644 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 276 0 9 8 0 8 8 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(ffffffff823e367f) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f686000,0,ffff800020e1e8c8,0,0,ffff800020e1e7d4) at soreceive+0x1727 soo_read(fffffd80713f74c0,ffff800020e1e8c8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc758,6,ffff800020e1e8c8,0,ffff800020e1e9b0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc758,ffff800020e1e960,ffff800020e1e9b0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ea30) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ea30) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff8620, count: -8 ddb{0}> machine ddbcpu 1