panic: receive 1: so 0xfffffd806f66d000, so_type 3, sb_cc 112 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 248004 20243 0 0x2 0x480 1 syz-executor.0 *207523 3101 0 0 0 0 dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823fcdda) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f66d000,0,ffff800020e1e7b8,0,0,ffff800020e1e6c4) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd8074c735f0,ffff800020e1e7b8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc758,6,ffff800020e1e7b8,0,ffff800020e1e8a0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc758,ffff800020e1e850,ffff800020e1e8a0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e920) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e920) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe0980, 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 0xfffffd806f66d000, so_type 3, sb_cc 112 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823fcdda) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f66d000,0,ffff800020e1e7b8,0,0,ffff800020e1e6c4) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd8074c735f0,ffff800020e1e7b8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc758,6,ffff800020e1e7b8,0,ffff800020e1e8a0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc758,ffff800020e1e850,ffff800020e1e8a0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e920) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e920) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe0980, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e500 rbx 0xffff800020e1e5b0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81cae1ef kprintf+0x16f r9 0x1 r10 0x2 r11 0x70874145643e9f0 r12 0x3000000008 r13 0xffff800020e1e510 r14 0x100 r15 0x1 rip 0xffffffff81a0eff8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e4f0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=207523 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddcea8,0xffff800020ddcc48 process=0xffff800020df0bb0 user=0xffff800020e19000, vmspace=0xfffffd807efff170 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 31176 86526 81006 0 2 0 syz-executor.1 31176 503101 81006 0 2 0x4000000 syz-executor.1 48688 457415 20243 0 2 0 syz-executor.0 48688 389391 20243 0 2 0x4000480 syz-executor.0 81006 334654 31860 0 2 0x482 syz-executor.1 20243 248004 31860 0 7 0x482 syz-executor.0 31860 364490 5230 0 3 0x82 thrsleep syz-fuzzer 31860 96571 5230 0 3 0x4000082 nanosleep syz-fuzzer 31860 302295 5230 0 3 0x4000082 kqread syz-fuzzer 31860 419011 5230 0 2 0x4000002 syz-fuzzer 31860 216485 5230 0 3 0x4000082 thrsleep syz-fuzzer 31860 188222 5230 0 3 0x4000082 thrsleep syz-fuzzer 31860 459940 5230 0 3 0x4000082 thrsleep syz-fuzzer 31860 415990 5230 0 3 0x4000082 thrsleep syz-fuzzer 5230 192595 77399 0 3 0x10008a pause ksh 77399 333534 24832 0 3 0x92 select sshd 78835 266303 1 0 3 0x100083 ttyin getty 24832 199635 1 0 3 0x80 select sshd 69804 442056 75129 74 3 0x100092 bpf pflogd 75129 353342 1 0 3 0x80 netio pflogd 55835 54189 67747 73 3 0x100090 kqread syslogd 67747 98841 1 0 3 0x100082 netio syslogd 6723 330272 1 77 3 0x100090 poll dhclient * 3101 207523 1 0 7 0 dhclient 40355 135001 0 0 3 0x14200 bored smr 402 512316 0 0 2 0x14200 zerothread 57227 138470 0 0 3 0x14200 aiodoned aiodoned 15067 317620 0 0 3 0x14200 syncer update 59733 90168 0 0 3 0x14200 cleaner cleaner 13640 424035 0 0 3 0x14200 reaper reaper 73250 391346 0 0 3 0x14200 pgdaemon pagedaemon 43291 388020 0 0 3 0x14200 bored crynlk 29935 152328 0 0 3 0x14200 bored crypto 41214 44283 0 0 3 0x40014200 acpi0 acpi0 64314 67472 0 0 3 0x40014200 idle1 30718 231522 0 0 3 0x14200 bored softnet 47255 459991 0 0 3 0x14200 bored systqmp 26075 469684 0 0 3 0x14200 bored systq 61584 375168 0 0 2 0x40014200 softclock 26009 117669 0 0 3 0x40014200 idle0 1 343752 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 3101 (dhclient) thread 0xffff800020ddc758 (207523) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828c0930) #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 9469 6396K 6655K 78643K 10597 0 pcb 14 8K 8K 78643K 32 0 rtable 109 3K 3K 78643K 215 0 ifaddr 45 10K 11K 78643K 51 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1477 0 iov 0 0K 12K 78643K 4 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 1234 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 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 29 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 92 0 proc 61 63K 95K 78643K 440 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 7 0 in_multi 37 2K 2K 78643K 57 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 31 148K 148K 78643K 31 0 exec 0 0K 1K 78643K 217 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 170 28K 44K 78643K 1258 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 14 0 NDP 6 0K 0K 78643K 12 0 temp 71 3852K 3916K 78643K 2217 0 kqueue 3 4K 16K 78643K 11 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 19 0 17 1 0 1 1 0 8 0 rtentry 112 52 0 6 2 0 2 2 0 8 0 unpcb 120 60 0 49 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 292 0 292 1 1 0 1 0 8 0 tcpcb 544 32 0 18 2 0 2 2 0 8 1 inpcb 296 104 0 95 2 0 2 2 0 8 1 nd6 48 11 0 4 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 19 0 0 1 0 1 1 0 8 0 pfstkey 112 19 0 0 1 0 1 1 0 8 0 pfstate 328 19 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 190 0 2 12 0 12 12 0 8 0 art_table 32 191 0 2 2 0 2 2 0 8 0 art_node 16 51 0 10 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 4 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 112 18 0 8 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1496 0 91 88 0 88 88 0 8 0 ffsino 272 1496 0 91 94 0 94 94 0 8 0 nchpl 144 1834 0 225 60 0 60 60 0 8 0 uvmvnodes 72 1550 0 0 29 0 29 29 0 8 0 vnodes 208 1550 0 0 82 0 82 82 0 8 0 namei 1024 4800 0 4800 1 0 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 vmpool 560 2 0 2 1 0 1 1 0 8 1 scxspl 192 5316 0 5316 8 1 7 7 0 8 7 plimitpl 152 20 0 11 1 0 1 1 0 8 0 sigapl 424 307 0 275 4 0 4 4 0 8 0 futexpl 56 850 0 850 1 0 1 1 0 8 1 knotepl 112 73 0 53 1 0 1 1 0 8 0 kqueuepl 144 44 0 42 1 0 1 1 0 8 0 pipepl 304 85 0 74 2 0 2 2 0 8 1 fdescpl 496 292 0 275 3 0 3 3 0 8 0 filepl 152 1546 0 1438 5 0 5 5 0 8 0 lockfpl 104 14 0 13 1 0 1 1 0 8 0 lockfspl 48 6 0 5 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 88 0 78 1 0 1 1 0 8 0 zombiepl 144 275 0 275 1 0 1 1 0 8 1 processpl 992 307 0 275 5 0 5 5 0 8 1 procpl 624 435 0 394 4 0 4 4 0 8 0 srpgc 64 2 0 2 1 0 1 1 0 8 1 sockpl 400 183 0 161 4 0 4 4 0 8 1 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 201 0 0 25 0 25 25 0 8 0 mtagpl 96 6 0 0 1 0 1 1 0 8 0 mbufpl 256 229 0 0 14 0 14 14 0 8 0 bufpl 280 3387 0 127 233 0 233 233 0 8 0 anonpl 16 46502 0 28432 77 1 76 76 0 124 3 amapchunkpl 152 2371 0 2054 26 0 26 26 0 158 12 amappl16 192 1134 0 319 41 0 41 41 0 8 0 amappl15 184 34 0 29 1 0 1 1 0 8 0 amappl14 176 33 0 29 1 0 1 1 0 8 0 amappl13 168 30 0 26 1 0 1 1 0 8 0 amappl12 160 25 0 21 1 0 1 1 0 8 0 amappl11 152 52 0 37 1 0 1 1 0 8 0 amappl10 144 45 0 40 1 0 1 1 0 8 0 amappl9 136 371 0 369 1 0 1 1 0 8 0 amappl8 128 388 0 333 2 0 2 2 0 8 0 amappl7 120 145 0 131 1 0 1 1 0 8 0 amappl6 112 33 0 25 1 0 1 1 0 8 0 amappl5 104 194 0 177 1 0 1 1 0 8 0 amappl4 96 491 0 462 1 0 1 1 0 8 0 amappl3 88 144 0 135 1 0 1 1 0 8 0 amappl2 80 1391 0 1312 2 0 2 2 0 8 0 amappl1 72 16995 0 16533 23 10 13 18 0 8 3 amappl 80 736 0 649 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 294 0 277 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 294 0 277 1 0 1 1 0 8 0 vmmpekpl 168 6295 0 6254 2 0 2 2 0 8 0 vmmpepl 168 43811 0 41655 121 5 116 116 0 357 22 vmsppl 368 293 0 277 2 0 2 2 0 8 0 pdppl 4096 595 0 554 6 0 6 6 0 8 0 pvpl 32 155241 0 133932 182 0 182 182 0 265 10 pmappl 232 293 0 277 2 0 2 2 0 8 1 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 263 0 3 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(ffffffff823fcdda) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f66d000,0,ffff800020e1e7b8,0,0,ffff800020e1e6c4) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd8074c735f0,ffff800020e1e7b8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc758,6,ffff800020e1e7b8,0,ffff800020e1e8a0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc758,ffff800020e1e850,ffff800020e1e8a0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e920) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e920) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe0980, count: -8 ddb{0}> machine ddbcpu 1