panic: receive 1a: so 0xfffffd806f6f4000, so_type 3, m 0xfffffd806f7d4a00, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 245696 94231 0 0 0x4000080 0 syz-executor.0 *383263 72745 0 0 0 1 dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d874a) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f4000,0,ffff800020abdaf8,0,0,ffff800020abda04) at soreceive+0x174a sys/kern/uipc_socket.c:977 soo_read(fffffd8077073130,ffff800020abdaf8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c008,6,ffff800020abdaf8,0,ffff800020abdbe0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7c008,ffff800020abdb90,ffff800020abdbe0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abdc60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abdc60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcf640, 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 0xfffffd806f6f4000, so_type 3, m 0xfffffd806f7d4a00, m_type 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d874a) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f4000,0,ffff800020abdaf8,0,0,ffff800020abda04) at soreceive+0x174a sys/kern/uipc_socket.c:977 soo_read(fffffd8077073130,ffff800020abdaf8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c008,6,ffff800020abdaf8,0,ffff800020abdbe0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7c008,ffff800020abdb90,ffff800020abdbe0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abdc60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abdc60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcf640, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abd840 rbx 0xffff800020abd8f0 rdx 0xffff800020a7c008 rcx 0 rax 0 r8 0xffffffff81aa0b0f kprintf+0x16f r9 0x1 r10 0x25 r11 0xf8e2f95caf399484 r12 0x3000000008 r13 0xffff800020abd850 r14 0x100 r15 0x1 rip 0xffffffff81e06188 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abd830 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (dhclient) pid=383263 stat=onproc flags process=0 proc=0 pri=24, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7cc38,0xffff800020a7d128 process=0xffff800020a90010 user=0xffff800020ab8000, vmspace=0xfffffd807f0002e0 estcpu=1, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 94231 168861 20289 0 2 0 syz-executor.0 94231 245696 20289 0 7 0x4000080 syz-executor.0 18254 392689 0 0 3 0x14200 bored sosplice 55251 265994 42982 0 3 0x2 biowait syz-executor.1 20289 106317 42982 0 3 0x82 nanosleep syz-executor.0 42982 175814 54877 0 3 0x82 thrsleep syz-fuzzer 42982 193636 54877 0 3 0x4000082 nanosleep syz-fuzzer 42982 178602 54877 0 3 0x4000082 thrsleep syz-fuzzer 42982 135772 54877 0 3 0x4000082 thrsleep syz-fuzzer 42982 405517 54877 0 3 0x4000082 thrsleep syz-fuzzer 42982 206003 54877 0 3 0x4000082 kqread syz-fuzzer 42982 423217 54877 0 3 0x4000082 thrsleep syz-fuzzer 42982 480259 54877 0 3 0x4000082 nanosleep syz-fuzzer 42982 171065 54877 0 3 0x4000082 thrsleep syz-fuzzer 42982 223758 54877 0 3 0x4000082 thrsleep syz-fuzzer 54877 264046 51569 0 3 0x10008a pause ksh 51569 494481 94977 0 3 0x92 select sshd 45716 257766 1 0 3 0x100083 ttyin getty 94977 158025 1 0 3 0x80 select sshd 7114 322129 24508 74 3 0x100092 bpf pflogd 24508 227311 1 0 3 0x80 netio pflogd 90881 228263 19273 73 3 0x100090 kqread syslogd 19273 106025 1 0 3 0x100082 netio syslogd 91339 179646 1 77 3 0x100090 poll dhclient *72745 383263 1 0 7 0 dhclient 71422 489450 0 0 3 0x14200 pgzero zerothread 70073 431284 0 0 3 0x14200 aiodoned aiodoned 67266 309134 0 0 3 0x14200 syncer update 3718 108097 0 0 3 0x14200 cleaner cleaner 41761 114289 0 0 3 0x14200 reaper reaper 73473 483096 0 0 3 0x14200 pgdaemon pagedaemon 75828 286541 0 0 3 0x14200 bored crynlk 92853 474384 0 0 3 0x14200 bored crypto 20073 306112 0 0 3 0x40014200 acpi0 acpi0 69265 283836 0 0 3 0x40014200 idle1 74201 48571 0 0 3 0x14200 bored softnet 93650 446250 0 0 3 0x14200 bored systqmp 68215 193304 0 0 3 0x14200 bored systq 36317 122388 0 0 3 0x40014200 bored softclock 95768 206503 0 0 3 0x40014200 idle0 43706 451690 0 0 3 0x14200 bored smr 1 334922 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 55251 (syz-executor.1) thread 0xffff800020a7dd48 (265994) exclusive rrwlock inode r = 0 (0xfffffd80670d2c50) #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 (0xfffffd806b45b6f8) #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 72745 (dhclient) thread 0xffff800020a7c008 (383263) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8263d7d8) #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 9527 6420K 6807K 78643K 11046 0 pcb 13 8K 9K 78643K 156 0 rtable 98 3K 3K 78643K 302 0 ifaddr 78 15K 15K 78643K 106 0 counters 43 33K 34K 78643K 49 0 ioctlops 0 0K 4K 78643K 1480 0 iov 0 0K 12K 78643K 35 0 mount 1 1K 1K 78643K 1 0 vnodes 1234 78K 78K 78643K 1427 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 12 1K 1K 78643K 22 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 217 0 sigio 0 0K 0K 78643K 6 0 proc 61 63K 95K 78643K 447 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 45 2K 2K 78643K 91 0 ether_multi 1 0K 0K 78643K 12 0 mrt 0 0K 0K 78643K 4 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 234 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 118 38K 38K 78643K 1602 0 UVM aobj 9 2K 2K 78643K 9 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 59 0 NDP 14 0K 0K 78643K 22 0 temp 136 3022K 3086K 78643K 3920 0 kqueue 3 4K 10K 78643K 10 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 7 0 1 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 37 0 35 1 0 1 1 0 8 0 rtentry 112 61 0 22 2 0 2 2 0 8 0 unpcb 120 146 0 136 2 1 1 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 173 0 169 3 1 2 2 0 8 1 inpcb 280 479 0 472 3 1 2 3 0 8 1 rttmr 72 1 0 1 1 0 1 1 0 8 1 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 6 0 6 1 1 0 1 0 8 0 nd6 48 8 0 6 1 0 1 1 0 8 0 pffrag 232 4 0 4 2 1 1 1 0 482 1 pffrnode 88 4 0 4 2 1 1 1 0 8 1 pffrent 40 94 0 94 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 pfstitem 24 33 0 3 1 0 1 1 0 8 0 pfstkey 112 33 0 3 1 0 1 1 0 8 0 pfstate 328 33 0 3 3 0 3 3 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 254 0 88 13 0 13 13 0 8 2 art_table 32 255 0 88 2 0 2 2 0 8 0 art_node 16 60 0 24 1 0 1 1 0 8 0 sysvmsgpl 40 23 0 16 1 0 1 1 0 8 0 semupl 112 9 0 9 1 1 0 1 0 8 0 semapl 112 20 0 10 1 0 1 1 0 8 0 shmpl 112 7 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1685 0 275 46 0 46 46 0 8 0 ffsino 272 1685 0 275 95 0 95 95 0 8 0 nchpl 144 2194 0 575 61 0 61 61 0 8 0 uvmvnodes 72 1912 0 0 35 0 35 35 0 8 0 vnodes 208 1912 0 0 101 0 101 101 0 8 0 namei 1024 6205 0 6204 1 0 1 1 0 8 0 percpumem 16 35 0 3 1 0 1 1 0 8 0 vcpupl 1984 3 0 0 1 0 1 1 0 8 0 vmpool 560 3 0 0 1 0 1 1 0 8 0 scxspl 192 6480 0 6479 8 5 3 7 0 8 2 plimitpl 152 27 0 19 1 0 1 1 0 8 0 sigapl 432 416 0 401 3 1 2 3 0 8 0 futexpl 56 4753 0 4753 1 0 1 1 0 8 1 knotepl 112 60 0 41 1 0 1 1 0 8 0 kqueuepl 144 20 0 18 1 0 1 1 0 8 0 pipelkpl 48 102 0 92 1 0 1 1 0 8 0 pipepl 120 204 0 185 1 0 1 1 0 8 0 fdescpl 496 417 0 401 3 0 3 3 0 8 0 filepl 152 2908 0 2807 8 2 6 8 0 8 2 lockfpl 104 56 0 55 1 0 1 1 0 8 0 lockfspl 48 17 0 16 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 22 0 11 1 0 1 1 0 8 0 ucredpl 96 135 0 126 1 0 1 1 0 8 0 zombiepl 144 401 0 401 1 0 1 1 0 8 1 processpl 960 433 0 401 5 0 5 5 0 8 0 procpl 624 835 0 793 4 0 4 4 0 8 0 sockpl 400 669 0 650 6 2 4 6 0 8 2 mcl64k 65536 10 0 0 2 0 2 2 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 7 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 159 0 0 19 0 19 19 0 8 0 mtagpl 80 23 0 0 1 0 1 1 0 8 0 mbufpl 256 272 0 0 17 0 17 17 0 8 0 bufpl 280 4409 0 173 303 0 303 303 0 8 0 anonpl 16 54317 0 37012 85 1 84 84 0 124 13 amapchunkpl 152 2031 0 1884 8 1 7 8 0 158 0 amappl16 192 2001 0 1054 58 2 56 58 0 8 8 amappl15 184 4 0 2 1 0 1 1 0 8 0 amappl14 176 7 0 4 2 1 1 1 0 8 0 amappl13 168 117 0 115 1 0 1 1 0 8 0 amappl12 160 6 0 5 2 1 1 1 0 8 0 amappl11 152 73 0 55 1 0 1 1 0 8 0 amappl10 144 107 0 101 1 0 1 1 0 8 0 amappl9 136 388 0 385 1 0 1 1 0 8 0 amappl8 128 324 0 299 1 0 1 1 0 8 0 amappl7 120 212 0 198 1 0 1 1 0 8 0 amappl6 112 21 0 19 1 0 1 1 0 8 0 amappl5 104 220 0 204 1 0 1 1 0 8 0 amappl4 96 605 0 570 2 1 1 2 0 8 0 amappl3 88 207 0 200 1 0 1 1 0 8 0 amappl2 80 2275 0 2201 3 1 2 3 0 8 0 amappl1 72 18818 0 18384 25 15 10 20 0 8 0 amappl 80 1087 0 1039 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 8 0 0 1 0 1 1 0 8 0 uaddrrnd 24 420 0 401 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 420 0 401 1 0 1 1 0 8 0 vmmpekpl 168 6832 0 6790 2 0 2 2 0 8 0 vmmpepl 168 57325 0 55202 123 8 115 119 0 357 19 vmsppl 368 419 0 401 2 0 2 2 0 8 0 pdppl 4096 847 0 805 6 0 6 6 0 8 0 pvpl 32 176411 0 156453 200 0 200 200 0 265 38 pmappl 232 419 0 401 3 1 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 179 0 6 6 0 6 6 0 8 0