panic: receive 1: so 0xfffffd806f68e000, so_type 3, sb_cc 898 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 60856 18818 73 0x100010 0 0 syslogd *326724 97498 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f4991) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68e000,0,ffff800020e1ec88,0,0,ffff800020e1eb94) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd807c7f6390,ffff800020e1ec88,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1ec88,0,ffff800020e1ed70) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1ed20,ffff800020e1ed70) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1edf0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1edf0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd4720, 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 0xfffffd806f68e000, so_type 3, sb_cc 898 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f4991) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68e000,0,ffff800020e1ec88,0,0,ffff800020e1eb94) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd807c7f6390,ffff800020e1ec88,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1ec88,0,ffff800020e1ed70) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1ed20,ffff800020e1ed70) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1edf0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1edf0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd4720, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e9d0 rbx 0xffff800020e1ea80 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81ef3d3f kprintf+0x16f r9 0x1 r10 0x2 r11 0xb6864baa5df402c5 r12 0x3000000008 r13 0xffff800020e1e9e0 r14 0x100 r15 0x1 rip 0xffffffff819b0b48 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e9c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=326724 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddc9c8,0xffff800020ddceb8 process=0xffff800020df07d0 user=0xffff800020e19000, vmspace=0xfffffd807efff5c0 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 87351 121179 83116 0 2 0 syz-executor.1 87351 312472 83116 0 3 0x4000080 fsleep syz-executor.1 87351 337567 83116 0 3 0x4000080 fsleep syz-executor.1 42032 496105 31144 0 3 0x80 nanosleep syz-executor.0 42032 376941 31144 0 3 0x4000080 fsleep syz-executor.0 42032 163407 31144 0 3 0x4000080 fsleep syz-executor.0 83116 385394 5893 0 3 0x82 nanosleep syz-executor.1 31144 497040 5893 0 3 0x82 nanosleep syz-executor.0 5893 227423 41287 0 3 0x82 thrsleep syz-fuzzer 5893 506164 41287 0 3 0x4000082 thrsleep syz-fuzzer 5893 113020 41287 0 3 0x4000082 thrsleep syz-fuzzer 5893 322610 41287 0 3 0x4000082 kqread syz-fuzzer 5893 161729 41287 0 3 0x4000082 thrsleep syz-fuzzer 5893 279592 41287 0 3 0x4000082 thrsleep syz-fuzzer 5893 479166 41287 0 3 0x4000082 thrsleep syz-fuzzer 5893 119834 41287 0 3 0x4000082 thrsleep syz-fuzzer 5893 309298 41287 0 3 0x4000082 thrsleep syz-fuzzer 5893 241522 41287 0 3 0x4000082 thrsleep syz-fuzzer 41287 88667 56989 0 3 0x10008a pause ksh 56989 52018 32573 0 3 0x92 select sshd 69983 97302 1 0 3 0x100083 ttyin getty 32573 397926 1 0 3 0x80 select sshd 36411 85476 9950 74 3 0x100092 bpf pflogd 9950 94007 1 0 3 0x80 netio pflogd 18818 60856 47920 73 7 0x100010 syslogd 47920 133944 1 0 3 0x100082 netio syslogd 96069 276271 1 77 3 0x100090 poll dhclient *97498 326724 1 0 7 0 dhclient 8581 233293 0 0 3 0x14200 bored smr 61690 451233 0 0 2 0x14200 zerothread 46612 224092 0 0 3 0x14200 aiodoned aiodoned 12953 182836 0 0 3 0x14200 syncer update 86706 513067 0 0 3 0x14200 cleaner cleaner 45734 166284 0 0 3 0x14200 reaper reaper 22008 485073 0 0 3 0x14200 pgdaemon pagedaemon 65886 50584 0 0 3 0x14200 bored crynlk 23966 296488 0 0 3 0x14200 bored crypto 43034 461181 0 0 3 0x40014200 acpi0 acpi0 11023 91434 0 0 3 0x40014200 idle1 33957 336418 0 0 3 0x14200 bored softnet 47235 589 0 0 3 0x14200 bored systqmp 42592 357406 0 0 3 0x14200 bored systq 39288 23400 0 0 3 0x40014200 bored softclock 5437 271539 0 0 3 0x40014200 idle0 1 275984 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 97498 (dhclient) thread 0xffff800020ddcc38 (326724) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828b6580) #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 9477 6401K 6528K 78643K 10595 0 pcb 13 8K 8K 78643K 23 0 rtable 100 3K 8K 78643K 264 0 ifaddr 50 11K 11K 78643K 64 0 counters 45 34K 34K 78643K 45 0 ioctlops 0 0K 4K 78643K 1475 0 iov 0 0K 0K 78643K 4 0 mount 1 1K 1K 78643K 1 0 vnodes 1223 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 10 0K 0K 78643K 12 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 60 0 proc 60 63K 83K 78643K 440 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 2 0 in_multi 36 2K 2K 78643K 49 0 ether_multi 1 0K 0K 78643K 2 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 120 22K 23K 78643K 1116 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 4 0 NDP 7 0K 0K 78643K 12 0 temp 78 3857K 3921K 78643K 2112 0 kqueue 3 4K 8K 78643K 5 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 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 49 0 8 2 0 2 2 0 8 0 unpcb 120 51 0 41 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 307 0 307 1 0 1 1 0 8 1 tcpcb 544 14 0 10 1 0 1 1 0 8 0 inpcb 296 72 0 64 1 0 1 1 0 8 0 nd6 48 7 0 3 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 26 0 26 1 0 1 1 0 8 1 pfstitem 24 16 0 0 1 0 1 1 0 8 0 pfstkey 112 16 0 0 1 0 1 1 0 8 0 pfstate 328 16 0 0 2 0 2 2 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 212 0 40 12 0 12 12 0 8 0 art_table 32 213 0 40 2 0 2 2 0 8 0 art_node 16 48 0 10 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 112 8 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1457 0 50 89 0 89 89 0 8 1 ffsino 272 1457 0 50 94 0 94 94 0 8 0 nchpl 144 1722 0 110 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 4520 0 4520 1 0 1 1 0 8 1 percpumem 16 33 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 8 0 8 1 0 1 1 0 8 1 scxspl 192 4941 0 4941 4 1 3 3 0 8 3 plimitpl 152 17 0 9 1 0 1 1 0 8 0 sigapl 424 275 0 243 4 0 4 4 0 8 0 futexpl 56 453 0 449 1 0 1 1 0 8 0 knotepl 112 63 0 44 1 0 1 1 0 8 0 kqueuepl 144 6 0 4 1 0 1 1 0 8 0 pipepl 304 81 0 71 2 0 2 2 0 8 1 fdescpl 496 260 0 243 3 0 3 3 0 8 0 filepl 152 1318 0 1214 5 0 5 5 0 8 0 lockfpl 104 5 0 4 1 0 1 1 0 8 0 lockfspl 48 3 0 2 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 78 0 69 1 0 1 1 0 8 0 zombiepl 144 243 0 243 1 0 1 1 0 8 1 processpl 992 275 0 243 5 0 5 5 0 8 1 procpl 624 354 0 309 4 0 4 4 0 8 0 sockpl 400 142 0 122 4 0 4 4 0 8 1 mcl64k 65536 10 0 0 2 0 2 2 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 171 0 0 21 0 21 21 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 197 0 0 12 0 12 12 0 8 0 bufpl 280 3454 0 132 238 0 238 238 0 8 0 anonpl 16 39986 0 24663 63 1 62 62 0 124 0 amapchunkpl 152 1357 0 1197 10 0 10 10 0 158 2 amappl16 192 1048 0 230 41 0 41 41 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 48 0 42 1 0 1 1 0 8 0 amappl13 168 29 0 26 1 0 1 1 0 8 0 amappl12 160 6 0 5 2 1 1 1 0 8 0 amappl11 152 76 0 58 1 0 1 1 0 8 0 amappl10 144 23 0 16 1 0 1 1 0 8 0 amappl9 136 402 0 398 1 0 1 1 0 8 0 amappl8 128 340 0 314 1 0 1 1 0 8 0 amappl7 120 119 0 107 1 0 1 1 0 8 0 amappl6 112 24 0 19 1 0 1 1 0 8 0 amappl5 104 141 0 125 1 0 1 1 0 8 0 amappl4 96 503 0 474 1 0 1 1 0 8 0 amappl3 88 121 0 114 1 0 1 1 0 8 0 amappl2 80 1121 0 1043 2 0 2 2 0 8 0 amappl1 72 15768 0 15304 23 8 15 18 0 8 5 amappl 80 610 0 559 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 260 0 243 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 260 0 243 1 0 1 1 0 8 0 vmmpekpl 168 6193 0 6160 2 0 2 2 0 8 0 vmmpepl 168 39542 0 37445 114 4 110 110 0 357 18 vmsppl 368 259 0 243 2 0 2 2 0 8 0 pdppl 4096 527 0 486 6 0 6 6 0 8 0 pvpl 32 139488 0 120939 150 0 150 150 0 265 0 pmappl 232 259 0 243 2 0 2 2 0 8 1 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 257 0 3 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82729ff0) 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_cmp4(ffffffff828b6378,ffffffff828b6378) at __sanitizer_cov_trace_cmp4+0x6b sys/dev/kcov.c:137 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff828b6378) at __mp_lock+0x12e __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828b6378) at __mp_lock+0x12e sys/kern/kern_lock.c:147 solock(fffffd806eaf0328) at solock+0x66 sys/kern/uipc_socket2.c:292 soreceive(fffffd806eaf0328,ffff800020e54080,ffff800020e54048,0,0,ffff800020e54174) at soreceive+0x114 sys/kern/uipc_socket.c:737 recvit(ffff800020e4e600,8,ffff800020e54148,7f7fffff4d14,ffff800020e54230) at recvit+0x32b sys/kern/uipc_syscalls.c:817 sys_recvfrom(ffff800020e4e600,ffff800020e541e0,ffff800020e54230) at sys_recvfrom+0xd0 sys/kern/uipc_syscalls.c:717 syscall(ffff800020e542b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e542b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff4c90, count: 2 ddb{0}> trace x86_ipi_db(ffffffff82729ff0) 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_cmp4(ffffffff828b6378,ffffffff828b6378) at __sanitizer_cov_trace_cmp4+0x6b sys/dev/kcov.c:137 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f __mp_lock(ffffffff828b6378) at __mp_lock+0x12e __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828b6378) at __mp_lock+0x12e sys/kern/kern_lock.c:147 solock(fffffd806eaf0328) at solock+0x66 sys/kern/uipc_socket2.c:292 soreceive(fffffd806eaf0328,ffff800020e54080,ffff800020e54048,0,0,ffff800020e54174) at soreceive+0x114 sys/kern/uipc_socket.c:737 recvit(ffff800020e4e600,8,ffff800020e54148,7f7fffff4d14,ffff800020e54230) at recvit+0x32b sys/kern/uipc_syscalls.c:817 sys_recvfrom(ffff800020e4e600,ffff800020e541e0,ffff800020e54230) at sys_recvfrom+0xd0 sys/kern/uipc_syscalls.c:717 syscall(ffff800020e542b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e542b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff4c90, count: -13 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(ffffffff823f4991) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68e000,0,ffff800020e1ec88,0,0,ffff800020e1eb94) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd807c7f6390,ffff800020e1ec88,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1ec88,0,ffff800020e1ed70) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1ed20,ffff800020e1ed70) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1edf0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1edf0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd4720, count: 7 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f4991) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f68e000,0,ffff800020e1ec88,0,0,ffff800020e1eb94) at soreceive+0x16ec sys/kern/uipc_socket.c:829 soo_read(fffffd807c7f6390,ffff800020e1ec88,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddcc38,6,ffff800020e1ec88,0,ffff800020e1ed70) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddcc38,ffff800020e1ed20,ffff800020e1ed70) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1edf0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1edf0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd4720, count: -8