panic: receive 1: so 0xfffffd806f6844b0, so_type 3, sb_cc 3768 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 143666 42581 0 0 0 0 syz-executor.1 *188366 98386 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f6c81) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f6844b0,0,ffff800020e1e7b8,0,0,ffff800020e1e6c4) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd807abf8098,ffff800020e1e7b8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcea8,6,ffff800020e1e7b8,0,ffff800020e1e8a0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcea8,ffff800020e1e850,ffff800020e1e8a0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e920) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e920) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbc480, 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 0xfffffd806f6844b0, so_type 3, sb_cc 3768 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f6c81) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f6844b0,0,ffff800020e1e7b8,0,0,ffff800020e1e6c4) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd807abf8098,ffff800020e1e7b8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcea8,6,ffff800020e1e7b8,0,ffff800020e1e8a0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcea8,ffff800020e1e850,ffff800020e1e8a0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e920) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e920) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbc480, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e500 rbx 0xffff800020e1e5b0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff8214115f kprintf+0x16f r9 0x1 r10 0x2 r11 0x311a7f420dcc57f7 r12 0x3000000008 r13 0xffff800020e1e510 r14 0x100 r15 0x1 rip 0xffffffff82061f48 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e4f0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=188366 stat=onproc flags process=0 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddc9c8,0xffff800020ddd608 process=0xffff800020df0010 user=0xffff800020e19000, vmspace=0xfffffd807efff000 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 42581 143666 9950 0 7 0 syz-executor.1 42581 354612 9950 0 3 0x4000080 fsleep syz-executor.1 38023 47319 40106 0 2 0 syz-executor.0 38023 241500 40106 0 3 0x4000080 fsleep syz-executor.0 73864 237861 0 0 3 0x14200 bored sosplice 9950 373668 91900 0 3 0x82 nanosleep syz-executor.1 40106 430937 91900 0 3 0x82 nanosleep syz-executor.0 91900 92053 32778 0 3 0x82 thrsleep syz-fuzzer 91900 11168 32778 0 3 0x4000082 thrsleep syz-fuzzer 91900 2438 32778 0 3 0x4000082 thrsleep syz-fuzzer 91900 326082 32778 0 3 0x4000082 thrsleep syz-fuzzer 91900 404012 32778 0 3 0x4000082 thrsleep syz-fuzzer 91900 498076 32778 0 3 0x4000082 thrsleep syz-fuzzer 91900 335698 32778 0 3 0x4000082 thrsleep syz-fuzzer 91900 150226 32778 0 3 0x4000082 thrsleep syz-fuzzer 91900 118267 32778 0 3 0x4000082 kqread syz-fuzzer 91900 331024 32778 0 3 0x4000082 thrsleep syz-fuzzer 32778 333503 22913 0 3 0x10008a pause ksh 22913 53801 77313 0 3 0x92 select sshd 90844 390762 1 0 3 0x100083 ttyin getty 77313 480837 1 0 3 0x80 select sshd 96331 159697 14059 74 3 0x100092 bpf pflogd 14059 489152 1 0 3 0x80 netio pflogd 36830 416735 99024 73 3 0x100090 kqread syslogd 99024 101401 1 0 3 0x100082 netio syslogd 38452 413309 1 77 3 0x100090 poll dhclient *98386 188366 1 0 7 0 dhclient 51130 333142 0 0 3 0x14200 bored smr 43621 12753 0 0 2 0x14200 zerothread 68477 331180 0 0 3 0x14200 aiodoned aiodoned 93280 176777 0 0 3 0x14200 syncer update 72199 358861 0 0 3 0x14200 cleaner cleaner 80222 266574 0 0 3 0x14200 reaper reaper 2596 178756 0 0 3 0x14200 pgdaemon pagedaemon 77591 21870 0 0 3 0x14200 bored crynlk 63224 58413 0 0 3 0x14200 bored crypto 54955 120104 0 0 3 0x40014200 acpi0 acpi0 75680 66074 0 0 3 0x40014200 idle1 82758 505668 0 0 3 0x14200 bored softnet 83070 106133 0 0 3 0x14200 bored systqmp 55762 334786 0 0 3 0x14200 bored systq 87167 304899 0 0 3 0x40014200 bored softclock 57962 466526 0 0 3 0x40014200 idle0 1 394349 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 98386 (dhclient) thread 0xffff800020ddcea8 (188366) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8292f068) #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 6420K 6740K 78643K 11024 0 pcb 13 8K 8K 78643K 309 0 rtable 104 7K 8K 78643K 448 0 ifaddr 86 18K 18K 78643K 153 0 sysctl 0 0K 0K 78643K 1 0 counters 43 33K 34K 78643K 49 0 ioctlops 0 0K 4K 78643K 1535 0 iov 0 0K 16K 78643K 32 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 1360 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 9 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 77 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 575 0 sigio 0 0K 0K 78643K 4 0 proc 61 63K 95K 78643K 449 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 32 0 in_multi 79 3K 4K 78643K 174 0 ether_multi 1 0K 0K 78643K 6 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 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 237 0 pfkey data 0 0K 0K 78643K 2 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 39K 51K 78643K 2717 0 UVM aobj 19 4K 4K 78643K 20 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 27 0 NDP 11 0K 0K 78643K 24 0 temp 125 3872K 3936K 78643K 7479 0 kqueue 3 4K 12K 78643K 20 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 7 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 31 0 29 1 0 1 1 0 8 0 rtentry 112 97 0 62 2 0 2 2 0 8 0 unpcb 120 188 0 178 1 0 1 1 0 8 0 syncache 264 7 0 7 3 2 1 1 0 8 1 tcpqe 32 58 0 58 1 1 0 1 0 8 0 tcpcb 544 164 0 124 3 0 3 3 0 8 0 inpcb 296 1556 0 1542 3 1 2 2 0 8 0 nd6 48 42 0 38 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 1 1 1 0 8 1 ppxss 1136 1 0 1 1 1 0 1 0 8 0 pfstscr 40 1 0 1 1 1 0 1 0 8 0 pffrag 232 2 0 1 1 0 1 1 0 482 0 pffrnode 88 2 0 1 1 0 1 1 0 8 0 pffrent 40 47 0 46 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 50 0 43 2 1 1 1 0 8 0 pfstitem 24 128 0 16 1 0 1 1 0 8 0 pfstkey 112 130 0 18 4 0 4 4 0 8 0 pfstate 328 129 0 17 10 0 10 10 0 8 0 pfrule 1360 33 0 24 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 513 0 344 16 0 16 16 0 8 4 art_table 32 515 0 344 3 0 3 3 0 8 1 art_node 16 96 0 66 1 0 1 1 0 8 0 sysvmsgpl 40 21 0 8 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 73 0 63 1 0 1 1 0 8 0 shmpl 112 17 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2058 0 654 89 0 89 89 0 8 0 ffsino 272 2058 0 654 94 0 94 94 0 8 0 nchpl 144 2966 0 1356 60 0 60 60 0 8 0 uvmvnodes 72 2203 0 0 41 0 41 41 0 8 0 vnodes 208 2203 0 0 116 0 116 116 0 8 0 namei 1024 7691 0 7691 2 1 1 1 0 8 1 percpumem 16 35 0 3 1 0 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 560 4 0 2 1 0 1 1 0 8 0 pfiaddrpl 120 16 0 10 2 1 1 1 0 8 0 scxspl 192 9104 0 9104 10 7 3 7 0 8 3 plimitpl 152 39 0 31 1 0 1 1 0 8 0 sigapl 424 791 0 758 4 0 4 4 0 8 0 futexpl 56 7682 0 7680 2 1 1 1 0 8 0 knotepl 112 77 0 58 1 0 1 1 0 8 0 kqueuepl 144 741 0 731 1 0 1 1 0 8 0 pipepl 304 149 0 139 3 2 1 2 0 8 0 fdescpl 496 775 0 758 3 0 3 3 0 8 0 filepl 152 5082 0 4978 5 0 5 5 0 8 1 lockfpl 104 118 0 117 1 0 1 1 0 8 0 lockfspl 48 40 0 39 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 24 0 13 1 0 1 1 0 8 0 ucredpl 96 365 0 356 1 0 1 1 0 8 0 zombiepl 144 758 0 758 1 0 1 1 0 8 1 processpl 992 791 0 758 5 0 5 5 0 8 0 procpl 624 1936 0 1892 4 0 4 4 0 8 0 sosppl 128 3 0 3 1 1 0 1 0 8 0 sockpl 400 1780 0 1757 5 2 3 4 0 8 0 mcl64k 65536 11 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 10 0 0 2 0 2 2 0 8 0 mcl4k 4096 8 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 171 0 0 21 0 21 21 0 8 0 mtagpl 96 27 0 0 1 0 1 1 0 8 0 mbufpl 256 392 0 0 23 0 23 23 0 8 0 bufpl 280 4461 0 136 309 0 309 309 0 8 0 anonpl 16 86144 0 69858 86 19 67 77 0 124 1 amapchunkpl 152 3919 0 3774 13 7 6 11 0 158 0 amappl16 192 3850 0 2963 55 10 45 52 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 23 0 20 1 0 1 1 0 8 0 amappl13 168 29 0 25 1 0 1 1 0 8 0 amappl12 160 262 0 258 2 1 1 1 0 8 0 amappl11 152 64 0 48 1 0 1 1 0 8 0 amappl10 144 19 0 13 1 0 1 1 0 8 0 amappl9 136 389 0 388 1 0 1 1 0 8 0 amappl8 128 354 0 321 2 0 2 2 0 8 0 amappl7 120 125 0 112 1 0 1 1 0 8 0 amappl6 112 27 0 18 2 1 1 1 0 8 0 amappl5 104 941 0 923 1 0 1 1 0 8 0 amappl4 96 489 0 458 1 0 1 1 0 8 0 amappl3 88 124 0 118 1 0 1 1 0 8 0 amappl2 80 5266 0 5186 2 0 2 2 0 8 0 amappl1 72 31822 0 31357 23 13 10 18 0 8 0 amappl 80 2184 0 2135 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 19 0 1 1 0 1 1 0 8 0 uaddrrnd 24 779 0 760 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 779 0 760 1 0 1 1 0 8 0 vmmpekpl 168 9704 0 9668 2 0 2 2 0 8 0 vmmpepl 168 104928 0 102753 123 26 97 118 0 357 2 vmsppl 368 778 0 760 2 0 2 2 0 8 0 pdppl 4096 1565 0 1522 6 0 6 6 0 8 0 pvpl 32 274323 0 254574 190 26 164 180 0 265 4 pmappl 232 778 0 760 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 279 0 6 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82722ff0) 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(ffffffff8292ee60) at __mp_lock+0x12e __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8292ee60) at __mp_lock+0x12e sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff8292ee60) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8292ee60) at __mp_lock+0x127 sys/kern/kern_lock.c:147 pageflttrap(ffff800023f22460,1) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 usertrap(ffff800023f22460) at usertrap+0x21a sys/arch/amd64/amd64/trap.c:384 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f7fffff1980, count: 5 ddb{0}> trace x86_ipi_db(ffffffff82722ff0) 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(ffffffff8292ee60) at __mp_lock+0x12e __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8292ee60) at __mp_lock+0x12e sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff8292ee60) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8292ee60) at __mp_lock+0x127 sys/kern/kern_lock.c:147 pageflttrap(ffff800023f22460,1) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 usertrap(ffff800023f22460) at usertrap+0x21a sys/arch/amd64/amd64/trap.c:384 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f7fffff1980, count: -10 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(ffffffff823f6c81) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f6844b0,0,ffff800020e1e7b8,0,0,ffff800020e1e6c4) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd807abf8098,ffff800020e1e7b8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcea8,6,ffff800020e1e7b8,0,ffff800020e1e8a0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcea8,ffff800020e1e850,ffff800020e1e8a0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e920) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e920) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbc480, count: 7 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f6c81) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f6844b0,0,ffff800020e1e7b8,0,0,ffff800020e1e6c4) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd807abf8098,ffff800020e1e7b8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcea8,6,ffff800020e1e7b8,0,ffff800020e1e8a0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcea8,ffff800020e1e850,ffff800020e1e8a0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e920) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e920) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbc480, count: -8