panic: receive 1: so 0xfffffd806f688320, so_type 3, sb_cc 1615 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 157817 39461 0 0x2 0x4000000 1 syz-fuzzer * 96719 67693 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823ee4a6) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f688320,0,ffff800020e1d1a8,0,0,ffff800020e1d0b4) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd8077bf6558,ffff800020e1d1a8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc278,6,ffff800020e1d1a8,0,ffff800020e1d290) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc278,ffff800020e1d240,ffff800020e1d290) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1d310) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1d310) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc6910, 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 1: so 0xfffffd806f688320, so_type 3, sb_cc 1615 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823ee4a6) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f688320,0,ffff800020e1d1a8,0,0,ffff800020e1d0b4) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd8077bf6558,ffff800020e1d1a8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc278,6,ffff800020e1d1a8,0,ffff800020e1d290) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc278,ffff800020e1d240,ffff800020e1d290) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1d310) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1d310) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc6910, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1cef0 rbx 0xffff800020e1cfa0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff817e6a8f kprintf+0x16f r9 0x1 r10 0x2 r11 0x2b80b84e8fc6fa97 r12 0x3000000008 r13 0xffff800020e1cf00 r14 0x100 r15 0x1 rip 0xffffffff81d39c28 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1cee0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=96719 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddd118,0xffff800020ddc9d8 process=0xffff800020df07c0 user=0xffff800020e18000, vmspace=0xfffffd807efff000 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 85880 294777 49891 0 2 0 syz-executor.1 85880 441636 49891 0 3 0x4000080 fsleep syz-executor.1 49891 4400 39461 0 3 0x82 nanosleep syz-executor.1 42192 303805 39461 0 3 0x82 piperd syz-executor.0 39461 521857 26559 0 3 0x82 thrsleep syz-fuzzer 39461 439251 26559 0 3 0x4000082 nanosleep syz-fuzzer 39461 484067 26559 0 3 0x4000082 thrsleep syz-fuzzer 39461 289227 26559 0 3 0x4000082 kqread syz-fuzzer 39461 442535 26559 0 3 0x4000082 thrsleep syz-fuzzer 39461 22446 26559 0 3 0x4000082 thrsleep syz-fuzzer 39461 157817 26559 0 7 0x4000002 syz-fuzzer 39461 102324 26559 0 3 0x4000082 thrsleep syz-fuzzer 39461 234966 26559 0 3 0x4000082 thrsleep syz-fuzzer 39461 296453 26559 0 3 0x4000082 thrsleep syz-fuzzer 26559 68839 43488 0 3 0x10008a pause ksh 43488 151160 95871 0 3 0x92 select sshd 2984 452999 1 0 3 0x100083 ttyin getty 95871 399699 1 0 3 0x80 select sshd 69399 37554 84711 74 3 0x100092 bpf pflogd 84711 484225 1 0 3 0x80 netio pflogd 34322 517819 62615 73 3 0x100090 kqread syslogd 62615 271687 1 0 3 0x100082 netio syslogd 28257 294185 1 77 3 0x100090 poll dhclient *67693 96719 1 0 7 0 dhclient 51079 383707 0 0 3 0x14200 bored smr 30074 287962 0 0 2 0x14200 zerothread 81915 224586 0 0 3 0x14200 aiodoned aiodoned 21919 16042 0 0 3 0x14200 syncer update 67270 215981 0 0 3 0x14200 cleaner cleaner 68 310861 0 0 3 0x14200 reaper reaper 18943 219992 0 0 3 0x14200 pgdaemon pagedaemon 63226 340291 0 0 3 0x14200 bored crynlk 48623 484376 0 0 3 0x14200 bored crypto 17344 374127 0 0 3 0x40014200 acpi0 acpi0 24428 177169 0 0 3 0x40014200 idle1 94342 480679 0 0 3 0x14200 bored softnet 18603 244545 0 0 3 0x14200 bored systqmp 57547 208178 0 0 3 0x14200 bored systq 36011 148921 0 0 3 0x40014200 bored softclock 85116 367800 0 0 3 0x40014200 idle0 1 267952 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 67693 (dhclient) thread 0xffff800020ddc278 (96719) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82910c50) #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 9520 6416K 6869K 78643K 10932 0 pcb 13 8K 8K 78643K 48 0 rtable 105 3K 8K 78643K 601 0 ifaddr 78 15K 16K 78643K 127 0 counters 43 33K 34K 78643K 53 0 ioctlops 0 0K 4K 78643K 1512 0 iov 0 0K 16K 78643K 31 0 mount 1 1K 1K 78643K 1 0 vnodes 1216 76K 77K 78643K 1330 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 7 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 36 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 283 0 sigio 0 0K 0K 78643K 2 0 proc 61 63K 95K 78643K 460 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 12 0 in_multi 48 2K 3K 78643K 102 0 ether_multi 1 0K 0K 78643K 6 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 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 239 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 126 23K 24K 78643K 1771 0 UVM aobj 20 2K 2K 78643K 25 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 42 0 NDP 12 0K 0K 78643K 26 0 temp 106 3863K 3927K 78643K 3691 0 kqueue 3 4K 8K 78643K 7 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 7 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 316 0 314 1 0 1 1 0 8 0 rtentry 112 66 0 24 2 0 2 2 0 8 0 unpcb 120 235 0 223 1 0 1 1 0 8 0 syncache 264 6 0 6 2 2 0 1 0 8 0 tcpqe 32 323 0 323 1 1 0 1 0 8 0 tcpcb 544 88 0 84 1 0 1 1 0 8 0 inpcb 296 321 0 313 4 3 1 2 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 16 0 12 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 pffrag 232 2 0 2 1 1 0 1 0 482 0 pffrnode 88 2 0 2 1 1 0 1 0 8 0 pffrent 40 6 0 6 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 27 0 26 2 1 1 1 0 8 0 pfstitem 24 17 0 7 1 0 1 1 0 8 0 pfstkey 112 17 0 7 1 0 1 1 0 8 0 pfstate 328 17 0 7 2 0 2 2 0 8 0 pfrule 1360 34 0 20 3 1 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 266 0 94 13 2 11 13 0 8 0 art_table 32 267 0 94 2 0 2 2 0 8 0 art_node 16 65 0 26 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0 semapl 112 34 0 24 1 0 1 1 0 8 0 shmpl 112 23 0 5 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1785 0 383 89 1 88 89 0 8 0 ffsino 272 1785 0 383 94 0 94 94 0 8 0 nchpl 144 2431 0 822 60 0 60 60 0 8 0 uvmvnodes 72 1898 0 0 35 0 35 35 0 8 0 vnodes 208 1898 0 0 100 0 100 100 0 8 0 namei 1024 6571 0 6571 2 1 1 1 0 8 1 percpumem 16 37 0 5 1 0 1 1 0 8 0 pfiaddrpl 120 8 0 8 2 2 0 1 0 8 0 scxspl 192 7015 0 7015 8 7 1 5 0 8 1 plimitpl 152 34 0 26 1 0 1 1 0 8 0 sigapl 424 498 0 467 4 0 4 4 0 8 0 futexpl 56 4883 0 4882 2 1 1 1 0 8 0 knotepl 112 65 0 46 1 0 1 1 0 8 0 kqueuepl 144 42 0 39 1 0 1 1 0 8 0 pipelkpl 48 111 0 101 1 0 1 1 0 8 0 pipepl 120 222 0 203 1 0 1 1 0 8 0 fdescpl 496 483 0 467 3 0 3 3 0 8 0 filepl 152 3028 0 2925 6 1 5 5 0 8 1 lockfpl 104 44 0 42 1 0 1 1 0 8 0 lockfspl 48 15 0 13 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 328 0 319 1 0 1 1 0 8 0 zombiepl 144 467 0 467 1 0 1 1 0 8 1 processpl 984 498 0 467 5 1 4 5 0 8 0 procpl 624 987 0 946 4 0 4 4 0 8 0 sockpl 400 874 0 853 5 2 3 4 0 8 0 mcl64k 65536 7 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 15 0 0 2 0 2 2 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 165 0 0 20 0 20 20 0 8 0 mtagpl 96 19 0 0 1 0 1 1 0 8 0 mbufpl 256 429 0 0 26 0 26 26 0 8 0 bufpl 280 3879 0 135 268 0 268 268 0 8 0 anonpl 16 62390 0 45681 86 2 84 85 0 124 15 amapchunkpl 152 2525 0 2376 11 3 8 11 0 158 0 amappl16 192 2525 0 1615 58 5 53 58 0 8 7 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 37 0 30 1 0 1 1 0 8 0 amappl13 168 29 0 25 1 0 1 1 0 8 0 amappl12 160 11 0 9 1 0 1 1 0 8 0 amappl11 152 50 0 35 1 0 1 1 0 8 0 amappl10 144 21 0 16 1 0 1 1 0 8 0 amappl9 136 644 0 639 1 0 1 1 0 8 0 amappl8 128 607 0 569 2 0 2 2 0 8 0 amappl7 120 123 0 111 1 0 1 1 0 8 0 amappl6 112 25 0 21 2 1 1 1 0 8 0 amappl5 104 379 0 363 1 0 1 1 0 8 0 amappl4 96 487 0 457 1 0 1 1 0 8 0 amappl3 88 106 0 101 1 0 1 1 0 8 0 amappl2 80 2938 0 2867 2 0 2 2 0 8 0 amappl1 72 20115 0 19665 22 11 11 18 0 8 0 amappl 80 1242 0 1198 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 24 0 5 1 0 1 1 0 8 0 uaddrrnd 24 483 0 467 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 483 0 467 1 0 1 1 0 8 0 vmmpekpl 168 7000 0 6962 2 0 2 2 0 8 0 vmmpepl 168 65425 0 63350 123 22 101 111 0 357 10 vmsppl 368 482 0 467 2 0 2 2 0 8 0 pdppl 4096 973 0 934 7 2 5 6 0 8 0 pvpl 32 194216 0 174365 196 1 195 196 0 265 33 pmappl 232 482 0 467 2 1 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 277 0 11 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(ffffffff823ee4a6) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f688320,0,ffff800020e1d1a8,0,0,ffff800020e1d0b4) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd8077bf6558,ffff800020e1d1a8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc278,6,ffff800020e1d1a8,0,ffff800020e1d290) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc278,ffff800020e1d240,ffff800020e1d290) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1d310) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1d310) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc6910, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020d70ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 end of kernel end trace frame: 0xc000430cd0, count: 12 ddb{1}> trace x86_ipi_db(ffff800020d70ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 end of kernel end trace frame: 0xc000430cd0, count: -3