panic: receive 1a: so 0xfffffd806f6804b0, so_type 3, m 0xfffffd806b895800, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 345135 37634 0 0 0 1 syz-executor.0 *129222 53879 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823ec694) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6804b0,0,ffff800020e1ebd8,0,0,ffff800020e1eae4) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd8074ff6260,ffff800020e1ebd8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc008,6,ffff800020e1ebd8,0,ffff800020e1ecc0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc008,ffff800020e1ec70,ffff800020e1ecc0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ed40) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ed40) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd4d20, 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 0xfffffd806f6804b0, so_type 3, m 0xfffffd806b895800, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823ec694) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6804b0,0,ffff800020e1ebd8,0,0,ffff800020e1eae4) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd8074ff6260,ffff800020e1ebd8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc008,6,ffff800020e1ebd8,0,ffff800020e1ecc0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc008,ffff800020e1ec70,ffff800020e1ecc0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ed40) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ed40) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd4d20, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e920 rbx 0xffff800020e1e9d0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff813e22af kprintf+0x16f r9 0x1 r10 0x2 r11 0x559c46d2deff26fd r12 0x3000000008 r13 0xffff800020e1e930 r14 0x100 r15 0x1 rip 0xffffffff820f5a48 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e910 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=129222 stat=onproc flags process=0 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddd118,0xffff800020ddc4f8 process=0xffff800020df0bb0 user=0xffff800020e19000, vmspace=0xfffffd807efff450 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 37634 345135 36006 0 7 0 syz-executor.0 37634 34580 36006 0 3 0x4000080 fsleep syz-executor.0 8897 354429 42122 0 2 0 syz-executor.1 8897 160291 42122 0 2 0x4000000 syz-executor.1 42122 129982 72163 0 3 0x82 nanosleep syz-executor.1 36006 410189 72163 0 3 0x82 nanosleep syz-executor.0 72163 293905 68145 0 3 0x82 thrsleep syz-fuzzer 72163 86729 68145 0 3 0x4000082 nanosleep syz-fuzzer 72163 360037 68145 0 3 0x4000082 thrsleep syz-fuzzer 72163 91173 68145 0 3 0x4000082 thrsleep syz-fuzzer 72163 284183 68145 0 3 0x4000082 thrsleep syz-fuzzer 72163 408253 68145 0 3 0x4000082 thrsleep syz-fuzzer 72163 470003 68145 0 3 0x4000082 thrsleep syz-fuzzer 72163 362365 68145 0 3 0x4000082 thrsleep syz-fuzzer 72163 153358 68145 0 3 0x4000082 thrsleep syz-fuzzer 72163 504586 68145 0 3 0x4000082 kqread syz-fuzzer 68145 203002 35000 0 3 0x10008a pause ksh 35000 111904 40180 0 3 0x92 select sshd 7616 323493 1 0 3 0x100083 ttyin getty 40180 262826 1 0 3 0x80 select sshd 56498 119926 17662 74 3 0x100092 bpf pflogd 17662 447338 1 0 3 0x80 netio pflogd 31627 430831 31233 73 3 0x100090 kqread syslogd 31233 322002 1 0 3 0x100082 netio syslogd 21421 200900 1 77 3 0x100090 poll dhclient *53879 129222 1 0 7 0 dhclient 60882 311915 0 0 3 0x14200 bored smr 35724 163814 0 0 2 0x14200 zerothread 83825 405617 0 0 3 0x14200 aiodoned aiodoned 17199 178260 0 0 3 0x14200 syncer update 87351 48619 0 0 3 0x14200 cleaner cleaner 56906 322281 0 0 3 0x14200 reaper reaper 31430 516167 0 0 3 0x14200 pgdaemon pagedaemon 6454 352754 0 0 3 0x14200 bored crynlk 69957 367550 0 0 3 0x14200 bored crypto 71903 371301 0 0 3 0x40014200 acpi0 acpi0 52828 428287 0 0 3 0x40014200 idle1 35188 140769 0 0 3 0x14200 bored softnet 83166 348729 0 0 3 0x14200 bored systqmp 24964 153859 0 0 3 0x14200 bored systq 39455 149374 0 0 3 0x40014200 bored softclock 60723 421017 0 0 3 0x40014200 idle0 1 503679 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 53879 (dhclient) thread 0xffff800020ddc008 (129222) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828dd5e0) #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 9487 6467K 6665K 78643K 10621 0 pcb 13 8K 8K 78643K 17 0 rtable 106 3K 4K 78643K 212 0 ifaddr 51 11K 11K 78643K 56 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1475 0 iov 0 0K 2K 78643K 3 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1235 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 6 0K 0K 78643K 8 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 57 0 sigio 0 0K 0K 78643K 4 0 proc 59 63K 83K 78643K 441 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 3 0 in_multi 40 2K 2K 78643K 45 0 ether_multi 1 0K 0K 78643K 3 0 mrt 0 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 207 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 111 22K 22K 78643K 1073 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 7 0K 0K 78643K 11 0 temp 71 3856K 3919K 78643K 2088 0 kqueue 3 4K 8K 78643K 5 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 31 0 21 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 22 0 18 1 0 1 1 0 8 0 inpcb 296 70 0 63 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 pfrktable 1344 4 0 4 1 0 1 1 0 8 1 pfstitem 24 11 0 0 1 0 1 1 0 8 0 pfstkey 112 11 0 0 1 0 1 1 0 8 0 pfstate 328 11 0 0 1 0 1 1 0 8 0 pfrule 1360 23 0 18 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 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 4 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1458 0 50 89 0 89 89 0 8 0 ffsino 272 1458 0 50 94 0 94 94 0 8 0 nchpl 144 1709 0 97 60 0 60 60 0 8 0 uvmvnodes 72 1512 0 0 28 0 28 28 0 8 0 vnodes 208 1512 0 0 80 0 80 80 0 8 0 namei 1024 4564 0 4564 1 0 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 2 0 2 1 0 1 1 0 8 1 scxspl 192 4895 0 4895 2 1 1 2 0 8 1 plimitpl 152 19 0 11 1 0 1 1 0 8 0 sigapl 424 272 0 240 4 0 4 4 0 8 0 futexpl 56 440 0 439 1 0 1 1 0 8 0 knotepl 112 63 0 44 1 0 1 1 0 8 0 kqueuepl 144 8 0 6 1 0 1 1 0 8 0 pipepl 304 77 0 67 1 0 1 1 0 8 0 fdescpl 496 257 0 240 3 0 3 3 0 8 0 filepl 152 1318 0 1215 5 0 5 5 0 8 1 lockfpl 104 16 0 15 1 0 1 1 0 8 0 lockfspl 48 6 0 5 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 85 0 76 1 0 1 1 0 8 0 zombiepl 144 240 0 240 1 0 1 1 0 8 1 processpl 992 272 0 240 5 0 5 5 0 8 1 procpl 624 326 0 283 4 0 4 4 0 8 0 sockpl 400 120 0 101 3 0 3 3 0 8 1 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 169 0 0 21 0 21 21 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 169 0 0 11 0 11 11 0 8 0 bufpl 280 3388 0 131 233 0 233 233 0 8 0 anonpl 16 40039 0 23973 66 1 65 65 0 124 0 amapchunkpl 152 1128 0 975 9 0 9 9 0 158 2 amappl16 192 1084 0 220 44 0 44 44 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 26 0 21 1 0 1 1 0 8 0 amappl13 168 37 0 33 1 0 1 1 0 8 0 amappl12 160 5 0 5 1 1 0 1 0 8 0 amappl11 152 56 0 41 1 0 1 1 0 8 0 amappl10 144 29 0 24 1 0 1 1 0 8 0 amappl9 136 403 0 399 1 0 1 1 0 8 0 amappl8 128 316 0 294 1 0 1 1 0 8 0 amappl7 120 127 0 115 1 0 1 1 0 8 0 amappl6 112 26 0 20 1 0 1 1 0 8 0 amappl5 104 152 0 135 1 0 1 1 0 8 0 amappl4 96 485 0 457 1 0 1 1 0 8 0 amappl3 88 99 0 93 1 0 1 1 0 8 0 amappl2 80 1073 0 996 2 0 2 2 0 8 0 amappl1 72 15880 0 15417 23 5 18 18 0 8 8 amappl 80 574 0 527 1 0 1 1 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 257 0 240 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 257 0 240 1 0 1 1 0 8 0 vmmpekpl 168 6124 0 6088 2 0 2 2 0 8 0 vmmpepl 168 38882 0 36758 118 3 115 115 0 357 22 vmsppl 368 256 0 240 2 0 2 2 0 8 0 pdppl 4096 521 0 480 6 0 6 6 0 8 0 pvpl 32 140571 0 121303 156 0 156 156 0 265 0 pmappl 232 256 0 240 2 0 2 2 0 8 1 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 254 0 3 8 0 8 8 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(ffffffff823ec694) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6804b0,0,ffff800020e1ebd8,0,0,ffff800020e1eae4) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd8074ff6260,ffff800020e1ebd8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc008,6,ffff800020e1ebd8,0,ffff800020e1ecc0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc008,ffff800020e1ec70,ffff800020e1ecc0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1ed40) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1ed40) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd4d20, 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(ffffffff828dd3d8) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828dd3d8) at __mp_lock+0x127 sys/kern/kern_lock.c:147 uvm_map_inentry(ffff800020e38d58,ffff800020e38dd0,449da6980ea,ffffffff8241b184,ffffffff81a2d8c0,1d) at uvm_map_inentry+0xbe sys/uvm/uvm_map.c:1890 syscall(ffff8000231004e0) at syscall+0x3dc mi_syscall sys/sys/syscall_mi.h:87 [inline] syscall(ffff8000231004e0) at syscall+0x3dc sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe0fa0, 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(ffffffff828dd3d8) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828dd3d8) at __mp_lock+0x127 sys/kern/kern_lock.c:147 uvm_map_inentry(ffff800020e38d58,ffff800020e38dd0,449da6980ea,ffffffff8241b184,ffffffff81a2d8c0,1d) at uvm_map_inentry+0xbe sys/uvm/uvm_map.c:1890 syscall(ffff8000231004e0) at syscall+0x3dc mi_syscall sys/sys/syscall_mi.h:87 [inline] syscall(ffff8000231004e0) at syscall+0x3dc sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe0fa0, count: -7