FreeBSD/src ae6b73d — release/tools ec2-desktop.conf

EC2: Explicitly block root login via RDP

MFC after:      0 days
Security:       GHSA-3rww-h298-82rx
Sponsored by:   Amazon

(cherry picked from commit 2112d90be7a855d4c9f598409850d54583089de2)
DeltaFile
+3-0release/tools/ec2-desktop.conf
+3-01 files

FreeBSD/src 2112d90 — release/tools ec2-desktop.conf

EC2: Explicitly block root login via RDP

MFC after:      0 days
Security:       GHSA-3rww-h298-82rx
Sponsored by:   Amazon
DeltaFile
+3-0release/tools/ec2-desktop.conf
+3-01 files

SmartOS/live 44345be — src/vm/node_modules VM.js

Account for actual ZFS usage in fresh flexible bhyve quotas
DeltaFile
+63-7src/vm/node_modules/VM.js
+63-71 files

LLVM/project d2d9470 — llvm/lib/Target/PISA PISAEmitIntrinsics.cpp

Replaced iterator loops with drop_end range loops
DeltaFile
+5-6llvm/lib/Target/PISA/PISAEmitIntrinsics.cpp
+5-61 files

LLVM/project 8578402 — llvm/lib/Frontend/OpenMP OMPIRBuilder.cpp, llvm/unittests/Frontend OpenMPIRBuilderTest.cpp

[OMPIRBuilder] Disable kernel attributes for multidimensional spaces
DeltaFile
+43-0llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
+16-9llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+59-92 files

LLVM/project 0be84e9 — llvm/lib/Target/PISA PISAScopeSelector.cpp

Add mising include
DeltaFile
+1-0llvm/lib/Target/PISA/PISAScopeSelector.cpp
+1-01 files

LLVM/project 66798fb — llvm/lib/Target/PISA PISAVerifyTypes.cpp PISAVerifier.cpp

Do not provide file name in the header
DeltaFile
+1-1llvm/lib/Target/PISA/PISAVerifyTypes.cpp
+1-1llvm/lib/Target/PISA/PISAVerifier.cpp
+1-1llvm/lib/Target/PISA/PISAScopeSelector.cpp
+1-1llvm/lib/Target/PISA/PISAReplaceIntrinsics.cpp
+1-1llvm/lib/Target/PISA/PISAPropagateNullPointers.cpp
+1-1llvm/lib/Target/PISA/PISAOptimizeSubregAccess.cpp
+6-614 files not shown
+20-2020 files

LLVM/project 2558c5e — llvm/lib/Target/PISA PISAVerifyTypes.cpp PISAVerifier.cpp

Add file headers
DeltaFile
+6-0llvm/lib/Target/PISA/PISAPropagateNullPointers.cpp
+5-0llvm/lib/Target/PISA/PISAVerifyTypes.cpp
+5-0llvm/lib/Target/PISA/PISAVerifier.cpp
+5-0llvm/lib/Target/PISA/PISAScopeSelector.cpp
+5-0llvm/lib/Target/PISA/PISAReplaceIntrinsics.cpp
+5-0llvm/lib/Target/PISA/PISAOptimizeSubregAccess.cpp
+31-014 files not shown
+101-020 files

LLVM/project b057d0e — llvm/lib/Target/PISA PISATargetMachine.cpp

Improve comment
DeltaFile
+2-1llvm/lib/Target/PISA/PISATargetMachine.cpp
+2-11 files

LLVM/project a358dea — llvm/lib/Target/PISA CMakeLists.txt

Review fixes
DeltaFile
+1-1llvm/lib/Target/PISA/CMakeLists.txt
+1-11 files

LLVM/project f2a3318 — llvm/lib/Target/PISA PISALegalizeCalls.cpp

Simplify, remove redundant comment
DeltaFile
+10-14llvm/lib/Target/PISA/PISALegalizeCalls.cpp
+10-141 files

