bhyve: Reinitialise swtpm's TPM at startup
bhyve does not currently reinitialise swtpm on startup, which results in
PCRs being carried over across reboots. This means that any guest VM
implementing measured boot controls, such as Windows with BitLocker and
Secure Boot enabled, will consider the system compromised and refuse to
start or ask for a recovery key.
swtpm has a control channel that allows us to send commands for that
purpose: CMD_INIT shuts the TPM down and starts it again clearing the
PCRs in the process, like a cold boot on real hardware.
Connect a second socket when the new ctrl_path option is set and send
CMD_INIT there. Without the option nothing changes.
MFC after: 2 weeks
Sponsored by: Defenso
Signed-off-by: Quentin Thébault <quentin.thebault at defenso.fr>
Reviewed by: kevans, novel
Differential Revision: https://reviews.freebsd.org/D59322
comms/serialoverip: Deprecate/Set to expire
It hasn't been touched from upstream in 24 years.
PR: 300374
MFH: 2026Q4
(cherry picked from commit 6ab969be0860fc3f76d68b4374cecb601cd7d613)
[X86] Add test coverage for #245048 (NFC) (#246414)
Test coverage for #245048. These cases change with it: VZEXT_MOVL of a
VZEXT_LOAD, of a STRICT_ conversion and of a xor of VSHLI or VSRLI,
and a splat of an add with a VTRUNC operand.
Assisted-by: Claude Code (Claude Opus 5.5)
games/linux-steam-utils: Add desktop entry and system setup
Ship a steam.desktop with StartupWMClass=steam so docks and menus
match the Steam window to Steam instead of an installed game's
launcher. It runs steam-launcher, which downloads the Steam bootstrap
on first use, asks for confirmation when the user is in wheel, and
shows setup errors with zenity since there is no terminal.
Add the sysctls Steam needs to /etc/sysctl.conf and nullfs to
kld_list on install. Deinstall removes unprivileged chroot only, the
other settings are GhostBSD defaults.
[PowerPC] Enable SlotIndexes compaction by default
Greedy measures live ranges in slot indexes, and instructions erased
before allocation (by PHI elimination, two-address lowering and the
coalescer) leave entries behind that make ranges look longer than
they are. Opt PowerPC in to dropping them, as AMDGPU and ARM do, so
allocation works with real distances. Passing
-greedy-compact-slot-indexes=false restores the old behaviour.
On CTMark (pwr8, pwr10, AIX, ppc32), .text and llc compile time move
by less than 0.03% and evictions drop by 1.5-5.8%.
The test updates are register allocation changes; csr-split.ll gets
back the live range split it was written to check.
[SystemZ] Use VBPERM to lower bitcast of <N x i1> to iN
On z14 and later (vector-enhancements facility 1), combine a bitcast
of v2i1, v4i1, v8i1 or v16i1 to the same-width integer (a "movemask")
into VECTOR BIT PERMUTE followed by a halfword extract. The lanes are
sign-extended to fill a 128-bit register, so a vector compare feeding
the bitcast needs no extra work. A constant index vector gathers the
top bit of each lane, with lane 0 landing in the most significant bit
of the result as before. Unused leading bytes use index 128, which
selects a zero bit.
This replaces about 34 instructions (vlgvb, risblg/rosbg, llhr) for
the v16i1 case with vbperm and vlgvh, plus a constant-pool load.
Reductions such as icmp eq/ne (bitcast (icmp ...)), 0/-1 are left to
combineSETCC so they keep using the condition code (vceqbs).
Assisted by: IBM Bob
[SLP]Fix demotion of nodes reused at a wider width
Count shared cast scalars in the demoted width, use the node
signedness and the user width in the unsafe-user check, and round
sub-byte widths to i8. Otherwise gathers and wider users get
sign-extended narrow lanes, which gives wrong values or poison.
Fixes #246337
Pull-request: https://github.com/llvm/llvm-project/pull/246423
www/matomo: Update 5.11.2 => 6.0.0
Matomo 6.0.0 is the first major release since December 2023.
It modernises the platform with PHP 8.1, MySQL 8 and a rebuilt
front-end toolchain. It also builds spam and bot filtering into
Matomo, introduces completely redrawn visitor maps, and applies
the new design system to dropdowns, search fields and report headers.
These versions have Breaking Changes:
5.13.0, 5.14.0, 5.14.1, 5.14.2, 6.0.0
No notes about database upgrade until it comes to the major version.
This release adds a consent column to the log_visit table in preparation
for consent tracking. The update runs an ALTER TABLE operation, which
may take time on installations with a large visits log.
The database upgrade also creates the log_page_view_time table to store
one row per page view. On large installations, creating this table and
[18 lines not shown]
Revert "config: add KERBEROS option to kea"
This reverts commit 64118a51609de66906980523d766ab862ed6dc74.
Although this is probably fine the user requesting this didn't
come back yet with the results.
www/matomo: Update 5.11.2 => 6.0.0
Matomo 6.0.0 is the first major release since December 2023.
It modernises the platform with PHP 8.1, MySQL 8 and a rebuilt
front-end toolchain. It also builds spam and bot filtering into
Matomo, introduces completely redrawn visitor maps, and applies
the new design system to dropdowns, search fields and report headers.
These versions have Breaking Changes:
5.13.0, 5.14.0, 5.14.1, 5.14.2, 6.0.0
No notes about database upgrade until it comes to the major version.
This release adds a consent column to the log_visit table in preparation
for consent tracking. The update runs an ALTER TABLE operation, which
may take time on installations with a large visits log.
The database upgrade also creates the log_page_view_time table to store
one row per page view. On large installations, creating this table and
[17 lines not shown]
[LoopUtils] Check the first outer iteration for co-moving pointer groups
When runtime checks are hoisted out of the outer loop, the range of each
pointer group is widened to cover all iterations of the outer loop. If both
groups of a check advance by the same step in the outer loop, e.g. two rows
of the same image:
```cpp
for (y = 0; y < H; y += 2)
for (x = 0; x < n; x++) {
img[y*S + 3*x] = ...;
img[(y+1)*S + 3*x] = ...;
}
```
the widened ranges overlap as soon as the outer loop runs twice, so the
check always fails and the vector loop never runs.
If all bounds of both groups are affine AddRecs of the outer loop with the
[7 lines not shown]
[LoopUtils][LV] Compute runtime check bounds per check (NFCI)
getRuntimeCheckBounds takes a single pointer group, but the bounds to use
for one group can depend on the group it is checked against.
This changes RuntimePointerCheck to include bounds of both of its groups.
RuntimeCheckBounds takes the new role of covering both groups and
RuntimeCheckGroupBounds covering single group bounds.
The per-group logic moved unchanged into a static helper.
In VPlan's createRuntimeChecks, compute and expand the bounds of each check
right before its compares, in a single loop over the checks, instead of
caching the expanded bounds per group.
We can do it because VPSCEVExpander already reuses expansions of the same SCEV,
and VPlan's CSE merges the resulting duplicate freezes.
As the result, this change only affects the order of the instructions in
the runtime checks.
[LoopUtils] Factor out the same-step check of runtime check bounds (NFC) (#243835)
The follow-up change uses four SCEV expressions for this type of change
so it also generalizes it to take an array.
[libc][regex] Make derivative iterative (#246333)
derivative() recursed once per nested node, so a deep expression could
overflow the call stack. Commits d159e4f06b81 and 4c0d3e841c0c removed
the same recursion from ExprPool.
Walk the expression with an explicit stack instead:
* DerivFrame: one pending parent node
* DerivStack: 8 frames inline, then a doubling heap array that match()
reuses across bytes
* derivative_impl: makes the same ExprPool calls in the same order as
the recursive code
derivative() can now also return REG_ESPACE when the stack cannot grow.
Optimised x86-64 frames in regex_matcher.cpp stay at or under 232 bytes.
Also move ExprBuilder into a shared test header.
Compliance: Henry Spencer spencer_tests.txt 268/456 Bool/Err (+0) and
[3 lines not shown]
[AArch64] Sink expressions that can form DEC/INC Z instrucitons
Sinking of the whole "scaled vscale splat" chain is necessary for SDAG
to select it to DEC/INC instuctions. This can help reduce ZPR register
pressure. Previously, the splats had to stay live throughout the whole
loop, or loop nest.
Assisted-by: codex (test creation)
[AArch] Missing ISel patterns for inc/dec with negative multipliers (#246282)
Existing patterns for DEC/INC instructions do not match negative
multipliers.
[AMDGPU] Defer S_WAITCNT_DEPCTR erasure and updates in expert mode
A pre-existing S_WAITCNT_DEPCTR was erased, or had its VA_VDST and
VM_VSRC fields relaxed, as soon as the incoming state made those waits
look redundant. In a loop header that happens on the first visit, before
the backedge adds the instructions of the loop body. The wait is then
lost when the header is visited again with them pending.
Keep the original operand of every S_WAITCNT_DEPCTR, including
duplicates, while iterating to the fixed point, and only apply the final
encoding or erase the instruction at the end of the pass.
Also reset the VA_VDST field of a duplicate S_WAITCNT_DEPCTR to "no
wait" once its wait has been folded into the first one, instead of
leaving a redundant copy of the combined wait behind.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
[InstCombine] Check the user limit on push in isOnlyCopiedFromConstantMemory (#246309)
Fixes #242235.
Check the number of visited values on push instead of on pop, to avoid
visiting a large number of users that exceed the limit, resulting in
quadratic runtime.
AI disclosure: the analysis, patch, test and benchmarks were produced
with the help of an AI coding agent (Grok Bot).
[SCEV] Micro-optimize SCEVUse hash (NFC) (#246403)
Use the DenseMap pointer hash instead of hash_value, which matches what
`SCEV *` would use. This is slightly faster.
[wasm] Swift async ABI p3: Lower llvm.swift.async.context.addr to local 0
In functions with a swiftasync argument, the async context is in local 0.
Loads and stores through llvm.swift.async.context.addr become local.get 0
and local.set 0. In functions without a swiftasync argument, the intrinsic
returns the address of a stack slot, as on X86 without an extended frame.
The swiftasync argument also arrives in local 0, so a store through the
intrinsic would also change the argument. Await resume funclets store their
own context through the intrinsic and can then read the argument, which is
the callee's context. To keep the argument intact, WebAssemblyExplicitLocals
copies it to another local in functions that use the intrinsic.
[OpenMP][omptest] Run the ompTest unit tests on the AMDGPU clang-flang bot (#237202)
ompTest ships unit tests that register as check-ompt-omptest, but
LIBOMPTEST_BUILD_UNITTESTS defaults to OFF, so no buildbot builds or
runs them.
Enable unit tests on the openmp-offload-amdgpu-clang-flang bot, which already runs check-openmp.
Assisted-by: Claude Opus 5 <noreply at anthropic.com>
math/dragonbox: [NEW PORT] Floating-point binary-to-decimal conversion library
Dragonbox is a float-to-string conversion algorithm, producing the
shortest decimal representation of a binary floating-point number
which still rounds back to it. A number of ports bundle a copy of
it in their sources; this port lets them use a single shared one.
The upstream build only makes a static dragonbox_to_chars; patch
it to honor BUILD_SHARED_LIBS and to give the library a SOVERSION
-- idea from NetBSD/pkgsrc.
WWW: https://github.com/jk-jeon/dragonbox
Co-Authored-By: Claude Opus 5.5 (effort medium)
PR: 300885