panic: receive 1: so 0xfffffd806f688320, so_type 3, sb_cc 112 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 180310 67766 0 0 0x4000080 1 syz-executor.1 *177521 52689 0 0 0 0 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,ffff800020e1d778,0,0,ffff800020e1d684) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd8072c36000,ffff800020e1d778,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc758,6,ffff800020e1d778,0,ffff800020e1d860) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc758,ffff800020e1d810,ffff800020e1d860) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1d8e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1d8e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc0b80, 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 112 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,ffff800020e1d778,0,0,ffff800020e1d684) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd8072c36000,ffff800020e1d778,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc758,6,ffff800020e1d778,0,ffff800020e1d860) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc758,ffff800020e1d810,ffff800020e1d860) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1d8e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1d8e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc0b80, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1d4c0 rbx 0xffff800020e1d570 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff817e6a8f kprintf+0x16f r9 0x1 r10 0x2 r11 0x4736fbf8d8612dde r12 0x3000000008 r13 0xffff800020e1d4d0 r14 0x100 r15 0x1 rip 0xffffffff81d39c28 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1d4b0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=177521 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddd388,0xffff800020ddc288 process=0xffff800020df0f70 user=0xffff800020e18000, vmspace=0xfffffd807efff170 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 18919 494128 6720 0 2 0 syz-executor.0 18919 8214 6720 0 3 0x4000080 fsleep syz-executor.0 67766 219465 81288 0 2 0 syz-executor.1 67766 180310 81288 0 7 0x4000080 syz-executor.1 67766 109451 81288 0 3 0x4000080 kqread syz-executor.1 77663 128345 1 0 3 0x100083 ttyin getty 60581 403719 0 0 3 0x14200 bored sosplice 34928 403038 0 0 3 0x14280 nfsidl nfsio 44422 445024 0 0 3 0x14280 nfsidl nfsio 72594 360708 0 0 3 0x14280 nfsidl nfsio 43920 69667 0 0 3 0x14280 nfsidl nfsio 11087 317618 0 0 3 0x14280 nfsidl nfsio 61046 29967 0 0 3 0x14280 nfsidl nfsio 92419 196686 0 0 3 0x14280 nfsidl nfsio 8939 407254 0 0 3 0x14280 nfsidl nfsio 51653 468870 0 0 3 0x14280 nfsidl nfsio 49017 462372 0 0 3 0x14280 nfsidl nfsio 88384 43200 0 0 3 0x14280 nfsidl nfsio 60305 306727 0 0 3 0x14280 nfsidl nfsio 83809 486024 0 0 3 0x14280 nfsidl nfsio 91722 407869 0 0 3 0x14280 nfsidl nfsio 92098 65705 0 0 3 0x14280 nfsidl nfsio 16323 154217 0 0 3 0x14280 nfsidl nfsio 44412 493153 0 0 3 0x14280 nfsidl nfsio 50367 83803 0 0 3 0x14280 nfsidl nfsio 89503 519193 0 0 3 0x14280 nfsidl nfsio 37790 86992 0 0 3 0x14280 nfsidl nfsio 81288 425633 40681 0 3 0x82 nanosleep syz-executor.1 6720 212817 40681 0 3 0x82 nanosleep syz-executor.0 40681 63709 46772 0 3 0x82 thrsleep syz-fuzzer 40681 284140 46772 0 3 0x4000082 nanosleep syz-fuzzer 40681 403462 46772 0 3 0x4000082 thrsleep syz-fuzzer 40681 213211 46772 0 3 0x4000082 kqread syz-fuzzer 40681 225732 46772 0 3 0x4000082 thrsleep syz-fuzzer 40681 15332 46772 0 3 0x4000082 thrsleep syz-fuzzer 40681 169698 46772 0 3 0x4000082 thrsleep syz-fuzzer 40681 423949 46772 0 3 0x4000082 thrsleep syz-fuzzer 40681 213242 46772 0 3 0x4000082 thrsleep syz-fuzzer 40681 279636 46772 0 3 0x4000082 thrsleep syz-fuzzer 46772 364677 23724 0 3 0x10008a pause ksh 23724 167926 45873 0 3 0x92 select sshd 45873 103627 1 0 3 0x80 select sshd 55121 36584 62372 74 3 0x100092 bpf pflogd 62372 143174 1 0 3 0x80 netio pflogd 21300 445651 60106 73 3 0x100090 kqread syslogd 60106 48964 1 0 3 0x100082 netio syslogd 64422 220635 1 77 3 0x100090 poll dhclient *52689 177521 1 0 7 0 dhclient 99301 183442 0 0 3 0x14200 bored smr 41604 65933 0 0 2 0x14200 zerothread 93713 325728 0 0 3 0x14200 aiodoned aiodoned 33094 480038 0 0 3 0x14200 syncer update 90707 227121 0 0 3 0x14200 cleaner cleaner 61023 245254 0 0 3 0x14200 reaper reaper 70691 160222 0 0 3 0x14200 pgdaemon pagedaemon 17597 10986 0 0 3 0x14200 bored crynlk 76160 481225 0 0 3 0x14200 bored crypto 19523 360529 0 0 3 0x40014200 acpi0 acpi0 32064 26396 0 0 3 0x40014200 idle1 50328 506139 0 0 3 0x14200 bored softnet 92870 52557 0 0 3 0x14200 bored systqmp 89729 440979 0 0 3 0x14200 bored systq 32939 110633 0 0 3 0x40014200 bored softclock 81982 149393 0 0 3 0x40014200 idle0 1 284128 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 52689 (dhclient) thread 0xffff800020ddc758 (177521) 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 9512 6421K 7130K 78643K 11261 0 pcb 13 8K 8K 78643K 43 0 rtable 102 3K 7K 78643K 317 0 ifaddr 66 13K 13K 78643K 97 0 counters 43 33K 34K 78643K 47 0 ioctlops 0 0K 4K 78643K 1497 0 iov 0 0K 12K 78643K 27 0 mount 1 1K 1K 78643K 1 0 vnodes 1229 77K 77K 78643K 1402 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 30 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 204 0 sigio 0 0K 0K 78643K 4 0 proc 62 63K 83K 78643K 473 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 19 0 in_multi 36 2K 2K 78643K 107 0 ether_multi 1 0K 0K 78643K 5 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 37 175K 175K 78643K 37 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 113 22K 22K 78643K 1582 0 UVM aobj 2 2K 2K 78643K 2 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 15 0 NDP 11 0K 0K 78643K 28 0 temp 90 3859K 3922K 78643K 3023 0 kqueue 4 6K 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 6 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 35 0 33 1 0 1 1 0 8 0 rtentry 112 79 0 37 2 0 2 2 0 8 0 unpcb 120 124 0 114 1 0 1 1 0 8 0 syncache 264 7 0 7 2 1 1 1 0 8 1 tcpqe 32 233 0 233 1 0 1 1 0 8 1 tcpcb 544 73 0 68 1 0 1 1 0 8 0 inpcb 296 308 0 300 2 0 2 2 0 8 1 nd6 48 20 0 16 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 pfrktable 1344 10 0 10 1 0 1 1 0 8 1 pfstitem 24 31 0 0 1 0 1 1 0 8 0 pfstkey 112 31 0 0 1 0 1 1 0 8 0 pfstate 328 31 0 0 3 0 3 3 0 8 0 pfrule 1360 24 0 17 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 350 0 176 13 0 13 13 0 8 1 art_table 32 352 0 176 2 0 2 2 0 8 0 art_node 16 78 0 39 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 4 1 0 1 1 0 8 1 semupl 112 3 0 3 1 0 1 1 0 8 1 semapl 112 28 0 18 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1656 0 247 89 0 89 89 0 8 0 ffsino 272 1656 0 247 95 0 95 95 0 8 0 nchpl 144 2187 0 573 60 0 60 60 0 8 0 uvmvnodes 72 1859 0 0 34 0 34 34 0 8 0 vnodes 208 1859 0 0 98 0 98 98 0 8 0 namei 1024 5882 0 5882 1 0 1 1 0 8 1 percpumem 16 34 0 2 1 0 1 1 0 8 0 pfiaddrpl 120 3 0 3 1 0 1 1 0 8 1 scxspl 192 6432 0 6432 8 1 7 7 0 8 7 plimitpl 152 26 0 16 1 0 1 1 0 8 0 sigapl 424 441 0 388 6 0 6 6 0 8 0 futexpl 56 2741 0 2740 1 0 1 1 0 8 0 knotepl 112 67 0 48 1 0 1 1 0 8 0 kqueuepl 144 31 0 27 1 0 1 1 0 8 0 pipelkpl 48 98 0 88 1 0 1 1 0 8 0 pipepl 120 196 0 177 1 0 1 1 0 8 0 fdescpl 496 405 0 388 3 0 3 3 0 8 0 filepl 152 2341 0 2236 5 0 5 5 0 8 0 lockfpl 104 81 0 80 1 0 1 1 0 8 0 lockfspl 48 28 0 27 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 19 0 8 1 0 1 1 0 8 0 ucredpl 96 169 0 160 1 0 1 1 0 8 0 zombiepl 144 388 0 388 1 0 1 1 0 8 1 processpl 984 441 0 388 7 0 7 7 0 8 0 procpl 624 845 0 780 6 0 6 6 0 8 0 sosppl 128 5 0 5 1 0 1 1 0 8 1 sockpl 400 472 0 452 4 0 4 4 0 8 1 mcl64k 65536 6 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 1 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 231 0 0 28 0 28 28 0 8 0 mtagpl 96 20 0 0 1 0 1 1 0 8 0 mbufpl 256 499 0 0 31 0 31 31 0 8 0 bufpl 280 3757 0 133 259 0 259 259 0 8 0 anonpl 16 50680 0 34078 69 1 68 68 0 124 0 amapchunkpl 152 2061 0 1910 8 1 7 8 0 158 0 amappl16 192 1584 0 691 46 0 46 46 0 8 1 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 196 0 188 1 0 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 185 0 180 1 0 1 1 0 8 0 amappl11 152 54 0 38 1 0 1 1 0 8 0 amappl10 144 16 0 12 1 0 1 1 0 8 0 amappl9 136 372 0 370 1 0 1 1 0 8 0 amappl8 128 341 0 315 1 0 1 1 0 8 0 amappl7 120 120 0 108 1 0 1 1 0 8 0 amappl6 112 24 0 19 1 0 1 1 0 8 0 amappl5 104 170 0 153 1 0 1 1 0 8 0 amappl4 96 677 0 639 1 0 1 1 0 8 0 amappl3 88 276 0 267 1 0 1 1 0 8 0 amappl2 80 2303 0 2225 2 0 2 2 0 8 0 amappl1 72 18692 0 18225 23 13 10 18 0 8 0 amappl 80 1070 0 1024 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 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 405 0 388 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 405 0 388 1 0 1 1 0 8 0 vmmpekpl 168 7279 0 7244 2 0 2 2 0 8 0 vmmpepl 168 55935 0 53771 120 8 112 115 0 357 17 vmsppl 368 404 0 388 2 0 2 2 0 8 0 pdppl 4096 817 0 776 6 0 6 6 0 8 0 pvpl 32 173777 0 153673 166 0 166 166 0 265 3 pmappl 232 404 0 388 2 1 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 289 0 3 9 0 9 9 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,ffff800020e1d778,0,0,ffff800020e1d684) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd8072c36000,ffff800020e1d778,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc758,6,ffff800020e1d778,0,ffff800020e1d860) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc758,ffff800020e1d810,ffff800020e1d860) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1d8e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1d8e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc0b80, count: -8 ddb{0}> machine ddbcpu 1