panic: receive 1a: so 0xfffffd806f68d4b0, so_type 3, m 0xfffffd806f11bf00, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 184930 60736 0 0x2 0 0 syz-fuzzer *167458 26948 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823eae80) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68d4b0,0,ffff800020e1e648,0,0,ffff800020e1e554) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd8079bf7098,ffff800020e1e648,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcea8,6,ffff800020e1e648,0,ffff800020e1e730) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcea8,ffff800020e1e6e0,ffff800020e1e730) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e7b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e7b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdf120, 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 0xfffffd806f68d4b0, so_type 3, m 0xfffffd806f11bf00, m_type 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823eae80) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68d4b0,0,ffff800020e1e648,0,0,ffff800020e1e554) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd8079bf7098,ffff800020e1e648,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcea8,6,ffff800020e1e648,0,ffff800020e1e730) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcea8,ffff800020e1e6e0,ffff800020e1e730) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e7b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e7b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdf120, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e390 rbx 0xffff800020e1e440 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff817fa50f kprintf+0x16f r9 0x1 r10 0x2 r11 0xdc490b347f0fc264 r12 0x3000000008 r13 0xffff800020e1e3a0 r14 0x100 r15 0x1 rip 0xffffffff81ed2668 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e380 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=167458 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddc758,0xffff800020ddd398 process=0xffff800020df0bb0 user=0xffff800020e19000, vmspace=0xfffffd807f000170 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 15904 258327 49155 0 2 0 syz-executor.1 15904 506442 49155 0 2 0x4000080 syz-executor.1 49155 21552 60736 0 3 0x82 nanosleep syz-executor.1 21806 186384 0 0 3 0x14200 bored sosplice 2017 424396 1 0 3 0x100083 ttyopn getty 18335 136881 60736 0 3 0x82 piperd syz-executor.0 60736 184930 33543 0 7 0x2 syz-fuzzer 60736 339346 33543 0 3 0x4000082 nanosleep syz-fuzzer 60736 163500 33543 0 3 0x4000082 thrsleep syz-fuzzer 60736 160560 33543 0 3 0x4000082 thrsleep syz-fuzzer 60736 322797 33543 0 3 0x4000082 thrsleep syz-fuzzer 60736 32024 33543 0 3 0x4000082 thrsleep syz-fuzzer 60736 13217 33543 0 3 0x4000082 thrsleep syz-fuzzer 60736 46435 33543 0 3 0x4000082 thrsleep syz-fuzzer 60736 149819 33543 0 3 0x4000082 kqread syz-fuzzer 60736 294487 33543 0 3 0x4000082 thrsleep syz-fuzzer 60736 459970 33543 0 3 0x4000082 thrsleep syz-fuzzer 33543 368827 50801 0 3 0x10008a pause ksh 50801 382519 13687 0 3 0x92 select sshd 13687 496578 1 0 3 0x80 select sshd 34039 347798 41312 74 3 0x100092 bpf pflogd 41312 210287 1 0 3 0x80 netio pflogd 75398 135624 34882 73 3 0x100090 kqread syslogd 34882 299278 1 0 3 0x100082 netio syslogd 64344 235715 1 77 3 0x100090 poll dhclient *26948 167458 1 0 7 0 dhclient 76357 319176 0 0 3 0x14200 bored smr 46836 439281 0 0 2 0x14200 zerothread 77859 31671 0 0 3 0x14200 aiodoned aiodoned 70753 173079 0 0 3 0x14200 syncer update 9229 374712 0 0 3 0x14200 cleaner cleaner 85816 68688 0 0 3 0x14200 reaper reaper 65949 163272 0 0 3 0x14200 pgdaemon pagedaemon 13372 103645 0 0 3 0x14200 bored crynlk 62192 413436 0 0 3 0x14200 bored crypto 96854 80452 0 0 3 0x40014200 acpi0 acpi0 35154 349244 0 0 3 0x40014200 idle1 42648 312143 0 0 3 0x14200 bored softnet 9961 153682 0 0 3 0x14200 bored systqmp 91955 377259 0 0 3 0x14200 bored systq 1832 366136 0 0 3 0x40014200 bored softclock 11354 332586 0 0 3 0x40014200 idle0 1 122182 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 26948 (dhclient) thread 0xffff800020ddcea8 (167458) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828b55a0) #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9510 6413K 14595K 78643K 10810 0 pcb 13 8K 8K 78643K 59 0 rtable 104 3K 6K 78643K 409 0 ifaddr 70 14K 14K 78643K 123 0 counters 45 34K 34K 78643K 47 0 ioctlops 0 0K 4K 78643K 1528 0 iov 0 0K 16K 78643K 18 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1324 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 8 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 22 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 250 0 sigio 0 0K 0K 78643K 6 0 proc 61 63K 95K 78643K 511 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 22 0 in_multi 46 2K 2K 78643K 119 0 ether_multi 1 0K 0K 78643K 7 0 mrt 0 0K 0K 78643K 2 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 247 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 120 39K 39K 78643K 1764 0 UVM aobj 18 2K 2K 78643K 18 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 29 0 temp 108 3860K 3924K 78643K 4875 0 kqueue 3 4K 8K 78643K 9 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 9 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 37 0 35 1 0 1 1 0 8 0 rtentry 112 72 0 29 2 0 2 2 0 8 0 unpcb 120 153 0 143 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 23 0 23 1 1 0 1 0 8 0 tcpcb 544 91 0 87 1 0 1 1 0 8 0 inpcb 296 537 0 527 5 3 2 2 0 8 1 nd6 48 21 0 16 1 0 1 1 0 8 0 pffrag 232 7 0 6 2 1 1 1 0 482 0 pffrnode 88 7 0 6 2 1 1 1 0 8 0 pffrent 40 272 0 271 2 1 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 53 0 53 4 4 0 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfqueue 264 2 0 2 1 1 0 1 0 8 0 pfstitem 24 40 0 10 1 0 1 1 0 8 0 pfstkey 112 40 0 10 1 0 1 1 0 8 0 pfstate 328 40 0 10 3 0 3 3 0 8 0 pfrule 1360 35 0 31 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 267 0 84 14 2 12 13 0 8 0 art_table 32 268 0 84 2 0 2 2 0 8 0 art_node 16 71 0 31 1 0 1 1 0 8 0 sysvmsgpl 40 21 0 10 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 18 0 8 1 0 1 1 0 8 0 shmpl 112 15 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1705 0 299 89 1 88 89 0 8 0 ffsino 272 1705 0 299 94 0 94 94 0 8 0 nchpl 144 2227 0 630 60 0 60 60 0 8 0 uvmvnodes 72 1822 0 0 34 0 34 34 0 8 0 vnodes 208 1822 0 0 96 0 96 96 0 8 0 namei 1024 6157 0 6157 4 3 1 1 0 8 1 percpumem 16 34 0 1 1 0 1 1 0 8 0 vcpupl 1984 1 0 0 1 0 1 1 0 8 0 vmpool 560 3 0 2 1 0 1 1 0 8 0 pfiaddrpl 120 16 0 16 4 4 0 1 0 8 0 scxspl 192 7104 0 7104 10 9 1 7 0 8 1 plimitpl 152 31 0 23 1 0 1 1 0 8 0 sigapl 424 464 0 432 4 0 4 4 0 8 0 futexpl 56 3408 0 3408 4 3 1 1 0 8 1 knotepl 112 80 0 61 1 0 1 1 0 8 0 kqueuepl 144 46 0 43 1 0 1 1 0 8 0 pipepl 304 128 0 118 4 3 1 3 0 8 0 fdescpl 496 448 0 432 3 0 3 3 0 8 0 filepl 152 2684 0 2582 7 2 5 7 0 8 1 lockfpl 104 58 0 57 1 0 1 1 0 8 0 lockfspl 48 13 0 12 1 0 1 1 0 8 0 sessionpl 112 20 0 9 1 0 1 1 0 8 0 pgrppl 48 26 0 15 1 0 1 1 0 8 0 ucredpl 96 222 0 213 1 0 1 1 0 8 0 zombiepl 144 432 0 432 1 0 1 1 0 8 1 processpl 992 464 0 432 5 0 5 5 0 8 0 procpl 624 939 0 896 4 0 4 4 0 8 0 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 400 727 0 707 8 5 3 4 0 8 1 mcl64k 65536 9 0 0 2 0 2 2 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 167 0 0 20 0 20 20 0 8 0 mtagpl 96 7 0 0 1 0 1 1 0 8 0 mbufpl 256 313 0 0 17 0 17 17 0 8 0 bufpl 280 3698 0 134 255 0 255 255 0 8 0 anonpl 16 69548 0 53293 108 17 91 101 0 124 22 amapchunkpl 152 2532 0 2378 12 5 7 10 0 158 0 amappl16 192 2429 0 1521 79 33 46 70 0 8 0 amappl15 184 129 0 126 2 1 1 1 0 8 0 amappl14 176 97 0 94 1 0 1 1 0 8 0 amappl13 168 36 0 33 1 0 1 1 0 8 0 amappl12 160 5 0 4 2 1 1 1 0 8 0 amappl11 152 130 0 115 1 0 1 1 0 8 0 amappl10 144 152 0 141 1 0 1 1 0 8 0 amappl9 136 385 0 383 1 0 1 1 0 8 0 amappl8 128 372 0 340 2 0 2 2 0 8 0 amappl7 120 213 0 200 1 0 1 1 0 8 0 amappl6 112 99 0 94 1 0 1 1 0 8 0 amappl5 104 274 0 256 1 0 1 1 0 8 0 amappl4 96 582 0 552 1 0 1 1 0 8 0 amappl3 88 108 0 102 1 0 1 1 0 8 0 amappl2 80 2608 0 2536 2 0 2 2 0 8 0 amappl1 72 19943 0 19501 23 13 10 18 0 8 0 amappl 80 1211 0 1165 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 17 0 0 1 0 1 1 0 8 0 uaddrrnd 24 451 0 434 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 451 0 434 1 0 1 1 0 8 0 vmmpekpl 168 7663 0 7624 2 0 2 2 0 8 0 vmmpepl 168 64138 0 62056 148 28 120 126 0 357 26 vmsppl 368 450 0 434 2 0 2 2 0 8 0 pdppl 4096 909 0 869 6 0 6 6 0 8 0 pvpl 32 213451 0 194049 246 18 228 238 0 265 64 pmappl 232 450 0 434 3 2 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 271 0 14 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82759ff0) 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(ffffffff828b5398) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828b5398) at __mp_lock+0x127 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f end of kernel end trace frame: 0xc002eccd48, count: 9 ddb{0}> trace x86_ipi_db(ffffffff82759ff0) 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(ffffffff828b5398) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828b5398) at __mp_lock+0x127 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f end of kernel end trace frame: 0xc002eccd48, count: -6 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823eae80) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68d4b0,0,ffff800020e1e648,0,0,ffff800020e1e554) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd8079bf7098,ffff800020e1e648,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcea8,6,ffff800020e1e648,0,ffff800020e1e730) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcea8,ffff800020e1e6e0,ffff800020e1e730) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e7b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e7b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdf120, count: 7 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823eae80) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68d4b0,0,ffff800020e1e648,0,0,ffff800020e1e554) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd8079bf7098,ffff800020e1e648,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcea8,6,ffff800020e1e648,0,ffff800020e1e730) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcea8,ffff800020e1e6e0,ffff800020e1e730) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e7b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e7b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdf120, count: -8