panic: receive 3: so 0xfffffd806f688000, so_type 3, m 0xfffffd806f2cf100, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *359572 38591 0 0 0 0K dhclient 261158 63408 0 0x14000 0x200 1 reaper db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e29ff) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f688000,0,ffff800020e1ed88,0,0,ffff800020e1ec94) at soreceive+0x1727 soo_read(fffffd80727f7428,ffff800020e1ed88,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc758,6,ffff800020e1ed88,0,ffff800020e1ee70) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc758,ffff800020e1ee20,ffff800020e1ee70) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1eef0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1eef0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd1ee0, 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 0xfffffd806f688000, so_type 3, m 0xfffffd806f2cf100, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823e29ff) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f688000,0,ffff800020e1ed88,0,0,ffff800020e1ec94) at soreceive+0x1727 soo_read(fffffd80727f7428,ffff800020e1ed88,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc758,6,ffff800020e1ed88,0,ffff800020e1ee70) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc758,ffff800020e1ee20,ffff800020e1ee70) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1eef0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1eef0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd1ee0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1ead0 rbx 0xffff800020e1eb80 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff8150d54f kprintf+0x16f r9 0x1 r10 0x2 r11 0xdf9ac3b649be7ceb r12 0x3000000008 r13 0xffff800020e1eae0 r14 0x100 r15 0x1 rip 0xffffffff818b9b58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1eac0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=359572 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddd118,0xffff800020ddc9d8 process=0xffff800020df0f90 user=0xffff800020e19000, vmspace=0xfffffd807effe5c0 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 44340 233574 65879 0 3 0x3000 suspend syz-executor.1 44340 221276 65879 0 2 0x4081000 syz-executor.1 80174 301602 1893 0 2 0x2 syz-executor.0 89907 300981 0 0 3 0x14200 bored sosplice 65879 369386 1893 0 3 0x82 nanosleep syz-executor.1 1893 467862 6557 0 3 0x82 thrsleep syz-fuzzer 1893 460395 6557 0 3 0x4000082 nanosleep syz-fuzzer 1893 79907 6557 0 3 0x4000082 thrsleep syz-fuzzer 1893 351468 6557 0 3 0x4000082 thrsleep syz-fuzzer 1893 139104 6557 0 3 0x4000082 thrsleep syz-fuzzer 1893 121516 6557 0 3 0x4000082 kqread syz-fuzzer 1893 225996 6557 0 2 0x4000002 syz-fuzzer 1893 230038 6557 0 3 0x4000082 thrsleep syz-fuzzer 1893 351546 6557 0 3 0x4000082 thrsleep syz-fuzzer 1893 234690 6557 0 3 0x4000082 thrsleep syz-fuzzer 6557 477338 7622 0 3 0x10008a pause ksh 7622 383253 33833 0 3 0x92 select sshd 73237 382355 1 0 3 0x100083 ttyin getty 33833 242210 1 0 3 0x80 select sshd 27640 321181 87575 74 3 0x100092 bpf pflogd 87575 209254 1 0 3 0x80 netio pflogd 41053 252085 7332 73 3 0x100090 kqread syslogd 7332 212605 1 0 3 0x100082 netio syslogd 46591 484548 1 77 3 0x100090 poll dhclient *38591 359572 1 0 7 0 dhclient 86463 203318 0 0 3 0x14200 bored smr 9045 155820 0 0 2 0x14200 zerothread 47121 437304 0 0 3 0x14200 aiodoned aiodoned 31614 94340 0 0 3 0x14200 syncer update 94300 169541 0 0 3 0x14200 cleaner cleaner 63408 261158 0 0 7 0x14200 reaper 6079 72124 0 0 3 0x14200 pgdaemon pagedaemon 42512 244992 0 0 3 0x14200 bored crynlk 62315 463989 0 0 3 0x14200 bored crypto 41364 79487 0 0 3 0x40014200 acpi0 acpi0 78518 479333 0 0 3 0x40014200 idle1 13255 226444 0 0 3 0x14200 bored softnet 58917 509519 0 0 3 0x14200 bored systqmp 64109 60963 0 0 3 0x14200 bored systq 19373 3402 0 0 3 0x40014200 bored softclock 6826 81114 0 0 3 0x40014200 idle0 1 406368 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 80174 (syz-executor.0) thread 0xffff800020e09768 (301602) exclusive rrwlock inode r = 0 (0xfffffd806b2086f8) #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 vget+0x1c8 sys/kern/vfs_subr.c:671 #6 ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1329 #8 ufs_lookup+0x14b7 sys/ufs/ufs/ufs_lookup.c:487 #9 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 #10 vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:568 #11 namei+0x63c sys/kern/vfs_lookup.c:249 #12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1853 #13 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #13 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806b2082b8) #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 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1853 #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 38591 (dhclient) thread 0xffff800020ddc758 (359572) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828fd198) #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 6406K 6728K 78643K 10822 0 pcb 13 8K 8K 78643K 39 0 rtable 108 4K 7K 78643K 369 0 ifaddr 61 13K 13K 78643K 106 0 counters 43 33K 34K 78643K 51 0 ioctlops 0 0K 4K 78643K 1491 0 iov 0 0K 12K 78643K 16 0 mount 1 1K 1K 78643K 1 0 vnodes 1222 77K 77K 78643K 1300 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 7 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 40 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 216 0 sigio 0 0K 0K 78643K 10 0 proc 61 63K 95K 78643K 488 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 4 0K 0K 78643K 252 0 in_multi 34 2K 2K 78643K 108 0 ether_multi 1 0K 0K 78643K 4 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 37 175K 175K 78643K 37 0 exec 0 0K 1K 78643K 225 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 123 23K 39K 78643K 1632 0 UVM aobj 15 4K 4K 78643K 19 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 10 0 NDP 9 0K 0K 78643K 22 0 temp 100 3857K 3921K 78643K 4879 0 kqueue 3 4K 6K 78643K 7 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 8 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 35 0 33 1 0 1 1 0 8 0 rtentry 112 70 0 27 2 0 2 2 0 8 0 unpcb 120 89 0 79 1 0 1 1 0 8 0 syncache 264 6 0 6 2 1 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 239 0 239 1 1 0 1 0 8 0 tcpcb 544 42 0 38 1 0 1 1 0 8 0 inpcb 296 337 0 328 2 0 2 2 0 8 0 nd6 48 12 0 8 1 0 1 1 0 8 0 pkpcb 40 52 0 52 1 0 1 1 0 8 1 ppxss 1136 1 0 1 1 1 0 1 0 8 0 pffrag 232 5 0 5 1 1 0 1 0 482 0 pffrnode 88 5 0 5 1 1 0 1 0 8 0 pffrent 40 12 0 12 1 1 0 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 33 0 32 1 0 1 1 0 8 0 pfstitem 24 28 0 2 1 0 1 1 0 8 0 pfstkey 112 28 0 2 1 0 1 1 0 8 0 pfstate 328 28 0 2 3 0 3 3 0 8 0 pfrule 1360 28 0 20 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 310 0 132 13 0 13 13 0 8 0 art_table 32 311 0 132 2 0 2 2 0 8 0 art_node 16 69 0 29 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 5 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 36 0 26 1 0 1 1 0 8 0 shmpl 112 16 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1633 0 227 89 1 88 89 0 8 0 ffsino 272 1633 0 227 94 0 94 94 0 8 0 nchpl 144 2092 0 496 60 0 60 60 0 8 0 uvmvnodes 72 1742 0 0 32 0 32 32 0 8 0 vnodes 208 1742 0 0 92 0 92 92 0 8 0 namei 1024 5706 0 5706 1 0 1 1 0 8 1 percpumem 16 36 0 4 1 0 1 1 0 8 0 vmpool 560 1 0 1 1 0 1 1 0 8 1 pfiaddrpl 120 10 0 10 1 0 1 1 0 8 1 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 6145 0 6145 8 3 5 7 0 8 5 plimitpl 152 27 0 19 1 0 1 1 0 8 0 sigapl 424 429 0 397 4 0 4 4 0 8 0 futexpl 56 2559 0 2559 1 0 1 1 0 8 1 knotepl 112 78 0 59 1 0 1 1 0 8 0 kqueuepl 144 32 0 30 1 0 1 1 0 8 0 pipepl 304 97 0 87 2 1 1 2 0 8 0 fdescpl 496 413 0 397 3 0 3 3 0 8 0 filepl 152 2206 0 2103 5 0 5 5 0 8 0 lockfpl 104 83 0 82 1 0 1 1 0 8 0 lockfspl 48 39 0 38 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 19 0 8 1 0 1 1 0 8 0 ucredpl 96 216 0 206 1 0 1 1 0 8 0 zombiepl 144 398 0 397 1 0 1 1 0 8 0 processpl 992 429 0 397 5 0 5 5 0 8 0 procpl 624 800 0 757 4 0 4 4 0 8 0 sosppl 128 8 0 8 1 0 1 1 0 8 1 sockpl 400 515 0 494 5 1 4 4 0 8 1 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 234 0 0 29 0 29 29 0 8 0 mtagpl 96 21 0 0 1 0 1 1 0 8 0 mbufpl 256 252 0 0 16 0 16 16 0 8 0 bufpl 280 3633 0 133 250 0 250 250 0 8 0 anonpl 16 57698 0 42190 75 1 74 74 0 124 7 amapchunkpl 152 3170 0 3019 20 5 15 20 0 158 7 amappl16 192 1657 0 768 45 0 45 45 0 8 0 amappl15 184 83 0 81 2 1 1 1 0 8 0 amappl14 176 47 0 42 1 0 1 1 0 8 0 amappl13 168 43 0 40 1 0 1 1 0 8 0 amappl12 160 10 0 7 1 0 1 1 0 8 0 amappl11 152 77 0 61 1 0 1 1 0 8 0 amappl10 144 161 0 154 1 0 1 1 0 8 0 amappl9 136 382 0 381 1 0 1 1 0 8 0 amappl8 128 375 0 345 2 0 2 2 0 8 0 amappl7 120 184 0 171 1 0 1 1 0 8 0 amappl6 112 49 0 43 1 0 1 1 0 8 0 amappl5 104 292 0 274 1 0 1 1 0 8 0 amappl4 96 523 0 497 1 0 1 1 0 8 0 amappl3 88 108 0 101 1 0 1 1 0 8 0 amappl2 80 2349 0 2278 2 0 2 2 0 8 0 amappl1 72 20802 0 20345 23 13 10 18 0 8 0 amappl 80 1077 0 1032 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 18 0 4 1 0 1 1 0 8 0 uaddrrnd 24 414 0 398 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 414 0 398 1 0 1 1 0 8 0 vmmpekpl 168 7080 0 7041 2 0 2 2 0 8 0 vmmpepl 168 59604 0 57543 132 8 124 124 0 357 29 vmsppl 368 413 0 398 2 0 2 2 0 8 0 pdppl 4096 835 0 796 6 0 6 6 0 8 0 pvpl 32 185780 0 167062 179 0 179 179 0 265 20 pmappl 232 413 0 398 3 1 2 2 0 8 1 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 271 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(ffffffff823e29ff) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f688000,0,ffff800020e1ed88,0,0,ffff800020e1ec94) at soreceive+0x1727 soo_read(fffffd80727f7428,ffff800020e1ed88,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddc758,6,ffff800020e1ed88,0,ffff800020e1ee70) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddc758,ffff800020e1ee20,ffff800020e1ee70) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1eef0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1eef0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd1ee0, 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 __mp_lock(ffffffff828fcf90) at __mp_lock+0x139 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828fcf90) at __mp_lock+0x139 sys/kern/kern_lock.c:147 reaper(ffff800020d89860) at reaper+0x14e sys/kern/kern_exit.c:444 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 __mp_lock(ffffffff828fcf90) at __mp_lock+0x139 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828fcf90) at __mp_lock+0x139 sys/kern/kern_lock.c:147 reaper(ffff800020d89860) at reaper+0x14e sys/kern/kern_exit.c:444 end trace frame: 0x0, count: -5