FreeNAS/freenas ae77065src/middlewared/middlewared/api/v26_0_0 api_key.py, src/middlewared/middlewared/plugins api_key.py

NAS-139782 / 26.0.0-BETA.1 / Add convenience function to generate SCRAM data (#18207)

This commit adds a convenience function for API key consumers to
transform a given raw API key into SCRAM auth material.

Shell example:

```
 midclt call api_key.convert_raw_key ${API_KEY} > ~/api_key

 midclt -u ws://127.0.0.1/api/current -U root \
     -K /root/api_key call auth.me | jq .account_attributes
 [
   "LOCAL",
   "API_KEY",
   "SYS_ADMIN",
   "API_KEY",
   "SCRAM"
 ]
```
DeltaFile
+111-0tests/unit/test_api_key_keyring.py
+48-1src/middlewared/middlewared/plugins/api_key.py
+43-3src/middlewared/middlewared/utils/crypto.py
+26-0src/middlewared/middlewared/api/v26_0_0/api_key.py
+228-44 files

HardenedBSD/ports 5c76177audio/baresip Makefile, deskutils/kdepim-addons pkg-plist

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+76-7devel/ktextaddons/pkg-plist
+43-0science/step/pkg-plist
+26-0deskutils/kdepim-addons/pkg-plist
+11-12audio/baresip/Makefile
+0-22net/pimcommon/pkg-plist
+22-0devel/kdevelop/pkg-plist
+178-41429 files not shown
+1,342-1,078435 files

LLVM/project 3819666lldb/source/Plugins/Highlighter/TreeSitter TreeSitterHighlighter.cpp

Prefer shorter matches as suggested by Charles
DeltaFile
+4-2lldb/source/Plugins/Highlighter/TreeSitter/TreeSitterHighlighter.cpp
+4-21 files

LLVM/project 8de1a07libcxx/src atomic.cpp, libcxx/test/std/thread/thread.semaphore timed.hang.pass.cpp

[libc++] Fix semaphore timed wait hanging on Windows (#180398)

Fixes #180334

# Problem

The semaphore timed wait test is flaky on Windows. It hangs from time to
time.

Some examples:

[windows (clang-cl-no-vcruntime, false, clang-cl,
clang-cl)](https://github.com/llvm/llvm-project/actions/runs/21737380876/job/62707542836#logs)
[windows (mingw-static, true, cc,
c++)](https://github.com/llvm/llvm-project/actions/runs/21636063482/job/62367831823?pr=179483#logs)
[windows (clang-cl-static, false, clang-cl,
clang-cl)](https://github.com/llvm/llvm-project/actions/runs/21453876753/job/61794464147#logs)
[windows (clang-cl-dll, false, clang-cl,
clang-cl)](https://github.com/llvm/llvm-project/actions/runs/21382902941/job/61556154029#logs)

    [127 lines not shown]
DeltaFile
+60-30libcxx/src/atomic.cpp
+45-0libcxx/test/std/thread/thread.semaphore/timed.hang.pass.cpp
+105-302 files

FreeBSD/ports 2bc95a2lang/python312 Makefile, lang/python313 Makefile

lang/python3{12,13}: limit parallel .pyc compilation to MAKE_JOBS

This option is available since python312[0]. This fixes
python312 and python313 builds with qemu-user-static
emulating riscv64.

[0] https://github.com/python/cpython/commit/9a7e9f9921804f3f90151ca42703e612697dd430

Approved by:            vishwin (#python), lwhsu (mentor)
Signed-off-by:          Siva Mahadevan <siva at FreeBSD.org>
Sponsored by:           The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D54906

(cherry picked from commit c4faf46ff4741f016c5196e1de77822733ff4a1f)
DeltaFile
+2-1lang/python313/Makefile
+2-1lang/python312/Makefile
+4-22 files

FreeBSD/ports 39a545flang/python312 distinfo Makefile

lang/python312: pull in upstream commits addressing vuxml entries

Security: bfe9adc8-0224-11f1-8790-c5fb948922ad
(cherry picked from commit 6ffe928349a0352572a5b52dc3d5aa73c2fdc272)
DeltaFile
+11-1lang/python312/distinfo
+7-2lang/python312/Makefile
+18-32 files

Linux/linux cd7a565arch/alpha/include/asm pgtable.h

alpha: add missing address argument in call to page_table_check_pte_clear()

After the merge of the alpha and mm trees, this code does not compile,
as a parameter is missing in a call to page_table_check_pte_clear().

The parameter was re-added in commit d7b4b67eb6b3 ("mm/page_table_check:
reinstate address parameter in [__]page_table_check_pte_clear()").
The alpha-specific code was newly added in commit dd5712f3379c ("alpha:
fix user-space corruption during memory compaction").

Fixes: 4cff5c05e076 ("Merge tag 'mm-stable-2026-02-11-19-22' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm")
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
Acked-by: Magnus Lindholm <linmag7 at gmail.com>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
DeltaFile
+1-1arch/alpha/include/asm/pgtable.h
+1-11 files

LLVM/project b6cd213clang/lib/CIR/CodeGen CIRGenException.cpp CIRGenCleanup.h

[CIR] Simplify try-catch handling (#180857)

With the new exception handling device, we no longer need to track the
location of potential catch blocks, and so we no longer need to
represent catch handlers on the EH stack. This allows us to
significantly simplify the generation of try-catch blocks.

This change emits catch blocks directly when visiting the try operation
and removes unnecessary EH management code.

This is not an exhaustive cleanup of the EH management code. Some things
that may appear to be obvious simplifications (such as removing the
union of bitfields in EHScope, and possibly making EHScopeStack just a
stack of EHCleanups) are deferred until we have a better idea of how
things like EH filters will be implemented.

This change breaks lowering of cir.try operations to LLVM IR in a
somewhat trivial way. Even before this PR, lowering of `cir.try` ops
with catch handlers was not implemented. However, we had one test case

    [6 lines not shown]
DeltaFile
+72-400clang/lib/CIR/CodeGen/CIRGenException.cpp
+2-102clang/lib/CIR/CodeGen/CIRGenCleanup.h
+0-36clang/lib/CIR/CodeGen/CIRGenCall.cpp
+2-13clang/lib/CIR/CodeGen/CIRGenFunction.h
+0-8clang/lib/CIR/CodeGen/CIRGenCleanup.cpp
+0-8clang/lib/CIR/CodeGen/EHScopeStack.h
+76-5671 files not shown
+78-5697 files

LLVM/project c776a52libc/cmake/modules LLVMLibCTestRules.cmake, libc/test lit.site.cfg.py.in CMakeLists.txt

[libc] Implement lit-based test execution for Libc (#178746)

This provides optional lit-based test execution for the LLVM Libc tests,
alongside the existing CMake-based test execution.

Usage:
  ninja -C build check-libc-lit
  cd build && bin/llvm-lit libc/test/src/

Partially addresses
[#118694](https://github.com/llvm/llvm-project/issues/118694). A future
PR once this lands will flip the default (per suggestion in the RFC)
DeltaFile
+106-0libc/utils/libctest/format.py
+37-0libc/test/lit.site.cfg.py.in
+25-0libc/test/CMakeLists.txt
+21-0libc/utils/libctest/__init__.py
+17-0libc/test/lit.cfg.py
+8-0libc/cmake/modules/LLVMLibCTestRules.cmake
+214-06 files

FreeBSD/src 605af06sys/dev/cxgbe t4_main.c

cxgbe(4): Show correct range of tids in sysctl_tids

The highest valid tid has to be adjusted for the hi-pri filter region.

MFC after:      1 week
Sponsored by:   Chelsio Communications
DeltaFile
+1-1sys/dev/cxgbe/t4_main.c
+1-11 files

HardenedBSD/src 605af06sys/dev/cxgbe t4_main.c

cxgbe(4): Show correct range of tids in sysctl_tids

The highest valid tid has to be adjusted for the hi-pri filter region.

MFC after:      1 week
Sponsored by:   Chelsio Communications
DeltaFile
+1-1sys/dev/cxgbe/t4_main.c
+1-11 files

FreeBSD/ports 6ffe928lang/python312 distinfo Makefile

lang/python312: pull in upstream commits addressing vuxml entries

Security: bfe9adc8-0224-11f1-8790-c5fb948922ad
DeltaFile
+11-1lang/python312/distinfo
+7-2lang/python312/Makefile
+18-32 files

HardenedBSD/ports 6ffe928lang/python312 distinfo Makefile

lang/python312: pull in upstream commits addressing vuxml entries

Security: bfe9adc8-0224-11f1-8790-c5fb948922ad
DeltaFile
+11-1lang/python312/distinfo
+7-2lang/python312/Makefile
+18-32 files

FreeBSD/src be7e4dcsys/dev/nvme nvme_private.h

nvme: Use size_t for payload size

Using uint32_t here can cause spurious compiler warnings.  I assume it
was done to constrain the range; use a KASSERT instead.

Sponsored by:   Klara, Inc.
Sponsored by:   NetApp, Inc.
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D55279
DeltaFile
+3-1sys/dev/nvme/nvme_private.h
+3-11 files

HardenedBSD/src be7e4dcsys/dev/nvme nvme_private.h

nvme: Use size_t for payload size

Using uint32_t here can cause spurious compiler warnings.  I assume it
was done to constrain the range; use a KASSERT instead.

Sponsored by:   Klara, Inc.
Sponsored by:   NetApp, Inc.
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D55279
DeltaFile
+3-1sys/dev/nvme/nvme_private.h
+3-11 files

HardenedBSD/src 10ac741sys/sys elf_common.h

elf_common.h: Add some AArch32 relocations

Reviewed by:    mmel
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55268
DeltaFile
+13-0sys/sys/elf_common.h
+13-01 files

FreeBSD/src 10ac741sys/sys elf_common.h

elf_common.h: Add some AArch32 relocations

Reviewed by:    mmel
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55268
DeltaFile
+13-0sys/sys/elf_common.h
+13-01 files

FreeBSD/doc 1556932documentation/content/en/books/handbook/kernelconfig _index.adoc

Handbook - Kernelconfig: Restore PORTS_MODULES section

Reported by:    des@
DeltaFile
+19-2documentation/content/en/books/handbook/kernelconfig/_index.adoc
+19-21 files

LLVM/project 4d518e6flang/include/flang/Optimizer/Analysis AliasAnalysis.h, flang/lib/Optimizer/Analysis AliasAnalysis.cpp

[flang] Let FIR AA:getModRef recognize Fortran user procedures late. (#181295)

In order to use FIR AA::getModRef() after `ExternalNameConversion`
pass we have to teach it to recognize Fortran user procedures
that have already been renamed.
DeltaFile
+27-5flang/lib/Optimizer/Analysis/AliasAnalysis.cpp
+16-0flang/test/Analysis/AliasAnalysis/modref-call-after-external-name-conversion.fir
+9-0flang/include/flang/Optimizer/Analysis/AliasAnalysis.h
+52-53 files

HardenedBSD/ports eee11c4devel/libjitterentropy Makefile

devel/libjitterentropy: Fix WWW.
DeltaFile
+2-1devel/libjitterentropy/Makefile
+2-11 files

FreeBSD/ports eee11c4devel/libjitterentropy Makefile

devel/libjitterentropy: Fix WWW.
DeltaFile
+2-1devel/libjitterentropy/Makefile
+2-11 files

LLVM/project 41c566eclang/docs ReleaseNotes.rst, clang/lib/Analysis CFG.cpp

[Clang] eliminate -Winvalid-noreturn false positive after throw + unreachable try/catch blocks (#175443)

Fixes #174822

---

This PR fixes a false `-Winvalid-noreturn` positive when an
unconditional `throw` is followed by an unreachable `try`/`catch` block.

The false positive occurred because reachability analysis marked
`try`/`catch` regions as live even when unreachable via normal control
flow. The following logic


https://github.com/llvm/llvm-project/blob/1c0c9aeae681dbed90fcb19edd8a41e10a17f867/clang/lib/Sema/AnalysisBasedWarnings.cpp#L573-L589

that adjusted for missing `EH` call edges, treated disconnected `try` as
reachable.


    [11 lines not shown]
DeltaFile
+1-20clang/lib/Sema/AnalysisBasedWarnings.cpp
+14-6clang/test/Analysis/auto-obj-dtors-cfg-output.cpp
+10-2clang/lib/Analysis/CFG.cpp
+7-0clang/test/SemaCXX/return-noreturn.cpp
+2-4clang/test/Analysis/misc-ps-region-store.cpp
+1-2clang/docs/ReleaseNotes.rst
+35-346 files

LLVM/project e4c30c1llvm/lib/Target/SPIRV SPIRVTargetMachine.cpp, llvm/lib/Transforms/IPO ExpandVariadics.cpp

[SPIRV] Extend lowering of variadic functions (#178980)

Variadic function lowering for SPIR-V was initially added in
https://github.com/llvm/llvm-project/pull/175076.

However, I tried a full OpenMP offloading example that includes a vararg
call and hit a few issues:

1) The OpenMP Deivce library function `ompx::printf` was incorrectly
being considered a builtin `printf` function that would be handled
specifically by the SPIR-V backend.

The fix here is to remove the `printf` special handling.

2) We were getting an assert in ModuleVerifier saying the LLVM lifetime
intrinsics were being called with an argument that was neither an
`alloca` ptr or `poison`. The problem is the `alloca` was replaced with
a SPIR-V intrinsic `alloca` in `SPIRVPrepareFunctions`, but the lifetime
intrinsic added in `ExpandVariadics` was not lowered to the SPIR-V

    [14 lines not shown]
DeltaFile
+41-0llvm/test/CodeGen/SPIRV/function/variadics-lowering-namespace-printf.ll
+19-17llvm/test/CodeGen/SPIRV/printf.ll
+20-14llvm/lib/Transforms/IPO/ExpandVariadics.cpp
+6-4llvm/lib/Target/SPIRV/SPIRVTargetMachine.cpp
+4-2llvm/test/CodeGen/SPIRV/llc-pipeline.ll
+90-375 files

FreeBSD/src 4cf6925sys/kern kern_ktrace.c

ktrace: do not enqueue request if the process' ktrioparams are freed

(cherry picked from commit 6bb3f208617b58a54e2204eb31bae3f9a86117a7)
DeltaFile
+8-2sys/kern/kern_ktrace.c
+8-21 files

LLVM/project da5e298clang/include/clang/Sema Sema.h, clang/lib/Sema SemaDecl.cpp

[Sema][NFC] simplify deduceOpenCLAddressSpace (#181253)

All callers of deduceOpenCLAddressSpace passed some sort of VarDecl
(such as a ParmVarDecl), so the dynamic cast and indentation was
unnecessary.
DeltaFile
+33-35clang/lib/Sema/SemaDecl.cpp
+1-1clang/include/clang/Sema/Sema.h
+34-362 files

LLVM/project a1d12e9llvm/test/Transforms/IndVarSimplify unreachable-exit.ll

[NFC] [IndVars] test for multiple bounds for predicate-loop-traps

This can come from loops like

```
for (int i = 0; i < X; ++i) {
  if (i < N)
    __builtin_trap();
  if (i < M)
    __builtin_trap();
  x[i] = y[i];
}
```

Reviewers: nikic

Reviewed By: nikic

Pull Request: https://github.com/llvm/llvm-project/pull/181264
DeltaFile
+92-0llvm/test/Transforms/IndVarSimplify/unreachable-exit.ll
+92-01 files

HardenedBSD/ports 0ac4f3caudio/baresip Makefile

audio/baresip: Honor GL_DEFAULT, use opt_USE

Replace "opt_VARS= USE_xx+=yy" with "opt_USE= XX=yy".

PR:             293131
Approved by:    Marek Zarychta <zarychtam at plan-b.pwste.edu.pl> (maintainer)
Co-authored-by: Eric Camachat <eric at camachat.org>
DeltaFile
+11-12audio/baresip/Makefile
+11-121 files

FreeBSD/ports 0ac4f3caudio/baresip Makefile

audio/baresip: Honor GL_DEFAULT, use opt_USE

Replace "opt_VARS= USE_xx+=yy" with "opt_USE= XX=yy".

PR:             293131
Approved by:    Marek Zarychta <zarychtam at plan-b.pwste.edu.pl> (maintainer)
Co-authored-by: Eric Camachat <eric at camachat.org>
DeltaFile
+11-12audio/baresip/Makefile
+11-121 files

FreeBSD/src 9349f96etc/mtree BSD.usr.dist

BSD.usr.dist: remove obsolete usr/share/examples/drivers entry

In base 8f0a6a9aadb1f, usr/share/examples/drivers was cleaned up,
because it contained unmaintained scripts. The directory itself is
cleaned up by ObsoleteFiles.inc, but there was still an entry in
BSD.usr.dist that re-created the directory. Remove it.

Fixes:          8f0a6a9aadb1
MFC after:      3 days

(cherry picked from commit ac2f284258e4c6d5867aa6a411bd44df349fe416)
DeltaFile
+0-2etc/mtree/BSD.usr.dist
+0-21 files

HardenedBSD/ports f88de1esecurity/vuxml/vuln 2026.xml

security/vuxml: update lang/python312 entry

CVE-2024-6923 fix has been committed upstream
DeltaFile
+2-1security/vuxml/vuln/2026.xml
+2-11 files