panic: receive 1a: so 0xfffffd806f683640, so_type 3, m 0xfffffd8067cc6f00, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 523210 23842 0 0 0 1 syz-executor.1 *162437 53990 0 0 0 0 dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f06f0) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f683640,0,ffff800020e1de98,0,0,ffff800020e1dda4) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd80777f8098,ffff800020e1de98,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddd388,6,ffff800020e1de98,0,ffff800020e1df80) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddd388,ffff800020e1df30,ffff800020e1df80) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e000) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e000) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffeba90, 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 0xfffffd806f683640, so_type 3, m 0xfffffd8067cc6f00, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f06f0) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f683640,0,ffff800020e1de98,0,0,ffff800020e1dda4) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd80777f8098,ffff800020e1de98,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddd388,6,ffff800020e1de98,0,ffff800020e1df80) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddd388,ffff800020e1df30,ffff800020e1df80) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e000) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e000) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffeba90, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1dbe0 rbx 0xffff800020e1dc90 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff8210369f kprintf+0x16f r9 0x1 r10 0x2 r11 0xe80f3d1cc6b48947 r12 0x3000000008 r13 0xffff800020e1dbf0 r14 0x100 r15 0x1 rip 0xffffffff81785548 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1dbd0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=162437 stat=onproc flags process=0 proc=0 pri=24, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddc9c8,0xffff800020ddd608 process=0xffff800020df0bb0 user=0xffff800020e19000, vmspace=0xfffffd807efff5c0 estcpu=1, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 23842 523210 58318 0 7 0 syz-executor.1 23842 487247 58318 0 2 0x4000000 syz-executor.1 84477 23797 0 0 3 0x14280 nfsidl nfsio 93674 59054 0 0 3 0x14280 nfsidl nfsio 3067 450103 0 0 3 0x14280 nfsidl nfsio 15631 299580 0 0 3 0x14280 nfsidl nfsio 48961 169379 0 0 3 0x14280 nfsidl nfsio 97151 32990 0 0 3 0x14280 nfsidl nfsio 3085 354682 0 0 3 0x14280 nfsidl nfsio 29236 273211 0 0 3 0x14280 nfsidl nfsio 56261 400061 0 0 3 0x14280 nfsidl nfsio 45839 371078 0 0 3 0x14280 nfsidl nfsio 49171 304476 0 0 3 0x14280 nfsidl nfsio 60840 439852 0 0 3 0x14280 nfsidl nfsio 33560 293941 0 0 3 0x14280 nfsidl nfsio 32550 122447 0 0 3 0x14280 nfsidl nfsio 58921 268435 0 0 3 0x14280 nfsidl nfsio 23811 421800 0 0 3 0x14280 nfsidl nfsio 84999 380286 0 0 3 0x14280 nfsidl nfsio 13234 72512 0 0 3 0x14280 nfsidl nfsio 66088 483704 0 0 3 0x14280 nfsidl nfsio 68833 52372 0 0 3 0x14280 nfsidl nfsio 32644 163574 0 0 3 0x14200 bored sosplice 55361 425773 0 0 3 0x14200 acct acct 58318 448366 30186 0 3 0x82 nanosleep syz-executor.1 35064 479700 30186 0 3 0x82 nanosleep syz-executor.0 30186 150995 23955 0 3 0x82 thrsleep syz-fuzzer 30186 375321 23955 0 3 0x4000082 nanosleep syz-fuzzer 30186 121530 23955 0 3 0x4000082 thrsleep syz-fuzzer 30186 360770 23955 0 3 0x4000082 kqread syz-fuzzer 30186 174125 23955 0 3 0x4000082 thrsleep syz-fuzzer 30186 521301 23955 0 3 0x4000082 thrsleep syz-fuzzer 30186 31984 23955 0 3 0x4000082 thrsleep syz-fuzzer 30186 335244 23955 0 3 0x4000082 thrsleep syz-fuzzer 30186 46091 23955 0 3 0x4000082 thrsleep syz-fuzzer 30186 329923 23955 0 3 0x4000082 thrsleep syz-fuzzer 23955 412445 76392 0 3 0x10008a pause ksh 76392 494384 73911 0 3 0x92 select sshd 54839 510346 1 0 3 0x100083 ttyin getty 73911 301661 1 0 3 0x80 select sshd 35663 23388 31062 74 3 0x100092 bpf pflogd 31062 69142 1 0 3 0x80 netio pflogd 73879 1476 87043 73 3 0x100090 kqread syslogd 87043 93112 1 0 3 0x100082 netio syslogd 8417 426776 1 77 3 0x100090 poll dhclient *53990 162437 1 0 7 0 dhclient 53313 517753 0 0 3 0x14200 bored smr 17051 274266 0 0 2 0x14200 zerothread 40621 183177 0 0 3 0x14200 aiodoned aiodoned 56153 103620 0 0 3 0x14200 syncer update 96336 74651 0 0 3 0x14200 cleaner cleaner 95098 109581 0 0 3 0x14200 reaper reaper 98764 125803 0 0 3 0x14200 pgdaemon pagedaemon 62711 201235 0 0 3 0x14200 bored crynlk 44515 470678 0 0 3 0x14200 bored crypto 14654 489769 0 0 3 0x40014200 acpi0 acpi0 33932 260630 0 0 3 0x40014200 idle1 88706 5220 0 0 3 0x14200 bored softnet 33370 42145 0 0 3 0x14200 bored systqmp 74883 281630 0 0 3 0x14200 bored systq 55714 453949 0 0 2 0x40014200 softclock 57194 194927 0 0 3 0x40014200 idle0 1 476295 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 53990 (dhclient) thread 0xffff800020ddd388 (162437) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82935f10) #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 9507 6599K 6985K 78643K 11820 0 pcb 13 8K 8K 78643K 75 0 rtable 120 6K 9K 78643K 347 0 ifaddr 62 13K 14K 78643K 102 0 sysctl 2 0K 0K 78643K 2 0 counters 45 34K 34K 78643K 47 0 ioctlops 0 0K 4K 78643K 1513 0 iov 0 0K 16K 78643K 28 0 mount 1 1K 1K 78643K 1 0 vnodes 1228 77K 77K 78643K 1533 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 114 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 370 0 sigio 0 0K 0K 78643K 4 0 proc 61 63K 95K 78643K 460 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 25 0 in_multi 40 2K 2K 78643K 95 0 ether_multi 1 0K 0K 78643K 8 0 mrt 0 0K 0K 78643K 2 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 223 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 122 22K 38K 78643K 2107 0 UVM aobj 23 2K 2K 78643K 28 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 42 0 NDP 10 0K 0K 78643K 22 0 temp 118 3863K 3927K 78643K 5640 0 kqueue 3 4K 9K 78643K 22 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 37 0 35 1 0 1 1 0 8 0 rtentry 112 76 0 30 2 0 2 2 0 8 0 unpcb 120 286 0 275 2 1 1 2 0 8 0 syncache 264 7 0 7 3 3 0 1 0 8 0 tcpqe 32 987 0 987 1 1 0 1 0 8 0 tcpcb 544 146 0 131 2 1 1 2 0 8 0 inpcb 296 382 0 375 3 1 2 2 0 8 1 nd6 48 20 0 14 1 0 1 1 0 8 0 ppxss 1136 1 0 1 1 1 0 1 0 8 0 pfstscr 40 2 0 2 1 0 1 1 0 8 1 pffrag 232 6 0 4 1 0 1 1 0 482 0 pffrnode 88 6 0 4 1 0 1 1 0 8 0 pffrent 40 57 0 55 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 pfrktable 1344 25 0 21 1 0 1 1 0 8 0 pfstitem 24 19 0 5 1 0 1 1 0 8 0 pfstkey 112 21 0 7 1 0 1 1 0 8 0 pfstate 328 19 0 5 2 0 2 2 0 8 0 pfrule 1360 30 0 22 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 222 0 39 13 0 13 13 0 8 0 art_table 32 223 0 39 2 0 2 2 0 8 0 art_node 16 75 0 33 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 2 1 0 1 1 0 8 0 semapl 112 112 0 102 1 0 1 1 0 8 0 shmpl 112 25 0 5 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1872 0 461 89 0 89 89 0 8 0 ffsino 272 1872 0 461 95 0 95 95 0 8 0 nchpl 144 2741 0 1123 61 0 61 61 0 8 0 uvmvnodes 72 2186 0 0 40 0 40 40 0 8 0 vnodes 208 2186 0 0 116 0 116 116 0 8 0 namei 1024 7280 0 7280 1 0 1 1 0 8 1 percpumem 16 34 0 1 1 0 1 1 0 8 0 pfiaddrpl 120 7 0 4 1 0 1 1 0 8 0 scxspl 192 7678 0 7678 7 6 1 6 0 8 1 plimitpl 152 32 0 24 1 0 1 1 0 8 0 sigapl 424 607 0 553 7 0 7 7 0 8 0 futexpl 56 5638 0 5638 1 0 1 1 0 8 1 knotepl 112 91 0 72 1 0 1 1 0 8 0 kqueuepl 144 48 0 45 1 0 1 1 0 8 0 pipepl 304 123 0 113 3 1 2 2 0 8 1 fdescpl 496 570 0 553 3 0 3 3 0 8 0 filepl 152 3320 0 3219 6 1 5 6 0 8 1 lockfpl 104 47 0 46 1 0 1 1 0 8 0 lockfspl 48 19 0 18 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 250 0 239 1 0 1 1 0 8 0 zombiepl 144 554 0 553 1 0 1 1 0 8 0 processpl 992 607 0 553 7 0 7 7 0 8 0 procpl 624 1341 0 1277 6 0 6 6 0 8 0 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 400 705 0 685 6 2 4 5 0 8 1 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 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 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 210 0 0 26 0 26 26 0 8 0 mtagpl 96 170 0 0 5 0 5 5 0 8 0 mbufpl 256 673 0 0 42 0 42 42 0 8 0 bufpl 280 4887 0 133 340 0 340 340 0 8 0 anonpl 16 69823 0 52386 78 6 72 76 0 124 0 amapchunkpl 152 3350 0 3194 20 12 8 20 0 158 0 amappl16 192 2575 0 1640 51 3 48 50 0 8 1 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 194 0 187 1 0 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 3 0 2 2 1 1 1 0 8 0 amappl11 152 223 0 206 1 0 1 1 0 8 0 amappl10 144 22 0 15 1 0 1 1 0 8 0 amappl9 136 556 0 553 1 0 1 1 0 8 0 amappl8 128 368 0 332 2 0 2 2 0 8 0 amappl7 120 118 0 106 1 0 1 1 0 8 0 amappl6 112 28 0 24 1 0 1 1 0 8 0 amappl5 104 304 0 286 1 0 1 1 0 8 0 amappl4 96 661 0 631 1 0 1 1 0 8 0 amappl3 88 282 0 274 1 0 1 1 0 8 0 amappl2 80 3630 0 3553 2 0 2 2 0 8 0 amappl1 72 25696 0 25227 23 13 10 18 0 8 0 amappl 80 1579 0 1532 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 27 0 5 1 0 1 1 0 8 0 uaddrrnd 24 570 0 553 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 570 0 553 1 0 1 1 0 8 0 vmmpekpl 168 8367 0 8327 3 0 3 3 0 8 0 vmmpepl 168 79450 0 77228 121 21 100 116 0 357 3 vmsppl 368 569 0 553 2 0 2 2 0 8 0 pdppl 4096 1147 0 1106 7 1 6 6 0 8 0 pvpl 32 225136 0 204335 186 11 175 184 0 265 6 pmappl 232 569 0 553 2 1 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 300 0 7 9 0 9 9 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(ffffffff823f06f0) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f683640,0,ffff800020e1de98,0,0,ffff800020e1dda4) at soreceive+0x174a sys/kern/uipc_socket.c:983 soo_read(fffffd80777f8098,ffff800020e1de98,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020ddd388,6,ffff800020e1de98,0,ffff800020e1df80) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020ddd388,ffff800020e1df30,ffff800020e1df80) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e000) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e000) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffeba90, count: -8 ddb{0}> machine ddbcpu 1