FreeBSD/src 34e1553lib/libpfctl libpfctl.c, sbin/pfctl pfctl_radix.c

pfctl: pfctl_get_astats() doesn't set errno

After commit 08f54dfca197 pfctl_get_astats() doesn't set errno anymore,
except in one place.  Fix up that one place and adjust callers
appropriately.

Reviewed by:    kp
Fixes:          08f54dfca197 ("pf: convert DIOCRGETASTATS to netlink")
Differential Revision:  https://reviews.freebsd.org/D57608
DeltaFile
+8-1sbin/pfctl/pfctl_radix.c
+2-4lib/libpfctl/libpfctl.c
+3-3usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
+13-83 files

FreeNAS/freenas 3b10616src/middlewared/middlewared/utils/account authenticator.py, tests/stig test_03_stig_auditing.py conftest.py

Fix missing 2FA account flag and re-enable STIG tests

AccountFlag.TWOFACTOR was set in _get_user_obj() based on
self.twofactor_user, which only becomes true after the PAM OATH
conversation runs -- i.e. it was always false at that point. As a
result 2FA web sessions never carried the '2FA' flag and
validate_stig() rejected every credential, blocking STIG
enablement. This is why the suite had been failing for months.

Set TWOFACTOR in authenticate_oath() on success instead, where
the second factor has actually been verified, mirroring how OTPW
is recorded. Drop the now-dead check from _get_user_obj().

Re-enable tests/stig test_01 and test_02 and restore the conftest
server setup. test_03 stays skipped: its auditd-event checks need
the auditd daemon (Debian auditd.service + tnaudit), which is
managed outside middleware.
DeltaFile
+8-2tests/stig/test_03_stig_auditing.py
+5-5src/middlewared/middlewared/utils/account/authenticator.py
+2-5tests/stig/conftest.py
+0-3tests/stig/test_01_stig.py
+0-2tests/stig/test_02_openssl.py
+15-175 files

FreeBSD/ports 0e9715bsysutils/boxrun distinfo Makefile

sysutils/boxrun: Update to 0.4.3

ChangeLog:
  - support for VNET/epair networking
  - support for devfs, and mountpoints
  - several security improvements
  - bugfixes

MFH:            2026Q2
(cherry picked from commit 1f686502344979246e35b30a6972388660bc672b)
DeltaFile
+3-3sysutils/boxrun/distinfo
+1-1sysutils/boxrun/Makefile
+4-42 files

LLVM/project 1b4d463llvm/test/ExecutionEngine/MCJIT frem.ll, llvm/tools/lli CMakeLists.txt

