stdio: Fix error case for positional %wN / %wfN
In the case were N was not a valid bit width, we were taking the wrong
error path.
Fixes: 5e809bf1c93f ("stdio: Fix positional %wN / %wfN conversion")
(cherry picked from commit 0bf5d86620d047b4551d7414bf8011a328264b3d)
stdio: Fix positional %F conversion
When a format uses positional arguments, __find_arguments() walks it
first to learn the type of every argument, and lists the floating
point conversions as A a E e f G g. F is missing, so a double that
is only referred to through %F never gets a type, its slot in the
argument table stays unset, and the conversion reads whatever is
there:
printf("[%1$F]\n", -INFINITY); [0.000000]
printf("[%1$F]\n", 1.5); [0.000000]
printf("[%F]\n", 1.5); [1.500000]
With a width taken from another argument, "%1$*2$F", vsnprintf(3)
returned lengths like 2103024 for a ten character result; abseil's
str_format test allocates that much and was killed for it on
FreeBSD. The same format with %1$f, or with any other conversion of
the same argument, works because those give it a type.
[9 lines not shown]
clang: Fix warnings in ARM GCS ACLE header
Including <arm_acle.h> in C code compiled with -Wstrict-prototypes
results in warnings (or errors if -Werror is in effect) due to missing
parameter lists for __gcspr() and __gcspopm().
Submitted upstream as PR#242286.
MFC after: 1 week
Reported by: Pete French <pete at twisted.org.uk>
Reviewed by: dim
Differential Revision: https://reviews.freebsd.org/D61503
(cherry picked from commit 74d72b3491e810068313e49629c3b8fe46f29318)
libgeom: Open the control device read-write
Try to open the control device read-write first, and fall back to
read-only if that fails and the error is EACCES. This prepares us for a
future in which GEOM requires write access to execute verbs that modify
the configuration.
MFC after: 1 week
Event: EuroBSDCon 2026 DevSummit
Reviewed by: imp, markj, emaste
Differential Revision: https://reviews.freebsd.org/D59592
(cherry picked from commit 1e9e198b7f064322687746d26b283c3fcbad4579)
geom: Check file flags before handling control request
Pass fflag down to g_ctl_req() and:
* Refuse all requests unless fflag has the FREAD bit set
* Refuse all but getxml unless fflag also has the FWRITE bit set
This should allow us to restore read access to /dev/geom.ctl for group
operator; they will then be able to run `gpart list` or `gpart backup`
but not commands that actually modify the table.
For backward compatibility, we set the FWRITE bit if it is not already
set and the calling thread has the PRIV_GEOM privilege, which is
automatically granted to a jailed or unjailed superuser. This should
cover the case of older binaries (which open /dev/geom.ctl read-only)
running as root on a newer kernel. Since we intend to merge this to
stable/15, the compatibility code is conditional on COMPAT_FREEBSD14.
[6 lines not shown]
stdio: Fix error case for positional %wN / %wfN
In the case were N was not a valid bit width, we were taking the wrong
error path.
Fixes: 5e809bf1c93f ("stdio: Fix positional %wN / %wfN conversion")
(cherry picked from commit 0bf5d86620d047b4551d7414bf8011a328264b3d)
clang: Fix warnings in ARM GCS ACLE header
Including <arm_acle.h> in C code compiled with -Wstrict-prototypes
results in warnings (or errors if -Werror is in effect) due to missing
parameter lists for __gcspr() and __gcspopm().
Submitted upstream as PR#242286.
MFC after: 1 week
Reported by: Pete French <pete at twisted.org.uk>
Reviewed by: dim
Differential Revision: https://reviews.freebsd.org/D61503
(cherry picked from commit 74d72b3491e810068313e49629c3b8fe46f29318)
stdio: Fix positional %F conversion
When a format uses positional arguments, __find_arguments() walks it
first to learn the type of every argument, and lists the floating
point conversions as A a E e f G g. F is missing, so a double that
is only referred to through %F never gets a type, its slot in the
argument table stays unset, and the conversion reads whatever is
there:
printf("[%1$F]\n", -INFINITY); [0.000000]
printf("[%1$F]\n", 1.5); [0.000000]
printf("[%F]\n", 1.5); [1.500000]
With a width taken from another argument, "%1$*2$F", vsnprintf(3)
returned lengths like 2103024 for a ten character result; abseil's
str_format test allocates that much and was killed for it on
FreeBSD. The same format with %1$f, or with any other conversion of
the same argument, works because those give it a type.
[9 lines not shown]
[clang][NFC] Remove stale disabled ext-vector comparison test (#243510)
The `#if 0` block in `test6` has been disabled since 2009 because vector
comparisons could crash codegen. That was fixed in r76726
([`5ac69057c000`](https://github.com/llvm/llvm-project/commit/5ac69057c000)),
which changed `ScalarExprEmitter::EmitCompare` to use `isFPOrFPVector()`
and added the unguarded `test8` to this same file.
`test8` already checks the same float4 comparisons with exact `fcmp`
expectations, so this older block is redundant. It also contains a stale
`a < b` duplicate where `test8` has `a > b`.
Remove the disabled block. No functional change; coverage remains in
`test8`.
[VPlan] Clamp the AVL to the maximum safe distance via umin. (#243812)
Use umin to clamp maximum AVL by the safe dependnece distance instead of
select. This removes an unnecessary select without profile info, and in
some cases umin is also cheaper than compare/select.
PR: https://github.com/llvm/llvm-project/pull/243812
plugins: only wheel and wwwonly may stop services
configd's socket is open to every local user, so without allowed_groups
any of them could stop these services. Matches core's service stop
actions (08c23bcdd9) and net/netflector (8011b98b2). acme-client's
http-stop is its service stop; iperf's job stops stay open, like core's
interface.ping.stop.
[LV] Support reductions used on uncountable early exits (#233139)
Compute the value of a reduction on an early exit directly from the
vector accumulators in the vector early exit block: lanes up to and
including the first active lane of the early exit condition use the
updated accumulator, the remaining lanes the accumulator of the previous
iteration:
```
vector.early.exit:
first.active.lane = first-active-lane ...
mask = active-lane-mask 0, first.active.lane + 1
blend = select mask, rdx.next, rdx.phi
result = compute-reduction-result blend
```
Which reductions used on early exits are supported is decided in VPlan
when handling uncountable early exits, based on the reduction phi
recipes.
[8 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] Factor out the same-step check of runtime check bounds (NFC)
The follow-up change uses four SCEV expressions for this type of change
so it also generalizes it to take an array.
[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.
[ValueTracking] Propagate demanded lanes through ADD in sign-bit queries (#244293)
Use the demanded lanes when computing the sign bits of the left operand.
This matches the behavior in SDAG.
Assisted by: GPT 6.1 Sol
glow: update to 3.0.0.
This quiet release updates Bubble Tea, Lip Gloss, and Bubbles to
their glorious v2s. While there are no UX changes, there's a ton
great stuff with the Bubble Tea v2 ecosystem, most notably faster,
more accurate rendering.