LLVM/project 60ba64d — llvm/lib/Target/PISA PISAKernelByValArgsLowering.cpp PISALegalizePredicates.cpp

Fix issues raised in earlier PRs
DeltaFile
+90-89llvm/lib/Target/PISA/PISALegalizeCalls.cpp
+91-80llvm/lib/Target/PISA/PISALegalizeSubregAccess.cpp
+42-36llvm/lib/Target/PISA/PISAEmitIntrinsics.cpp
+39-36llvm/lib/Target/PISA/PISALayout.cpp
+37-37llvm/lib/Target/PISA/PISALegalizePredicates.cpp
+38-34llvm/lib/Target/PISA/PISAKernelByValArgsLowering.cpp
+337-31217 files not shown
+519-49323 files

LLVM/project 2ce05a1 — llvm/lib/Target/PISA PISAKernelByValArgsLowering.cpp

Formatting fix
DeltaFile
+4-3llvm/lib/Target/PISA/PISAKernelByValArgsLowering.cpp
+4-31 files

LLVM/project 4b9752e — llvm/lib/Target/PISA PISALegalizeSubregAccess.cpp PISALegalizeCalls.cpp

Add PISA codegen pipeline and lowering passes

Add the IR- and MIR-level passes that make up the PISA code generation
pipeline and wire them into PISAPassConfig in PISATargetMachine:

- Intrinsic handling: PISAEmitIntrinsics, PISAExpandIntrinsics,
    PISAReplaceIntrinsics
- Call/ABI lowering: PISALegalizeCalls, PISAKernelByValArgsLowering
- IR preparation: PISAPropagateNullPointers, PISALayout, PISAConstProp
- Legalization/verification: PISALegalizePredicates, PISAVerifyTypes,
    PISAVerifier
- Post-selection: PISAScopeSelector, PISACacheHintSelector,
    PISALegalizeSubregAccess, PISAOptimizeSubregAccess,
    PISAOptimizeRedundantCopies, PISAMarkConvergentNoMerge,
    PISAInsertLifetimeStart

PISAPassConfig now overrides the GlobalISel and pre/post-regalloc hooks
to run these passes, disables the machine passes that assume physical
registers, and runs the load/store vectorizer and atomic expansion in

    [4 lines not shown]
DeltaFile
+994-0llvm/lib/Target/PISA/PISALegalizePredicates.cpp
+751-0llvm/lib/Target/PISA/PISAInsertLifetimeStart.cpp
+581-0llvm/lib/Target/PISA/PISALayout.cpp
+565-0llvm/lib/Target/PISA/PISAEmitIntrinsics.cpp
+505-0llvm/lib/Target/PISA/PISALegalizeCalls.cpp
+435-0llvm/lib/Target/PISA/PISALegalizeSubregAccess.cpp
+3,831-021 files not shown
+6,216-5927 files

FreeBSD/ports 343608b — textproc/tgrep Makefile distinfo

textproc/tgrep: Update to 1.3.0

Changelog: https://github.com/microsoft/tgrep/releases/tag/v1.3.0

Reported by:    GitHub (watch releases)
DeltaFile
+3-3textproc/tgrep/distinfo
+1-1textproc/tgrep/Makefile
+4-42 files

LLVM/project ca4fd7e — llvm/lib/Target/AMDGPU AMDGPUInstCombineIntrinsic.cpp, llvm/test/Transforms/InstCombine/AMDGPU llvm.amdgcn.wmma.gfx1250.ll llvm.amdgcn.wmma.gfx1200.ll

