panic: receive 3: so 0xfffffd806f66a000, so_type 3, m 0xfffffd8066cf7300, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 469829 12912 0 0 0 1 syz-executor.0 *101579 12315 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823ea3ed) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f66a000,0,ffff800020e1e3b8,0,0,ffff800020e1e2c4) at soreceive+0x1727 soo_read(fffffd807a9f3558,ffff800020e1e3b8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1e3b8,0,ffff800020e1e4a0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1e450,ffff800020e1e4a0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e520) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e520) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc4700, 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 3: so 0xfffffd806f66a000, so_type 3, m 0xfffffd8066cf7300, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823ea3ed) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f66a000,0,ffff800020e1e3b8,0,0,ffff800020e1e2c4) at soreceive+0x1727 soo_read(fffffd807a9f3558,ffff800020e1e3b8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1e3b8,0,ffff800020e1e4a0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1e450,ffff800020e1e4a0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e520) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e520) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc4700, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e100 rbx 0xffff800020e1e1b0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffff800020e1e0c0 r9 0xffffffff817bd10f kprintf+0x16f r10 0x1 r11 0x919758fe40a46f1 r12 0x3000000008 r13 0xffff800020e1e110 r14 0x100 r15 0x1 rip 0xffffffff821dd518 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e0f0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=101579 stat=onproc flags process=0 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddc9c8,0xffff800020ddd128 process=0xffff800020df0010 user=0xffff800020e19000, vmspace=0xfffffd807efff170 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 12912 469829 8447 0 7 0 syz-executor.0 12912 405642 8447 0 2 0x4000000 syz-executor.0 30925 68896 0 0 3 0x14200 acct acct 67909 436027 1 0 3 0x100083 ttyin getty 8447 382484 92609 0 3 0x82 nanosleep syz-executor.0 27869 475619 0 0 3 0x14280 nfsidl nfsio 74665 281339 0 0 3 0x14280 nfsidl nfsio 92024 329198 0 0 3 0x14280 nfsidl nfsio 85443 84247 0 0 3 0x14280 nfsidl nfsio 43251 157790 0 0 3 0x14280 nfsidl nfsio 39057 494157 0 0 3 0x14280 nfsidl nfsio 33960 124901 0 0 3 0x14280 nfsidl nfsio 57946 121300 0 0 3 0x14280 nfsidl nfsio 92358 378762 0 0 3 0x14280 nfsidl nfsio 67363 306979 0 0 3 0x14280 nfsidl nfsio 34917 77751 0 0 3 0x14280 nfsidl nfsio 64165 252507 0 0 3 0x14280 nfsidl nfsio 12222 162377 0 0 3 0x14280 nfsidl nfsio 10464 187464 0 0 3 0x14280 nfsidl nfsio 81356 441907 0 0 3 0x14280 nfsidl nfsio 37337 182894 0 0 3 0x14280 nfsidl nfsio 19366 87987 0 0 3 0x14280 nfsidl nfsio 98975 272061 0 0 3 0x14280 nfsidl nfsio 50341 491273 0 0 3 0x14280 nfsidl nfsio 16751 150085 0 0 3 0x14280 nfsidl nfsio 24770 410070 0 0 3 0x14200 bored sosplice 93065 523916 92609 0 3 0x82 piperd syz-executor.1 92609 37815 33124 0 3 0x82 kqread syz-fuzzer 92609 428107 33124 0 3 0x4000082 nanosleep syz-fuzzer 92609 513657 33124 0 3 0x4000082 thrsleep syz-fuzzer 92609 522183 33124 0 3 0x4000082 thrsleep syz-fuzzer 92609 114431 33124 0 3 0x4000082 thrsleep syz-fuzzer 92609 57748 33124 0 3 0x4000082 thrsleep syz-fuzzer 92609 436522 33124 0 3 0x4000082 thrsleep syz-fuzzer 92609 328567 33124 0 2 0x4000002 syz-fuzzer 33124 521569 64591 0 3 0x10008a pause ksh 64591 142557 93964 0 3 0x92 select sshd 93964 295458 1 0 3 0x80 select sshd 96948 145732 20577 74 3 0x100092 bpf pflogd 20577 347511 1 0 3 0x80 netio pflogd 55156 386784 37206 73 3 0x100090 kqread syslogd 37206 134662 1 0 3 0x100082 netio syslogd 70973 26738 1 77 3 0x100090 poll dhclient *12315 101579 1 0 7 0 dhclient 19226 183334 0 0 3 0x14200 bored smr 49619 202035 0 0 2 0x14200 zerothread 84253 324760 0 0 3 0x14200 aiodoned aiodoned 12516 479828 0 0 3 0x14200 syncer update 5910 201632 0 0 3 0x14200 cleaner cleaner 52987 150760 0 0 3 0x14200 reaper reaper 47127 298400 0 0 3 0x14200 pgdaemon pagedaemon 83250 196548 0 0 3 0x14200 bored crynlk 46550 23360 0 0 3 0x14200 bored crypto 1004 295232 0 0 3 0x40014200 acpi0 acpi0 91866 339088 0 0 3 0x40014200 idle1 3845 302862 0 0 3 0x14200 bored softnet 2019 363605 0 0 3 0x14200 bored systqmp 97265 281559 0 0 3 0x14200 bored systq 69619 12353 0 0 3 0x40014200 bored softclock 9871 140461 0 0 3 0x40014200 idle0 1 10550 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 12315 (dhclient) thread 0xffff800020ddcc38 (101579) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828ecbf8) #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 9554 6681K 7699K 78643K 13828 0 pcb 13 8K 8K 78643K 226 0 rtable 129 15K 17K 78643K 497 0 ifaddr 91 17K 17K 78643K 189 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 57 0 ioctlops 0 0K 4K 78643K 1588 0 iov 0 0K 16K 78643K 85 0 mount 1 1K 1K 78643K 1 0 vnodes 1225 77K 77K 78643K 2082 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 17 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 221 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 885 0 sigio 0 0K 0K 78643K 95 0 proc 62 63K 83K 78643K 564 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 133 0 in_multi 83 4K 4K 78643K 211 0 ether_multi 1 0K 0K 78643K 12 0 mrt 0 0K 0K 78643K 6 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 61 281K 281K 78643K 61 0 exec 0 0K 1K 78643K 291 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 190 63K 64K 78643K 3841 0 UVM aobj 38 7K 7K 78643K 43 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 138 0 NDP 14 0K 0K 78643K 44 0 temp 146 3874K 3939K 78643K 16874 0 kqueue 3 4K 12K 78643K 36 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 13 0 6 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 39 0 37 1 0 1 1 0 8 0 rtentry 112 93 0 47 2 0 2 2 0 8 0 unpcb 120 401 0 391 1 0 1 1 0 8 0 syncache 264 11 0 11 5 4 1 1 0 8 1 tcpqe 32 35 0 35 3 3 0 1 0 8 0 tcpcb 544 304 0 296 5 3 2 3 0 8 0 inpcb 296 963 0 954 3 1 2 2 0 8 1 rttmr 72 2 0 2 1 0 1 1 0 8 1 nd6 48 31 0 24 1 0 1 1 0 8 0 pkpcb 40 8 0 8 4 3 1 1 0 8 1 ppxss 1136 3 0 3 2 2 0 1 0 8 0 pfstscr 40 4 0 4 1 1 0 1 0 8 0 pffrag 232 12 0 11 5 4 1 1 0 482 0 pffrnode 88 12 0 11 5 4 1 1 0 8 0 pffrent 40 201 0 200 4 3 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 44 0 37 2 1 1 1 0 8 0 pfstitem 24 58 0 47 1 0 1 1 0 8 0 pfstkey 112 60 0 49 2 0 2 2 0 8 0 pfstate 328 60 0 49 4 0 4 4 0 8 0 pfrule 1360 40 0 29 3 1 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 286 0 92 15 2 13 13 0 8 0 art_table 32 287 0 92 2 0 2 2 0 8 0 art_node 16 92 0 50 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 217 0 207 1 0 1 1 0 8 0 shmpl 112 40 0 5 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2581 0 1182 88 0 88 88 0 8 0 ffsino 272 2581 0 1182 94 0 94 94 0 8 0 nchpl 144 4220 0 2620 60 0 60 60 0 8 0 uvmvnodes 72 3371 0 0 62 0 62 62 0 8 0 vnodes 208 3371 0 0 178 0 178 178 0 8 0 namei 1024 12768 0 12768 2 1 1 1 0 8 1 percpumem 16 39 0 7 1 0 1 1 0 8 0 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 560 8 0 4 1 0 1 1 0 8 0 pfiaddrpl 120 17 0 12 2 1 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 11658 0 11658 8 7 1 5 0 8 1 plimitpl 152 89 0 81 1 0 1 1 0 8 0 sigapl 424 1118 0 1065 7 0 7 7 0 8 1 futexpl 56 13450 0 13450 3 2 1 1 0 8 1 knotepl 112 123 0 103 1 0 1 1 0 8 0 kqueuepl 144 94 0 89 1 0 1 1 0 8 0 pipepl 304 187 0 176 6 5 1 2 0 8 0 fdescpl 496 1080 0 1064 3 0 3 3 0 8 0 filepl 152 6881 0 6778 5 0 5 5 0 8 0 lockfpl 104 176 0 175 1 0 1 1 0 8 0 lockfspl 48 63 0 62 1 0 1 1 0 8 0 sessionpl 112 21 0 10 1 0 1 1 0 8 0 pgrppl 48 26 0 15 1 0 1 1 0 8 0 ucredpl 96 1062 0 1053 1 0 1 1 0 8 0 zombiepl 144 1065 0 1065 1 0 1 1 0 8 1 processpl 992 1118 0 1065 7 0 7 7 0 8 0 procpl 624 2894 0 2833 8 2 6 6 0 8 1 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 11 0 11 3 2 1 1 0 8 1 sockpl 400 1417 0 1396 7 3 4 5 0 8 1 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 10 0 0 1 0 1 1 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 7 0 0 1 0 1 1 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 174 0 0 21 0 21 21 0 8 1 mtagpl 96 285 0 0 7 0 7 7 0 8 0 mbufpl 256 774 0 0 44 0 44 44 0 8 0 bufpl 280 4889 0 129 340 0 340 340 0 8 0 anonpl 16 133247 0 114436 112 24 88 91 0 124 8 amapchunkpl 152 6622 0 6316 22 5 17 17 0 158 4 amappl16 192 5241 0 4334 79 25 54 56 0 8 8 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 137 0 135 1 0 1 1 0 8 0 amappl13 168 614 0 609 1 0 1 1 0 8 0 amappl12 160 201 0 194 1 0 1 1 0 8 0 amappl11 152 195 0 180 1 0 1 1 0 8 0 amappl10 144 22 0 18 1 0 1 1 0 8 0 amappl9 136 364 0 363 1 0 1 1 0 8 0 amappl8 128 408 0 358 2 0 2 2 0 8 0 amappl7 120 135 0 122 1 0 1 1 0 8 0 amappl6 112 32 0 26 1 0 1 1 0 8 0 amappl5 104 671 0 653 1 0 1 1 0 8 0 amappl4 96 1244 0 1213 1 0 1 1 0 8 0 amappl3 88 457 0 449 1 0 1 1 0 8 0 amappl2 80 7542 0 7474 2 0 2 2 0 8 0 amappl1 72 41440 0 40994 24 14 10 18 0 8 0 amappl 80 3221 0 3135 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 42 0 5 1 0 1 1 0 8 0 uaddrrnd 24 1088 0 1068 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1088 0 1068 1 0 1 1 0 8 0 vmmpekpl 168 11568 0 11529 3 0 3 3 0 8 0 vmmpepl 168 147385 0 145213 185 59 126 131 0 357 25 vmsppl 368 1087 0 1068 2 0 2 2 0 8 0 pdppl 4096 2183 0 2140 7 1 6 6 0 8 0 pvpl 32 387873 0 366243 248 48 200 214 0 265 20 pmappl 232 1087 0 1068 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 310 0 15 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(ffffffff823ea3ed) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f66a000,0,ffff800020e1e3b8,0,0,ffff800020e1e2c4) at soreceive+0x1727 soo_read(fffffd807a9f3558,ffff800020e1e3b8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1e3b8,0,ffff800020e1e4a0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1e450,ffff800020e1e4a0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e520) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e520) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc4700, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020d70ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 clock_gettime(ffff800020e37c50,3,ffff800020dfec58) at clock_gettime+0x15 sys/kern/kern_time.c:110 sys_clock_gettime(ffff800020e37c50,ffff800020dfecc0,ffff800020dfed10) at sys_clock_gettime+0x4c sys/kern/kern_time.c:165 syscall(ffff800020dfed90) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020dfed90) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe2330, count: 8 ddb{1}> trace x86_ipi_db(ffff800020d70ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 clock_gettime(ffff800020e37c50,3,ffff800020dfec58) at clock_gettime+0x15 sys/kern/kern_time.c:110 sys_clock_gettime(ffff800020e37c50,ffff800020dfecc0,ffff800020dfed10) at sys_clock_gettime+0x4c sys/kern/kern_time.c:165 syscall(ffff800020dfed90) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020dfed90) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe2330, count: -7