panic: receive 1: so 0xfffffd806f67f4b0, so_type 3, sb_cc 3520 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 499359 65621 0 0 0 1 syz-executor.0 *350351 66340 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823daae0) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f67f4b0,0,ffff800020e1dcc8,0,0,ffff800020e1dbd4) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd807a7f8260,ffff800020e1dcc8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc4e8,6,ffff800020e1dcc8,0,ffff800020e1ddb0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc4e8,ffff800020e1dd60,ffff800020e1ddb0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1de30) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1de30) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe2500, 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 1: so 0xfffffd806f67f4b0, so_type 3, sb_cc 3520 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823daae0) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f67f4b0,0,ffff800020e1dcc8,0,0,ffff800020e1dbd4) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd807a7f8260,ffff800020e1dcc8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc4e8,6,ffff800020e1dcc8,0,ffff800020e1ddb0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc4e8,ffff800020e1dd60,ffff800020e1ddb0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1de30) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1de30) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe2500, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1da10 rbx 0xffff800020e1dac0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff821bf62f kprintf+0x16f r9 0x1 r10 0x2 r11 0x961b233aafda889 r12 0x3000000008 r13 0xffff800020e1da20 r14 0x100 r15 0x1 rip 0xffffffff81885bb8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1da00 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=350351 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddcc38,0xffff800020ddceb8 process=0xffff800020df0010 user=0xffff800020e18000, vmspace=0xfffffd807efff450 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 65621 499359 62936 0 7 0 syz-executor.0 65621 314169 62936 0 3 0x4000080 fsleep syz-executor.0 68316 496669 12015 0 2 0 syz-executor.1 68316 68701 12015 0 3 0x4000080 fsleep syz-executor.1 68316 114192 12015 0 3 0x4000080 fsleep syz-executor.1 62936 114855 52157 0 3 0x82 nanosleep syz-executor.0 20639 186840 0 0 3 0x14280 nfsidl nfsio 72936 430770 0 0 3 0x14280 nfsidl nfsio 45171 57692 0 0 3 0x14280 nfsidl nfsio 26803 360685 0 0 3 0x14280 nfsidl nfsio 8078 200203 0 0 3 0x14280 nfsidl nfsio 94794 324906 0 0 3 0x14280 nfsidl nfsio 91608 242327 0 0 3 0x14280 nfsidl nfsio 92435 26003 0 0 3 0x14280 nfsidl nfsio 82900 257600 0 0 3 0x14280 nfsidl nfsio 61949 341598 0 0 3 0x14280 nfsidl nfsio 15023 32354 0 0 3 0x14280 nfsidl nfsio 83022 405181 0 0 3 0x14280 nfsidl nfsio 85753 278466 0 0 3 0x14280 nfsidl nfsio 18394 381273 0 0 3 0x14280 nfsidl nfsio 30484 116640 0 0 3 0x14280 nfsidl nfsio 43192 518783 0 0 3 0x14280 nfsidl nfsio 30255 333845 0 0 3 0x14280 nfsidl nfsio 56390 31122 0 0 3 0x14280 nfsidl nfsio 63553 239854 0 0 3 0x14280 nfsidl nfsio 35650 175714 0 0 3 0x14280 nfsidl nfsio 52260 82996 0 0 3 0x14200 bored sosplice 12015 271481 52157 0 3 0x82 nanosleep syz-executor.1 52157 390675 66862 0 3 0x82 kqread syz-fuzzer 52157 228418 66862 0 3 0x4000082 thrsleep syz-fuzzer 52157 50564 66862 0 3 0x4000082 thrsleep syz-fuzzer 52157 110908 66862 0 3 0x4000082 thrsleep syz-fuzzer 52157 106062 66862 0 3 0x4000082 thrsleep syz-fuzzer 52157 301203 66862 0 3 0x4000082 thrsleep syz-fuzzer 52157 366308 66862 0 3 0x4000082 thrsleep syz-fuzzer 52157 503356 66862 0 3 0x4000082 thrsleep syz-fuzzer 52157 85640 66862 0 3 0x4000082 thrsleep syz-fuzzer 52157 412002 66862 0 3 0x4000082 thrsleep syz-fuzzer 66862 131403 27013 0 3 0x10008a pause ksh 27013 35764 90735 0 3 0x92 select sshd 3532 155730 1 0 3 0x100083 ttyin getty 90735 248421 1 0 3 0x80 select sshd 62674 64160 32304 74 3 0x100092 bpf pflogd 32304 100381 1 0 3 0x80 netio pflogd 5181 130187 97461 73 3 0x100090 kqread syslogd 97461 366950 1 0 3 0x100082 netio syslogd 69956 48942 1 77 3 0x100090 poll dhclient *66340 350351 1 0 7 0 dhclient 12725 271771 0 0 3 0x14200 bored smr 17613 136965 0 0 2 0x14200 zerothread 14008 162114 0 0 3 0x14200 aiodoned aiodoned 30582 410714 0 0 3 0x14200 syncer update 47929 342923 0 0 3 0x14200 cleaner cleaner 95847 38809 0 0 3 0x14200 reaper reaper 57212 264377 0 0 3 0x14200 pgdaemon pagedaemon 97385 48628 0 0 3 0x14200 bored crynlk 87835 299821 0 0 3 0x14200 bored crypto 28596 448325 0 0 3 0x40014200 acpi0 acpi0 11044 486824 0 0 3 0x40014200 idle1 67760 214088 0 0 3 0x14200 bored softnet 83637 256867 0 0 3 0x14200 bored systqmp 43306 271420 0 0 3 0x14200 bored systq 17352 58050 0 0 3 0x40014200 bored softclock 51633 186715 0 0 3 0x40014200 idle0 1 474775 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 66340 (dhclient) thread 0xffff800020ddc4e8 (350351) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8289dd48) #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:731 #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 9536 6446K 7535K 78643K 13527 0 pcb 14 8K 8K 78643K 112 0 rtable 110 8K 11K 78643K 702 0 ifaddr 92 18K 19K 78643K 288 0 counters 43 33K 34K 78643K 77 0 ioctlops 0 0K 4K 78643K 1572 0 iov 0 0K 24K 78643K 81 0 mount 1 1K 1K 78643K 1 0 vnodes 1224 77K 77K 78643K 1942 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 7 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 220 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 664 0 sigio 0 0K 0K 78643K 13 0 proc 62 63K 95K 78643K 539 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 47 0 in_multi 60 3K 4K 78643K 202 0 ether_multi 1 0K 0K 78643K 15 0 mrt 0 0K 0K 78643K 5 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 256 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 139 56K 56K 78643K 3164 0 UVM aobj 16 2K 2K 78643K 27 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 95 0 NDP 14 0K 0K 78643K 53 0 temp 143 3866K 3930K 78643K 20180 0 kqueue 3 4K 8K 78643K 30 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 10 0 6 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 41 0 39 1 0 1 1 0 8 0 rtentry 112 91 0 57 2 0 2 2 0 8 0 unpcb 120 320 0 310 1 0 1 1 0 8 0 syncache 264 9 0 9 4 3 1 1 0 8 1 tcpqe 32 229 0 229 1 1 0 1 0 8 0 tcpcb 544 291 0 286 1 0 1 1 0 8 0 inpcb 296 1146 0 1133 3 1 2 2 0 8 1 rttmr 72 2 0 2 2 2 0 1 0 8 0 nd6 48 31 0 27 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 1 0 1 0 8 0 ppxss 1128 5 0 5 1 1 0 1 0 8 0 pffrag 232 1 0 0 1 0 1 1 0 482 0 pffrnode 88 1 0 0 1 0 1 1 0 8 0 pffrent 40 2 0 1 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 120 0 112 3 1 2 2 0 8 1 pfstitem 24 24 0 9 1 0 1 1 0 8 0 pfstkey 112 24 0 9 1 0 1 1 0 8 0 pfstate 328 24 0 9 2 0 2 2 0 8 0 pfrule 1360 51 0 39 3 1 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 293 0 134 13 0 13 13 0 8 1 art_table 32 294 0 134 2 0 2 2 0 8 0 art_node 16 86 0 55 1 0 1 1 0 8 0 sysvmsgpl 40 18 0 14 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 216 0 206 1 0 1 1 0 8 0 shmpl 112 25 0 11 2 1 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2300 0 894 92 3 89 89 0 8 1 ffsino 272 2300 0 894 96 2 94 95 0 8 0 nchpl 144 3448 0 1853 60 0 60 60 0 8 0 uvmvnodes 72 2967 0 0 54 0 54 54 0 8 0 vnodes 208 2967 0 0 157 0 157 157 0 8 0 namei 1024 10287 0 10287 3 2 1 1 0 8 1 percpumem 16 49 0 17 1 0 1 1 0 8 0 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 560 4 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 37 0 32 1 0 1 1 0 8 0 scxspl 192 10245 0 10245 10 9 1 7 0 8 1 plimitpl 152 72 0 64 1 0 1 1 0 8 0 sigapl 424 897 0 844 6 0 6 6 0 8 0 futexpl 56 10683 0 10680 3 2 1 1 0 8 0 knotepl 112 100 0 81 1 0 1 1 0 8 0 kqueuepl 144 84 0 80 1 0 1 1 0 8 0 pipelkpl 48 161 0 151 1 0 1 1 0 8 0 pipepl 120 322 0 303 2 0 2 2 0 8 1 fdescpl 496 861 0 844 3 0 3 3 0 8 0 filepl 152 5517 0 5411 5 0 5 5 0 8 0 lockfpl 104 165 0 164 1 0 1 1 0 8 0 lockfspl 48 66 0 65 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 21 0 10 1 0 1 1 0 8 0 ucredpl 96 663 0 653 1 0 1 1 0 8 0 zombiepl 144 844 0 844 1 0 1 1 0 8 1 processpl 984 897 0 844 7 0 7 7 0 8 0 procpl 624 2339 0 2274 6 0 6 6 0 8 1 srpgc 64 2 0 2 1 0 1 1 0 8 1 sosppl 128 11 0 11 2 1 1 1 0 8 1 sockpl 400 1518 0 1493 4 0 4 4 0 8 1 mcl64k 65536 12 0 0 2 0 2 2 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 5 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 11 0 0 2 0 2 2 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 204 0 0 25 0 25 25 0 8 0 mtagpl 96 59 0 0 2 0 2 2 0 8 0 mbufpl 256 320 0 0 18 0 18 18 0 8 0 bufpl 280 4738 0 132 329 0 329 329 0 8 0 anonpl 16 87179 0 71222 74 5 69 71 0 124 0 amapchunkpl 152 5170 0 5004 23 15 8 21 0 158 1 amappl16 192 3481 0 2563 50 2 48 49 0 8 2 amappl15 184 42 0 39 1 0 1 1 0 8 0 amappl14 176 294 0 289 1 0 1 1 0 8 0 amappl13 168 35 0 32 1 0 1 1 0 8 0 amappl12 160 274 0 272 1 0 1 1 0 8 0 amappl11 152 107 0 90 1 0 1 1 0 8 0 amappl10 144 28 0 23 1 0 1 1 0 8 0 amappl9 136 700 0 697 1 0 1 1 0 8 0 amappl8 128 701 0 659 2 0 2 2 0 8 0 amappl7 120 126 0 113 1 0 1 1 0 8 0 amappl6 112 26 0 22 1 0 1 1 0 8 0 amappl5 104 506 0 486 1 0 1 1 0 8 0 amappl4 96 770 0 738 1 0 1 1 0 8 0 amappl3 88 391 0 386 1 0 1 1 0 8 0 amappl2 80 5918 0 5836 2 0 2 2 0 8 0 amappl1 72 28175 0 27704 23 13 10 18 0 8 0 amappl 80 2594 0 2544 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 26 0 11 1 0 1 1 0 8 0 uaddrrnd 24 865 0 844 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 865 0 844 1 0 1 1 0 8 0 vmmpekpl 168 10558 0 10518 2 0 2 2 0 8 0 vmmpepl 168 111587 0 109374 152 24 128 128 0 357 31 vmsppl 368 864 0 844 2 0 2 2 0 8 0 pdppl 4096 1737 0 1692 7 1 6 6 0 8 0 pvpl 32 274090 0 254616 176 9 167 170 0 265 0 pmappl 232 864 0 844 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 282 0 11 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(ffffffff823daae0) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f67f4b0,0,ffff800020e1dcc8,0,0,ffff800020e1dbd4) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd807a7f8260,ffff800020e1dcc8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc4e8,6,ffff800020e1dcc8,0,ffff800020e1ddb0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc4e8,ffff800020e1dd60,ffff800020e1ddb0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1de30) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1de30) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe2500, 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc pageflttrap(ffff800021f0bb90,1) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 usertrap(ffff800021f0bb90) at usertrap+0x21a sys/arch/amd64/amd64/trap.c:384 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f7ffffc0340, 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc pageflttrap(ffff800021f0bb90,1) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 usertrap(ffff800021f0bb90) at usertrap+0x21a sys/arch/amd64/amd64/trap.c:384 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f7ffffc0340, count: -7