powerpc/powernv: byte swap the OPAL async completion token
OPAL messages are big endian, but opal_handle_async_completion() took
the token straight from params[0]. On little endian a token reads as a
huge number that the int then truncates to 0, so every completion was
recorded against token 0. A request that happened to get token 0
worked by luck. Any other one only finished if
OPAL_CHECK_ASYNC_COMPLETION saw the message before the kernel's message
poller took it, and otherwise opal_wait_completion() spun forever.
I hit this on a POWER9 PowerNV machine with a one byte read from an I2C
EEPROM, which never returned. Swap the token, and check that it's in
range before using it as an index.
Reviewed by: jhibbits
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D62361
dtrace/powerpc: decode blr and bctr in the pid provider
OPX() shifted the instruction by two bits instead of one, so the
extended opcode never matched and blr and bctr weren't recognised.
They were treated like any other instruction, which means a single
step that powerpc doesn't have. A return probe on a function that ends
in blr panics an INVARIANTS kernel, and without INVARIANTS the traced
process spins on the tracepoint.
Fix the shift. Two more things were hidden behind it and have to be
fixed with it: bclr was typed as a bctr, so it would have returned
through CTR, and OP_RB() had the wrong mask, so some real or
instructions would have been taken for no-ops.
Reviewed by: jhibbits
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D62360
powerpc: let DTrace decide whether a kernel trap instruction is its probe
trap() tells an fbt probe from a debugger breakpoint by reading the
instruction at the trap address and comparing it with the fbt one. When
a probe is disabled fbt puts the original instruction back, and other
CPUs can already be in the trap for it by then. Such a CPU finds the
original instruction, takes the trap for a breakpoint and drops into
KDB. I've had a guest stop like that twice, both times when dtrace(1)
exited with a probe on a busy function.
DTrace doesn't need the instruction to know its probe. fbt_invop()
looks the address up in its own table, and dtrace_invop_start() returns
-1 when nobody claims it. So ask it for every kernel trap instruction
and go on to KDB only when it says no, like amd64 does.
Reviewed by: jhibbits
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D62358
[SPIRV] Remove the MatrixAAndBTF32ComponentsINTEL cooperative matrix operand (#247691)
Remove MatrixAAndBTF32ComponentsINTEL (0x20) from
SPV_INTEL_joint_matrix. Consumers treat 32-bit floating-point A and B as
TF32 without it, so the value 0x20 is no longer needed.
Note that the operand was removed from the spec in
https://github.com/intel/llvm/pull/23817
Assisted-by: Claude
[DAGCombiner] Match (setcc X, X, uno) in NaN-guard fp-to-int fold (#248004)
performNanGuardFpToSatCombine only matched an isnan check of the form
(setcc X, 0.0, uno/ord). SimplifySetCC canonicalizes that to
(setcc X, X, uno/ord), so the fold was missed if the setcc was
simplified
before the select was visited. That happens when a vector compare is
scalarized, and always with -combiner-topological-sorting.
Assisted-by: Claude Fable 5.2 <noreply at anthropic.com>
Mk/Uses/qt-dist.mk: Fix webengine rollup location
Originally, the security patch was living as a monolithic patch in
the ports tree, but it ballooned to around 30MB, so that was not
going to work. This was a last-minute change and I didn't update
the URL to what I finally settled upon.
PR: 301453
Reported by: Dean E. Weimer <dweimer at dweimer.net>
net/udpspeeder: Update to 20261202.0
Fixed a buffer overflow issue that may crash the program.
It's strongly suggested to upgrade, because buffer overflow
issue, if further exploited, may lead to security issues.
PR: 301449
Approved by: fuz (ports)
build: regenerate the runtime marker for implicit packages
We may still want to remove markers when we remove packages,
but for now just make sure the patched packages set does not
strip any packets to aux that are acutally runtime.
[AArch64] Implement ACLE intrinsics for FPv2 SVE min/max instructions
ACLE PR: https://github.com/ARM-software/acle/pull/480
Implements the following intrinsics:
- svmaxmg / svminmg
- svmaxinm / svmininm
- svmaxmginm / svminmginm
Includes f16, f32, and f64 types, _m, _z, and _x predication and _n variants
AI assistance: Codex used for generating test cases
[X86] isGuaranteedNotToBeUndefOrPoison - enable disabled cases
#245048 left PCMPEQ and some truncation and conversion opcodes
commented out in isGuaranteedNotToBeUndefOrPoisonForTargetNode until
they had test coverage. Since then a VZEXT_MOVL after them is kept,
because the known-zero upper elements aren't proven free of undef or
poison. That costs a movq, or a vpxor and vpblendd for the saturating
truncates.
Enable them. computeKnownBitsForTargetNode already lists the same
truncation and conversion opcodes as zeroing their upper elements, and
PCMPEQ is elementwise like PCMPGT and can't create undef or poison.
Assisted-by: Claude Code (Claude Opus 5.5)
[X86] Add tests for the commented-out undef/poison opcodes (NFC)
#245048 left PCMPEQ and some truncation and conversion opcodes
commented out in isGuaranteedNotToBeUndefOrPoisonForTargetNode until
they have test coverage: VTRUNCS, VTRUNCUS, MCVTPS2PH, MCVTTP2SIS,
MCVTTP2UIS, STRICT_CVTTP2UI, STRICT_CVTSI2P, STRICT_CVTUI2P,
STRICT_VFPROUND and STRICT_CVTPS2PH. Each test shuffles zeros into
upper elements that are already zero.
Assisted-by: Claude Code (Claude Opus 5.5)
[RISCV] Move RVV CSR case next to scalar CSRs. NFC
Handle the vector callee-saved slots of realigned frames next to the
scalar callee-saved ones, and compute their offset from the scalar
callee-saved area and the stack alignment padding.
[X86] combineAnd - don't call SimplifyDemandedVectorElts on AND(X,0) patterns (#247575)
Similar to #246154 - trying to use use SimplifyDemandedVectorElts
exposes the likelihood of AND(poison,0) -> poison propagation and
attempting to use isGuaranteedNotToBeUndefOrPoison often fails with
infinite loops due to the recursion depth limits not detecting a FREEZE
thats too deep.
Fixes #244806
Fixes #246932
devel/rubygem-platform: Fix WWW
The previous WWW pointed to an unrelated project that merely
shares the name platform.
PR: 301396
MFH: 2026Q4
(cherry picked from commit 7bbebc048ada36c0abb1c517971d19a59daf09a2)