panic: receive 1: so 0xfffffd806f6904b0, so_type 3, sb_cc 1727 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 179740 97036 0 0x2 0x4000000 1 syz-fuzzer *465124 60223 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f1af6) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6904b0,0,ffff800020e1cee8,0,0,ffff800020e1cdf4) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd806fc38260,ffff800020e1cee8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1cee8,0,ffff800020e1cfd0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1cf80,ffff800020e1cfd0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1d050) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1d050) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc0930, 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 0xfffffd806f6904b0, so_type 3, sb_cc 1727 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f1af6) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6904b0,0,ffff800020e1cee8,0,0,ffff800020e1cdf4) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd806fc38260,ffff800020e1cee8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1cee8,0,ffff800020e1cfd0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1cf80,ffff800020e1cfd0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1d050) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1d050) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc0930, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1cc30 rbx 0xffff800020e1cce0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff817e707f kprintf+0x16f r9 0x1 r10 0x2 r11 0x7ce965bfced7e83e r12 0x3000000008 r13 0xffff800020e1cc40 r14 0x100 r15 0x1 rip 0xffffffff81354558 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1cc20 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=465124 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddc9c8,0xffff800020ddd128 process=0xffff800020df07c0 user=0xffff800020e18000, vmspace=0xfffffd807f0002e0 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 38519 272901 18267 0 2 0 syz-executor.0 38519 448335 18267 0 3 0x4000080 fsleep syz-executor.0 86885 428610 0 0 3 0x14200 bored sosplice 97604 204108 97036 0 3 0x82 piperd syz-executor.1 18267 352383 97036 0 3 0x82 nanosleep syz-executor.0 97036 484359 90531 0 3 0x82 kqread syz-fuzzer 97036 148743 90531 0 3 0x4000082 nanosleep syz-fuzzer 97036 108891 90531 0 3 0x4000082 thrsleep syz-fuzzer 97036 471492 90531 0 3 0x4000082 thrsleep syz-fuzzer 97036 304419 90531 0 3 0x4000082 thrsleep syz-fuzzer 97036 479146 90531 0 3 0x4000082 thrsleep syz-fuzzer 97036 179740 90531 0 7 0x4000002 syz-fuzzer 97036 45237 90531 0 3 0x4000082 thrsleep syz-fuzzer 97036 277951 90531 0 3 0x4000082 thrsleep syz-fuzzer 97036 233410 90531 0 3 0x4000082 thrsleep syz-fuzzer 90531 26373 76164 0 3 0x10008a pause ksh 76164 463646 77542 0 3 0x92 select sshd 76060 35834 1 0 3 0x100083 ttyin getty 77542 352992 1 0 3 0x80 select sshd 38986 109533 88167 74 3 0x100092 bpf pflogd 88167 102136 1 0 3 0x80 netio pflogd 374 486828 22743 73 3 0x100090 kqread syslogd 22743 167246 1 0 3 0x100082 netio syslogd 79053 390902 1 77 3 0x100090 poll dhclient *60223 465124 1 0 7 0 dhclient 78949 464916 0 0 3 0x14200 bored smr 47994 238287 0 0 2 0x14200 zerothread 95247 41523 0 0 3 0x14200 aiodoned aiodoned 47344 449646 0 0 3 0x14200 syncer update 18021 22802 0 0 3 0x14200 cleaner cleaner 28011 391241 0 0 3 0x14200 reaper reaper 39058 303569 0 0 3 0x14200 pgdaemon pagedaemon 50741 114110 0 0 3 0x14200 bored crynlk 72457 294322 0 0 3 0x14200 bored crypto 6434 378598 0 0 3 0x40014200 acpi0 acpi0 10854 280921 0 0 3 0x40014200 idle1 6038 99465 0 0 3 0x14200 bored softnet 55512 39781 0 0 3 0x14200 bored systqmp 11083 14685 0 0 3 0x14200 bored systq 70281 197299 0 0 3 0x40014200 bored softclock 48694 362929 0 0 3 0x40014200 idle0 1 510456 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 60223 (dhclient) thread 0xffff800020ddcc38 (465124) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828cb930) #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 9493 6405K 6665K 78643K 10718 0 pcb 13 8K 8K 78643K 39 0 rtable 104 3K 7K 78643K 294 0 ifaddr 61 13K 13K 78643K 83 0 counters 43 33K 34K 78643K 45 0 ioctlops 0 0K 4K 78643K 1494 0 iov 0 0K 12K 78643K 150 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1287 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 3 0 VM map 2 1K 1K 78643K 2 0 sem 10 0K 1K 78643K 32 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 191 0 proc 61 63K 95K 78643K 459 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 12 0 in_multi 54 2K 3K 78643K 90 0 ether_multi 1 0K 0K 78643K 3 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 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 214 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 113 38K 38K 78643K 1541 0 UVM aobj 6 2K 2K 78643K 6 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 18 0 NDP 9 0K 0K 78643K 19 0 temp 99 3858K 3922K 78643K 8876 0 kqueue 3 4K 8K 78643K 6 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 7 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 27 0 25 1 0 1 1 0 8 0 rtentry 112 70 0 28 2 0 2 2 0 8 0 unpcb 120 103 0 93 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 68 0 64 1 0 1 1 0 8 0 inpcb 296 245 0 238 2 0 2 2 0 8 1 rttmr 72 3 0 3 1 0 1 1 0 8 1 nd6 48 13 0 10 1 0 1 1 0 8 0 ppxss 1128 1 0 1 1 1 0 1 0 8 0 pffrag 232 3 0 3 2 1 1 1 0 482 1 pffrnode 88 3 0 3 2 1 1 1 0 8 1 pffrent 40 92 0 92 2 1 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 13 0 13 2 1 1 1 0 8 1 pfstitem 24 35 0 5 1 0 1 1 0 8 0 pfstkey 112 35 0 5 1 0 1 1 0 8 0 pfstate 328 35 0 5 3 0 3 3 0 8 0 pfrule 1360 24 0 18 2 0 2 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 334 0 152 14 0 14 14 0 8 1 art_table 32 336 0 152 2 0 2 2 0 8 0 art_node 16 69 0 30 1 0 1 1 0 8 0 sysvmsgpl 40 58 0 25 1 0 1 1 0 8 0 semupl 112 2 0 2 2 1 1 1 0 8 1 semapl 112 26 0 18 1 0 1 1 0 8 0 shmpl 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 1656 0 251 89 1 88 89 0 8 0 ffsino 272 1656 0 251 94 0 94 94 0 8 0 nchpl 144 2157 0 546 60 0 60 60 0 8 0 uvmvnodes 72 1733 0 0 32 0 32 32 0 8 0 vnodes 208 1733 0 0 92 0 92 92 0 8 0 namei 1024 6015 0 6015 1 0 1 1 0 8 1 percpumem 16 33 0 1 1 0 1 1 0 8 0 vcpupl 1984 1 0 0 1 0 1 1 0 8 0 vmpool 560 1 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 4 0 4 2 1 1 1 0 8 1 scxspl 192 6351 0 6351 8 3 5 7 0 8 5 plimitpl 152 17 0 9 1 0 1 1 0 8 0 sigapl 424 407 0 375 4 0 4 4 0 8 0 futexpl 56 2843 0 2842 1 0 1 1 0 8 0 knotepl 112 65 0 46 1 0 1 1 0 8 0 kqueuepl 144 36 0 34 1 0 1 1 0 8 0 pipelkpl 48 89 0 79 1 0 1 1 0 8 0 pipepl 120 178 0 159 1 0 1 1 0 8 0 fdescpl 496 391 0 375 3 0 3 3 0 8 0 filepl 152 2375 0 2274 5 0 5 5 0 8 1 lockfpl 104 50 0 49 1 0 1 1 0 8 0 lockfspl 48 19 0 18 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 464 0 455 1 0 1 1 0 8 0 zombiepl 144 375 0 375 1 0 1 1 0 8 1 processpl 984 407 0 375 5 0 5 5 0 8 0 procpl 624 779 0 737 4 0 4 4 0 8 0 sosppl 128 2 0 2 1 0 1 1 0 8 1 sockpl 400 375 0 356 3 0 3 3 0 8 1 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 8 0 0 1 0 1 1 0 8 0 mcl4k 4096 13 0 0 2 0 2 2 0 8 0 mcl2k 2048 162 0 0 20 0 20 20 0 8 0 mtagpl 96 6 0 0 1 0 1 1 0 8 0 mbufpl 256 333 0 0 21 0 21 21 0 8 0 bufpl 280 3794 0 134 262 0 262 262 0 8 0 anonpl 16 49613 0 33533 68 2 66 67 0 124 0 amapchunkpl 152 1989 0 1844 8 1 7 8 0 158 0 amappl16 192 1674 0 803 45 1 44 45 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 22 0 19 1 0 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 65 0 63 1 0 1 1 0 8 0 amappl11 152 68 0 51 1 0 1 1 0 8 0 amappl10 144 119 0 110 1 0 1 1 0 8 0 amappl9 136 385 0 384 1 0 1 1 0 8 0 amappl8 128 332 0 306 1 0 1 1 0 8 0 amappl7 120 217 0 204 1 0 1 1 0 8 0 amappl6 112 29 0 23 1 0 1 1 0 8 0 amappl5 104 353 0 337 1 0 1 1 0 8 0 amappl4 96 488 0 459 1 0 1 1 0 8 0 amappl3 88 108 0 102 1 0 1 1 0 8 0 amappl2 80 2191 0 2122 2 0 2 2 0 8 0 amappl1 72 18496 0 18058 23 13 10 18 0 8 0 amappl 80 1028 0 983 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 5 0 0 1 0 1 1 0 8 0 uaddrrnd 24 392 0 375 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 392 0 375 1 0 1 1 0 8 0 vmmpekpl 168 7127 0 7092 2 0 2 2 0 8 0 vmmpepl 168 54539 0 52523 120 14 106 115 0 357 17 vmsppl 368 391 0 375 2 0 2 2 0 8 0 pdppl 4096 791 0 751 6 0 6 6 0 8 0 pvpl 32 170028 0 150807 163 2 161 163 0 265 5 pmappl 232 391 0 375 2 1 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 269 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(ffffffff823f1af6) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6904b0,0,ffff800020e1cee8,0,0,ffff800020e1cdf4) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd806fc38260,ffff800020e1cee8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1cee8,0,ffff800020e1cfd0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1cf80,ffff800020e1cfd0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1d050) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1d050) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc0930, 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 end of kernel end trace frame: 0xc0002c5aa0, count: 12 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 end of kernel end trace frame: 0xc0002c5aa0, count: -3