panic: receive 1: so 0xfffffd806f6e8640, so_type 3, sb_cc 3042 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 389587 62152 0 0x2 0x4000000 0 syz-fuzzer * 79137 5525 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821f0bf0) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6e8640,0,ffff800020eacf58,0,0,ffff800020eace64) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd80737f5558,ffff800020eacf58,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020e6c9c8,6,ffff800020eacf58,0,ffff800020ead040) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e6c9c8,ffff800020eacff0,ffff800020ead040) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020ead0c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020ead0c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc9050, 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 1: so 0xfffffd806f6e8640, so_type 3, sb_cc 3042 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821f0bf0) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6e8640,0,ffff800020eacf58,0,0,ffff800020eace64) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd80737f5558,ffff800020eacf58,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020e6c9c8,6,ffff800020eacf58,0,ffff800020ead040) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e6c9c8,ffff800020eacff0,ffff800020ead040) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020ead0c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020ead0c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc9050, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020eacca0 rbx 0xffff800020eacd50 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff8146162f kprintf+0x16f r9 0x1 r10 0x2 r11 0xc37c58fc9a6f4d2b r12 0x3000000008 r13 0xffff800020eaccb0 r14 0x100 r15 0x1 rip 0xffffffff810d1578 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020eacc90 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=79137 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020e6cea8,0xffff800020e6cc48 process=0xffff800020e80010 user=0xffff800020ea8000, 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 98102 277149 82257 0 2 0 syz-executor.0 98102 145902 82257 0 3 0x4000080 fsleep syz-executor.0 98102 219322 82257 0 3 0x4000080 fsleep syz-executor.0 88218 458210 0 0 3 0x14200 acct acct 82257 7132 62152 0 3 0x82 nanosleep syz-executor.0 15126 252215 0 0 3 0x14200 bored sosplice 94805 223156 1 0 3 0x100083 ttyin getty 77293 379419 0 0 3 0x14280 nfsidl nfsio 74877 421108 0 0 3 0x14280 nfsidl nfsio 31693 29200 0 0 3 0x14280 nfsidl nfsio 89174 391460 0 0 3 0x14280 nfsidl nfsio 28685 317545 0 0 3 0x14280 nfsidl nfsio 98729 12397 0 0 3 0x14280 nfsidl nfsio 55872 433487 0 0 3 0x14280 nfsidl nfsio 42323 213762 0 0 3 0x14280 nfsidl nfsio 14275 166075 0 0 3 0x14280 nfsidl nfsio 9596 441466 0 0 3 0x14280 nfsidl nfsio 53099 507839 0 0 3 0x14280 nfsidl nfsio 73853 335299 0 0 3 0x14280 nfsidl nfsio 24243 47724 0 0 3 0x14280 nfsidl nfsio 72920 245147 0 0 3 0x14280 nfsidl nfsio 53092 259291 0 0 3 0x14280 nfsidl nfsio 48782 254267 0 0 3 0x14280 nfsidl nfsio 14177 139930 0 0 3 0x14280 nfsidl nfsio 79154 47735 0 0 3 0x14280 nfsidl nfsio 50150 311349 0 0 3 0x14280 nfsidl nfsio 39568 401463 0 0 3 0x14280 nfsidl nfsio 23672 515330 62152 0 3 0x82 piperd syz-executor.1 62152 92366 17374 0 3 0x82 thrsleep syz-fuzzer 62152 185640 17374 0 3 0x4000082 nanosleep syz-fuzzer 62152 472658 17374 0 3 0x4000082 thrsleep syz-fuzzer 62152 349893 17374 0 3 0x4000082 thrsleep syz-fuzzer 62152 494711 17374 0 3 0x4000082 thrsleep syz-fuzzer 62152 76667 17374 0 3 0x4000082 kqread syz-fuzzer 62152 459833 17374 0 3 0x4000082 thrsleep syz-fuzzer 62152 389587 17374 0 7 0x4000002 syz-fuzzer 62152 512648 17374 0 3 0x4000082 thrsleep syz-fuzzer 62152 76615 17374 0 3 0x4000082 thrsleep syz-fuzzer 17374 455191 66245 0 3 0x10008a pause ksh 66245 278266 30916 0 3 0x92 select sshd 30916 211716 1 0 3 0x80 select sshd 18829 95872 22138 74 3 0x100092 bpf pflogd 22138 361717 1 0 3 0x80 netio pflogd 12214 353933 74043 73 3 0x100090 kqread syslogd 74043 93504 1 0 3 0x100082 netio syslogd 60969 390324 1 77 3 0x100090 poll dhclient * 5525 79137 1 0 7 0 dhclient 71883 244669 0 0 3 0x14200 bored smr 30040 73361 0 0 2 0x14200 zerothread 81766 475754 0 0 3 0x14200 aiodoned aiodoned 48435 37475 0 0 3 0x14200 syncer update 12901 82692 0 0 3 0x14200 cleaner cleaner 7697 132463 0 0 3 0x14200 reaper reaper 34933 75146 0 0 3 0x14200 pgdaemon pagedaemon 95569 443787 0 0 3 0x14200 bored crynlk 10923 221520 0 0 3 0x14200 bored crypto 52682 159855 0 0 3 0x40014200 acpi0 acpi0 77164 272134 0 0 3 0x40014200 idle1 73941 355706 0 0 3 0x14200 bored softnet 62835 507921 0 0 3 0x14200 bored systqmp 65809 13286 0 0 3 0x14200 bored systq 38631 127161 0 0 3 0x40014200 bored softclock 92781 84406 0 0 3 0x40014200 idle0 1 382270 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 5525 (dhclient) thread 0xffff800020e6c9c8 (79137) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff826a4c60) #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9567 6442K 7000K 78643K 13892 0 pcb 13 8K 8K 78643K 133 0 rtable 87 6K 8K 78643K 818 0 ifaddr 111 20K 20K 78643K 282 0 counters 43 33K 34K 78643K 81 0 ioctlops 0 0K 4K 78643K 1625 0 iov 0 0K 16K 78643K 148 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 2110 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 10 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 139 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 903 0 sigio 0 0K 0K 78643K 4 0 proc 62 63K 95K 78643K 618 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 50 0 in_multi 82 4K 4K 78643K 171 0 ether_multi 1 0K 0K 78643K 18 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 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 309 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 135 72K 81K 78643K 3681 0 UVM aobj 26 4K 4K 78643K 48 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 100 0 NDP 18 0K 0K 78643K 46 0 temp 158 3051K 3115K 78643K 14433 0 kqueue 3 4K 14K 78643K 27 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 14 0 7 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 324 0 322 1 0 1 1 0 8 0 rtentry 112 84 0 58 2 0 2 2 0 8 0 unpcb 120 456 0 446 2 1 1 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 56 0 56 1 1 0 1 0 8 0 tcpcb 544 201 0 196 1 0 1 1 0 8 0 inpcb 280 1117 0 1108 5 3 2 2 0 8 1 rttmr 72 1 0 1 1 0 1 1 0 8 1 nd6 48 15 0 12 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 ppxss 1128 1 0 1 1 1 0 1 0 8 0 pfstscr 40 4 0 1 1 0 1 1 0 8 0 pffrag 232 5 0 5 3 2 1 1 0 482 1 pffrnode 88 5 0 5 3 2 1 1 0 8 1 pffrent 40 10 0 10 3 2 1 1 0 8 1 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 62 0 56 1 0 1 1 0 8 0 pftag 88 4 0 4 1 1 0 1 0 8 0 pfstitem 24 24 0 18 1 0 1 1 0 8 0 pfstkey 112 24 0 18 1 0 1 1 0 8 0 pfstate 328 21 0 17 2 1 1 2 0 8 0 pfrule 1360 47 0 32 4 2 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 387 0 242 13 3 10 12 0 8 0 art_table 32 388 0 242 2 0 2 2 0 8 0 art_node 16 83 0 62 1 0 1 1 0 8 0 sysvmsgpl 40 66 0 26 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 137 0 127 1 0 1 1 0 8 0 shmpl 112 46 0 22 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2629 0 1225 89 0 89 89 0 8 0 ffsino 272 2629 0 1225 95 0 95 95 0 8 0 nchpl 144 4086 0 2502 60 0 60 60 0 8 0 uvmvnodes 72 3451 0 0 63 0 63 63 0 8 0 vnodes 208 3451 0 0 182 0 182 182 0 8 0 namei 1024 12031 0 12031 1 0 1 1 0 8 1 percpumem 16 51 0 19 1 0 1 1 0 8 0 vcpupl 1984 6 0 1 1 0 1 1 0 8 0 vmpool 560 13 0 8 1 0 1 1 0 8 0 pfiaddrpl 120 17 0 11 1 0 1 1 0 8 0 scsiplug 64 2 0 2 2 2 0 1 0 8 0 scxspl 192 11853 0 11853 10 9 1 7 0 8 1 plimitpl 152 86 0 78 1 0 1 1 0 8 0 sigapl 424 1135 0 1082 6 0 6 6 0 8 0 futexpl 56 16341 0 16339 1 0 1 1 0 8 0 knotepl 112 122 0 103 1 0 1 1 0 8 0 kqueuepl 144 133 0 128 1 0 1 1 0 8 0 pipelkpl 48 216 0 206 1 0 1 1 0 8 0 pipepl 120 432 0 413 1 0 1 1 0 8 0 fdescpl 496 1098 0 1082 3 0 3 3 0 8 0 filepl 152 6890 0 6788 6 1 5 6 0 8 1 lockfpl 104 245 0 244 1 0 1 1 0 8 0 lockfspl 48 85 0 84 1 0 1 1 0 8 0 sessionpl 112 21 0 10 1 0 1 1 0 8 0 pgrppl 48 27 0 16 1 0 1 1 0 8 0 ucredpl 96 536 0 527 1 0 1 1 0 8 0 zombiepl 144 1082 0 1082 1 0 1 1 0 8 1 processpl 984 1135 0 1082 7 0 7 7 0 8 0 procpl 624 2798 0 2734 6 0 6 6 0 8 0 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 13 0 13 5 5 0 1 0 8 0 sockpl 400 1902 0 1881 6 3 3 5 0 8 0 mcl64k 65536 15 0 0 2 0 2 2 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 9 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 186 0 0 23 1 22 23 0 8 0 mtagpl 80 303 0 0 6 0 6 6 0 8 0 mbufpl 256 850 0 0 50 0 50 50 0 8 0 bufpl 280 5228 0 135 364 0 364 364 0 8 0 anonpl 16 129017 0 113543 112 36 76 80 0 124 11 amapchunkpl 152 6314 0 6159 28 21 7 20 0 158 0 amappl16 192 5846 0 4975 94 46 48 55 0 8 4 amappl15 184 40 0 38 1 0 1 1 0 8 0 amappl14 176 22 0 18 1 0 1 1 0 8 0 amappl13 168 103 0 99 1 0 1 1 0 8 0 amappl12 160 18 0 15 1 0 1 1 0 8 0 amappl11 152 707 0 689 1 0 1 1 0 8 0 amappl10 144 185 0 179 1 0 1 1 0 8 0 amappl9 136 384 0 383 1 0 1 1 0 8 0 amappl8 128 425 0 382 2 0 2 2 0 8 0 amappl7 120 133 0 119 1 0 1 1 0 8 0 amappl6 112 657 0 645 1 0 1 1 0 8 0 amappl5 104 899 0 882 1 0 1 1 0 8 0 amappl4 96 595 0 564 1 0 1 1 0 8 0 amappl3 88 170 0 165 1 0 1 1 0 8 0 amappl2 80 7479 0 7408 2 0 2 2 0 8 0 amappl1 72 32221 0 31773 24 14 10 18 0 8 0 amappl 80 3050 0 3001 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 47 0 22 1 0 1 1 0 8 0 uaddrrnd 24 1111 0 1090 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1111 0 1090 1 0 1 1 0 8 0 vmmpekpl 168 11894 0 11855 3 0 3 3 0 8 0 vmmpepl 168 138833 0 136772 158 62 96 122 0 357 5 vmsppl 368 1110 0 1090 2 0 2 2 0 8 0 pdppl 4096 2230 0 2185 6 0 6 6 0 8 0 pvpl 32 353753 0 334978 232 44 188 192 0 265 32 pmappl 232 1110 0 1090 4 2 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 309 0 11 9 0 9 9 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82503ff0) 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 end of kernel end trace frame: 0xc002d05558, count: 12 ddb{0}> trace x86_ipi_db(ffffffff82503ff0) 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 end of kernel end trace frame: 0xc002d05558, count: -3 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(ffffffff821f0bf0) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6e8640,0,ffff800020eacf58,0,0,ffff800020eace64) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd80737f5558,ffff800020eacf58,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020e6c9c8,6,ffff800020eacf58,0,ffff800020ead040) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e6c9c8,ffff800020eacff0,ffff800020ead040) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020ead0c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020ead0c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc9050, count: 7 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821f0bf0) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6e8640,0,ffff800020eacf58,0,0,ffff800020eace64) at soreceive+0x16ec sys/kern/uipc_socket.c:823 soo_read(fffffd80737f5558,ffff800020eacf58,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020e6c9c8,6,ffff800020eacf58,0,ffff800020ead040) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020e6c9c8,ffff800020eacff0,ffff800020ead040) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020ead0c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020ead0c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc9050, count: -8