login: panic: receive 1a: so 0xfffffd806f6f4190, so_type 3, m 0xfffffd8070265500, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 424119 92618 0 0 0x4000000 1 syz-executor.0 * 90790 28965 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d907d) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f4190,0,ffff800020abdbe8,0,0,ffff800020abdaf4) at soreceive+0x174a sys/kern/uipc_socket.c:977 soo_read(fffffd806fc83390,ffff800020abdbe8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c9c8,6,ffff800020abdbe8,0,ffff800020abdcd0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7c9c8,ffff800020abdc80,ffff800020abdcd0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abdd50) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abdd50) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe1e60, 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 1a: so 0xfffffd806f6f4190, so_type 3, m 0xfffffd8070265500, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d907d) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f4190,0,ffff800020abdbe8,0,0,ffff800020abdaf4) at soreceive+0x174a sys/kern/uipc_socket.c:977 soo_read(fffffd806fc83390,ffff800020abdbe8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c9c8,6,ffff800020abdbe8,0,ffff800020abdcd0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7c9c8,ffff800020abdc80,ffff800020abdcd0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abdd50) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abdd50) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe1e60, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abd930 rbx 0xffff800020abd9e0 rdx 0xffff800020a7c9c8 rcx 0 rax 0 r8 0xffffffff8151a22f kprintf+0x16f r9 0x1 r10 0x25 r11 0x29f1e9b3ded782 r12 0x3000000008 r13 0xffff800020abd940 r14 0x100 r15 0x1 rip 0xffffffff8106a8b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abd920 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=90790 stat=onproc flags process=0 proc=0 pri=24, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7cea8,0xffff800020a7cc48 process=0xffff800020a90f10 user=0xffff800020ab8000, vmspace=0xfffffd807f000170 estcpu=1, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 92618 483119 15968 0 2 0 syz-executor.0 92618 424119 15968 0 7 0x4000000 syz-executor.0 82087 77264 81563 0 2 0x480 syz-executor.1 82087 150328 81563 0 3 0x4000080 bell syz-executor.1 82087 329381 81563 0 3 0x4000080 fsleep syz-executor.1 81563 443502 12022 0 2 0x482 syz-executor.1 15968 264740 12022 0 2 0x482 syz-executor.0 12022 73865 27295 0 3 0x82 thrsleep syz-fuzzer 12022 224562 27295 0 3 0x4000082 nanosleep syz-fuzzer 12022 124489 27295 0 3 0x4000082 thrsleep syz-fuzzer 12022 71531 27295 0 3 0x4000082 kqread syz-fuzzer 12022 183788 27295 0 3 0x4000082 thrsleep syz-fuzzer 12022 374188 27295 0 3 0x4000082 thrsleep syz-fuzzer 12022 329057 27295 0 3 0x4000082 thrsleep syz-fuzzer 12022 310601 27295 0 3 0x4000082 thrsleep syz-fuzzer 12022 320149 27295 0 3 0x4000082 thrsleep syz-fuzzer 12022 462729 27295 0 3 0x4000082 thrsleep syz-fuzzer 27295 408114 30340 0 3 0x10008a pause ksh 30340 90873 87914 0 3 0x92 select sshd 23643 355443 1 0 3 0x100083 ttyin getty 87914 103285 1 0 3 0x80 select sshd 48654 20937 30212 74 3 0x100092 bpf pflogd 30212 386087 1 0 3 0x80 netio pflogd 33649 198280 12081 73 3 0x100090 kqread syslogd 12081 257733 1 0 3 0x100082 netio syslogd 59825 139391 1 77 3 0x100090 poll dhclient *28965 90790 1 0 7 0 dhclient 87491 140673 0 0 3 0x14200 pgzero zerothread 93344 176482 0 0 3 0x14200 aiodoned aiodoned 42277 166905 0 0 3 0x14200 syncer update 6789 122606 0 0 3 0x14200 cleaner cleaner 52722 232980 0 0 3 0x14200 reaper reaper 99616 478504 0 0 3 0x14200 pgdaemon pagedaemon 41724 60702 0 0 3 0x14200 bored crynlk 92915 79300 0 0 3 0x14200 bored crypto 8562 463075 0 0 3 0x40014200 acpi0 acpi0 92792 100390 0 0 3 0x40014200 idle1 9646 35432 0 0 3 0x14200 bored softnet 83118 219585 0 0 3 0x14200 bored systqmp 513 379596 0 0 3 0x14200 bored systq 54930 515396 0 0 3 0x40014200 bored softclock 79565 494971 0 0 3 0x40014200 idle0 32702 350552 0 0 3 0x14200 bored smr 1 86904 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 28965 (dhclient) thread 0xffff800020a7c9c8 (90790) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8262d5b0) #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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9485 6404K 6406K 78643K 10589 0 pcb 13 8K 8K 78643K 21 0 rtable 105 3K 3K 78643K 202 0 ifaddr 49 11K 11K 78643K 54 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1469 0 iov 1 12K 12K 78643K 3 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 1231 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 2 0K 0K 78643K 2 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 6 17K 25K 78643K 45 0 proc 59 63K 95K 78643K 438 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 33 2K 2K 78643K 33 0 ether_multi 1 0K 0K 78643K 1 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 209 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 112 22K 22K 78643K 1049 0 UVM aobj 4 2K 2K 78643K 4 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 11 0K 0K 78643K 11 0 temp 71 3012K 3075K 78643K 2087 0 kqueue 3 4K 4K 78643K 3 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 45 0 1 2 0 2 2 0 8 0 unpcb 120 37 0 27 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 386 0 386 1 0 1 1 0 8 1 tcpcb 544 12 0 8 1 0 1 1 0 8 0 inpcb 280 57 0 48 1 0 1 1 0 8 0 nd6 48 6 0 0 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 12 0 1 1 0 1 1 0 8 0 pfstkey 112 12 0 1 1 0 1 1 0 8 0 pfstate 328 12 0 1 1 0 1 1 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 189 0 0 12 0 12 12 0 8 0 art_table 32 190 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 shmpl 112 2 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1444 0 36 46 0 46 46 0 8 0 ffsino 272 1444 0 36 95 0 95 95 0 8 1 nchpl 144 1694 0 76 61 0 61 61 0 8 0 uvmvnodes 72 1496 0 0 28 0 28 28 0 8 0 vnodes 208 1496 0 0 79 0 79 79 0 8 0 namei 1024 4453 0 4453 2 1 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 scxspl 192 5073 0 5073 8 1 7 7 0 8 7 plimitpl 152 17 0 9 1 0 1 1 0 8 0 sigapl 432 244 0 228 3 0 3 3 0 8 1 futexpl 56 249 0 248 1 0 1 1 0 8 0 knotepl 112 53 0 34 1 0 1 1 0 8 0 kqueuepl 144 6 0 4 1 0 1 1 0 8 0 pipelkpl 48 84 0 74 1 0 1 1 0 8 0 pipepl 120 168 0 149 1 0 1 1 0 8 0 fdescpl 496 245 0 228 3 0 3 3 0 8 0 filepl 152 1242 0 1138 6 1 5 5 0 8 0 lockfpl 104 9 0 8 1 0 1 1 0 8 0 lockfspl 48 4 0 3 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 51 0 42 1 0 1 1 0 8 0 zombiepl 144 228 0 228 2 1 1 1 0 8 1 processpl 960 260 0 228 6 1 5 5 0 8 0 procpl 624 293 0 249 4 0 4 4 0 8 0 sockpl 400 113 0 92 4 1 3 3 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 162 0 0 20 0 20 20 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 200 0 0 12 0 12 12 0 8 0 bufpl 280 4071 0 174 279 0 279 279 0 8 0 anonpl 16 37969 0 22943 62 1 61 61 0 124 0 amapchunkpl 152 1139 0 995 8 0 8 8 0 158 1 amappl16 192 984 0 165 41 0 41 41 0 8 0 amappl15 184 2 0 1 1 0 1 1 0 8 0 amappl14 176 6 0 3 2 1 1 1 0 8 0 amappl13 168 26 0 25 1 0 1 1 0 8 0 amappl12 160 5 0 4 2 1 1 1 0 8 0 amappl11 152 73 0 54 1 0 1 1 0 8 0 amappl10 144 15 0 12 1 0 1 1 0 8 0 amappl9 136 388 0 385 1 0 1 1 0 8 0 amappl8 128 319 0 294 2 0 2 2 0 8 0 amappl7 120 135 0 121 1 0 1 1 0 8 0 amappl6 112 25 0 20 1 0 1 1 0 8 0 amappl5 104 145 0 129 1 0 1 1 0 8 0 amappl4 96 507 0 472 2 1 1 2 0 8 0 amappl3 88 103 0 98 1 0 1 1 0 8 0 amappl2 80 1041 0 965 3 1 2 3 0 8 0 amappl1 72 15232 0 14769 25 10 15 20 0 8 5 amappl 80 546 0 498 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 3 0 0 1 0 1 1 0 8 0 uaddrrnd 24 245 0 228 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 245 0 228 1 0 1 1 0 8 0 vmmpekpl 168 5933 0 5902 2 0 2 2 0 8 0 vmmpepl 168 36939 0 34870 128 10 118 118 0 357 28 vmsppl 368 244 0 228 2 0 2 2 0 8 0 pdppl 4096 497 0 456 7 1 6 6 0 8 0 pvpl 32 130697 0 112487 148 0 148 148 0 265 1 pmappl 232 244 0 228 2 0 2 2 0 8 1 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 169 0 6 5 0 5 5 0 8 0