panic: receive 3: so 0xfffffd806f65d000, so_type 3, m 0xfffffd806a385500, m_type 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 391969 77617 0 0x2 0x4000000 1 syz-fuzzer *513326 27934 0 0 0 0K dhclient db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823eb6bb) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f65d000,0,ffff800020e1e068,0,0,ffff800020e1df74) at soreceive+0x1727 soo_read(fffffd807bff01c8,ffff800020e1e068,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020dd7640,6,ffff800020e1e068,0,ffff800020e1e150) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020dd7640,ffff800020e1e100,ffff800020e1e150) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e1d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e1d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcd0e0, 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 0xfffffd806f65d000, so_type 3, m 0xfffffd806a385500, m_type 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823eb6bb) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f65d000,0,ffff800020e1e068,0,0,ffff800020e1df74) at soreceive+0x1727 soo_read(fffffd807bff01c8,ffff800020e1e068,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020dd7640,6,ffff800020e1e068,0,ffff800020e1e150) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020dd7640,ffff800020e1e100,ffff800020e1e150) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e1d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e1d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcd0e0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e1ddb0 rbx 0xffff800020e1de60 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffff800020e1dd70 r9 0xffffffff8167b47f kprintf+0x16f r10 0x1 r11 0x9a108c2c10c3e6a3 r12 0x3000000008 r13 0xffff800020e1ddc0 r14 0x100 r15 0x1 rip 0xffffffff8215e708 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e1dda0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=513326 stat=onproc flags process=0 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020dd6770,0xffff800020dd78c8 process=0xffff800020df0be0 user=0xffff800020e19000, vmspace=0xfffffd807effe2e0 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 17853 454821 23749 0 2 0 syz-executor.1 17853 230798 23749 0 3 0x4000080 fsleep syz-executor.1 55716 333929 0 0 3 0x14280 nfsidl nfsio 88587 163261 0 0 3 0x14280 nfsidl nfsio 10065 30487 0 0 3 0x14280 nfsidl nfsio 90958 306383 0 0 3 0x14280 nfsidl nfsio 87742 1156 0 0 3 0x14280 nfsidl nfsio 49510 89694 0 0 3 0x14280 nfsidl nfsio 78776 398069 0 0 3 0x14280 nfsidl nfsio 58407 524258 0 0 3 0x14280 nfsidl nfsio 52346 272662 0 0 3 0x14280 nfsidl nfsio 46203 218968 0 0 3 0x14280 nfsidl nfsio 35302 184130 0 0 3 0x14280 nfsidl nfsio 61377 209723 0 0 3 0x14280 nfsidl nfsio 76237 509268 0 0 3 0x14280 nfsidl nfsio 87879 323262 0 0 3 0x14280 nfsidl nfsio 36998 59779 0 0 3 0x14280 nfsidl nfsio 26480 468973 0 0 3 0x14280 nfsidl nfsio 40263 5916 0 0 3 0x14280 nfsidl nfsio 76457 423578 0 0 3 0x14280 nfsidl nfsio 64044 315295 0 0 3 0x14280 nfsidl nfsio 88207 511358 0 0 3 0x14280 nfsidl nfsio 23749 230199 77617 0 3 0x82 nanosleep syz-executor.1 40495 444920 77617 0 2 0x2 syz-executor.0 77617 157701 32883 0 3 0x82 thrsleep syz-fuzzer 77617 514002 32883 0 3 0x4000082 nanosleep syz-fuzzer 77617 480495 32883 0 3 0x4000082 nanosleep syz-fuzzer 77617 261504 32883 0 3 0x4000082 thrsleep syz-fuzzer 77617 43135 32883 0 3 0x4000082 thrsleep syz-fuzzer 77617 431006 32883 0 3 0x4000082 thrsleep syz-fuzzer 77617 346643 32883 0 3 0x4000082 thrsleep syz-fuzzer 77617 391969 32883 0 7 0x4000002 syz-fuzzer 32883 334731 33184 0 3 0x10008a pause ksh 33184 419035 76224 0 3 0x92 select sshd 28072 384622 1 0 3 0x100083 ttyin getty 76224 200824 1 0 3 0x80 select sshd 23314 351163 70834 74 3 0x100092 bpf pflogd 70834 307981 1 0 3 0x80 netio pflogd 93244 323425 64717 73 3 0x100090 kqread syslogd 64717 369931 1 0 3 0x100082 netio syslogd 62911 522478 1 77 3 0x100090 poll dhclient *27934 513326 1 0 7 0 dhclient 88845 280384 0 0 3 0x14200 bored smr 55178 163228 0 0 3 0x14200 pgzero zerothread 13091 325947 0 0 3 0x14200 aiodoned aiodoned 31973 520186 0 0 3 0x14200 syncer update 27105 442609 0 0 3 0x14200 cleaner cleaner 30276 157893 0 0 3 0x14200 reaper reaper 93436 128253 0 0 3 0x14200 pgdaemon pagedaemon 34769 355920 0 0 3 0x14200 bored crynlk 94735 55378 0 0 3 0x14200 bored crypto 5895 99208 0 0 3 0x40014200 acpi0 acpi0 43036 221434 0 0 3 0x40014200 idle1 85347 485197 0 0 3 0x14200 bored softnet 58508 490443 0 0 3 0x14200 bored systqmp 49279 208958 0 0 3 0x14200 bored systq 51271 110973 0 0 3 0x40014200 bored softclock 49996 375323 0 0 3 0x40014200 idle0 1 114138 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 40495 (syz-executor.0) thread 0xffff800020dd7150 (444920) exclusive rrwlock inode r = 0 (0xfffffd806e2515e8) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:311 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:462 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:603 #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:1853 #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 (0xfffffd806825bd60) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:311 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:462 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:603 #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:1853 #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 27934 (dhclient) thread 0xffff800020dd7640 (513326) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8293cf68) #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+0xb3a sys/kern/uipc_socket.c:956 #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 9491 6529K 6721K 78643K 10766 0 pcb 13 8K 8K 78643K 31 0 rtable 120 5K 5K 78643K 229 0 ifaddr 53 12K 12K 78643K 61 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 4K 78643K 1501 0 iov 0 0K 0K 78643K 2 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1273 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 5 0 VM map 2 1K 1K 78643K 2 0 sem 9 1K 1K 78643K 19 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 147 0 proc 61 63K 95K 78643K 454 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 216 0 in_multi 37 2K 2K 78643K 62 0 ether_multi 1 0K 0K 78643K 3 0 mrt 0 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 217 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 172 43K 43K 78643K 1445 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 16 0 NDP 7 0K 0K 78643K 17 0 temp 92 3867K 3931K 78643K 2369 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 6 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 88 19 0 17 1 0 1 1 0 8 0 rtentry 112 55 0 7 2 0 2 2 0 8 0 unpcb 120 75 0 64 1 0 1 1 0 8 0 syncache 272 4 0 4 1 1 0 1 0 8 0 tcpqe 32 641 0 641 1 1 0 1 0 8 0 tcpcb 592 156 0 138 7 4 3 3 0 8 1 inpcb 296 265 0 257 4 2 2 2 0 8 1 nd6 48 14 0 5 1 0 1 1 0 8 0 pkpcb 40 1 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 pfrktable 1344 3 0 0 1 0 1 1 0 8 0 pfstitem 24 20 0 8 1 0 1 1 0 8 0 pfstkey 112 20 0 8 1 0 1 1 0 8 0 pfstate 328 20 0 8 2 0 2 2 0 8 0 pfrule 1360 27 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 199 0 0 13 0 13 13 0 8 0 art_table 32 200 0 0 2 0 2 2 0 8 0 art_node 16 54 0 11 1 0 1 1 0 8 0 sysvmsgpl 40 29 0 8 1 0 1 1 0 8 0 semupl 112 5 0 5 2 2 0 1 0 8 0 semapl 112 9 0 2 1 0 1 1 0 8 0 shmpl 112 6 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1560 0 156 88 0 88 88 0 8 0 ffsino 272 1560 0 156 95 1 94 94 0 8 0 nchpl 144 1929 0 321 60 0 60 60 0 8 0 uvmvnodes 72 1646 0 0 30 0 30 30 0 8 0 vnodes 208 1646 0 0 87 0 87 87 0 8 0 namei 1024 5305 0 5305 3 2 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 560 6 0 2 2 1 1 1 0 8 0 pfiaddrpl 120 2 0 0 1 0 1 1 0 8 0 scxspl 200 5642 0 5642 8 7 1 7 0 8 1 plimitpl 152 28 0 20 1 0 1 1 0 8 0 sigapl 424 382 0 331 6 0 6 6 0 8 0 futexpl 56 1706 0 1705 3 2 1 1 0 8 0 knotepl 112 62 0 42 1 0 1 1 0 8 0 kqueuepl 152 58 0 56 1 0 1 1 0 8 0 pipepl 304 92 0 81 3 1 2 2 0 8 1 fdescpl 496 347 0 331 3 0 3 3 0 8 0 filepl 152 2009 0 1903 5 0 5 5 0 8 0 lockfpl 104 25 0 24 1 0 1 1 0 8 0 lockfspl 48 10 0 9 1 0 1 1 0 8 0 sessionpl 120 18 0 7 1 0 1 1 0 8 0 pgrppl 48 18 0 7 1 0 1 1 0 8 0 ucredpl 96 265 0 256 1 0 1 1 0 8 0 zombiepl 144 331 0 331 1 0 1 1 0 8 1 processpl 1008 382 0 331 8 1 7 7 0 8 0 procpl 632 643 0 584 6 0 6 6 0 8 0 sockpl 400 360 0 338 8 4 4 4 0 8 1 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 226 0 0 28 0 28 28 0 8 0 mtagpl 96 8 0 0 1 0 1 1 0 8 0 mbufpl 256 258 0 0 14 0 14 14 0 8 0 bufpl 280 3429 0 126 236 0 236 236 0 8 0 anonpl 16 48495 0 30814 73 1 72 72 0 124 0 amapchunkpl 152 1814 0 1518 14 0 14 14 0 158 0 amappl16 192 1384 0 573 41 0 41 41 0 8 0 amappl15 184 73 0 68 2 1 1 1 0 8 0 amappl14 176 2 0 0 1 0 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 26 0 22 1 0 1 1 0 8 0 amappl11 152 55 0 40 1 0 1 1 0 8 0 amappl10 144 16 0 14 1 0 1 1 0 8 0 amappl9 136 419 0 417 1 0 1 1 0 8 0 amappl8 128 454 0 394 3 0 3 3 0 8 0 amappl7 120 115 0 103 1 0 1 1 0 8 0 amappl6 112 33 0 27 1 0 1 1 0 8 0 amappl5 104 247 0 231 1 0 1 1 0 8 0 amappl4 96 489 0 462 1 0 1 1 0 8 0 amappl3 88 125 0 116 1 0 1 1 0 8 0 amappl2 80 1892 0 1823 2 0 2 2 0 8 0 amappl1 72 18866 0 18419 24 14 10 18 0 8 0 amappl 80 915 0 836 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 353 0 333 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 353 0 333 1 0 1 1 0 8 0 vmmpekpl 168 6792 0 6757 2 0 2 2 0 8 0 vmmpepl 168 50517 0 48477 124 28 96 115 0 357 2 vmsppl 368 352 0 333 2 0 2 2 0 8 0 pdppl 4096 713 0 670 7 1 6 6 0 8 0 pvpl 32 165061 0 144129 174 3 171 171 0 265 1 pmappl 232 352 0 333 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 271 0 12 8 0 8 8 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(ffffffff823eb6bb) at panic+0x164 sys/kern/subr_prf.c:218 soreceive(fffffd806f65d000,0,ffff800020e1e068,0,0,ffff800020e1df74) at soreceive+0x1727 soo_read(fffffd807bff01c8,ffff800020e1e068,0) at soo_read+0x53 sys/kern/sys_socket.c:70 dofilereadv(ffff800020dd7640,6,ffff800020e1e068,0,ffff800020e1e150) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237 sys_read(ffff800020dd7640,ffff800020e1e100,ffff800020e1e150) at sys_read+0x83 sys/kern/sys_generic.c:157 syscall(ffff800020e1e1d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e1e1d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcd0e0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020d70ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff8293cd60) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8293cd60) at __mp_lock+0x127 sys/kern/kern_lock.c:147 uvm_map_inentry(ffff800020dd73c8,ffff800020dd7428,c000bdbb48,ffffffff82433039,ffffffff81b42a30,78) at uvm_map_inentry+0xbe sys/uvm/uvm_map.c:1890 usertrap(ffff800020ebecf0) at usertrap+0xed sys/arch/amd64/amd64/trap.c:346 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0xc000bdbbe0, count: 8 ddb{1}> trace x86_ipi_db(ffff800020d70ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff8293cd60) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8293cd60) at __mp_lock+0x127 sys/kern/kern_lock.c:147 uvm_map_inentry(ffff800020dd73c8,ffff800020dd7428,c000bdbb48,ffffffff82433039,ffffffff81b42a30,78) at uvm_map_inentry+0xbe sys/uvm/uvm_map.c:1890 usertrap(ffff800020ebecf0) at usertrap+0xed sys/arch/amd64/amd64/trap.c:346 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0xc000bdbbe0, count: -7