[AMDGPU] Fold integer wmma with zero multiplicand to the accumulator (#247931)

For integer wmma and swmmac, $A \times 0 + C = C$, so if A or B is zero
the result is just C. The sign or neg modifiers, clamp, reuse hints and
sparsity index cannot change this, because the product is zero and C
cannot overflow.

```llvm
%r = call <8 x i32> @llvm.amdgcn.wmma.i32.16x16x64.iu8.v8i32.v8i32(i1 0, <8 x i32> %a, i1 0, <8 x i32> zeroinitializer, <8 x i32> %c, i1 0, i1 0, i1 1)
  -->
%r = %c
```

Floating point variants are not folded, since $0 \times \infty$ and $0
\times \mathrm{NaN}$ give NaN and $-0.0 + 0.0 = +0.0$.
DeltaFile
+87-0llvm/test/Transforms/InstCombine/AMDGPU/llvm.amdgcn.wmma.gfx1200.ll
+60-0llvm/test/Transforms/InstCombine/AMDGPU/llvm.amdgcn.wmma.gfx1250.ll
+15-0llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
+162-03 files

FreeBSD/src 3a1bfc3 — sys/netipsec ipsec_input.c

netipsec: Requeue a nested IPsec header on IPv6 input

In transport mode ipsec6_common_input_cb() delivers the packet itself,
on the stack of the crypto callback that called it.  With a synchronous
crypto driver that is the stack of the thread that dispatched the
request.  Since 3cd5f1b307ad the callback hands a further AH, ESP or
IPComp header to ipsec_common_input() from there, so the transform, its
callback and the next delivery all ran below the first one.  Every
nested header added a set of frames and only the size of the packet
limited their number.  IPComp carries no authentication and
ipcomp_input() only refuses an IPComp header that is directly followed
by another, so anyone who could reach a host with an IPv6 IPComp SA
could overflow the kernel stack with one packet that hides each IPComp
header behind a destination options header.

Requeue the packet to the IPv6 netisr instead, as the IPv4 callback
does for every transport mode packet, and let ip6_input() hand the
header over from a fresh stack.  ip6_input() refuses addresses in the
embedded scope form that its first pass left behind, so put them back

    [19 lines not shown]
DeltaFile
+22-5sys/netipsec/ipsec_input.c
+22-51 files

LLVM/project d2e7cc0 — llvm/lib/Target/X86 X86InstrShiftRotate.td, llvm/test/MC/Disassembler/X86/apx shr.txt shl.txt

[X86][APX] Print explicit $1 for NDD shift/rotate by 1 (#181565)

The NDD shift/rotate by 1 instructions were printed without the
immediate, e.g. "shlw %ax, %bx". GNU as rejects this with "operand type
mismatch", so -mapxf -no-integrated-as produced assembly binutils
couldn't assemble.

Print them as "shlw $1, %ax, %bx" ("shl bx, ax, 1" in Intel syntax),
which is what binutils prints and accepts. This also removes the
ambiguity between "shlb %cl, %al" as 8r1_ND and as 8rCL, so 8r1_ND and
8r1_NF_ND no longer need to be DisassembleOnly.

The two-operand spelling is still accepted by the assembler through
InstAliases, except for the 8-bit register forms where it would be
ambiguous with the shift by %cl.

Fixes #181553
DeltaFile
+43-28llvm/lib/Target/X86/X86InstrShiftRotate.td
+32-32llvm/test/MC/Disassembler/X86/apx/shr.txt
+32-32llvm/test/MC/Disassembler/X86/apx/shl.txt
+32-32llvm/test/MC/Disassembler/X86/apx/sar.txt
+32-32llvm/test/MC/Disassembler/X86/apx/ror.txt
+32-32llvm/test/MC/Disassembler/X86/apx/rol.txt
+203-18831 files not shown
+623-54637 files

LLVM/project d98b452 — clang/test/Sema attr-sized-by-struct-ptrs.c attr-sized-by-or-null-struct-ptrs.c, clang/test/SemaObjC attr-counted-by-ivar.m

Link the issue tracking late parsing support

Assisted-by: Opus 5.5
DeltaFile
+2-1clang/test/SemaObjC/attr-counted-by-ivar.m
+2-1clang/test/Sema/attr-counted-by-vla.c
+3-0clang/test/Sema/attr-counted-by-struct-ptrs.c
+2-0clang/test/Sema/attr-sized-by-struct-ptrs.c
+2-0clang/test/Sema/attr-sized-by-or-null-struct-ptrs.c
+2-0clang/test/Sema/attr-counted-by-or-null-struct-ptrs.c
+13-24 files not shown
+17-310 files

LLVM/project 660cf88 — llvm/lib/Target/AMDGPU GCNHazardRecognizer.h GCNHazardRecognizer.cpp, llvm/test/CodeGen/AMDGPU remove-short-exec-branches-wmma-coexecution.mir

[AMDGPU] Keep execz skips over pending WMMA co-execution hazards (#245431)

On gfx1250 the hazard recognizer resolves XDL WMMA co-execution hazards
by counting intervening VALUs. VALUs skipped because EXEC = 0 do not
issue and do not resolve the hazard. SIPreEmitPeephole runs before the
hazard recognizer and removes short s_cbranch_execz skips, so a VALU
region that may run with EXEC = 0 ends up counted toward the hazard and
no V_NOPs are inserted before a later use of the WMMA result.
DeltaFile
+399-0llvm/test/CodeGen/AMDGPU/remove-short-exec-branches-wmma-coexecution.mir
+70-1llvm/lib/Target/AMDGPU/SIPreEmitPeephole.cpp
+7-2llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
+5-0llvm/lib/Target/AMDGPU/GCNHazardRecognizer.h
+481-34 files

LLVM/project b1d4d2c — llvm/lib/Target/PISA PISAInstructionSelector.cpp

Do not provide file name in the header
DeltaFile
+1-1llvm/lib/Target/PISA/PISAInstructionSelector.cpp
+1-11 files

LLVM/project 99fb63d — llvm/lib/Target/PISA PISAInstructionSelector.cpp, llvm/test/CodeGen/PISA/GlobalISel inst-select-build-vector-v64.mir inst-select-constant-float-type.mir

Add PISAInstructionSelector

Add the PISAInstructionSelector, the final Subtarget/TargetMachine
wiring, and selection tests.
DeltaFile
+1,794-0llvm/lib/Target/PISA/PISAInstructionSelector.cpp
+103-0llvm/test/CodeGen/PISA/GlobalISel/inst-select-ctlz.mir
+103-0llvm/test/CodeGen/PISA/GlobalISel/inst-select-cttz.mir
+41-0llvm/test/CodeGen/PISA/GlobalISel/inst-select-debug-trace.mir
+36-0llvm/test/CodeGen/PISA/GlobalISel/inst-select-constant-float-type.mir
+24-0llvm/test/CodeGen/PISA/GlobalISel/inst-select-build-vector-v64.mir
+2,101-03 files not shown
+2,112-39 files

LLVM/project 4dc6407 — llvm/lib/Target/PISA PISAInstructionSelector.cpp, llvm/test/CodeGen/PISA/GlobalISel inst-select-cttz.mir inst-select-ctlz.mir

Apply fixes following review comments in earlier PRs
DeltaFile
+192-134llvm/lib/Target/PISA/PISAInstructionSelector.cpp
+30-0llvm/test/CodeGen/PISA/GlobalISel/inst-select-fcanonicalize.mir
+2-5llvm/test/CodeGen/PISA/GlobalISel/inst-select-debug-trace.mir
+1-1llvm/test/CodeGen/PISA/GlobalISel/inst-select-cttz.mir
+1-1llvm/test/CodeGen/PISA/GlobalISel/inst-select-ctlz.mir
+1-1llvm/test/CodeGen/PISA/GlobalISel/inst-select-constant-float-type.mir
+227-1421 files not shown
+228-1437 files

LLVM/project 29ac9ea — llvm/lib/Target/PISA PISAInstructionSelector.cpp

Add getAPFloatFromSize helper
DeltaFile
+14-0llvm/lib/Target/PISA/PISAInstructionSelector.cpp
+14-01 files

LLVM/project faa1ac7 — llvm/lib/Target/PISA PISAInstructionSelector.cpp

Add file headers
DeltaFile
+5-0llvm/lib/Target/PISA/PISAInstructionSelector.cpp
+5-01 files

LLVM/project fe7c51f — llvm/lib/Target/PISA PISAInstructionSelector.cpp, llvm/test/CodeGen/PISA/GlobalISel inst-select-unknown-fence.ll

Use MI.emitGenericError for an unsupported fence syncscope
DeltaFile
+21-0llvm/test/CodeGen/PISA/GlobalISel/inst-select-unknown-fence.ll
+4-2llvm/lib/Target/PISA/PISAInstructionSelector.cpp
+25-22 files

LLVM/project b7d94b4 — llvm/lib/Frontend/OpenMP OMPIRBuilder.cpp, llvm/unittests/Frontend OpenMPIRBuilderTest.cpp

[OMPIRBuilder] Disable kernel attributes for multidimensional spaces
DeltaFile
+43-0llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
+14-8llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+57-82 files

LLVM/project 4fa76bf — clang/docs ReleaseNotes.md, clang/include/clang/Basic Builtins.td

Revert "[Clang][Sema] Add fortify warnings for getlogin_r, ttyname_r, ptsname_r, and confstr (#244704)" (#248276)

Reverts llvm/llvm-project#244704
(`8964a284801acee5924c2b546ecb598e2b087f92`).

Registering `getlogin_r` as a typed `GNULibBuiltin` broke building
`busybox-w32` on `i686-w64-mingw32`, where `getlogin_r` is polyfilled
with `__attribute__((regparm(3),stdcall))`, triggering a
`-Wignored-attributes` warning (stripping `stdcall`) and an
`err_regparm_mismatch` hard error in `Sema::MergeFunctionDecl` (see
https://github.com/llvm/llvm-project/pull/244704#issuecomment-7359463527
and https://github.com/rmyorston/busybox-w32/issues/631).

Will reland after fixing `Sema::MergeFunctionDecl` to warn and avoid
treating the declaration as a builtin on calling-convention / `regparm`
mismatches against implicit predefined library builtins.

cc @nickdesaulniers @mstorsjo @efriedma-quic @llvm/android-maintainers
DeltaFile
+0-41clang/test/Sema/warn-fortify-source.c
+0-25clang/test/Sema/attr-diagnose-as-builtin.c
+0-25clang/include/clang/Basic/Builtins.td
+0-16clang/lib/Sema/SemaChecking.cpp
+0-4clang/test/Sema/builtins-gnu-mode.c
+0-4clang/docs/ReleaseNotes.md
+0-1156 files

FreeBSD/src 496b57c — lib/libthr/thread thr_spinlock.c

libthr: fix libc spinlock initialization

Publish thr_extra with a release store only after _thr_umutex_init()
and read it with an acquire load, so that a thread racing the first use
of a libc spinlock cannot lock the umutex before it is initialized.

PR:     301407
Fixes:  bddd24cd9c3e ("Replace internal usage of struct umtx with umutex which can ...")
Reviewed by:    kib
MFC after:      1 week
DeltaFile
+23-10lib/libthr/thread/thr_spinlock.c
+23-101 files

FreeBSD/ports d1f121e — security/boringssl distinfo Makefile, security/boringssl/files patch-CMakeLists.txt extra-patch-crypto_bytestring_bytestring__test.cc

security/boringssl: update to the recent snapshot

Introduce DISABLE_DEATHTESTS option that disables death tests
(core dumped) on FreeBSD.  Please visit for details:
https://issues.chromium.org/issues/584386506
DeltaFile
+44-0security/boringssl/files/extra-patch-ssl_span__test.cc
+31-0security/boringssl/files/extra-patch-crypto_bytestring_bytestring__test.cc
+7-2security/boringssl/Makefile
+3-3security/boringssl/distinfo
+1-1security/boringssl/files/patch-CMakeLists.txt
+86-65 files