panic: receive 1a: so 0xfffffd806f6f2000, so_type 3, m 0xfffffd806f187300, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 291887 19756 0 0 0 0 syz-executor.0 *268858 61319 0 0 0 1K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d6636) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f2000,0,ffff800020abd6c8,0,0,ffff800020abd5d4) at soreceive+0x174a sys/kern/uipc_socket.c:977 soo_read(fffffd8072df32f8,ffff800020abd6c8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c4e8,6,ffff800020abd6c8,0,ffff800020abd7b0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7c4e8,ffff800020abd760,ffff800020abd7b0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abd830) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abd830) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffddf20, 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 1a: so 0xfffffd806f6f2000, so_type 3, m 0xfffffd806f187300, m_type 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d6636) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f2000,0,ffff800020abd6c8,0,0,ffff800020abd5d4) at soreceive+0x174a sys/kern/uipc_socket.c:977 soo_read(fffffd8072df32f8,ffff800020abd6c8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c4e8,6,ffff800020abd6c8,0,ffff800020abd7b0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7c4e8,ffff800020abd760,ffff800020abd7b0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abd830) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abd830) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffddf20, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abd410 rbx 0xffff800020abd4c0 rdx 0xffff800020a7c4e8 rcx 0 rax 0 r8 0xffffffff81728d5f kprintf+0x16f r9 0x1 r10 0x25 r11 0xf3cbd4b5e3b018 r12 0x3000000008 r13 0xffff800020abd420 r14 0x100 r15 0x1 rip 0xffffffff819fac58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abd400 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=268858 stat=onproc flags process=0 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7d5f8,0xffff800020a7c288 process=0xffff800020a90b50 user=0xffff800020ab8000, vmspace=0xfffffd807f0002e0 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 19756 291887 29047 0 7 0 syz-executor.0 19756 173637 29047 0 3 0x4000080 fsleep syz-executor.0 19756 315120 29047 0 2 0x4000000 syz-executor.0 25946 304280 0 0 3 0x14200 acct acct 39832 297334 0 0 3 0x14200 bored sosplice 14821 110290 59006 0 3 0x2 biowait syz-executor.1 29047 33963 59006 0 3 0x82 nanosleep syz-executor.0 59006 384575 72102 0 3 0x82 thrsleep syz-fuzzer 59006 366381 72102 0 3 0x4000082 nanosleep syz-fuzzer 59006 234300 72102 0 3 0x4000082 thrsleep syz-fuzzer 59006 282278 72102 0 3 0x4000082 thrsleep syz-fuzzer 59006 26796 72102 0 3 0x4000082 thrsleep syz-fuzzer 59006 107031 72102 0 3 0x4000082 nanosleep syz-fuzzer 59006 413439 72102 0 3 0x4000082 kqread syz-fuzzer 59006 263642 72102 0 3 0x4000082 thrsleep syz-fuzzer 59006 141252 72102 0 3 0x4000082 thrsleep syz-fuzzer 59006 279829 72102 0 3 0x4000082 thrsleep syz-fuzzer 72102 202546 28164 0 3 0x10008a pause ksh 28164 488170 93315 0 3 0x92 select sshd 32756 252010 1 0 3 0x100083 ttyin getty 93315 79586 1 0 3 0x80 select sshd 53495 138620 34895 74 3 0x100092 bpf pflogd 34895 519600 1 0 3 0x80 netio pflogd 7869 22977 5516 73 3 0x100090 kqread syslogd 5516 446245 1 0 3 0x100082 netio syslogd 3268 238215 1 77 3 0x100090 poll dhclient *61319 268858 1 0 7 0 dhclient 34213 497328 0 0 2 0x14200 zerothread 95341 346612 0 0 3 0x14200 aiodoned aiodoned 57320 185440 0 0 3 0x14200 syncer update 3698 266224 0 0 3 0x14200 cleaner cleaner 94154 319544 0 0 3 0x14200 reaper reaper 67658 426200 0 0 3 0x14200 pgdaemon pagedaemon 22204 256721 0 0 3 0x14200 bored crynlk 64890 160173 0 0 3 0x14200 bored crypto 46206 512357 0 0 3 0x40014200 acpi0 acpi0 26273 12844 0 0 3 0x40014200 idle1 61992 180400 0 0 3 0x14200 bored softnet 51005 492640 0 0 3 0x14200 bored systqmp 1810 179190 0 0 3 0x14200 bored systq 50776 336654 0 0 3 0x40014200 bored softclock 30039 37801 0 0 3 0x40014200 idle0 76303 322739 0 0 3 0x14200 bored smr 1 174778 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 14821 (syz-executor.1) thread 0xffff800020a7c9c8 (110290) exclusive rrwlock inode r = 0 (0xfffffd8076d0af80) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:453 #3 ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140 #4 ffs_vget+0x13e sys/ufs/ffs/ffs_vfsops.c:1352 #5 ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392 #6 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1164 #7 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:449 #8 domkdirat+0x121 sys/kern/vfs_syscalls.c:3058 #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 (0xfffffd806b432b38) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:453 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:602 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:573 #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:3043 #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 61319 (dhclient) thread 0xffff800020a7c4e8 (268858) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82632958) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 solock+0x66 sys/kern/uipc_socket2.c:292 #2 soreceive+0x114 sys/kern/uipc_socket.c:731 #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 9526 6795K 7568K 78643K 11528 0 pcb 13 8K 8K 78643K 71 0 rtable 99 3K 3K 78643K 251 0 ifaddr 63 13K 13K 78643K 76 0 counters 45 34K 34K 78643K 47 0 ioctlops 0 0K 4K 78643K 1486 0 iov 0 0K 24K 78643K 24 0 mount 1 1K 1K 78643K 1 0 vnodes 1232 77K 77K 78643K 1490 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 12 0K 0K 78643K 58 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 203 0 sigio 0 0K 0K 78643K 2 0 proc 60 63K 83K 78643K 500 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 0 0K 0K 78643K 54 0 in_multi 49 2K 3K 78643K 82 0 ether_multi 1 0K 0K 78643K 8 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 235 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 54K 55K 78643K 1656 0 UVM aobj 12 2K 2K 78643K 14 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 55 0 NDP 9 0K 0K 78643K 16 0 temp 107 3022K 3086K 78643K 3876 0 kqueue 3 4K 16K 78643K 16 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 9 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 129 0 127 1 0 1 1 0 8 0 rtentry 112 58 0 17 2 0 2 2 0 8 0 unpcb 120 178 0 168 2 0 2 2 0 8 1 syncache 264 6 0 6 2 2 0 1 0 8 0 tcpcb 544 108 0 104 2 1 1 2 0 8 0 inpcb 280 354 0 345 2 0 2 2 0 8 1 nd6 48 9 0 5 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 pffrag 232 8 0 8 1 1 0 1 0 482 0 pffrnode 88 8 0 8 1 1 0 1 0 8 0 pffrent 40 274 0 274 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 pfstitem 24 46 0 4 1 0 1 1 0 8 0 pfstkey 112 46 0 4 2 0 2 2 0 8 0 pfstate 328 46 0 3 4 0 4 4 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 238 0 60 13 0 13 13 0 8 0 art_table 32 240 0 60 2 0 2 2 0 8 0 art_node 16 57 0 19 1 0 1 1 0 8 0 sysvmsgpl 40 39 0 26 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 56 0 46 1 0 1 1 0 8 0 shmpl 112 12 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1653 0 244 46 0 46 46 0 8 0 ffsino 272 1653 0 244 95 0 95 95 0 8 0 nchpl 144 2148 0 540 61 0 61 61 0 8 0 uvmvnodes 72 1940 0 0 36 0 36 36 0 8 0 vnodes 208 1940 0 0 103 0 103 103 0 8 0 namei 1024 6117 0 6116 1 0 1 1 0 8 0 percpumem 16 34 0 1 1 0 1 1 0 8 0 vcpupl 1984 3 0 0 1 0 1 1 0 8 0 vmpool 560 4 0 1 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 0 1 1 0 8 1 scxspl 192 6396 0 6395 8 6 2 7 0 8 1 plimitpl 152 22 0 14 1 0 1 1 0 8 0 sigapl 432 399 0 384 3 1 2 3 0 8 0 futexpl 56 4321 0 4320 1 0 1 1 0 8 0 knotepl 112 90 0 71 1 0 1 1 0 8 0 kqueuepl 144 94 0 92 1 0 1 1 0 8 0 pipelkpl 48 137 0 127 1 0 1 1 0 8 0 pipepl 120 274 0 255 1 0 1 1 0 8 0 fdescpl 496 400 0 384 3 0 3 3 0 8 0 filepl 152 2919 0 2816 6 0 6 6 0 8 2 lockfpl 104 48 0 47 1 0 1 1 0 8 0 lockfspl 48 20 0 19 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 45 0 34 1 0 1 1 0 8 0 ucredpl 96 242 0 233 1 0 1 1 0 8 0 zombiepl 144 384 0 384 1 0 1 1 0 8 1 processpl 960 417 0 384 5 0 5 5 0 8 0 procpl 624 823 0 779 4 0 4 4 0 8 0 sosppl 128 3 0 3 1 1 0 1 0 8 0 sockpl 400 667 0 648 6 0 6 6 0 8 4 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 149 0 0 18 0 18 18 0 8 0 mtagpl 80 19 0 0 1 0 1 1 0 8 0 mbufpl 256 339 0 0 21 0 21 21 0 8 0 bufpl 280 4426 0 173 304 0 304 304 0 8 0 anonpl 16 56404 0 39544 74 2 72 72 0 124 4 amapchunkpl 152 2381 0 2242 11 4 7 11 0 158 0 amappl16 192 1816 0 894 50 0 50 50 0 8 3 amappl15 184 4 0 2 1 0 1 1 0 8 0 amappl14 176 16 0 11 2 1 1 1 0 8 0 amappl13 168 31 0 30 1 0 1 1 0 8 0 amappl12 160 19 0 15 1 0 1 1 0 8 0 amappl11 152 136 0 117 1 0 1 1 0 8 0 amappl10 144 34 0 30 1 0 1 1 0 8 0 amappl9 136 468 0 462 1 0 1 1 0 8 0 amappl8 128 422 0 395 1 0 1 1 0 8 0 amappl7 120 144 0 131 1 0 1 1 0 8 0 amappl6 112 80 0 76 2 1 1 1 0 8 0 amappl5 104 290 0 273 1 0 1 1 0 8 0 amappl4 96 514 0 481 2 1 1 2 0 8 0 amappl3 88 113 0 107 1 0 1 1 0 8 0 amappl2 80 2218 0 2147 3 1 2 3 0 8 0 amappl1 72 18784 0 18342 25 15 10 20 0 8 0 amappl 80 1094 0 1049 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 13 0 2 1 0 1 1 0 8 0 uaddrrnd 24 404 0 385 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 404 0 385 1 0 1 1 0 8 0 vmmpekpl 168 7386 0 7353 2 0 2 2 0 8 0 vmmpepl 168 56879 0 54794 121 7 114 119 0 357 21 vmsppl 368 403 0 385 2 0 2 2 0 8 0 pdppl 4096 815 0 773 6 0 6 6 0 8 0 pvpl 32 179914 0 159923 176 2 174 174 0 265 12 pmappl 232 403 0 385 2 0 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 180 0 4 6 0 6 6 0 8 0