login: panic: receive 1a: so 0xfffffd806f6db640, so_type 3, m 0xfffffd806b81e100, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 220481 50221 0 0 0x4000000 1 syz-executor.0 *518833 1684 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821bf091) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6db640,0,ffff800020abd3e8,0,0,ffff800020abd2f4) at soreceive+0x174a sys/kern/uipc_socket.c:977 soo_read(fffffd807affb558,ffff800020abd3e8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c278,6,ffff800020abd3e8,0,ffff800020abd4d0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:236 sys_read(ffff800020a7c278,ffff800020abd480,ffff800020abd4d0) at sys_read+0x83 sys/kern/sys_generic.c:156 syscall(ffff800020abd550) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abd550) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc1960, 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 0xfffffd806f6db640, so_type 3, m 0xfffffd806b81e100, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821bf091) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6db640,0,ffff800020abd3e8,0,0,ffff800020abd2f4) at soreceive+0x174a sys/kern/uipc_socket.c:977 soo_read(fffffd807affb558,ffff800020abd3e8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c278,6,ffff800020abd3e8,0,ffff800020abd4d0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:236 sys_read(ffff800020a7c278,ffff800020abd480,ffff800020abd4d0) at sys_read+0x83 sys/kern/sys_generic.c:156 syscall(ffff800020abd550) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abd550) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc1960, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abd130 rbx 0xffff800020abd1e0 rdx 0xffff800020a7c278 rcx 0 rax 0 r8 0xffffffff81126e7f kprintf+0x16f r9 0x1 r10 0x25 r11 0xf9db8eaa8d1b91c3 r12 0x3000000008 r13 0xffff800020abd140 r14 0x100 r15 0x1 rip 0xffffffff81250e28 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abd120 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=518833 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7cea8,0xffff800020a7cc48 process=0xffff800020a912d0 user=0xffff800020ab8000, vmspace=0xfffffd807efff2e0 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 50221 62606 74794 0 2 0 syz-executor.0 50221 220481 74794 0 7 0x4000000 syz-executor.0 57412 430354 64168 0 2 0 syz-executor.1 57412 247382 64168 0 3 0x4000080 netio syz-executor.1 93494 438606 1 0 3 0x100083 ttyin getty 64168 418090 65986 0 3 0x82 nanosleep syz-executor.1 37941 78543 0 0 3 0x14200 bored sosplice 20824 46098 0 0 3 0x14200 acct acct 74794 181210 65986 0 2 0x482 syz-executor.0 65986 238770 78298 0 2 0x482 syz-fuzzer 65986 471669 78298 0 3 0x4000082 nanosleep syz-fuzzer 65986 95058 78298 0 3 0x4000082 thrsleep syz-fuzzer 65986 481532 78298 0 3 0x4000082 thrsleep syz-fuzzer 65986 332053 78298 0 3 0x4000082 thrsleep syz-fuzzer 65986 6991 78298 0 3 0x4000082 thrsleep syz-fuzzer 65986 494885 78298 0 3 0x4000082 thrsleep syz-fuzzer 65986 229161 78298 0 3 0x4000082 thrsleep syz-fuzzer 65986 276809 78298 0 3 0x4000082 kqread syz-fuzzer 65986 418501 78298 0 3 0x4000082 thrsleep syz-fuzzer 78298 32635 75930 0 3 0x10008a pause ksh 75930 411269 67452 0 3 0x92 select sshd 67452 501832 1 0 3 0x80 select sshd 78756 56067 42264 74 3 0x100092 bpf pflogd 42264 8280 1 0 3 0x80 netio pflogd 21846 160709 72861 73 3 0x100090 kqread syslogd 72861 433963 1 0 3 0x100082 netio syslogd 22637 67941 1 77 3 0x100090 poll dhclient * 1684 518833 1 0 7 0 dhclient 20053 222535 0 0 2 0x14200 zerothread 98704 257773 0 0 3 0x14200 aiodoned aiodoned 16935 319755 0 0 3 0x14200 syncer update 18429 471628 0 0 3 0x14200 cleaner cleaner 19158 230909 0 0 3 0x14200 reaper reaper 57802 116343 0 0 3 0x14200 pgdaemon pagedaemon 81802 49271 0 0 3 0x14200 bored crynlk 50613 390534 0 0 3 0x14200 bored crypto 62786 407185 0 0 3 0x40014200 acpi0 acpi0 52139 161915 0 0 3 0x40014200 idle1 11788 146616 0 0 3 0x14200 bored softnet 70578 403652 0 0 3 0x14200 bored systqmp 7181 135993 0 0 3 0x14200 bored systq 6128 51437 0 0 2 0x40014200 softclock 17925 408983 0 0 3 0x40014200 idle0 3774 267105 0 0 3 0x14200 bored smr 1 203504 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 1684 (dhclient) thread 0xffff800020a7c278 (518833) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82662518) #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:236 #5 sys_read+0x83 sys/kern/sys_generic.c:156 #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 9554 6564K 7008K 78643K 11402 0 pcb 13 10K 12K 78643K 98 0 rtable 103 3K 3K 78643K 412 0 ifaddr 95 17K 17K 78643K 174 0 counters 45 34K 34K 78643K 67 0 ioctlops 0 0K 4K 78643K 1482 0 iov 0 0K 12K 78643K 70 0 mount 1 1K 1K 78643K 1 0 vnodes 1215 76K 77K 78643K 1514 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 5 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 113 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 6 17K 25K 78643K 404 0 sigio 0 0K 0K 78643K 7 0 proc 61 63K 95K 78643K 569 0 subproc 32 2K 2K 78643K 68 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 38 0 in_multi 73 3K 3K 78643K 137 0 ether_multi 1 0K 0K 78643K 12 0 mrt 0 0K 0K 78643K 7 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 307 0 pfkey data 0 0K 1K 78643K 2 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 123 38K 38K 78643K 2362 0 UVM aobj 33 2K 2K 78643K 37 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 57 0 NDP 16 0K 0K 78643K 38 0 temp 146 3018K 3082K 78643K 22725 0 kqueue 3 4K 20K 78643K 34 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 11 0 5 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 63 0 61 1 0 1 1 0 8 0 rtentry 112 84 0 41 2 0 2 2 0 8 0 unpcb 120 646 0 634 2 1 1 2 0 8 0 syncache 264 8 0 8 3 2 1 1 0 8 1 tcpqe 32 185 0 185 1 1 0 1 0 8 0 tcpcb 544 430 0 426 11 2 9 11 0 8 8 inpcb 280 808 0 801 9 0 9 9 0 8 8 rttmr 72 3 0 3 1 1 0 1 0 8 0 nd6 48 12 0 8 1 0 1 1 0 8 0 pkpcb 40 5 0 5 1 1 0 1 0 8 0 pffrag 232 6 0 6 2 1 1 1 0 482 1 pffrnode 88 6 0 6 2 1 1 1 0 8 1 pffrent 40 141 0 141 2 1 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 57 0 4 1 0 1 1 0 8 0 pfstkey 112 57 0 4 2 0 2 2 0 8 0 pfstate 328 57 0 4 5 0 5 5 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 396 0 175 15 0 15 15 0 8 1 art_table 32 397 0 175 2 0 2 2 0 8 0 art_node 16 83 0 43 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 3 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 107 0 97 1 0 1 1 0 8 0 shmpl 112 35 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1987 0 581 46 0 46 46 0 8 0 ffsino 272 1987 0 581 95 0 95 95 0 8 0 nchpl 144 2734 0 1128 61 0 61 61 0 8 0 uvmvnodes 72 2242 0 0 41 0 41 41 0 8 0 vnodes 208 2242 0 0 118 0 118 118 0 8 0 namei 1024 7855 0 7855 1 0 1 1 0 8 1 percpumem 16 44 0 11 1 0 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 560 2 0 0 1 0 1 1 0 8 0 scxspl 192 8427 0 8427 9 6 3 6 0 8 3 plimitpl 152 41 0 33 1 0 1 1 0 8 0 sigapl 432 598 0 582 3 1 2 3 0 8 0 futexpl 56 7761 0 7761 1 0 1 1 0 8 1 knotepl 112 195 0 176 3 2 1 3 0 8 0 kqueuepl 104 719 0 716 4 0 4 4 0 8 3 pipelkpl 48 157 0 147 1 0 1 1 0 8 0 pipepl 120 314 0 295 1 0 1 1 0 8 0 fdescpl 496 599 0 582 3 0 3 3 0 8 0 filepl 152 4851 0 4743 14 2 12 14 0 8 7 lockfpl 104 128 0 126 1 0 1 1 0 8 0 lockfspl 48 52 0 50 1 0 1 1 0 8 0 sessionpl 112 21 0 10 1 0 1 1 0 8 0 pgrppl 48 29 0 18 1 0 1 1 0 8 0 ucredpl 96 396 0 387 1 0 1 1 0 8 0 zombiepl 144 582 0 582 1 0 1 1 0 8 1 processpl 960 616 0 582 5 0 5 5 0 8 0 procpl 624 1468 0 1423 4 0 4 4 0 8 0 sosppl 128 10 0 10 2 1 1 1 0 8 1 sockpl 400 1536 0 1515 15 5 10 14 0 8 7 mcl64k 65536 10 0 0 2 0 2 2 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 6 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 8 0 0 1 0 1 1 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 155 0 0 19 0 19 19 0 8 0 mtagpl 80 26 0 0 1 0 1 1 0 8 0 mbufpl 256 464 0 0 28 0 28 28 0 8 0 bufpl 280 5103 0 194 351 0 351 351 0 8 0 anonpl 16 72999 0 56368 77 8 69 76 0 125 0 amapchunkpl 152 4305 0 4169 20 10 10 19 0 158 4 amappl16 192 2597 0 1669 48 0 48 48 0 8 1 amappl15 184 63 0 59 1 0 1 1 0 8 0 amappl14 176 252 0 247 1 0 1 1 0 8 0 amappl13 168 8 0 8 1 0 1 1 0 8 1 amappl12 160 4 0 3 2 1 1 1 0 8 0 amappl11 152 59 0 44 1 0 1 1 0 8 0 amappl10 144 12 0 7 1 0 1 1 0 8 0 amappl9 136 696 0 692 1 0 1 1 0 8 0 amappl8 128 220 0 193 1 0 1 1 0 8 0 amappl7 120 118 0 105 1 0 1 1 0 8 0 amappl6 112 69 0 63 1 0 1 1 0 8 0 amappl5 104 145 0 131 1 0 1 1 0 8 0 amappl4 96 697 0 659 2 1 1 2 0 8 0 amappl3 88 511 0 499 1 0 1 1 0 8 0 amappl2 80 3756 0 3672 3 1 2 3 0 8 0 amappl1 72 23421 0 22953 26 16 10 20 0 8 0 amappl 80 1761 0 1715 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 36 0 4 1 0 1 1 0 8 0 uaddrrnd 24 601 0 582 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 601 0 582 1 0 1 1 0 8 0 vmmpekpl 168 9008 0 8971 2 0 2 2 0 8 0 vmmpepl 168 80987 0 78770 143 16 127 127 0 357 30 vmsppl 368 600 0 582 2 0 2 2 0 8 0 pdppl 4096 1209 0 1166 6 0 6 6 0 8 0 pvpl 32 230162 0 210255 182 7 175 182 0 265 12 pmappl 232 600 0 582 3 1 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 209 0 10 6 0 6 6 0 8 0