LLVM/project c670920clang/docs ReleaseNotes.rst, clang/include/clang/Basic DiagnosticLexKinds.td

[clang] Suggest using __VA_OPT__(,) instead of GNU zero variadic macro argument (#188624)

Also provide an appropriate fixit.
DeltaFile
+18-3clang/lib/Lex/TokenLexer.cpp
+13-0clang/test/Lexer/gnu-zero-variadic-macro-argument-fixit.c
+3-1clang/include/clang/Basic/DiagnosticLexKinds.td
+3-0clang/docs/ReleaseNotes.rst
+1-1clang/test/Lexer/gnu-flags.c
+1-1clang/test/Preprocessor/macro_fn.c
+39-66 files

HardenedBSD/src df99d3fsys/amd64/amd64 pmap.c, sys/dev/acpica acpi_spmc.c

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+25-5sys/dev/acpica/acpi_spmc.c
+11-5sys/dev/vmm/vmm_dev.c
+8-0sys/kern/kern_jail.c
+1-1sys/riscv/riscv/pmap.c
+1-1sys/powerpc/booke/pmap.c
+1-1sys/amd64/amd64/pmap.c
+47-138 files not shown
+55-2114 files

HardenedBSD/src 88c0e00sys/dev/acpica acpi_spmc.c, sys/dev/bce if_bce.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+25-5sys/dev/acpica/acpi_spmc.c
+11-5sys/dev/vmm/vmm_dev.c
+8-0sys/kern/kern_jail.c
+1-1sys/dev/bce/if_bce.c
+1-1sys/i386/i386/pmap.c
+1-1sys/netinet6/ip6_mroute.c
+47-138 files not shown
+55-2114 files

LLVM/project 3ddb8fallvm/docs AMDGPUUsage.rst, llvm/test/CodeGen/AMDGPU memory-legalizer-non-volatile.ll memory-legalizer-non-volatile.mir

Restack + comments
DeltaFile
+2-14llvm/docs/AMDGPUUsage.rst
+2-2llvm/test/CodeGen/AMDGPU/memory-legalizer-non-volatile.ll
+1-1llvm/test/CodeGen/AMDGPU/memory-legalizer-non-volatile.mir
+5-173 files

LLVM/project 26b755cllvm/include/llvm/IR GlobalObject.h Value.h, llvm/lib/IR Metadata.cpp Instruction.cpp

[IR] Remove Value::HasMetadata (#189917)

Metadata already has two separate implementations, one for GlobalObject
and one for Instruction. Instruction was already separate due to special
MD_dbg handling, so move the GlobalObject-specific metadata parts from
Value to GlobalObject.

The HasMetadata bit, originally an optimization to avoid the hash table
lookup when a value has no metadata, is no longer needed, because the
information is now stored directly in Instruction/GlobalObject's
MetadataIndex field.

This also fixes MSan builds, currently ~Value clears metadata and
therefore needs to access the subclass's MetadataIndex field, which was
already destructed at this point.
DeltaFile
+35-2llvm/include/llvm/IR/GlobalObject.h
+3-32llvm/include/llvm/IR/Value.h
+12-17llvm/lib/IR/Metadata.cpp
+7-3llvm/lib/IR/Instruction.cpp
+3-6llvm/lib/IR/Value.cpp
+7-1llvm/lib/IR/Globals.cpp
+67-611 files not shown
+71-647 files

HardenedBSD/ports 9bfdb2dcad/OrcaSlicer pkg-plist, cad/magic/files patch-textio__txInput.c

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+2,934-318cad/OrcaSlicer/pkg-plist
+193-329editors/fresh/distinfo
+251-42science/axom/pkg-plist
+176-99science/serac/pkg-plist
+95-163editors/fresh/Makefile.crates
+3-89cad/magic/files/patch-textio__txInput.c
+3,652-1,040145 files not shown
+4,520-1,741151 files

FreeBSD/src 683f7a8sys/dev/acpica acpi_spmc.c

acpi_spmc: Call new MS turn on display DSM

Microsoft added a new function index (turn on display, 9) to their DSM
set. This revision calls this, which fixes S0ix on certain machines,
such as the Lenovo Yoga Slim 7i Aura, who's ECs use this method as a
trigger to restore power to certain devices.

See commit 229ecbaac6b3 ("ACPI: x86: s2idle: Invoke Microsoft _DSM
Function 9 (Turn On Display)") on Linux.

Also see the following:
https://learn.microsoft.com/en-us/windows-hardware/design/device-experiences/modern-standby-firmware-notifications#turn-on-display-notification-function-9

Reviewed by:    olce
Approved by:    olce
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D56062
DeltaFile
+20-5sys/dev/acpica/acpi_spmc.c
+20-51 files

HardenedBSD/src 683f7a8sys/dev/acpica acpi_spmc.c

acpi_spmc: Call new MS turn on display DSM

Microsoft added a new function index (turn on display, 9) to their DSM
set. This revision calls this, which fixes S0ix on certain machines,
such as the Lenovo Yoga Slim 7i Aura, who's ECs use this method as a
trigger to restore power to certain devices.

See commit 229ecbaac6b3 ("ACPI: x86: s2idle: Invoke Microsoft _DSM
Function 9 (Turn On Display)") on Linux.

Also see the following:
https://learn.microsoft.com/en-us/windows-hardware/design/device-experiences/modern-standby-firmware-notifications#turn-on-display-notification-function-9

Reviewed by:    olce
Approved by:    olce
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D56062
DeltaFile
+20-5sys/dev/acpica/acpi_spmc.c
+20-51 files

FreeBSD/src 0307db7sys/dev/acpica acpi_spmc.c

acpi_spmc: Fail probe if acpi_spmc device already attached

We cannot have more than one SPMC device.

Reviewed by:    olce
Approved by:    olce
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D56062
DeltaFile
+5-0sys/dev/acpica/acpi_spmc.c
+5-01 files

HardenedBSD/src 0307db7sys/dev/acpica acpi_spmc.c

acpi_spmc: Fail probe if acpi_spmc device already attached

We cannot have more than one SPMC device.

Reviewed by:    olce
Approved by:    olce
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D56062
DeltaFile
+5-0sys/dev/acpica/acpi_spmc.c
+5-01 files

FreeBSD/ports 650d46atextproc/bookokrat distinfo Makefile.crates

textproc/bookokrat: Update to 3.9.0

ChangeLog:      https://github.com/bugzmanov/bookokrat/releases/tag/v0.3.9
Reported by:    "github-actions[bot]" <notifications at github.com>
DeltaFile
+17-3textproc/bookokrat/distinfo
+7-0textproc/bookokrat/Makefile.crates
+2-2textproc/bookokrat/Makefile
+26-53 files

HardenedBSD/ports 650d46atextproc/bookokrat distinfo Makefile.crates

textproc/bookokrat: Update to 3.9.0

ChangeLog:      https://github.com/bugzmanov/bookokrat/releases/tag/v0.3.9
Reported by:    "github-actions[bot]" <notifications at github.com>
DeltaFile
+17-3textproc/bookokrat/distinfo
+7-0textproc/bookokrat/Makefile.crates
+2-2textproc/bookokrat/Makefile
+26-53 files

LLVM/project 3b1125bllvm/include/llvm/Analysis ScalarEvolution.h, llvm/lib/Analysis ScalarEvolution.cpp

[SCEV] Add canonical SCEV pointer and construct canonical SCEVs (NFC) (#188858)

Add a canonical SCEV pointer to SCEV, to support comparing SCEVs for
equality, even with different use-specific flags.

Currently this should be NFC, as nothing yet sets use flags.

Compile-time impact:
https://llvm-compile-time-tracker.com/compare.php?from=13f1fd006243f756417c3ae992342c0674e3f04e&to=e7f46bcf8bef62c619380fbcccbe6073300b69fe&stat=instructions:u

+0.03% - +0.05% on stage1 configs
-0.03% surprisingly for stage2-O3

PR: https://github.com/llvm/llvm-project/pull/188858
DeltaFile
+95-0llvm/lib/Analysis/ScalarEvolution.cpp
+30-0llvm/include/llvm/Analysis/ScalarEvolution.h
+125-02 files

LLVM/project 042997bllvm/test/CodeGen/RISCV combine-is_fpclass.ll

[RISCV] combine-is_fpclass.ll - add initial tests showing failure to constant fold ISD::IS_FPCLASS nodes (#189940)
DeltaFile
+33-0llvm/test/CodeGen/RISCV/combine-is_fpclass.ll
+33-01 files

FreeNAS/freenas 8f8b0b7src/middlewared/middlewared/plugins/zfs tier.py

Make mypy happy
DeltaFile
+32-14src/middlewared/middlewared/plugins/zfs/tier.py
+32-141 files

LLVM/project 8a06085llvm/include/llvm/CodeGen Rematerializer.h, llvm/lib/CodeGen Rematerializer.cpp

[CodeGen] Add listener support to the rematerializer (NFC) (#184338)

This change adds support for adding listeners to the target-independent
rematerializer; listeners can catch certain rematerialization-related
events to implement some additional functionality on top of what the
rematerializer already performs.

This is NFC and has no user at the moment, but the plan is to have
listeners start being responsible for secondary/optional functionalities
that are at the moment integrated with the rematerializer itself. Two
examples of that are:

1. rollback support (currently optional), and
2. region tracking (currently mandatory, but not fundamentally necessary
to the rematerializer).
DeltaFile
+52-0llvm/include/llvm/CodeGen/Rematerializer.h
+7-0llvm/lib/CodeGen/Rematerializer.cpp
+59-02 files

LLVM/project 5249f5allvm/include/llvm/MCA/HardwareUnits ResourceManager.h, llvm/lib/MCA/HardwareUnits ResourceManager.cpp

[MCA] Make `ResourceSizeMask` const (#189453)

This patch marks the already effectively constant `ResourceSizeMask` as
`const`. It adds a helper `computeResourceSizeMask()` to initialize it
in the member initializer list.
DeltaFile
+10-7llvm/lib/MCA/HardwareUnits/ResourceManager.cpp
+7-3llvm/include/llvm/MCA/HardwareUnits/ResourceManager.h
+17-102 files

LLVM/project 2afd830llvm/test/CodeGen/AMDGPU memory-legalizer-non-volatile.mir

Fix MIR test
DeltaFile
+3-3llvm/test/CodeGen/AMDGPU/memory-legalizer-non-volatile.mir
+3-31 files

LLVM/project 60ebfe2llvm/docs AMDGPUUsage.rst, llvm/lib/Target/AMDGPU SIMemoryLegalizer.cpp SIInstrInfo.h

[AMDGPU][SIMemoryLegalizer] Consider scratch operations as NV=1 if GAS is disabled

- Clarify that `thread-private` MMO flag is still useful.
- If GAS is not enabled (which is the default as of last patch), consider an op as `NV=1` if it's a `scratch_` opcode, or if the MMO is in the private AS.
- Add tests for the new cases.
- Update AMDGPUUsage GFX12.5 memory model
DeltaFile
+181-0llvm/test/CodeGen/AMDGPU/memory-legalizer-non-volatile.mir
+75-36llvm/test/CodeGen/AMDGPU/memory-legalizer-non-volatile.ll
+13-6llvm/docs/AMDGPUUsage.rst
+14-3llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp
+3-1llvm/lib/Target/AMDGPU/SIInstrInfo.h
+286-465 files

LLVM/project 03e1c40llvm/docs AMDGPUUsage.rst, llvm/lib/Target/AMDGPU GCNSubtarget.cpp AMDGPU.td

Comments
DeltaFile
+74-64llvm/docs/AMDGPUUsage.rst
+9-0llvm/lib/Target/AMDGPU/GCNSubtarget.cpp
+1-7llvm/lib/Target/AMDGPU/AMDGPU.td
+1-4llvm/lib/Target/AMDGPU/GCNSubtarget.h
+1-1llvm/test/CodeGen/AMDGPU/memory-legalizer-private-wavefront.ll
+1-1llvm/test/CodeGen/AMDGPU/memory-legalizer-private-workgroup.ll
+87-778 files not shown
+95-8514 files

FreeBSD/ports 3ce1f36www/linux-freetube distinfo Makefile

www/linux-freetube: Update to 0.24.0.b

ChangeLog:      https://github.com/FreeTubeApp/FreeTube/releases/tag/v0.24.0-beta
Reported by:    efb4f5ff-1298-471a-8973-3d47447115dc <notifications at github.com>
DeltaFile
+3-3www/linux-freetube/distinfo
+1-1www/linux-freetube/Makefile
+4-42 files

HardenedBSD/ports 3ce1f36www/linux-freetube distinfo Makefile

www/linux-freetube: Update to 0.24.0.b

ChangeLog:      https://github.com/FreeTubeApp/FreeTube/releases/tag/v0.24.0-beta
Reported by:    efb4f5ff-1298-471a-8973-3d47447115dc <notifications at github.com>
DeltaFile
+3-3www/linux-freetube/distinfo
+1-1www/linux-freetube/Makefile
+4-42 files

OpenBSD/src Flxk00Gusr.sbin/smtpd to.c

   fix possible out of bound in text_to_netaddr

   diff from Renaud Allard (renaud at allard.it), thanks!
   ok deraadt
VersionDeltaFile
1.51+2-2usr.sbin/smtpd/to.c
+2-21 files

OpenBSD/src fTVh8obusr.sbin/smtpd unpack_dns.c

   fix possible out of bound access in dname_expand()

   spotted by Renaud Allard (thanks!), diff tweaked by me.

   ok deraadt@
VersionDeltaFile
1.4+6-5usr.sbin/smtpd/unpack_dns.c
+6-51 files

FreeBSD/ports d8d62c7biology/ugene Makefile

biology/ugene: adopt
DeltaFile
+1-1biology/ugene/Makefile
+1-11 files

HardenedBSD/ports d8d62c7biology/ugene Makefile

biology/ugene: adopt
DeltaFile
+1-1biology/ugene/Makefile
+1-11 files

LLVM/project 0d33a15clang/test/Modules pr189415.cppm

Add a target triple to clang/test/Modules/pr189415.cppm (#189937)

Not all targets support thread_local, so in some environments the test
would fail with:

  tools/clang/test/Modules/Output/pr189415.cppm.tmp/counter.cppm:6:1:
  error: thread-local storage is not supported for the current target

Follow-up to #189796
DeltaFile
+2-2clang/test/Modules/pr189415.cppm
+2-21 files

HardenedBSD/src 0dbbed2sys/netinet6 ip6_mroute.c

ip6_mroute: Fix the type name in sysctl_mfctable()

No functional change since apparently it's fine to compute the size of
a pointer type when the base type is undefined.

Fixes:  0bb9c2b665d9 ("ip6_mroute: FIBify")
DeltaFile
+1-1sys/netinet6/ip6_mroute.c
+1-11 files

FreeBSD/src 0dbbed2sys/netinet6 ip6_mroute.c

ip6_mroute: Fix the type name in sysctl_mfctable()

No functional change since apparently it's fine to compute the size of
a pointer type when the base type is undefined.

Fixes:  0bb9c2b665d9 ("ip6_mroute: FIBify")
DeltaFile
+1-1sys/netinet6/ip6_mroute.c
+1-11 files

HardenedBSD/src f3c7723sys/dev/vmm vmm_dev.c, sys/kern kern_jail.c

vmm: Restore the ability to create VMs as root in a jail

The new PRIV_VMM_CREATE and DESTROY permissions should be allowed by
jails, so need to be added to the list in prison_priv_check().  Then,
modify vmmdev_create() to verify that the jail was created with the
allow.vmm flag.  This is already verified when opening /dev/vmmctl, but
checking again doesn't hurt and ensures that one can't pass the
allow.vmm policy by passing a vmmctl fd along a unix domain socket from
outside the jail.

Rename vmm_priv_check() to vmm_jail_priv_check() to make the function's
purpose more clear.

Reported by:    novel
Reviewed by:    bnovkov
Fixes:          d4c05edd410e ("vmm: Add privilege checks to vmmctl operations")
Differential Revision:  https://reviews.freebsd.org/D56119
DeltaFile
+11-5sys/dev/vmm/vmm_dev.c
+8-0sys/kern/kern_jail.c
+19-52 files