panic: receive 1a: so 0xfffffd806f6f2000, so_type 3, m 0xfffffd807f01e400, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 482830 51241 0 0x10 0x4000000 0 syz-executor.0 * 55632 59035 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d9d32) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f2000,0,ffff800020abcdf8,0,0,ffff800020abcd04) at soreceive+0x174a sys/kern/uipc_socket.c:977 soo_read(fffffd80738212f8,ffff800020abcdf8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c008,6,ffff800020abcdf8,0,ffff800020abcee0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7c008,ffff800020abce90,ffff800020abcee0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abcf60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abcf60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbb8c0, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic receive 1a: so 0xfffffd806f6f2000, so_type 3, m 0xfffffd807f01e400, m_type 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d9d32) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f2000,0,ffff800020abcdf8,0,0,ffff800020abcd04) at soreceive+0x174a sys/kern/uipc_socket.c:977 soo_read(fffffd80738212f8,ffff800020abcdf8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c008,6,ffff800020abcdf8,0,ffff800020abcee0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7c008,ffff800020abce90,ffff800020abcee0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abcf60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abcf60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbb8c0, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abcb40 rbx 0xffff800020abcbf0 rdx 0xffff800020a7c008 rcx 0 rax 0 r8 0xffffffff8175b6af kprintf+0x16f r9 0x1 r10 0x25 r11 0xaa3a693efe3114b5 r12 0x3000000008 r13 0xffff800020abcb50 r14 0x100 r15 0x1 rip 0xffffffff817764a8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abcb30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=55632 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7d118,0xffff800020a7c9d8 process=0xffff800020a90b50 user=0xffff800020ab8000, vmspace=0xfffffd807efff170 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 36924 388156 70350 0 2 0 syz-executor.1 36924 205150 70350 0 2 0x4000000 syz-executor.1 51241 299420 97432 0 2 0x10 syz-executor.0 51241 482830 97432 0 7 0x4000010 syz-executor.0 97432 480363 43915 0 2 0x2 syz-executor.0 70350 337218 43915 0 2 0x482 syz-executor.1 43915 399909 89801 0 3 0x82 thrsleep syz-fuzzer 43915 504418 89801 0 2 0x4000002 syz-fuzzer 43915 506339 89801 0 3 0x4000082 thrsleep syz-fuzzer 43915 176474 89801 0 3 0x4000082 thrsleep syz-fuzzer 43915 114335 89801 0 3 0x4000082 thrsleep syz-fuzzer 43915 497287 89801 0 3 0x4000082 thrsleep syz-fuzzer 43915 89816 89801 0 3 0x4000082 thrsleep syz-fuzzer 43915 97532 89801 0 3 0x4000082 thrsleep syz-fuzzer 43915 148456 89801 0 3 0x4000082 thrsleep syz-fuzzer 43915 260022 89801 0 3 0x4000082 kqread syz-fuzzer 89801 216159 91087 0 3 0x10008a pause ksh 91087 332210 1307 0 3 0x92 select sshd 90622 62375 1 0 3 0x100083 ttyin getty 1307 101859 1 0 3 0x80 select sshd 91262 117885 8357 74 3 0x100092 bpf pflogd 8357 371067 1 0 3 0x80 netio pflogd 66658 337083 91081 73 3 0x100090 kqread syslogd 91081 338640 1 0 3 0x100082 netio syslogd 51013 452709 1 77 3 0x100090 poll dhclient *59035 55632 1 0 7 0 dhclient 98521 384528 0 0 3 0x14200 bored smr 40223 231429 0 0 2 0x14200 zerothread 81686 463118 0 0 3 0x14200 aiodoned aiodoned 41946 392531 0 0 3 0x14200 syncer update 5285 305300 0 0 3 0x14200 cleaner cleaner 97264 389926 0 0 3 0x14200 reaper reaper 25882 303465 0 0 3 0x14200 pgdaemon pagedaemon 64421 473231 0 0 3 0x14200 bored crynlk 91799 95892 0 0 3 0x14200 bored crypto 2824 416257 0 0 3 0x40014200 acpi0 acpi0 50014 150510 0 0 3 0x40014200 idle1 22852 316708 0 0 3 0x14200 bored softnet 78352 514818 0 0 3 0x14200 bored systqmp 83304 398863 0 0 3 0x14200 bored systq 56166 24157 0 0 3 0x40014200 bored softclock 59715 101482 0 0 3 0x40014200 idle0 1 39066 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 59035 (dhclient) thread 0xffff800020a7c008 (55632) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff826683d8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 solock+0x66 sys/kern/uipc_socket2.c:292 #2 soreceive+0x114 sys/kern/uipc_socket.c:731 #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9512 6413K 7568K 78643K 11381 0 pcb 13 8K 8K 78643K 55 0 rtable 99 3K 3K 78643K 281 0 ifaddr 65 12K 12K 78643K 89 0 counters 45 34K 34K 78643K 51 0 ioctlops 0 0K 4K 78643K 1487 0 iov 0 0K 16K 78643K 22 0 mount 1 1K 1K 78643K 1 0 vnodes 1237 78K 78K 78643K 1509 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 4 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 23 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 6 17K 25K 78643K 166 0 proc 61 63K 83K 78643K 490 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 20 0 in_multi 35 2K 2K 78643K 69 0 ether_multi 1 0K 0K 78643K 6 0 mrt 0 0K 0K 78643K 8 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 79 360K 360K 78643K 79 0 exec 0 0K 1K 78643K 230 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 118 54K 63K 78643K 1530 0 UVM aobj 9 2K 2K 78643K 10 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 33 0 NDP 11 0K 0K 78643K 21 0 temp 103 3019K 3083K 78643K 9281 0 kqueue 3 4K 8K 78643K 8 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> 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 31 0 29 1 0 1 1 0 8 0 rtentry 112 64 0 23 2 0 2 2 0 8 0 unpcb 120 102 0 92 1 0 1 1 0 8 0 syncache 264 5 0 5 2 1 1 1 0 8 1 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 544 74 0 69 1 0 1 1 0 8 0 inpcb 280 334 0 324 2 0 2 2 0 8 1 rttmr 72 4 0 4 1 1 0 1 0 8 0 nd6 48 10 0 6 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 pffrag 232 2 0 2 1 0 1 1 0 482 1 pffrnode 88 2 0 2 1 0 1 1 0 8 1 pffrent 40 51 0 51 1 0 1 1 0 8 1 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 28 0 0 1 0 1 1 0 8 0 pfstkey 112 28 0 0 1 0 1 1 0 8 0 pfstate 328 28 0 0 3 0 3 3 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 257 0 84 13 0 13 13 0 8 0 art_table 32 258 0 84 2 0 2 2 0 8 0 art_node 16 63 0 25 1 0 1 1 0 8 0 sysvmsgpl 40 14 0 10 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 112 21 0 11 1 0 1 1 0 8 0 shmpl 112 8 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1682 0 272 46 0 46 46 0 8 0 ffsino 272 1682 0 272 95 0 95 95 0 8 0 nchpl 144 2088 0 482 61 0 61 61 0 8 0 uvmvnodes 72 1917 0 0 35 0 35 35 0 8 0 vnodes 208 1917 0 0 101 0 101 101 0 8 0 namei 1024 6724 0 6724 1 0 1 1 0 8 1 percpumem 16 36 0 3 1 0 1 1 0 8 0 vcpupl 1984 5 0 0 1 0 1 1 0 8 0 vmpool 560 6 0 1 1 0 1 1 0 8 0 scxspl 192 6410 0 6410 8 1 7 7 0 8 7 plimitpl 152 29 0 21 1 0 1 1 0 8 0 sigapl 424 378 0 346 4 0 4 4 0 8 0 futexpl 56 3570 0 3570 1 0 1 1 0 8 1 knotepl 112 71 0 52 1 0 1 1 0 8 0 kqueuepl 144 26 0 24 1 0 1 1 0 8 0 pipelkpl 48 132 0 122 1 0 1 1 0 8 0 pipepl 120 264 0 245 1 0 1 1 0 8 0 fdescpl 496 363 0 346 3 0 3 3 0 8 0 filepl 152 3246 0 3130 6 0 6 6 0 8 1 lockfpl 104 144 0 142 1 0 1 1 0 8 0 lockfspl 48 43 0 41 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 902 0 892 1 0 1 1 0 8 0 zombiepl 144 346 0 346 1 0 1 1 0 8 1 processpl 960 378 0 346 5 0 5 5 0 8 1 procpl 624 713 0 670 4 0 4 4 0 8 0 sockpl 400 480 0 458 5 0 5 5 0 8 2 mcl64k 65536 15 0 0 2 0 2 2 0 8 0 mcl16k 16384 2 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 163 0 0 20 0 20 20 0 8 0 mtagpl 80 17 0 0 1 0 1 1 0 8 0 mbufpl 256 195 0 0 12 0 12 12 0 8 0 bufpl 280 4511 0 173 310 0 310 310 0 8 0 anonpl 16 54198 0 37226 70 1 69 69 0 124 0 amapchunkpl 152 2213 0 2069 10 0 10 10 0 158 2 amappl16 192 1588 0 659 47 0 47 47 0 8 0 amappl15 184 72 0 71 2 1 1 1 0 8 0 amappl14 176 34 0 31 2 1 1 1 0 8 0 amappl13 168 36 0 34 1 0 1 1 0 8 0 amappl12 160 3 0 2 1 0 1 1 0 8 0 amappl11 152 75 0 57 1 0 1 1 0 8 0 amappl10 144 18 0 13 1 0 1 1 0 8 0 amappl9 136 445 0 440 1 0 1 1 0 8 0 amappl8 128 398 0 372 1 0 1 1 0 8 0 amappl7 120 126 0 113 1 0 1 1 0 8 0 amappl6 112 31 0 23 1 0 1 1 0 8 0 amappl5 104 261 0 243 1 0 1 1 0 8 0 amappl4 96 517 0 486 2 1 1 2 0 8 0 amappl3 88 108 0 101 1 0 1 1 0 8 0 amappl2 80 1952 0 1874 3 1 2 3 0 8 0 amappl1 72 17857 0 17406 26 16 10 20 0 8 0 amappl 80 984 0 936 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 9 0 1 1 0 1 1 0 8 0 uaddrrnd 24 369 0 347 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 369 0 347 1 0 1 1 0 8 0 vmmpekpl 168 6977 0 6944 2 0 2 2 0 8 0 vmmpepl 168 52487 0 50302 131 5 126 126 0 357 31 vmsppl 368 368 0 347 2 0 2 2 0 8 0 pdppl 4096 745 0 699 6 0 6 6 0 8 0 pvpl 32 175866 0 155685 173 0 173 173 0 265 10 pmappl 232 368 0 347 2 0 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 172 0 3 5 0 5 5 0 8 0