panic: receive 3: so 0xfffffd806f66b000, so_type 3, m 0xfffffd80639d7f00, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 196392 21559 0 0 0x4000000 1 syz-executor.0 * 90504 5738 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e6e6e) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f66b000,0,ffff800020e1e2d8,0,0,ffff800020e1e1e4) at soreceive+0x1727 soo_read(fffffd80771f12f8,ffff800020e1e2d8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020dd6c60,6,ffff800020e1e2d8,0,ffff800020e1e3c0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020dd6c60,ffff800020e1e370,ffff800020e1e3c0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e440) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e440) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe4070, 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 0xfffffd806f66b000, so_type 3, m 0xfffffd80639d7f00, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e6e6e) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f66b000,0,ffff800020e1e2d8,0,0,ffff800020e1e1e4) at soreceive+0x1727 soo_read(fffffd80771f12f8,ffff800020e1e2d8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020dd6c60,6,ffff800020e1e2d8,0,ffff800020e1e3c0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020dd6c60,ffff800020e1e370,ffff800020e1e3c0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e440) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e440) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe4070, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e020 rbx 0xffff800020e1e0d0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffff800020e1dfe0 r9 0xffffffff82193d9f kprintf+0x16f r10 0x1 r11 0xc7b84d5641f6c39c r12 0x3000000008 r13 0xffff800020e1e030 r14 0x100 r15 0x1 rip 0xffffffff820d5aa8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e010 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=90504 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020dd64f8,0xffff800020dd6ee8 process=0xffff800020df0010 user=0xffff800020e19000, 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 21559 18685 76867 0 2 0 syz-executor.0 21559 196392 76867 0 7 0x4000000 syz-executor.0 15249 186388 0 0 3 0x14200 bored sosplice 35177 245146 14809 0 3 0x82 piperd syz-executor.1 76867 123177 14809 0 2 0x482 syz-executor.0 14809 44192 17473 0 3 0x82 kqread syz-fuzzer 14809 250446 17473 0 2 0x4000482 syz-fuzzer 14809 229179 17473 0 3 0x4000082 thrsleep syz-fuzzer 14809 36614 17473 0 3 0x4000082 thrsleep syz-fuzzer 14809 439011 17473 0 3 0x4000082 thrsleep syz-fuzzer 14809 192739 17473 0 3 0x4000082 thrsleep syz-fuzzer 14809 92531 17473 0 3 0x4000082 thrsleep syz-fuzzer 14809 51085 17473 0 2 0x4000002 syz-fuzzer 17473 442585 60206 0 3 0x10008a pause ksh 60206 361635 31790 0 3 0x92 select sshd 94049 403795 1 0 3 0x100083 ttyin getty 31790 17322 1 0 3 0x80 select sshd 38001 290826 9910 74 3 0x100092 bpf pflogd 9910 212148 1 0 3 0x80 netio pflogd 50672 174698 69542 73 3 0x100090 kqread syslogd 69542 272563 1 0 3 0x100082 netio syslogd 78226 249441 1 77 3 0x100090 poll dhclient * 5738 90504 1 0 7 0 dhclient 86428 461469 0 0 3 0x14200 bored smr 83846 351637 0 0 2 0x14200 zerothread 34947 476746 0 0 3 0x14200 aiodoned aiodoned 36984 425865 0 0 3 0x14200 syncer update 32399 81970 0 0 3 0x14200 cleaner cleaner 76775 225161 0 0 3 0x14200 reaper reaper 57190 348099 0 0 3 0x14200 pgdaemon pagedaemon 13981 374311 0 0 3 0x14200 bored crynlk 97723 93678 0 0 3 0x14200 bored crypto 88075 205095 0 0 3 0x40014200 acpi0 acpi0 71583 9570 0 0 3 0x40014200 idle1 96769 3811 0 0 3 0x14200 bored softnet 11140 459576 0 0 3 0x14200 bored systqmp 42684 121726 0 0 3 0x14200 bored systq 52057 433681 0 0 3 0x40014200 bored softclock 57354 513991 0 0 3 0x40014200 idle0 1 128391 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 5738 (dhclient) thread 0xffff800020dd6c60 (90504) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828d0898) #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 9518 6424K 7438K 78643K 13140 0 pcb 13 8K 8K 78643K 97 0 rtable 131 8K 12K 78643K 488 0 ifaddr 96 19K 19K 78643K 181 0 sysctl 2 0K 0K 78643K 2 0 counters 45 34K 34K 78643K 53 0 ioctlops 0 0K 4K 78643K 1596 0 iov 0 0K 24K 78643K 51 0 mount 1 1K 1K 78643K 1 0 vnodes 1230 77K 78K 78643K 1872 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 12 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 172 0 dirhash 9 1K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 655 0 sigio 0 0K 0K 78643K 11 0 proc 62 63K 95K 78643K 490 0 subproc 32 2K 2K 78643K 38 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 58 0 in_multi 81 3K 3K 78643K 169 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 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 232 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 165 58K 60K 78643K 2975 0 UVM aobj 28 4K 4K 78643K 32 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 71 0 NDP 13 0K 0K 78643K 37 0 temp 146 3890K 3954K 78643K 11329 0 kqueue 3 4K 10K 78643K 16 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 88 39 0 37 1 0 1 1 0 8 0 rtentry 112 69 0 23 2 0 2 2 0 8 0 unpcb 120 293 0 282 1 0 1 1 0 8 0 syncache 272 6 0 6 2 2 0 1 0 8 0 tcpqe 32 216 0 216 1 1 0 1 0 8 0 tcpcb 592 167 0 161 4 3 1 2 0 8 0 inpcb 296 613 0 606 7 5 2 2 0 8 1 rttmr 72 2 0 2 1 1 0 1 0 8 0 nd6 48 24 0 17 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 pffrag 232 5 0 4 3 2 1 1 0 482 0 pffrnode 88 5 0 4 3 2 1 1 0 8 0 pffrent 40 10 0 9 3 2 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 84 0 75 2 0 2 2 0 8 1 pfstitem 24 17 0 13 1 0 1 1 0 8 0 pfstkey 112 17 0 13 1 0 1 1 0 8 0 pfstate 328 16 0 13 2 0 2 2 0 8 0 pfrule 1360 48 0 30 4 2 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 203 0 14 13 1 12 13 0 8 0 art_table 32 204 0 14 2 0 2 2 0 8 0 art_node 16 68 0 27 1 0 1 1 0 8 0 sysvmsgpl 40 43 0 16 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 157 0 147 1 0 1 1 0 8 0 shmpl 112 29 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 10 3 1 2 3 0 8 0 dino2pl 256 2224 0 829 88 0 88 88 0 8 0 ffsino 272 2224 0 829 95 1 94 94 0 8 0 nchpl 144 3628 0 2020 60 0 60 60 0 8 0 uvmvnodes 72 2848 0 0 52 0 52 52 0 8 0 vnodes 208 2848 0 0 150 0 150 150 0 8 0 namei 1024 9935 0 9935 3 2 1 1 0 8 1 percpumem 16 37 0 4 1 0 1 1 0 8 0 vcpupl 1984 6 0 0 1 0 1 1 0 8 0 vmpool 560 8 0 2 1 0 1 1 0 8 0 pfiaddrpl 120 30 0 24 4 3 1 1 0 8 0 scsiplug 72 2 0 2 2 1 1 1 0 8 1 scxspl 200 9428 0 9428 9 8 1 7 0 8 1 plimitpl 152 69 0 61 1 0 1 1 0 8 0 sigapl 424 872 0 840 4 0 4 4 0 8 0 futexpl 56 10416 0 10416 2 1 1 1 0 8 1 knotepl 112 79 0 59 1 0 1 1 0 8 0 kqueuepl 152 59 0 55 1 0 1 1 0 8 0 pipepl 304 180 0 169 4 2 2 2 0 8 1 fdescpl 496 855 0 839 3 0 3 3 0 8 0 filepl 152 5118 0 5014 7 2 5 6 0 8 1 lockfpl 104 110 0 109 1 0 1 1 0 8 0 lockfspl 48 43 0 42 1 0 1 1 0 8 0 sessionpl 120 18 0 7 1 0 1 1 0 8 0 pgrppl 48 22 0 11 1 0 1 1 0 8 0 ucredpl 96 472 0 463 1 0 1 1 0 8 0 zombiepl 144 840 0 840 2 1 1 1 0 8 1 processpl 1008 872 0 840 6 1 5 5 0 8 0 procpl 632 2144 0 2104 5 1 4 4 0 8 0 sosppl 144 4 0 4 2 2 0 1 0 8 0 sockpl 400 948 0 928 6 2 4 4 0 8 1 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 7 0 0 1 0 1 1 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 217 0 0 27 0 27 27 0 8 0 mtagpl 96 328 0 0 8 0 8 8 0 8 0 mbufpl 256 905 0 0 55 0 55 55 0 8 0 bufpl 280 4209 0 127 292 0 292 292 0 8 0 anonpl 16 97440 0 79228 105 23 82 90 0 124 8 amapchunkpl 152 4640 0 4372 21 5 16 16 0 158 4 amappl16 192 4098 0 3223 66 22 44 56 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 4 0 2 1 0 1 1 0 8 0 amappl13 168 492 0 487 1 0 1 1 0 8 0 amappl12 160 184 0 177 1 0 1 1 0 8 0 amappl11 152 67 0 51 1 0 1 1 0 8 0 amappl10 144 29 0 23 1 0 1 1 0 8 0 amappl9 136 361 0 360 1 0 1 1 0 8 0 amappl8 128 344 0 306 2 0 2 2 0 8 0 amappl7 120 116 0 103 1 0 1 1 0 8 0 amappl6 112 33 0 26 1 0 1 1 0 8 0 amappl5 104 923 0 907 1 0 1 1 0 8 0 amappl4 96 950 0 920 1 0 1 1 0 8 0 amappl3 88 140 0 132 1 0 1 1 0 8 0 amappl2 80 5924 0 5856 2 0 2 2 0 8 0 amappl1 72 33262 0 32816 23 12 11 18 0 8 0 amappl 80 2433 0 2359 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 31 0 4 1 0 1 1 0 8 0 uaddrrnd 24 863 0 841 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 863 0 841 1 0 1 1 0 8 0 vmmpekpl 168 9559 0 9527 2 0 2 2 0 8 0 vmmpepl 168 114997 0 112912 126 33 93 114 0 357 1 vmsppl 368 862 0 841 3 0 3 3 0 8 1 pdppl 4096 1733 0 1688 8 2 6 6 0 8 0 pvpl 32 296877 0 275487 230 36 194 212 0 265 20 pmappl 232 862 0 841 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 314 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(ffffffff823e6e6e) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f66b000,0,ffff800020e1e2d8,0,0,ffff800020e1e1e4) at soreceive+0x1727 soo_read(fffffd80771f12f8,ffff800020e1e2d8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020dd6c60,6,ffff800020e1e2d8,0,ffff800020e1e3c0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020dd6c60,ffff800020e1e370,ffff800020e1e3c0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e440) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e440) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe4070, 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 __mp_lock(ffffffff828d0690) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828d0690) at __mp_lock+0x127 sys/kern/kern_lock.c:147 sys_futex(ffff800020ebe020,ffff800023f0d520,ffff800023f0d570) at sys_futex+0xf6 sys/kern/sys_futex.c:109 syscall(ffff800023f0d5f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023f0d5f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2811f2ca7a0, 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 __mp_lock(ffffffff828d0690) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828d0690) at __mp_lock+0x127 sys/kern/kern_lock.c:147 sys_futex(ffff800020ebe020,ffff800023f0d520,ffff800023f0d570) at sys_futex+0xf6 sys/kern/sys_futex.c:109 syscall(ffff800023f0d5f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023f0d5f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2811f2ca7a0, count: -7