panic: receive 3: so 0xfffffd806f6f3190, so_type 3, m 0xfffffd807ceaee00, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 424517 27059 0 0 0 1 syz-executor.1 *485857 67831 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821cc552) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f3190,0,ffff800020abdcf8,0,0,ffff800020abdc04) at soreceive+0x1727 soo_read(fffffd806fdf2098,ffff800020abdcf8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c4e8,6,ffff800020abdcf8,0,ffff800020abdde0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7c4e8,ffff800020abdd90,ffff800020abdde0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abde60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abde60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd3600, 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 0xfffffd806f6f3190, so_type 3, m 0xfffffd807ceaee00, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821cc552) at panic+0x15c sys/kern/subr_prf.c:207 soreceive(fffffd806f6f3190,0,ffff800020abdcf8,0,0,ffff800020abdc04) at soreceive+0x1727 soo_read(fffffd806fdf2098,ffff800020abdcf8,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020a7c4e8,6,ffff800020abdcf8,0,ffff800020abdde0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020a7c4e8,ffff800020abdd90,ffff800020abdde0) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020abde60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020abde60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd3600, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020abda40 rbx 0xffff800020abdaf0 rdx 0xffff800020a7c4e8 rcx 0 rax 0 r8 0xffffffff8150282f kprintf+0x16f r9 0x1 r10 0x25 r11 0x87a841b601947275 r12 0x3000000008 r13 0xffff800020abda50 r14 0x100 r15 0x1 rip 0xffffffff812400e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020abda30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=485857 stat=onproc flags process=0 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7d118,0xffff800020a7c9d8 process=0xffff800020a90790 user=0xffff800020ab8000, vmspace=0xfffffd807f000730 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 27059 424517 95811 0 7 0 syz-executor.1 27059 310086 95811 0 3 0x4000080 fsleep syz-executor.1 36112 382981 0 0 3 0x14200 acct acct 65603 231156 0 0 3 0x14200 bored sosplice 95811 359505 92899 0 3 0x82 nanosleep syz-executor.1 83571 378752 92899 0 2 0x2 syz-executor.0 92899 485834 93047 0 3 0x82 thrsleep syz-fuzzer 92899 512717 93047 0 3 0x4000082 nanosleep syz-fuzzer 92899 388109 93047 0 3 0x4000082 thrsleep syz-fuzzer 92899 142633 93047 0 3 0x4000082 thrsleep syz-fuzzer 92899 409690 93047 0 3 0x4000082 thrsleep syz-fuzzer 92899 11764 93047 0 3 0x4000082 thrsleep syz-fuzzer 92899 486603 93047 0 3 0x4000082 thrsleep syz-fuzzer 92899 275509 93047 0 3 0x4000082 thrsleep syz-fuzzer 92899 83865 93047 0 3 0x4000082 kqread syz-fuzzer 92899 484662 93047 0 3 0x4000082 thrsleep syz-fuzzer 93047 161476 82625 0 3 0x10008a pause ksh 82625 221760 51223 0 3 0x92 select sshd 24630 385011 1 0 3 0x100083 ttyin getty 51223 503644 1 0 3 0x80 select sshd 24075 298532 16472 74 3 0x100092 bpf pflogd 16472 354177 1 0 3 0x80 netio pflogd 80522 12339 20801 73 3 0x100090 kqread syslogd 20801 325051 1 0 3 0x100082 netio syslogd 68046 39060 1 77 3 0x100090 poll dhclient *67831 485857 1 0 7 0 dhclient 67876 315378 0 0 3 0x14200 pgzero zerothread 99467 54979 0 0 3 0x14200 aiodoned aiodoned 2958 266098 0 0 3 0x14200 syncer update 85743 1136 0 0 3 0x14200 cleaner cleaner 33923 62072 0 0 3 0x14200 reaper reaper 10636 323808 0 0 3 0x14200 pgdaemon pagedaemon 37986 523346 0 0 3 0x14200 bored crynlk 30795 336553 0 0 3 0x14200 bored crypto 51324 193376 0 0 3 0x40014200 acpi0 acpi0 33985 167305 0 0 3 0x40014200 idle1 35993 280994 0 0 3 0x14200 bored softnet 41837 199134 0 0 3 0x14200 bored systqmp 93963 494665 0 0 3 0x14200 bored systq 47780 245135 0 0 3 0x40014200 bored softclock 67851 2172 0 0 3 0x40014200 idle0 60123 267055 0 0 2 0x14200 smr 1 106154 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 83571 (syz-executor.0) thread 0xffff800020a7dd48 (378752) exclusive rrwlock inode r = 0 (0xfffffd8063b1be70) #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: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:1860 #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 (0xfffffd806b4572b8) #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: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:1860 #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 67831 (dhclient) thread 0xffff800020a7c4e8 (485857) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82680c20) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 solock+0x66 sys/kern/uipc_socket2.c:292 #2 soreceive+0xb3a sys/kern/uipc_socket.c:950 #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 9573 7448K 7826K 78643K 11943 0 pcb 13 8K 8K 78643K 99 0 rtable 107 3K 3K 78643K 299 0 ifaddr 78 16K 16K 78643K 125 0 counters 43 33K 34K 78643K 57 0 ioctlops 0 0K 4K 78643K 1481 0 iov 0 0K 16K 78643K 46 0 mount 1 1K 1K 78643K 1 0 vnodes 1233 78K 78K 78643K 1724 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 10 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 56 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 293 0 sigio 0 0K 0K 78643K 20 0 proc 62 63K 95K 78643K 489 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 72 0 in_multi 67 3K 3K 78643K 131 0 ether_multi 1 0K 0K 78643K 16 0 mrt 0 0K 0K 78643K 6 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 79 360K 360K 78643K 79 0 exec 0 0K 1K 78643K 238 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 119 38K 39K 78643K 1998 0 UVM aobj 27 6K 6K 78643K 33 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 72 0 NDP 11 0K 0K 78643K 22 0 temp 129 3022K 3087K 78643K 6566 0 kqueue 3 4K 20K 78643K 40 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 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 53 0 51 1 0 1 1 0 8 0 rtentry 112 52 0 7 2 0 2 2 0 8 0 unpcb 120 389 0 379 2 1 1 2 0 8 0 syncache 264 10 0 10 2 2 0 1 0 8 0 tcpqe 32 27 0 27 2 2 0 1 0 8 0 tcpcb 544 139 0 134 1 0 1 1 0 8 0 inpcb 280 510 0 499 2 0 2 2 0 8 1 rttmr 72 1 0 1 1 0 1 1 0 8 1 nd6 48 6 0 2 1 0 1 1 0 8 0 pkpcb 40 3 0 3 2 1 1 1 0 8 1 pffrag 232 8 0 8 2 1 1 1 0 482 1 pffrnode 88 8 0 8 2 1 1 1 0 8 1 pffrent 40 148 0 148 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 35 0 3 1 0 1 1 0 8 0 pfstkey 112 35 0 3 1 0 1 1 0 8 0 pfstate 328 35 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 208 0 16 13 0 13 13 0 8 0 art_table 32 209 0 16 2 0 2 2 0 8 0 art_node 16 51 0 9 1 0 1 1 0 8 0 sysvmsgpl 40 55 0 26 1 0 1 1 0 8 0 semapl 112 54 0 44 1 0 1 1 0 8 0 shmpl 112 31 0 6 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1823 0 417 46 0 46 46 0 8 0 ffsino 272 1823 0 417 95 0 95 95 0 8 0 nchpl 144 2454 0 848 61 0 61 61 0 8 0 uvmvnodes 72 2320 0 0 43 0 43 43 0 8 0 vnodes 208 2320 0 0 123 0 123 123 0 8 0 namei 1024 7161 0 7161 1 0 1 1 0 8 1 percpumem 16 39 0 7 1 0 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 560 2 0 0 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 0 1 1 0 8 1 scxspl 192 7608 0 7608 8 7 1 7 0 8 1 plimitpl 152 43 0 35 1 0 1 1 0 8 0 sigapl 424 510 0 477 4 0 4 4 0 8 0 futexpl 56 6519 0 6518 1 0 1 1 0 8 0 knotepl 112 101 0 82 1 0 1 1 0 8 0 kqueuepl 144 82 0 80 1 0 1 1 0 8 0 pipelkpl 48 142 0 132 1 0 1 1 0 8 0 pipepl 120 284 0 265 1 0 1 1 0 8 0 fdescpl 496 493 0 477 3 0 3 3 0 8 0 filepl 152 3742 0 3632 7 1 6 7 0 8 1 lockfpl 104 109 0 108 1 0 1 1 0 8 0 lockfspl 48 36 0 35 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 28 0 17 1 0 1 1 0 8 0 ucredpl 96 353 0 344 1 0 1 1 0 8 0 zombiepl 144 477 0 477 1 0 1 1 0 8 1 processpl 960 510 0 477 5 0 5 5 0 8 0 procpl 624 1214 0 1171 5 1 4 5 0 8 0 sosppl 128 10 0 10 3 2 1 1 0 8 1 sockpl 400 961 0 938 8 4 4 8 0 8 1 mcl64k 65536 12 0 0 2 0 2 2 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 151 0 0 18 0 18 18 0 8 0 mtagpl 80 38 0 0 1 0 1 1 0 8 0 mbufpl 256 459 0 0 29 0 29 29 0 8 0 bufpl 280 4797 0 176 331 0 331 331 0 8 0 anonpl 16 59173 0 42050 71 1 70 70 0 124 0 amapchunkpl 152 3156 0 3017 20 0 20 20 0 158 12 amappl16 192 2285 0 1351 48 0 48 48 0 8 1 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 263 0 260 2 1 1 1 0 8 0 amappl13 168 25 0 24 1 0 1 1 0 8 0 amappl12 160 10 0 7 1 0 1 1 0 8 0 amappl11 152 73 0 54 1 0 1 1 0 8 0 amappl10 144 17 0 12 1 0 1 1 0 8 0 amappl9 136 386 0 383 1 0 1 1 0 8 0 amappl8 128 335 0 304 2 0 2 2 0 8 0 amappl7 120 120 0 108 1 0 1 1 0 8 0 amappl6 112 31 0 24 1 0 1 1 0 8 0 amappl5 104 270 0 255 1 0 1 1 0 8 0 amappl4 96 648 0 611 2 1 1 2 0 8 0 amappl3 88 240 0 233 1 0 1 1 0 8 0 amappl2 80 3040 0 2970 3 1 2 3 0 8 0 amappl1 72 21183 0 20745 26 16 10 20 0 8 0 amappl 80 1472 0 1425 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 32 0 6 1 0 1 1 0 8 0 uaddrrnd 24 495 0 477 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 495 0 477 1 0 1 1 0 8 0 vmmpekpl 168 8045 0 8010 2 0 2 2 0 8 0 vmmpepl 168 67528 0 65437 127 20 107 121 0 357 14 vmsppl 368 494 0 477 2 0 2 2 0 8 0 pdppl 4096 997 0 956 6 0 6 6 0 8 0 pvpl 32 196079 0 175787 171 0 171 171 0 265 5 pmappl 232 494 0 477 3 1 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 191 0 8 6 0 6 6 0 8 0