panic: receive 3: so 0xfffffd806f67f4b0, so_type 3, m 0xfffffd806f288e00, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *319232 51166 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823de52e) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f67f4b0,0,ffff800020e1e7b8,0,0,ffff800020e1e6c4) at soreceive+0x1727 soo_read(fffffd806fc36558,ffff800020e1e7b8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc9c8,6,ffff800020e1e7b8,0,ffff800020e1e8a0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc9c8,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: 0x7f7ffffd9ed0, 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 3: so 0xfffffd806f67f4b0, so_type 3, m 0xfffffd806f288e00, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823de52e) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f67f4b0,0,ffff800020e1e7b8,0,0,ffff800020e1e6c4) at soreceive+0x1727 soo_read(fffffd806fc36558,ffff800020e1e7b8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc9c8,6,ffff800020e1e7b8,0,ffff800020e1e8a0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc9c8,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: 0x7f7ffffd9ed0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1e500 rbx 0xffff800020e1e5b0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff821bbd5f kprintf+0x16f r9 0x1 r10 0x2 r11 0xfcc90870714e96cb r12 0x3000000008 r13 0xffff800020e1e510 r14 0x100 r15 0x1 rip 0xffffffff82246688 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1e4f0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=319232 stat=onproc flags process=0 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddcc38,0xffff800020ddceb8 process=0xffff800020df1370 user=0xffff800020e19000, vmspace=0xfffffd807efff450 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 30470 442322 4405 0 2 0 syz-executor.1 30470 31033 4405 0 2 0x4000000 syz-executor.1 81310 448140 0 0 3 0x14280 nfsidl nfsio 95183 213489 0 0 3 0x14280 nfsidl nfsio 19961 505290 0 0 3 0x14280 nfsidl nfsio 73690 486913 0 0 3 0x14280 nfsidl nfsio 79038 320037 0 0 3 0x14280 nfsidl nfsio 7422 338862 0 0 3 0x14280 nfsidl nfsio 75396 38384 0 0 3 0x14280 nfsidl nfsio 87106 171845 0 0 3 0x14280 nfsidl nfsio 53146 68616 0 0 3 0x14280 nfsidl nfsio 63534 167666 0 0 3 0x14280 nfsidl nfsio 85314 411124 0 0 3 0x14280 nfsidl nfsio 20880 143088 0 0 3 0x14280 nfsidl nfsio 41238 481075 0 0 3 0x14280 nfsidl nfsio 50209 311917 0 0 3 0x14280 nfsidl nfsio 38051 382351 0 0 3 0x14280 nfsidl nfsio 87500 46787 0 0 3 0x14280 nfsidl nfsio 67466 171788 0 0 3 0x14280 nfsidl nfsio 57623 499229 0 0 3 0x14280 nfsidl nfsio 34767 353603 0 0 3 0x14280 nfsidl nfsio 28128 62472 0 0 3 0x14280 nfsidl nfsio 97768 361735 0 0 3 0x14200 bored sosplice 4405 414760 13198 0 2 0x482 syz-executor.1 85230 271749 13198 0 2 0x2 syz-executor.0 13198 106797 4499 0 3 0x82 thrsleep syz-fuzzer 13198 134115 4499 0 3 0x4000082 nanosleep syz-fuzzer 13198 241433 4499 0 3 0x4000082 thrsleep syz-fuzzer 13198 338161 4499 0 3 0x4000082 thrsleep syz-fuzzer 13198 412606 4499 0 3 0x4000082 thrsleep syz-fuzzer 13198 12851 4499 0 3 0x4000082 thrsleep syz-fuzzer 13198 294717 4499 0 2 0x4000482 syz-fuzzer 13198 378364 4499 0 3 0x4000082 thrsleep syz-fuzzer 13198 510722 4499 0 3 0x4000082 kqread syz-fuzzer 13198 412600 4499 0 3 0x4000082 thrsleep syz-fuzzer 4499 303212 54340 0 3 0x10008a pause ksh 54340 140809 58519 0 3 0x92 select sshd 25667 414720 1 0 3 0x100083 ttyin getty 58519 324569 1 0 3 0x80 select sshd 26625 387567 25551 74 3 0x100092 bpf pflogd 25551 431079 1 0 3 0x80 netio pflogd 83916 461942 55116 73 3 0x100090 kqread syslogd 55116 153836 1 0 3 0x100082 netio syslogd 74554 446287 1 77 3 0x100090 poll dhclient *51166 319232 1 0 7 0 dhclient 78620 438152 0 0 3 0x14200 bored smr 74280 8181 0 0 2 0x14200 zerothread 96736 37674 0 0 3 0x14200 aiodoned aiodoned 3282 84730 0 0 3 0x14200 syncer update 99592 107036 0 0 3 0x14200 cleaner cleaner 70672 238945 0 0 3 0x14200 reaper reaper 12247 485006 0 0 3 0x14200 pgdaemon pagedaemon 38392 120403 0 0 3 0x14200 bored crynlk 29488 474135 0 0 3 0x14200 bored crypto 42294 465495 0 0 3 0x40014200 acpi0 acpi0 39459 94605 0 0 7 0x40014200 idle1 91879 295511 0 0 3 0x14200 bored softnet 60692 470797 0 0 3 0x14200 bored systqmp 74915 118420 0 0 3 0x14200 bored systq 801 439479 0 0 2 0x40014200 softclock 14015 514888 0 0 3 0x40014200 idle0 1 77362 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 85230 (syz-executor.0) thread 0xffff800020dddad8 (271749) exclusive rrwlock inode r = 0 (0xfffffd806e3723c8) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:311 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:462 #3 ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140 #4 ffs_vget+0x13e sys/ufs/ffs/ffs_vfsops.c:1358 #5 ffs_inode_alloc+0x1e2 sys/ufs/ffs/ffs_alloc.c:394 #6 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1162 #7 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 #8 domkdirat+0x121 sys/kern/vfs_syscalls.c:3051 #9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #10 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806b1f6c48) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:311 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:462 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:603 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:575 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:3036 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #9 Xsyscall+0x128 Process 51166 (dhclient) thread 0xffff800020ddc9c8 (319232) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828bf0e0) #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+0xb3a sys/kern/uipc_socket.c:956 #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 9508 6413K 6792K 78643K 11823 0 pcb 13 8K 8K 78643K 65 0 rtable 135 10K 13K 78643K 515 0 ifaddr 79 17K 17K 78643K 173 0 sysctl 2 0K 0K 78643K 2 0 counters 45 34K 34K 78643K 63 0 ioctlops 0 0K 4K 78643K 1567 0 iov 0 0K 16K 78643K 37 0 mount 1 1K 1K 78643K 1 0 vnodes 1231 77K 78K 78643K 2065 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 8 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 197 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 585 0 sigio 0 0K 0K 78643K 4 0 proc 62 63K 83K 78643K 441 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 28 0 in_multi 61 3K 3K 78643K 152 0 ether_multi 1 0K 0K 78643K 5 0 mrt 0 0K 0K 78643K 7 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 43 201K 201K 78643K 43 0 exec 0 0K 1K 78643K 259 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 121 55K 55K 78643K 2363 0 UVM aobj 18 4K 4K 78643K 29 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 44 0 NDP 10 0K 0K 78643K 32 0 temp 97 3861K 3925K 78643K 11591 0 kqueue 3 4K 12K 78643K 32 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 23 0 21 1 0 1 1 0 8 0 rtentry 112 86 0 43 2 0 2 2 0 8 0 unpcb 120 143 0 133 1 0 1 1 0 8 0 syncache 264 6 0 6 2 1 1 1 0 8 1 tcpqe 32 127 0 127 1 1 0 1 0 8 0 tcpcb 544 128 0 124 2 1 1 2 0 8 0 inpcb 296 548 0 541 2 0 2 2 0 8 1 rttmr 72 3 0 3 1 1 0 1 0 8 0 nd6 48 23 0 19 1 0 1 1 0 8 0 pkpcb 40 6 0 6 2 2 0 1 0 8 0 pffrag 232 16 0 16 2 1 1 1 0 482 1 pffrnode 88 16 0 16 2 1 1 1 0 8 1 pffrent 40 118 0 118 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 81 0 66 2 0 2 2 0 8 0 pfstitem 24 23 0 10 1 0 1 1 0 8 0 pfstkey 112 23 0 10 1 0 1 1 0 8 0 pfstate 328 23 0 10 2 0 2 2 0 8 0 pfrule 1360 45 0 30 3 1 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 280 0 104 12 0 12 12 0 8 0 art_table 32 281 0 104 2 0 2 2 0 8 0 art_node 16 83 0 44 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 6 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 186 0 176 1 0 1 1 0 8 0 shmpl 112 26 0 11 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2127 0 724 89 0 89 89 0 8 0 ffsino 272 2127 0 724 94 0 94 94 0 8 0 nchpl 144 3116 0 1505 60 0 60 60 0 8 0 uvmvnodes 72 2956 0 0 54 0 54 54 0 8 0 vnodes 208 2956 0 0 156 0 156 156 0 8 0 namei 1024 8943 0 8942 1 0 1 1 0 8 0 percpumem 16 42 0 9 1 0 1 1 0 8 0 vcpupl 1984 3 0 0 1 0 1 1 0 8 0 vmpool 560 11 0 8 1 0 1 1 0 8 0 pfiaddrpl 120 30 0 18 1 0 1 1 0 8 0 scxspl 192 9240 0 9240 8 7 1 7 0 8 1 plimitpl 152 51 0 43 1 0 1 1 0 8 0 sigapl 424 821 0 769 6 0 6 6 0 8 0 futexpl 56 10397 0 10397 1 0 1 1 0 8 1 knotepl 112 102 0 83 1 0 1 1 0 8 0 kqueuepl 144 84 0 82 1 0 1 1 0 8 0 pipepl 304 139 0 129 2 1 1 2 0 8 0 fdescpl 496 785 0 769 3 0 3 3 0 8 0 filepl 152 4188 0 4087 6 1 5 6 0 8 1 lockfpl 104 93 0 92 1 0 1 1 0 8 0 lockfspl 48 33 0 32 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 359 0 350 1 0 1 1 0 8 0 zombiepl 144 769 0 769 1 0 1 1 0 8 1 processpl 992 821 0 769 7 0 7 7 0 8 0 procpl 624 1591 0 1529 6 0 6 6 0 8 1 sosppl 128 4 0 4 2 1 1 1 0 8 1 sockpl 400 721 0 702 4 1 3 4 0 8 1 mcl64k 65536 7 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 249 0 0 31 0 31 31 0 8 0 mtagpl 96 41 0 0 1 0 1 1 0 8 0 mbufpl 256 302 0 0 18 0 18 18 0 8 0 bufpl 280 5110 0 135 356 0 356 356 0 8 0 anonpl 16 82258 0 65066 88 9 79 86 0 124 8 amapchunkpl 152 4007 0 3856 21 13 8 20 0 158 1 amappl16 192 3145 0 2218 59 11 48 59 0 8 1 amappl15 184 266 0 263 1 0 1 1 0 8 0 amappl14 176 314 0 307 1 0 1 1 0 8 0 amappl13 168 29 0 26 1 0 1 1 0 8 0 amappl12 160 4 0 3 2 1 1 1 0 8 0 amappl11 152 341 0 324 1 0 1 1 0 8 0 amappl10 144 283 0 276 1 0 1 1 0 8 0 amappl9 136 384 0 383 1 0 1 1 0 8 0 amappl8 128 350 0 320 1 0 1 1 0 8 0 amappl7 120 118 0 106 1 0 1 1 0 8 0 amappl6 112 313 0 307 1 0 1 1 0 8 0 amappl5 104 409 0 391 1 0 1 1 0 8 0 amappl4 96 776 0 747 1 0 1 1 0 8 0 amappl3 88 152 0 146 1 0 1 1 0 8 0 amappl2 80 5602 0 5530 2 0 2 2 0 8 0 amappl1 72 28780 0 28335 23 13 10 18 0 8 0 amappl 80 1834 0 1789 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 28 0 11 1 0 1 1 0 8 0 uaddrrnd 24 796 0 777 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 796 0 777 1 0 1 1 0 8 0 vmmpekpl 168 9039 0 8997 2 0 2 2 0 8 0 vmmpepl 168 102279 0 100179 122 21 101 117 0 357 8 vmsppl 368 795 0 777 2 0 2 2 0 8 0 pdppl 4096 1599 0 1557 6 0 6 6 0 8 0 pvpl 32 267223 0 246846 204 8 196 203 0 265 29 pmappl 232 795 0 777 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 278 0 5 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(ffffffff823de52e) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f67f4b0,0,ffff800020e1e7b8,0,0,ffff800020e1e6c4) at soreceive+0x1727 soo_read(fffffd806fc36558,ffff800020e1e7b8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc9c8,6,ffff800020e1e7b8,0,ffff800020e1e8a0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc9c8,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: 0x7f7ffffd9ed0, 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 acpicpu_idle() at acpicpu_idle+0x331 sys/dev/acpi/acpicpu.c:1187 sched_idle(ffff800020d70ff0) at sched_idle+0x3f7 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: 10 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 acpicpu_idle() at acpicpu_idle+0x331 sys/dev/acpi/acpicpu.c:1187 sched_idle(ffff800020d70ff0) at sched_idle+0x3f7 sys/kern/kern_sched.c:178 end trace frame: 0x0, count: -5