dtrace/powerpc: continue after a conditional branch that isn't taken
When the pid provider emulated a bc, bclr or bcctr that wasn't taken,
it left the new pc at 0. The traced process jumped to address 0 and
died with SIGSEGV.
Go on with the next instruction instead.
Reported by: llm-postcr
Reviewed by: jhibbits
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D62431
dtrace/powerpc: emulate the xor of USDT is-enabled sites
dtrace -G turns the call at an is-enabled site into xor r3,r3,r3. In
a 32-bit process the tracepoint for that site ends up on the xor
itself, and the pid provider doesn't know that instruction, so since
22aad251ed64 it refuses the tracepoint and the probe can't be enabled.
dtrace doesn't say so. 64-bit processes aren't affected, their
tracepoint is on the nop after the xor.
Emulate xor rA,rS,rS.
Reported by: llm-postcr
Reviewed by: adrian
Fixes: 22aad251ed64 ("dtrace/powerpc: refuse pid tracepoints that would need a single step")
MFC with: 22aad251ed64
Differential Revision: https://reviews.freebsd.org/D62448
linuxulator/powerpc: look AT_PLATFORM up by PVR
The feature bits don't tell the CPUs apart well enough. e5500 and e6500
are ISA 2.06 as well, so they got power7, and Linux programs that check
for it may then use VSX, which neither core has.
Use a table keyed by the PVR instead, with the names Linux uses. This
also sorts out ppc970, POWER5, POWER7+, POWER11 and Cell.
Reported by: llm-postcr
Suggested by: jhibbits
Approved by: jhibbits (blanket)
Fixes: 79d5c5beab28 ("linuxulator/powerpc: report the CPU family in AT_PLATFORM")
[CIR] Emit the object of an inherited static call operator (#248242)
Sema converts the object argument of an inherited static operator() or
operator[] to the base class with a CK_NoOp cast, not a derived-to-base
conversion. emitCastLValue rejects a CK_NoOp that changes the record
type and reports errorNYI.
emitCall now drops that cast before emitting the object as an ignored
expression. The object is never read, so the cast has no effect on the
IR. emitCastLValue still rejects every other record-changing CK_NoOp.
This change does not handle CK_AddressSpaceConversion, which Sema uses
when the object is in a different address space.
libc++'s ranges::begin, ranges::end and ranges::data now inherit a
static operator() from std::_CPO. Without this change, 860 libc++ std/
tests fail to compile under -fclangir.
Assisted-by: Cursor / Claude Opus 5.5
[AMDGPU] Select scalar_to_vector for v4bf16 (#248472)
Reuse the v4i16 and v4f16 patterns for v4bf16 to fix a SelectionDAG
instruction selection failure. Cover uniform and divergent inputs with
Real True16 enabled and disabled.
Fixes #248118
Merge tag 'platform-drivers-x86-v7.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
Pull x86 platform driver fixes from Ilpo Järvinen:
- Allow wmi module to load on arm64 DT system that have ACPI disabled
- Two MAINTAINERS updates
* tag 'platform-drivers-x86-v7.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86:
MAINTAINERS: Add Ahmed Yaseen as co-maintainer for ASUS notebooks
MAINTAINERS: Update Intel SCU driver maintainer
platform/wmi: Allow wmi module to load when acpi_disabled is set
[scudo] Accept errno form in ReportMapErrorDoesNotAllocate (#248825)
#248204 changed the Linux map/unmap/protect error reports to print
`(errno=N)` instead of `(error desc=...)` when strerrordesc_np is not
known to be available, i.e. on glibc older than 2.32 (outside Android
and Trusty). The change updated report_test.cpp to accept either form
there, but ScudoWrappersCDeathTest.ReportMapErrorDoesNotAllocate in
wrappers_c_test.cpp still requires the description, so it fails when the
runtime is built against an older glibc.
Use the same pattern as report_test.cpp: only the description is
accepted on Android and Trusty, and either form elsewhere. The test
cannot check the glibc version itself, since the runtime may be built
against different glibc headers (e.g. a sysroot) than the test.
Assisted-by: LLM
AMDGPU: Add gfx7 disassembler tests
Generated from the encodings in the gfx7_asm_*.s assembler tests.
s_cbranch_join with src_vccz, src_execz or src_scc is left
out. Despite assembling, these are already broken on gfx8+ and don't
decode.
Assisted-by: Claude
add some omitted details and tweak markup
Add some missing arguments to key/value options, and MLDSA44-ED25519
to the description of the standard user key files.
Also fix a mandoc lint warning and mark up arguments consistently.
[lldb] Enforce the maximum register size at runtime (#247373)
gdb-remote stubs can report arbitrary register sizes in target.xml and
qRegisterInfo. RegisterValue::kMaxRegisterByteSize was only checked with
an assert, and Scalar::SetValueFromData computed the bit width in an
unsigned, which overflows on large byte sizes and causes an
out-of-bounds write.
Return an error from RegisterValue::SetValueFromData when a register
exceeds kMaxRegisterByteSize, and fail in Scalar::SetValueFromData if
the bit width overflows unsigned.
Also skip oversized registers when parsing target.xml and qRegisterInfo
instead of allocating buffers for registers lldb cannot read. Track
qRegisterInfo register numbers explicitly so skipping one does not shift
the numbers of later registers.
rdar://187191507
Assisted-by: Claude
Add usr.sbin/rvn
This is the Ravenports bootstrap stub program.
if /raven/sbin/rvn is already installed, it is exec'd with
original arguments. Otherwise, with the user's confirmation,
rvn is downloaded and installed in place.
Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
Pull arm64 fix from Catalin Marinas:
- Fix an LLD "does not converge" link error by avoiding a wrap-around
in SPAN_NR_ENTRIES()
* tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
arm64: Fix transient negative image size observed by the linker
[cir][openacc] Use signless integer for lowering to gang/vector/worker clauses (#249041)
Currently, CIR is lowering expression for
`gang`/`vector`/`worker`/`num_workers`/`vector_length`/`num_gangs` to
signed integer. While this is not forbidden by the dialect today, it
doesn't fit with the OpenACC backend lowering and would make the code
crash when casting these values to index types.
This patch updates the lowering to use signless integer like flang. A
follow up patch will update the dialect to make this contract enforced
by the verifier.
[AArch64] Implement InstCombine for sve_and_u and sve_eor_u
Canonicalize the following same-predicate expressions:
sve_and_u/m(p, a, sve_eor_m(p, a, c))
sve_eor_u/m(p, a, sve_and_m(p, a, c))
sve_and_u/m(p, a, sve_not(p, passthru, c))
to:
sve_bic_u/m(p, a, c)
The inner operation must have one use. This keeps the transform
instruction-count neutral and allows SelectionDAG to lower the
undef forms to generic AND and XOR nodes.