[MCJIT] Fix frem.ll test failure with LLVM_ENABLE_RPMALLOC on Windows (#200319)

When compiled with `LLVM_ENABLE_RPMALLOC`, `lli.exe` links statically to
the runtime. With `LLVM_EXPORT_SYMBOLS_FOR_PLUGINS` enabled, `lli.exe`
exports a subset of symbols from the runtime library, but not all. In
particular, `printf()` is exported from the application binary, but
`fflush()` and `exit()` are not. For a JITted module, unresolved
external symbols are loaded either from the application or dynamic
libraries, in this case, from `msvcrt.dll`. The `MCJIT/frem.ll` test
attempts to flush the output, but because the functions resolve to
different CRT instances, the output data is lost.

The patch avoids the test failure by disabling exporting symbols from
`lli.exe` when it is linked with the static runtime library.
DeltaFile
+15-1llvm/tools/lli/CMakeLists.txt
+0-2llvm/test/ExecutionEngine/MCJIT/frem.ll
+15-32 files

FreeBSD/ports 1f68650sysutils/boxrun distinfo Makefile

sysutils/boxrun: Update to 0.4.3

ChangeLog:
  - support for VNET/epair networking
  - support for devfs, and mountpoints
  - several security improvements
  - bugfixes

MFH:            2026Q2
DeltaFile
+3-3sysutils/boxrun/distinfo
+1-1sysutils/boxrun/Makefile
+4-42 files

LLVM/project dcd41b4llvm/include/llvm/Target TargetSelectionDAG.td, llvm/lib/Target/X86 X86InstrFragmentsSIMD.td X86InstrAVX512.td

[X86] Extend alignedstore PatFrag to cover atomic_store (#197861)

Smaller FP vectors (`<N x half>`, `<N x bfloat>`) are left to the DAG
widen path on subtargets without native FP16/BF16 support; the
v8f16/v8bf16 bitconvert variants added to the Atomic Store Split
commit's patterns let the
widened path collapse to a single instruction on AVX+ targets.

Store-side counterpart to #148899 (and now
https://github.com/llvm/llvm-project/pull/199520). Stacked on top of
https://github.com/llvm/llvm-project/pull/201980; and below of
https://github.com/llvm/llvm-project/pull/201566.
DeltaFile
+86-0llvm/test/CodeGen/X86/atomic-load-store.ll
+4-2llvm/lib/Target/X86/X86InstrFragmentsSIMD.td
+3-2llvm/lib/Target/X86/X86InstrAVX512.td
+1-1llvm/include/llvm/Target/TargetSelectionDAG.td
+94-54 files

LLVM/project 3a7f3fdllvm/test/Transforms/SLPVectorizer/RISCV rotated-strided-loads.ll

[SLP] Add test demonstrating bug in widened strided store logic (#204012)

See #204011
DeltaFile
+418-0llvm/test/Transforms/SLPVectorizer/RISCV/rotated-strided-loads.ll
+418-01 files

FreeBSD/ports dfda477devel/py-maturin distinfo Makefile.crates

devel/py-maturin: Update to 1.14.0

Changelog:

https://github.com/PyO3/maturin/releases/tag/v1.14.0
DeltaFile
+9-9devel/py-maturin/distinfo
+3-3devel/py-maturin/Makefile.crates
+1-2devel/py-maturin/Makefile
+13-143 files

NetBSD/pkgsrc-wip d302577knot-resolver Makefile PLIST, knot-resolver/files kresd.sh

knot-resolver: it's compile and able to start once conf file created ;-)
DeltaFile
+25-0knot-resolver/files/kresd.sh
+12-7knot-resolver/Makefile
+4-3knot-resolver/PLIST
+3-1knot-resolver/TODO
+44-114 files

FreeBSD/ports 153ba1bmath/octave-forge-audio distinfo Makefile

math/octave-forge-audio: Update to 2.0.12.
DeltaFile
+3-3math/octave-forge-audio/distinfo
+1-2math/octave-forge-audio/Makefile
+4-52 files

LLVM/project 77fe8dcflang/docs Extensions.md, flang/lib/Semantics resolve-names.cpp

[flang][semantics] Allow forward-typed PARAMETER constants under IMPLICIT NONE (#203398)

Under IMPLICIT NONE, flang rejected a named constant defined by a
PARAMETER statement whose explicit type declaration appears later in the
same specification part:

    implicit none
    parameter(n=4096)
    integer n          ! error: No explicit type declared for 'n'
    end

Accept it as an extension, reusing the existing ForwardRefImplicitNone
language feature that already permits forward references to dummy
arguments and COMMON variables under IMPLICIT NONE(TYPE). The behavior
is accepted silently by default and emits a portability warning under
-pedantic.

Assisted-by: AI
DeltaFile
+76-0flang/test/Semantics/resolve130.f90
+30-10flang/lib/Semantics/resolve-names.cpp
+34-0flang/test/Semantics/resolve131.f90
+4-0flang/docs/Extensions.md
+144-104 files

LLVM/project 2dfdd09clang/lib/StaticAnalyzer/Checkers MallocSizeofChecker.cpp, clang/test/Analysis malloc-sizeof-fp.cpp

[clang][StaticAnalyzer] Reduce MallocSizeofChecker false positives for layout-compatible types (#200253)

When one operand is a record type and the other is a non-record type,
treat them as compatible if they share the same size and the record's
alignment satisfies the scalar's alignment. This suppresses warnings for
patterns like `malloc(sizeof(std::atomic<int32_t>))` assigned to an
`int32_t *` (or a wrapper struct with an identical layout), while still
flagging genuinely mismatched types such as `long` vs `double` or
unrelated struct pairs.

rdar://177553628

---------

Co-authored-by: Claude Sonnet 4.6 <noreply at anthropic.com>
DeltaFile
+61-0clang/test/Analysis/malloc-sizeof-fp.cpp
+32-5clang/lib/StaticAnalyzer/Checkers/MallocSizeofChecker.cpp
+93-52 files

FreeBSD/ports 5683e0ax11/nvidia-driver Makefile

x11/nvidia-driver: Add CPE information
DeltaFile
+4-1x11/nvidia-driver/Makefile
+4-11 files

LLVM/project 930a46dclang/include/clang/Basic BuiltinsAVR.def TargetBuiltins.h, clang/lib/Basic/Targets AVR.cpp

[clang][AVR] Add basic AVR builtin functions (#203214)

Adds support for AVR specific builtin functions as defined in:
https://gcc.gnu.org/onlinedocs/gcc/AVR-Built-in-Functions.html

The simpler builtins have been implemented: nop, sei, cli, sleep, wdr,
swap. And they are lowered to their llvm.avr.* intrinsics.

---------

Signed-off-by: Dakkshesh <beakthoven at gmail.com>
DeltaFile
+267-36clang/test/CodeGen/avr/avr-builtins.c
+47-0clang/include/clang/Basic/BuiltinsAVR.def
+42-0clang/lib/CodeGen/TargetBuiltins/AVR.cpp
+32-3clang/lib/Basic/Targets/AVR.cpp
+11-1clang/include/clang/Basic/TargetBuiltins.h
+8-0clang/test/Preprocessor/avr-builtins.c
+407-404 files not shown
+412-4310 files

LLVM/project 9434d4aclang/lib/ScalableStaticAnalysisFramework/Core/Serialization/JSONFormat TUSummaryEncoding.cpp TUSummary.cpp, clang/unittests/ScalableStaticAnalysisFramework EntityLinkerTest.cpp

Reland "[clang][ssaf] Track target triple in TU and LU summaries" (#204218)

This commit introduces the following changes:
  
- Add `TargetTriple` field to `TUSummary`, `LUSummary`, and their encodings.
- Frontend captures the triple from `CompilerInstance::getTarget()` when extracting a TU summary.
- JSON format reads/writes a `target_triple` field at the root of each summary; reader rejects strings not in `llvm::Triple::normalize` form.
- All TU/LU JSON test inputs/outputs and unit tests updated to include the new field.
- `TargetParser` is added to `LLVM_LINK_COMPONENTS` for `clangScalableStaticAnalysisFrameworkCore`, which provides `Triple::normalize` and `Triple(string&&)` constructor that the `JSONFormat` sources reference.

`clang-ssaf-linker` uses a hardcoded triple for the link unit; surfacing the triple through the tool will be handled in a follow-up PR.

rdar://179403011
DeltaFile
+24-1clang/lib/ScalableStaticAnalysisFramework/Core/Serialization/JSONFormat/TUSummaryEncoding.cpp
+24-1clang/lib/ScalableStaticAnalysisFramework/Core/Serialization/JSONFormat/TUSummary.cpp
+24-1clang/lib/ScalableStaticAnalysisFramework/Core/Serialization/JSONFormat/LUSummaryEncoding.cpp
+24-1clang/lib/ScalableStaticAnalysisFramework/Core/Serialization/JSONFormat/LUSummary.cpp
+12-9clang/unittests/ScalableStaticAnalysisFramework/EntityLinkerTest.cpp
+16-0clang/lib/ScalableStaticAnalysisFramework/Core/Serialization/JSONFormat/JSONFormatImpl.cpp
+124-13170 files not shown
+566-175176 files

LLVM/project 2916c77clang/docs SanitizerSpecialCaseList.rst ReleaseNotes.rst, clang/unittests/Basic DiagnosticTest.cpp

Make sanitizer special case list slash-agnostic (#149886)

This changes the glob matcher for the sanitizer special case format so
that it treats `/` as matching both forward and back slashes.

When dealing with cross-compiles or build systems that don't normalize
slashes, it's possible to run into file paths with inconsistent
slashiness, e.g. `../..\v8/include\v8-internal.h` when [building
chromium](https://g-issues.chromium.org/issues/425364464).

We can match this using the current syntax using this ugly kludge:
`src:*{/,\\}v8{/,\\}*`. However, since the format is explicitly for
listing file paths, it makes sense to treat `/` as denoting a path
separator rather than a literal forward slash. This allows us to write
the much more natural form `src:*/v8/*` and have it work on any
platform.

This is technically a behavior change, but it seems very unlikely to
come up in practice. It will only make a difference if a user has a

    [9 lines not shown]
DeltaFile
+35-0clang/unittests/Basic/DiagnosticTest.cpp
+25-6llvm/lib/Support/SpecialCaseList.cpp
+20-0llvm/unittests/Support/SpecialCaseListTest.cpp
+12-0clang/docs/SanitizerSpecialCaseList.rst
+5-0clang/docs/ReleaseNotes.rst
+97-65 files

LLVM/project b2cb999compiler-rt/lib/scudo/standalone secondary.h

[scudo] Use the unmap function on MemMap object. (#204001)

The current call does a unmap(MemMap), but the rest of the code is doing
MemMap.unmap(XXX), so follow that pattern.
DeltaFile
+1-1compiler-rt/lib/scudo/standalone/secondary.h
+1-11 files

FreeBSD/ports 2b11120databases/arrow-glib Makefile

databases/arrow-glib: Add CPE information
DeltaFile
+2-1databases/arrow-glib/Makefile
+2-11 files

LLVM/project 50e13e9flang/lib/Optimizer/Transforms/CUDA CUFOpConversion.cpp, flang/test/Fir/CUDA cuda-global-addr.mlir

[flang][cuda] Avoid runtime copies for scalar constant host reads (#204193)

Fix CUDA Fortran lowering for host reads from scalar module variables
with the `constant` attribute.

Host code can read and write CUDA constants, while kernels read the
device constant symbol. Flang keeps a host-visible value for scalar
constant host accesses and uses a device symbol for kernels.

After preserving the host declaration, scalar read-backs such as `x = c`
could still be lowered as device-to-host runtime copies, passing a host
pointer as the CUDA source. This change lowers those read-backs as
regular host load/store operations, while keeping the runtime update for
host-to-device assignments.
DeltaFile
+16-2flang/lib/Optimizer/Transforms/CUDA/CUFOpConversion.cpp
+15-0flang/test/Fir/CUDA/cuda-global-addr.mlir
+31-22 files

FreeBSD/ports 9708efddevel/swig40 Makefile

devel/swig40: Add CPE information
DeltaFile
+3-1devel/swig40/Makefile
+3-11 files

OpenBSD/src JwI9P99sys/kern kern_synch.c

   When releasing, read trace index before reference counter decrement.

   When btrace(8) is active, refcounting is traced using an index field
   to the dt(4) backend.  When two CPU simultaneously decrement the
   reference count, one could free the object while the other is still
   reading the index.  Move the load before the dec separated by a
   membar.  Crashes seen while testing an experimental diff from dlg@.

   OK cludwig@
VersionDeltaFile
1.234+8-4sys/kern/kern_synch.c
+8-41 files

FreeBSD/ports f958bb4devel/swig Makefile

devel/swig: Add CPE information
DeltaFile
+3-1devel/swig/Makefile
+3-11 files

FreeBSD/ports 26e2bc2devel/spdlog Makefile

devel/spdlog: Add CPE information
DeltaFile
+3-1devel/spdlog/Makefile
+3-11 files

LLVM/project e421148llvm/test/Analysis/CostModel/AMDGPU rem.ll div.ll, llvm/test/Transforms/VectorCombine/AMDGPU extract-insert-i8.ll no-scalarize-vector-extract.ll

[AMDGPU] Refine i8 extractelement cost model (#203932)

Expand the cases when i8 extract elements are free. The extract elements
should be free when they are part of a sequence that extract multiple
consecutive elements the size of a register. This change enables the
SLPVectorizer to keep extract elements over more costly shufflevectors.

This PR also undoes a previous change that made insert element free, but
those require sequences of shift/or instructions so shouldn't be free.
DeltaFile
+42-42llvm/test/Analysis/CostModel/AMDGPU/rem.ll
+42-42llvm/test/Analysis/CostModel/AMDGPU/div.ll
+26-26llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
+6-40llvm/test/Transforms/VectorCombine/AMDGPU/extract-insert-i8.ll
+14-20llvm/test/Transforms/VectorCombine/AMDGPU/no-scalarize-vector-extract.ll
+16-16llvm/test/Analysis/CostModel/AMDGPU/extractelement.ll
+146-1863 files not shown
+164-2169 files

FreeBSD/ports e6bb588devel/shapelib Makefile

devel/shapelib: Add CPE information
DeltaFile
+3-1devel/shapelib/Makefile
+3-11 files

FreeBSD/ports e244408devel/sbt Makefile

devel/sbt: Add CPE information
DeltaFile
+3-1devel/sbt/Makefile
+3-11 files

FreeBSD/ports f6bdc06devel/rubygem-zlib Makefile

devel/rubygem-zlib: Add CPE information
DeltaFile
+3-1devel/rubygem-zlib/Makefile
+3-11 files

FreeBSD/ports 8319ed6devel/rubygem-view_component-rails-gitlab Makefile

devel/rubygem-view_component-rails-gitlab: Add CPE information
DeltaFile
+3-1devel/rubygem-view_component-rails-gitlab/Makefile
+3-11 files

FreeBSD/ports 1cd7b78devel/rubygem-time Makefile

devel/rubygem-time: Add CPE information
DeltaFile
+3-1devel/rubygem-time/Makefile
+3-11 files

FreeBSD/ports 4975967devel/rubygem-resque Makefile

devel/rubygem-resque: Add CPE information
DeltaFile
+1-1devel/rubygem-resque/Makefile
+1-11 files