LLVM/project d12116e — llvm/lib/Transforms/Instrumentation MemorySanitizer.cpp

[NFC][msan] Deduplicate stack-based VarArg helpers (#243183)

As for now, the VarArgHelper classes for the i368, PowerPC64 and generic
implementation use the same va_args handling model relying on the
arguments being place in stack memory in their natural order.

This patch introduces VarArgStackModelHelperBase class used to
deduplicate the va_list shadow handling in the described case.

Follow-up to the discussion in #211339
DeltaFile
+61-150llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
+61-1501 files

LLVM/project 5655c65 — llvm/lib/CodeGen TargetInstrInfo.cpp, llvm/test/CodeGen/X86 machine-outliner-nomerge.ll

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+8-4llvm/test/CodeGen/X86/machine-outliner-nomerge.ll
+3-0llvm/lib/CodeGen/TargetInstrInfo.cpp
+11-42 files

LLVM/project b2c2cde — llvm/test/CodeGen/X86 machine-outliner-nomerge.ll

[test][CodeGen] Precommit MachineOutliner test for nomerge instructions (#245434)

Precommit a reduced -enable-machine-outliner test showing current
MachineOutliner behavior on trap blocks ending in a nomerge
@llvm.ubsantrap call.

Assisted-by: Gemini
DeltaFile
+88-0llvm/test/CodeGen/X86/machine-outliner-nomerge.ll
+88-01 files

LLVM/project 7d1af9f — llvm/lib/Transforms/IPO StripDeadPrototypes.cpp, llvm/test/Transforms/StripDeadPrototypes preserve-function-analyses.ll

StripDeadPrototypes: Preserve function analyses

Only unused declarations are deleted, which does not affect the
analyses of any remaining function. Also report a change when only
global variable declarations are deleted. This doesn't do much since
it's not in the default pass pipeline but I want to cover all the
passes.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+17-6llvm/lib/Transforms/IPO/StripDeadPrototypes.cpp
+17-0llvm/test/Transforms/StripDeadPrototypes/preserve-function-analyses.ll
+34-62 files

LLVM/project 1734e10 — clang/lib/CodeGen MicrosoftCXXABI.cpp ItaniumCXXABI.cpp

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+1-1clang/lib/CodeGen/MicrosoftCXXABI.cpp
+1-1clang/lib/CodeGen/ItaniumCXXABI.cpp
+2-22 files

FreeNAS/freenas 26f9965 — tests/vm conftest.py

NAS-145417 / 27.1.0 / Add conftest.py for tests/vm (by bmeagherix) (#20301)

tests/vm had no conftest, so nothing prepared the server before the
tests ran: SSH password login was never enabled and the default pool was
never created.

Use the same session setup as tests/cloud.

Original PR: https://github.com/truenas/middleware/pull/20300

Co-authored-by: Brian Meagher <brian.meagher at truenas.com>
DeltaFile
+150-0tests/vm/conftest.py
+150-01 files

LLVM/project b8d3594 — llvm/lib/Transforms/Vectorize VPlanTransforms.cpp, llvm/test/Transforms/LoopVectorize early_exit_store_legality.ll

[VPlan] Get IV from condition load GEP for EE with stores. (#245797)

handleUncountableExitsWithSideEffects assumed the first header phi is a
VPWidenInductionRecipe, asserting if a reduction phi comes before the
IV. Use the index of the condition load's GEP instead.
DeltaFile
+32-0llvm/test/Transforms/LoopVectorize/early_exit_store_legality.ll
+6-12llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+38-122 files

LLVM/project 53e7e42 — clang/lib/CodeGen CGClass.cpp CodeGenFunction.h

[NFC][Clang][CodeGen] Factor out EmitCFICheckFailStaticArgs (#245505)

Deduplicate construction of {CheckKind, SourceLocation, TypeDescriptor}
static argument arrays across CFI vtable, indirect-call, and
member-pointer
checks into CodeGenFunction::EmitCFICheckFailStaticArgs.

Assisted-by: Gemini
DeltaFile
+4-14clang/lib/CodeGen/ItaniumCXXABI.cpp
+12-5clang/lib/CodeGen/CGExpr.cpp
+7-0clang/lib/CodeGen/CodeGenFunction.h
+1-5clang/lib/CodeGen/CGClass.cpp
+24-244 files

LLVM/project 01557f1 — compiler-rt/lib/sanitizer_common sanitizer_common_interceptors.inc, compiler-rt/test/msan uchar_c32.cpp uchar_c16.cpp

[MSan] [ASan] [TSan] Add interceptors for multibyte/UTF conversions (#243270)

These six conversion functions are currently uninstrumented:

- `mbrtoc8`
- `c8rtomb`
- `mbrtoc16`
- `c16rtomb`
- `mbrtoc32`
- `c32rtomb`

There are workarounds like
https://github.com/llvm/llvm-project/pull/240607. This PR fixes the root
cause and adds common interceptors.

References:

- https://en.cppreference.com/c/string/multibyte/mbrtoc8
- https://en.cppreference.com/c/string/multibyte/c8rtomb

    [5 lines not shown]
DeltaFile
+191-0compiler-rt/test/msan/uchar_c16.cpp
+173-0compiler-rt/test/msan/uchar_c32.cpp
+151-0compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
+150-0compiler-rt/test/sanitizer_common/TestCases/Posix/uchar_c8.cpp
+145-0compiler-rt/test/sanitizer_common/TestCases/Posix/uchar_c16.cpp
+141-0compiler-rt/test/sanitizer_common/TestCases/Posix/uchar_c32.cpp
+951-08 files not shown
+1,369-014 files

LLVM/project cb3bf8f — clang/lib/CodeGen CodeGenFunction.h CGExpr.cpp

[NFC][Clang][CodeGen] Factor out EmitCheckStaticData (#245504)

Deduplicate construction of private unnamed_addr UBSan static descriptor
globals across EmitCheck and EmitCfiSlowPathCheck into
CodeGenFunction::EmitCheckStaticData.

Assisted-by: Gemini
DeltaFile
+20-17clang/lib/CodeGen/CGExpr.cpp
+5-0clang/lib/CodeGen/CodeGenFunction.h
+25-172 files

LLVM/project 4c38854 — llvm/include/llvm/Support KnownFPClass.h, llvm/lib/Analysis ValueTracking.cpp

[KnownFPClass] Add `KnownFPClass::sinpi/cospi` (#242696)

Add KnownFPClass::sinpi and KnownFPClass::cospi, and use them in
ValueTracking when extracting results from llvm.sincospi. Infer that
non-subnormal inputs produce non-subnormal sine results and that cosine
results are never subnormal, except for PPCDoubleDouble types.

Fixes #225014
DeltaFile
+234-14llvm/test/Transforms/Attributor/nofpclass-sin-cos.ll
+36-0llvm/lib/Support/KnownFPClass.cpp
+24-2llvm/lib/Analysis/ValueTracking.cpp
+8-0llvm/include/llvm/Support/KnownFPClass.h
+302-164 files

FreeBSD/src 0833030 — sys/dev/evdev evdev_utils.c

evdev: Map the HP mic mute and programmable keys on HP only

AT scan codes 0xE0 0x01 and 0x68 are vendor keys: systemd's hwdb gives
them other meanings on Dell, Alienware, Lenovo, Samsung and others,
some of which send no release code.  The shared AT table made Insert
toggle mic mute on an IdeaPad 5 and left KEY_PROG1 held after the Dell
G-Mode key.

Map them only where SMBIOS names an HP business laptop, as hwdb does:
0xE0 0x01 to KEY_MICMUTE on ZBook, EliteBook, ProBook, Elite Dragonfly
and EliteBoard, 0x68 to KEY_PROG1 on the Elite Dragonfly G2 and the
ZBook Ultra G1a.

Reported by:    llm-postcr
Reviewed by:    imp, wulf
Approved by:    wulf
Fixes:          d34baf1b5ca0 ("evdev: Map the HP mic mute and programmable keys")
MFC after:      1 week
Pull Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/130
DeltaFile
+53-4sys/dev/evdev/evdev_utils.c
+53-41 files

LLVM/project 34353b0 — llvm/lib/Target/LoongArch LoongArchRegisterInfo.td, llvm/lib/Target/LoongArch/AsmParser LoongArchAsmParser.cpp

[nspr] initial commit
DeltaFile
+0-14llvm/lib/Target/LoongArch/AsmParser/LoongArchAsmParser.cpp
+3-1llvm/lib/Target/LoongArch/LoongArchRegisterInfo.td
+3-152 files

LLVM/project f1e5994 — llvm/lib/Target/ARM/AsmParser ARMAsmParser.cpp, llvm/lib/Target/AVR/AsmParser AVRAsmParser.cpp

[nspr] update
DeltaFile
+3-2llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
+3-2llvm/lib/Target/AVR/AsmParser/AVRAsmParser.cpp
+3-2llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+9-63 files

LLVM/project 388d944 — llvm/lib/Target/AMDGPU/AsmParser AMDGPUAsmParser.cpp, llvm/lib/Target/CSKY/AsmParser CSKYAsmParser.cpp

[nspr] initial commit
DeltaFile
+22-21llvm/lib/Target/CSKY/AsmParser/CSKYAsmParser.cpp
+12-12llvm/lib/Target/VE/AsmParser/VEAsmParser.cpp
+12-12llvm/lib/Target/Lanai/AsmParser/LanaiAsmParser.cpp
+5-4llvm/utils/TableGen/AsmMatcherEmitter.cpp
+5-4llvm/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
+5-4llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
+61-5712 files not shown
+89-8918 files

LLVM/project 3616ff3 — llvm/lib/Target/VE VERegisterInfo.td, llvm/lib/Target/VE/AsmParser VEAsmParser.cpp

[nspr] initial commit
DeltaFile
+18-105llvm/lib/Target/VE/AsmParser/VEAsmParser.cpp
+18-8llvm/lib/Target/VE/VERegisterInfo.td
+36-1132 files

LLVM/project 347d678 — llvm/lib/Target/VE VERegisterInfo.td, llvm/lib/Target/VE/MCTargetDesc VEInstPrinter.h VEInstPrinter.cpp

[nspr] initial commit
DeltaFile
+28-30llvm/lib/Target/VE/VERegisterInfo.td
+1-6llvm/lib/Target/VE/MCTargetDesc/VEInstPrinter.cpp
+1-2llvm/lib/Target/VE/MCTargetDesc/VEInstPrinter.h
+30-383 files

LLVM/project c18d672 — llvm/lib/Target/Sparc SparcRegisterInfo.td, llvm/lib/Target/Sparc/AsmParser SparcAsmParser.cpp

[Sparc][MC] Use CoerceFromRegClass instead of validateTargetOperandClass (#245073)

Use CoerceFromRegClass for IntPair, DFPRegs, QFPRegs (via an
unallocatable CanonicalFPRegs class), and CoprocPair. This allows us to
remove SparcAsmParser::validateTargetOperandClass completely.

The main change needed here is that O6_O7 and I6_I7 now use primary
AsmNames "sp"/"fp" (matching O6/I6) so that the tablegen coercion works.
The functional diff is that ldd/std with %o6/%i6 prints %sp/%fp, but
that matching all other SPARC instructions. To avoid any difference,
"%o6"/"%i6" are parsed explicitly in matchRegisterName instead of
relying on accidental IntPair matching + canonicalization.

Assisted-by: AI tooling
DeltaFile
+15-180llvm/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
+26-6llvm/lib/Target/Sparc/SparcRegisterInfo.td
+18-0llvm/test/MC/Sparc/sparc-mem-instructions.s
+9-0llvm/test/MC/Sparc/sparc-misaligned-reg-pairs.s
+68-1864 files

LLVM/project 5ae442d — llvm/lib/Target/AVR AVRRegisterInfo.td, llvm/lib/Target/AVR/AsmParser AVRAsmParser.cpp

[AVR][MC] Avoid mutating operands in validateTargetOperandClass (#245076)

Avoid mutating AVROperand inside validateTargetOperandClass (which can
result in subtle matching bugs, and will no longer be possible once we
make the argument const). This moves the bare register number to reg
conversion to a custom render method.

AVROperand now keeps a pointer to MCRegisterInfo since toDREG needs it
for getMatchingSuperReg. Also bail out early when Expected is not a
register class: the previous mutating code caused extra immediate
operands in 0..15 to be misdiagnosed as invalid registers on avrtiny.

Assisted-by: AI tooling
DeltaFile
+67-72llvm/lib/Target/AVR/AsmParser/AVRAsmParser.cpp
+10-0llvm/test/MC/AVR/error.s
+5-1llvm/lib/Target/AVR/AVRRegisterInfo.td
+82-733 files

LLVM/project 7163966 — llvm/lib/Transforms/IPO Annotation2Metadata.cpp, llvm/test/Transforms/Util annotation2metadata-preserve-analyses.ll

Annotation2Metadata: Preserve function analyses (#245788)

Only !annotation metadata is added, which does not affect any function
analyses (and probably would never?)

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+25-0llvm/test/Transforms/Util/annotation2metadata-preserve-analyses.ll
+8-2llvm/lib/Transforms/IPO/Annotation2Metadata.cpp
+33-22 files

FreeNAS/freenas dce3dcb — tests/vm conftest.py

Add conftest.py for tests/vm

tests/vm had no conftest, so nothing prepared the server before the
tests ran: SSH password login was never enabled and the default
pool was never created.

Use the same session setup as tests/cloud.

(cherry picked from commit badc8468c174184d7bb8bc9f3fe16cae0a180d8c)
DeltaFile
+150-0tests/vm/conftest.py
+150-01 files

FreeNAS/freenas 353589b — tests/vm conftest.py

NAS-145417 / 28.0.0-BETA.1 / Add conftest.py for tests/vm (#20300)

tests/vm had no conftest, so nothing prepared the server before the
tests ran: SSH password login was never enabled and the default pool was
never created.

Use the same session setup as tests/cloud.
DeltaFile
+150-0tests/vm/conftest.py
+150-01 files

LLVM/project 5753f78 — llvm/lib/Support APFloat.cpp, llvm/test/Transforms/InstSimplify/ConstProp ldexp-ppcf128.ll

[APFloat] Canonicalize PPC double-double infinity in scalbn (#242965)

## Summary

Fix `scalbn` producing non-canonical infinities for PPC double-double
(`ppc_fp128`) values.

Previously, `DoubleAPFloat::scalbn` scaled the high and low components
independently. When the high component overflowed to infinity while the
low component remained finite, the result retained a nonzero low
component.

For example:

```text
scalbn((2^1000, -2^10), 100)
```

Previously produced:

    [17 lines not shown]
DeltaFile
+31-0llvm/test/Transforms/InstSimplify/ConstProp/ldexp-ppcf128.ll
+24-0llvm/unittests/ADT/APFloatTest.cpp
+6-1llvm/lib/Support/APFloat.cpp
+61-13 files

LLVM/project 1476061 — llvm/lib/Analysis ValueTracking.cpp, llvm/test/Transforms/InstCombine fabs.ll

[ValueTracking] Add intrinsics to canIgnoreSignBitOfNaN (#242719)

Adds additional floating point intrinsics to `canIgnoreSignBitOfNaN`.

AI Disclosure:
I used Claude Opus 5.5 to help write the tests.
DeltaFile
+156-0llvm/test/Transforms/InstCombine/fabs.ll
+33-0llvm/lib/Analysis/ValueTracking.cpp
+189-02 files

NetBSD/pkgsrc RwTLRfG — security/py-httpx2-kerberos Makefile

   py-httpx2-kerberos: mark as not for Python 3.11
VersionDeltaFile
1.3+3-1security/py-httpx2-kerberos/Makefile
+3-11 files

FreeNAS/freenas 9185b01 — src/middlewared/middlewared/plugins filesystem.py, src/middlewared/middlewared/plugins/filesystem_ acl.py

NAS-145364 / 28.0.0-BETA.1 / middleware: strengthen path handling (#20280)

Paths that an unprivileged user may control are opened with safe_open,
safe_open_raw and safe_makedirs from truenas_os_pyutils, which refuse a
symlink anywhere in the path, and a FIFO, socket or device node before
opening it.

- rsync: create and chown ~/.ssh/known_hosts through symlink-refusing
fds; cap the known_hosts read at 4 MiB
- ssh-keyscan: pass "--" before the host
- user: read authorized_keys with safe_open, capped at 1 MiB; unlink it
through a symlink-free .ssh fd
- filesystem.mkdir: chmod, rmdir and listxattr through fds; compare .ssh
by component
- NFS: refuse export paths that exportfs would rewrite
- nvmet: a FILE namespace must be a symlink-free regular file in a data
pool
- SMB: path_suffix and dataset_naming_schema must stay beneath the share
- filesystem.set_zfs_attributes: callers without FULL_ADMIN are limited

    [29 lines not shown]
DeltaFile
+118-0tests/api2/test_path_safety.py
+55-33src/middlewared/middlewared/plugins/nvmet/namespace.py
+57-29src/middlewared/middlewared/plugins/filesystem.py
+42-25src/middlewared/middlewared/utils/libvirt/cdrom.py
+28-38src/middlewared/middlewared/plugins/filesystem_/acl.py
+14-21src/middlewared/middlewared/utils/filesystem/directory.py
+314-14619 files not shown
+536-19625 files

FreeBSD/ports 9f17000 — sysutils/samdruckerclientshell Makefile distinfo

sysutils/samdruckerclientshell: Update to 0.3.2

The client is one script again. samdrucker.repo-to-json.stdin, which
converted the pkg repos output to JSON, has been folded into
samdrucker.sh, which now runs that Lua itself with flua -e. The helper
is no longer installed.

What the client sends, and how it reports a failed check-in, are
unchanged. It still needs /usr/libexec/flua from the base system (the
FreeBSD-flua package on pkgbase hosts).

0.3.1 was tagged upstream before these changes were committed, so it
was the same code as 0.3.0.

Release notes:
https://github.com/dlangille/SamDrucker/releases/tag/0.3.2
DeltaFile
+3-3sysutils/samdruckerclientshell/distinfo
+1-1sysutils/samdruckerclientshell/Makefile
+4-42 files

FreeBSD/ports 0f21352 — www/samdruckerweb Makefile distinfo

www/samdruckerweb: Update to 0.3.2

On a package page, the Versions table now says what each link lists.
The host count beside a version links to the hosts on exactly that
version (new ?version= filter, kept by the downloads), and the
older-than link shows how many hosts it will list, for example
"73 hosts older than 0.3.0_1", or "none" on the oldest version.

Before, the link beside the oldest version read "hosts older than this"
and listed no hosts, which looked like a bug.

0.3.1 was tagged upstream before this change was committed, so it was
the same code as 0.3.0. No database changes.

Release notes:
https://github.com/dlangille/SamDrucker/releases/tag/0.3.2
DeltaFile
+3-3www/samdruckerweb/distinfo
+1-1www/samdruckerweb/Makefile
+4-42 files

FreeNAS/freenas badc846 — tests/vm conftest.py

Add conftest.py for tests/vm

tests/vm had no conftest, so nothing prepared the server before the
tests ran: SSH password login was never enabled and the default
pool was never created.

Use the same session setup as tests/cloud.
DeltaFile
+150-0tests/vm/conftest.py
+150-01 files

LLVM/project c8ccf7c — llvm/lib/CodeGen TargetInstrInfo.cpp

Include STLExtras.h for the range helpers

foldInlineAsmMemOperands uses is_contained, min_element, drop_begin,
and enumerate from STLExtras.h, which the file got only through other
headers.

Assisted-by: Claude Opus 5.5
DeltaFile
+1-0llvm/lib/CodeGen/TargetInstrInfo.cpp
+1-01 files