login: panic: receive 1a: so 0xfffffd806f6ef320, so_type 3, m 0xfffffd806f311c00, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 315767 73899 0 0 0 1 syz-executor.1 *159847 40225 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821beada) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6ef320,0,ffff800020abdd88,0,0,ffff800020abdc94) at soreceive+0x174a sys/kern/uipc_socket.c:977 soo_read(fffffd8072bf4260,ffff800020abdd88,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7cc38,6,ffff800020abdd88,0,ffff800020abde70) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7cc38,ffff800020abde20,ffff800020abde70) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abdef0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abdef0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff73e0, 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 1a: so 0xfffffd806f6ef320, so_type 3, m 0xfffffd806f311c00, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821beada) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6ef320,0,ffff800020abdd88,0,0,ffff800020abdc94) at soreceive+0x174a sys/kern/uipc_socket.c:977 soo_read(fffffd8072bf4260,ffff800020abdd88,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7cc38,6,ffff800020abdd88,0,ffff800020abde70) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7cc38,ffff800020abde20,ffff800020abde70) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abdef0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abdef0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff73e0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abdad0 rbx 0xffff800020abdb80 rdx 0xffff800020a7cc38 rcx 0 rax 0 r8 0xffffffff819677cf kprintf+0x16f r9 0x1 r10 0x25 r11 0x162796282e9db76 r12 0x3000000008 r13 0xffff800020abdae0 r14 0x100 r15 0x1 rip 0xffffffff8169f2f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abdac0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=159847 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7c758,0xffff800020a7d128 process=0xffff800020a90f10 user=0xffff800020ab8000, vmspace=0xfffffd807f0002e0 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 73899 315767 93725 0 7 0 syz-executor.1 73899 425252 93725 0 3 0x4000080 fsleep syz-executor.1 93725 154027 94388 0 3 0x82 nanosleep syz-executor.1 88730 193441 94388 0 2 0x2 syz-executor.0 94388 487464 19186 0 3 0x82 thrsleep syz-fuzzer 94388 289191 19186 0 3 0x4000082 nanosleep syz-fuzzer 94388 338464 19186 0 3 0x4000082 thrsleep syz-fuzzer 94388 49375 19186 0 3 0x4000082 thrsleep syz-fuzzer 94388 237613 19186 0 3 0x4000082 thrsleep syz-fuzzer 94388 48177 19186 0 3 0x4000082 thrsleep syz-fuzzer 94388 380088 19186 0 3 0x4000082 thrsleep syz-fuzzer 94388 13132 19186 0 3 0x4000082 thrsleep syz-fuzzer 94388 515905 19186 0 3 0x4000082 thrsleep syz-fuzzer 94388 298430 19186 0 3 0x4000082 kqread syz-fuzzer 19186 349457 39960 0 3 0x10008a pause ksh 39960 475119 1337 0 3 0x92 select sshd 40726 201931 1 0 3 0x100083 ttyin getty 1337 58079 1 0 3 0x80 select sshd 86787 494131 65924 74 3 0x100092 bpf pflogd 65924 14914 1 0 3 0x80 netio pflogd 47157 410322 64369 73 3 0x100090 kqread syslogd 64369 390697 1 0 3 0x100082 netio syslogd 4852 15464 1 77 3 0x100090 poll dhclient *40225 159847 1 0 7 0 dhclient 3423 136012 0 0 3 0x14200 pgzero zerothread 83932 20087 0 0 3 0x14200 aiodoned aiodoned 58530 503955 0 0 3 0x14200 syncer update 25878 511577 0 0 3 0x14200 cleaner cleaner 70762 502193 0 0 3 0x14200 reaper reaper 97649 311803 0 0 3 0x14200 pgdaemon pagedaemon 88359 265278 0 0 3 0x14200 bored crynlk 36653 286034 0 0 3 0x14200 bored crypto 81855 289125 0 0 3 0x40014200 acpi0 acpi0 65183 169065 0 0 3 0x40014200 idle1 68913 495288 0 0 3 0x14200 bored softnet 6307 160722 0 0 3 0x14200 bored systqmp 84806 368949 0 0 3 0x14200 bored systq 23522 332313 0 0 3 0x40014200 bored softclock 92430 506839 0 0 3 0x40014200 idle0 77783 41131 0 0 3 0x14200 bored smr 1 369240 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 88730 (syz-executor.0) thread 0xffff800020a7c9c8 (193441) exclusive rrwlock inode r = 0 (0xfffffd806b427f78) #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 (0xfffffd806b427098) #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:571 #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 40225 (dhclient) thread 0xffff800020a7cc38 (159847) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff826518c0) #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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9485 6656K 6656K 78643K 10589 0 pcb 13 8K 8K 78643K 17 0 rtable 111 3K 3K 78643K 207 0 ifaddr 45 10K 10K 78643K 48 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1469 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 1230 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 2 0K 0K 78643K 2 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 44 0 proc 59 63K 95K 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 in_multi 33 2K 2K 78643K 33 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 19 95K 95K 78643K 19 0 exec 0 0K 1K 78643K 209 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 105 21K 22K 78643K 1036 0 UVM aobj 2 2K 2K 78643K 2 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 6 0K 0K 78643K 10 0 temp 67 3007K 3071K 78643K 2083 0 kqueue 3 4K 4K 78643K 3 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 19 0 17 1 0 1 1 0 8 0 rtentry 112 48 0 1 2 0 2 2 0 8 0 unpcb 120 63 0 51 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 79 0 79 1 0 1 1 0 8 1 tcpcb 544 10 0 6 1 0 1 1 0 8 0 inpcb 280 54 0 46 1 0 1 1 0 8 0 nd6 48 6 0 0 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 pfstitem 24 12 0 0 1 0 1 1 0 8 0 pfstkey 112 12 0 0 1 0 1 1 0 8 0 pfstate 328 12 0 0 1 0 1 1 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 200 0 0 13 0 13 13 0 8 0 art_table 32 201 0 0 2 0 2 2 0 8 0 art_node 16 47 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1438 0 31 46 0 46 46 0 8 0 ffsino 272 1438 0 31 94 0 94 94 0 8 0 nchpl 144 1683 0 68 61 0 61 61 0 8 0 uvmvnodes 72 1490 0 0 28 0 28 28 0 8 0 vnodes 208 1490 0 0 79 0 79 79 0 8 0 namei 1024 4296 0 4295 1 0 1 1 0 8 0 percpumem 16 32 0 0 1 0 1 1 0 8 0 scxspl 192 5062 0 5054 8 1 7 7 0 8 4 plimitpl 152 15 0 7 1 0 1 1 0 8 0 sigapl 432 243 0 228 3 0 3 3 0 8 1 futexpl 56 259 0 258 1 0 1 1 0 8 0 knotepl 112 53 0 34 1 0 1 1 0 8 0 kqueuepl 144 6 0 4 1 0 1 1 0 8 0 pipelkpl 48 84 0 74 1 0 1 1 0 8 0 pipepl 120 168 0 149 2 0 2 2 0 8 1 fdescpl 496 244 0 228 3 0 3 3 0 8 0 filepl 152 1251 0 1147 6 0 6 6 0 8 2 lockfpl 104 10 0 9 1 0 1 1 0 8 0 lockfspl 48 5 0 4 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 45 0 36 1 0 1 1 0 8 0 zombiepl 144 228 0 228 1 0 1 1 0 8 1 processpl 960 259 0 228 5 0 5 5 0 8 1 procpl 624 288 0 247 4 0 4 4 0 8 0 sockpl 400 136 0 114 3 0 3 3 0 8 0 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 158 0 0 19 0 19 19 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 176 0 0 10 0 10 10 0 8 0 bufpl 280 4067 0 173 279 0 279 279 0 8 0 anonpl 16 38825 0 23050 65 1 64 64 0 125 0 amapchunkpl 152 1055 0 922 8 0 8 8 0 158 2 amappl16 192 1019 0 154 44 0 44 44 0 8 0 amappl15 184 11 0 8 1 0 1 1 0 8 0 amappl14 176 11 0 8 2 1 1 1 0 8 0 amappl13 168 25 0 24 1 0 1 1 0 8 0 amappl12 160 7 0 6 2 1 1 1 0 8 0 amappl11 152 70 0 52 1 0 1 1 0 8 0 amappl10 144 31 0 24 1 0 1 1 0 8 0 amappl9 136 390 0 387 1 0 1 1 0 8 0 amappl8 128 305 0 288 1 0 1 1 0 8 0 amappl7 120 126 0 113 1 0 1 1 0 8 0 amappl6 112 23 0 22 1 0 1 1 0 8 0 amappl5 104 133 0 118 1 0 1 1 0 8 0 amappl4 96 513 0 479 1 0 1 1 0 8 0 amappl3 88 102 0 96 1 0 1 1 0 8 0 amappl2 80 1038 0 963 3 0 3 3 0 8 1 amappl1 72 15494 0 15057 26 9 17 20 0 8 7 amappl 80 534 0 492 1 0 1 1 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 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 244 0 228 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 244 0 228 1 0 1 1 0 8 0 vmmpekpl 168 5898 0 5861 2 0 2 2 0 8 0 vmmpepl 168 37221 0 35226 123 8 115 115 0 357 24 vmsppl 368 243 0 228 2 0 2 2 0 8 0 pdppl 4096 495 0 456 6 0 6 6 0 8 0 pvpl 32 133332 0 113963 157 0 157 157 0 265 0 pmappl 232 243 0 228 2 0 2 2 0 8 1 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 163 0 3 5 0 5 5 0 8 0