FreeBSD/src d6f5c65sys/dev/netmap netmap_mem2.c

netmap: Use ckdint.h helpers to check for overflow

This addresses a bug in the addition overflow check added in commit
319414a926af ("netmap: Handle overflow when computing ring sizes"): that
overflow wasn't actually caught by the check because "len" is promoted
to size_t.

PR:             297300
Fixes:          319414a926af ("netmap: Handle overflow when computing ring sizes")
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D58896
DeltaFile
+3-7sys/dev/netmap/netmap_mem2.c
+3-71 files

FreeBSD/src 00a793dsys/netpfil/pf pf.c, tests/sys/netpfil/pf route_to.sh

pf: Fix fallout from the STATE_LOOKUP macro removal

Commit 8572367b6814 ("pf: remove STATE_LOOKUP") introduced two seemingly
unintentional changes with respect to divert(4)-injected packets (i.e.,
the PACKET_LOOPED case): we no longer return the matching state, and
direct callers of pf_find_state() now treat matches of diverted packets
the same as having no matching state at all.

This seems inadvertent, and breaks certain rulesets which use divert-to.
Fix them, and add a regression test case.

Fixes:          8572367b6814 ("pf: remove STATE_LOOKUP")
Reviewed by:    kp
MFC after:      2 weeks
Sponsored by:   OPNsense
Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D59015
DeltaFile
+82-0tests/sys/netpfil/pf/route_to.sh
+6-11sys/netpfil/pf/pf.c
+88-112 files

LLVM/project 10470dallvm/lib/Target/SPIRV SPIRVInstructionSelector.cpp SPIRVGlobalRegistry.cpp

[SPIRV] Fix -Wunused-variable (#219207)

These variables are only used in assertions but are used multiple
times/do not make sense to inline, so mark them [[maybe_unused]].
DeltaFile
+1-1llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
+1-1llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp
+2-22 files

FreeNAS/freenas 6d5e966src/middlewared/middlewared/plugins/apps schema_normalization.py schema_validation.py, src/middlewared/middlewared/plugins/apps/ix_apps path.py

NAS-142117 / 26.0.0-RC.1 / Force ACL application on app-owned ix-volume paths (by Qubad786) (#19546)

## Problem
The served schema hides `force` for ix-volumes and defaults it to true,
but clients submit an explicit false and middleware honours it, so
applying an ACL fails with `path contains existing data` as soon as the
app has written to its own volume. Once that false is persisted,
validation rejects the config before normalization can correct it.

The bad value comes from the UI, which honours `hidden` only on the
field carrying it: for an ix-volume the whole `options` block is hidden,
so the form still builds a `force` control, seeds it with its own
boolean default of false rather than the schema's true, and submits that
for a system managed dataset.

## Solution
ix-volumes are system managed, so anything in them is managed bys -
confirmed with Stavros that `force` should always be true for them when
an ACL is wanted.

    [19 lines not shown]
DeltaFile
+68-0src/middlewared/middlewared/pytest/unit/plugins/apps/test_normalize_ix_volumes.py
+59-0src/middlewared/middlewared/pytest/unit/plugins/apps/test_app_volume_path.py
+17-5src/middlewared/middlewared/plugins/apps/schema_validation.py
+19-0src/middlewared/middlewared/plugins/apps/ix_apps/path.py
+11-1src/middlewared/middlewared/plugins/apps/schema_normalization.py
+174-65 files

LLVM/project aeeecb4clang/test/CodeGen attr-target-x86-mmx.c attr-target-mv.c

[X86] Add missing checks for attribute target testing (#218697)

Attribute target testing was missing a bunch of checks -- this adds
them. One test (attr-target-x86-mmx.c) is now redundant.

Patch done with usage of claude code

---------

Co-authored-by: Simon Pilgrim <llvm-dev at redking.me.uk>
DeltaFile
+606-0clang/test/CodeGen/attr-target-x86.c
+162-3clang/test/CodeGen/attr-target-mv.c
+0-21clang/test/CodeGen/attr-target-x86-mmx.c
+768-243 files

FreeNAS/freenas ab6bfabsrc/middlewared/middlewared/api/v26_0_0 audit.py, src/middlewared/middlewared/etc_files/syslog-ng/conf.d tnaudit.conf.mako

NAS-142662 / 27.0.0-BETA.1 / Add s3 to audit service (#19547)

Add the S3 service into our auditing framework. This isn't wired up yet
but is added here to keep review manageable.

(cherry picked from commit e192549a887d66de9831e393ce834b8565e855b9)
DeltaFile
+208-0src/middlewared/middlewared/plugins/audit/schema/s3.py
+3-2src/middlewared/middlewared/api/v26_0_0/audit.py
+4-1src/middlewared/middlewared/plugins/audit/audit.py
+1-1src/middlewared/middlewared/plugins/audit/utils.py
+1-1src/middlewared/middlewared/etc_files/syslog-ng/conf.d/tnaudit.conf.mako
+217-55 files

FreeNAS/freenas e192549src/middlewared/middlewared/api/v27_0_0 audit.py, src/middlewared/middlewared/etc_files/syslog-ng/conf.d tnaudit.conf.mako

NAS-142662 / 27.0.0-BETA.1 / Add s3 to audit service (#19547)

Add the S3 service into our auditing framework. This isn't wired up yet
but is added here to keep review manageable.
DeltaFile
+208-0src/middlewared/middlewared/plugins/audit/schema/s3.py
+3-2src/middlewared/middlewared/api/v27_0_0/audit.py
+4-1src/middlewared/middlewared/plugins/audit/audit.py
+1-1src/middlewared/middlewared/plugins/audit/utils.py
+1-1src/middlewared/middlewared/etc_files/syslog-ng/conf.d/tnaudit.conf.mako
+217-55 files

LLVM/project 0637ff4llvm/test/CodeGen/X86 pext-vector-256.ll pdep-vector-256.ll

Revert "[X86] Add TuningSlowPDEP/PEXT flags and control vector PDEP/PEXT scal…"

This reverts commit f7da8541fb95a8a31b5535978c5eae4a72167c3b.
DeltaFile
+0-1,118llvm/test/CodeGen/X86/znver-pdep.ll
+119-605llvm/test/CodeGen/X86/pext-vector-512.ll
+119-605llvm/test/CodeGen/X86/pdep-vector-512.ll
+0-699llvm/test/CodeGen/X86/znver-pext.ll
+63-314llvm/test/CodeGen/X86/pext-vector-256.ll
+63-314llvm/test/CodeGen/X86/pdep-vector-256.ll
+364-3,6554 files not shown
+433-4,14310 files

FreeBSD/ports f5beaaesecurity/libgcrypt/files patch-configure

security/libgcrypt: Fix build on hardware lacking SM4-EVEX

The failure comes from cipher/sm4-intel-avx512-amd64.S, which uses the
EVEX-encoded (zmm) SM4 instructions. The base system assembler only
knows the VEX/ymm forms, and configure's SM4 probe only tests those, so
the AVX512 implementation is assembled anyway and breaks.

This patch extends the probe with the zmm forms, so the Intel SM4
assembly is disabled automatically where the assembler lacks SM4-EVEX.
GFNI-based SM4 and all other AVX512 code remain enabled, and the check
heals itself once LLVM gains these instructions.

PR:     297987
DeltaFile
+19-0security/libgcrypt/files/patch-configure
+19-01 files

FreeBSD/src 901a242sbin/ifconfig ifconfig_netlink.c

ifconfig: Add netlink support for reading ifgroup

Read interface groups from IFLAF_GROUP netlink attribute.

Reviewed by:    glebius
Differential Revision:  https://reviews.freebsd.org/D58644
DeltaFile
+37-1sbin/ifconfig/ifconfig_netlink.c
+37-11 files

LLVM/project c30c4f5orc-rt/include/orc-rt/bedrock TaskGroup.h

[orc-rt] Fix relative path in include. NFC. (#219205)
DeltaFile
+1-1orc-rt/include/orc-rt/bedrock/TaskGroup.h
+1-11 files

FreeBSD/src 2f8f892sys/net if_var.h if.c, sys/netlink netlink_snl_route_parsers.h

rtnetlink: Add FreeBSD-specific IFLAF_GROUP support

Netlink IFLA_GROUP works with a single group id, in our
implementation an interface can be joined to multiple groups
and it works with group name.
Store interface groups in IFLAF_GROUP attribute.

Reviewed by:    glebius, melifaro
Discussed with: markj
Differential Revision: https://reviews.freebsd.org/D58643
DeltaFile
+34-1sys/netlink/route/iface.c
+24-0sys/net/if.c
+8-0sys/netlink/netlink_snl_route_parsers.h
+2-0sys/net/if_var.h
+1-0sys/netlink/route/interface.h
+69-15 files

FreeBSD/src b7cff2a. UPDATING

UPDATING: Fix entry for getgroups(2)/setgroups(2)

Fix a typo, grammar, and generally rephrase for better clarity.

Fixes:          3463f02706db ("UPDATING: add an entry for [gs]etgroups")
MFC after:      1 day
MFC to:         stable/15
Sponsored by:   The FreeBSD Foundation
DeltaFile
+6-4UPDATING
+6-41 files

LLVM/project 052dde9llvm/lib/Analysis ScalarEvolution.cpp, llvm/test/Analysis/ScalarEvolution ptrtoint.ll

[SCEV] Do not represent ptrtoint as ptrtoaddr (#219156)

As anticipated, doing this ends up introducing miscompiles, because we
drop provenance captures, as reported at
https://discourse.llvm.org/t/scalarevolution-parses-ptrtoint-as-ptrtoaddr-losing-provenance/91675.

Now that clang uses ptrtoaddr for pointer subtraction, this workaround
should be less relevant.
DeltaFile
+60-65llvm/test/CodeGen/Thumb2/LowOverheadLoops/while-loops.ll
+0-28llvm/test/Other/constant-fold-gep.ll
+10-10llvm/test/Analysis/ScalarEvolution/ptrtoint.ll
+3-14llvm/lib/Analysis/ScalarEvolution.cpp
+8-8llvm/test/Transforms/LoopIdiom/reuse-lcssa-phi-scev-expansion.ll
+2-2llvm/test/Transforms/LoopVectorize/induction-ptrcasts.ll
+83-1274 files not shown
+88-13210 files

LLVM/project 3b7a100orc-rt/include/orc-rt-utils CommandLine.h

[orc-rt] Add missing include guard. (#219204)
DeltaFile
+6-0orc-rt/include/orc-rt-utils/CommandLine.h
+6-01 files

FreeBSD/ports 1198cc7devel/maven39 Makefile pkg-plist

devel/maven39: Update to 3.9.16

Changelog:      https://github.com/apache/maven/releases/tag/maven-3.9.16
DeltaFile
+3-3devel/maven39/distinfo
+2-2devel/maven39/pkg-plist
+1-1devel/maven39/Makefile
+6-63 files

LLVM/project 4149c50libcxx/include any

[libc++] Use new/delete expressions for memory allocation in <any> (#219153)

This simplifies the implementation a bit more and avoids some includes.
This is a step towards removing `__libcpp_allocate`.
DeltaFile
+2-9libcxx/include/any
+2-91 files

LLVM/project dbe5d53clang/lib/CodeGen CGExpr.cpp, clang/test/CodeGenHIP sanitize-undefined-null.hip

[Clang] Cast UBSan globals to appropriate generic address space (#219023)

Summary:
For GPU targets trying to use these checks, it would cause some issues.
the RTL function takes a flat pointer, but the global would be generated
as AS(1) with no cast. This seemed to work fine, mostly because for
AMDGPU the flat and global address spaces are byte identical, but it's
broken heavior. It lead to the backend not being able to fully identify
the call graph because it was not calling the 'right' function. Just add
an address space cast, these are no-ops in the vast majority of cases.
DeltaFile
+2-2clang/lib/CodeGen/CGExpr.cpp
+1-1clang/test/CodeGenHIP/sanitize-undefined-null.hip
+3-32 files

LLVM/project d2496f1mlir/lib/Conversion/AMDGPUToROCDL AMDGPUToROCDL.cpp, mlir/lib/Conversion/MathToLLVM MathToLLVM.cpp

[mlir] Migrate aggregate builders to explicit properties

Pass typed property structs and discardable attributes separately at ODS
aggregate builder call sites.

Assisted-by: Codex
DeltaFile
+45-70mlir/unittests/Dialect/OpenACC/OpenACCUtilsTest.cpp
+71-35mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
+71-23mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp
+50-33mlir/lib/Conversion/AMDGPUToROCDL/AMDGPUToROCDL.cpp
+39-26mlir/lib/Conversion/MathToLLVM/MathToLLVM.cpp
+27-16mlir/lib/Dialect/Shape/IR/Shape.cpp
+303-20351 files not shown
+696-36557 files

FreeBSD/src 75ccab5sys/dts freebsd-compatible.dts

dts: Bump freebsd,dts-version to 7.1
DeltaFile
+1-1sys/dts/freebsd-compatible.dts
+1-11 files

LLVM/project 4ab7b65llvm/test/CodeGen/AMDGPU machine-sink-temporal-divergence-swdev407790.mir

[AMDGPU] Pre-commit `SI_WATERFALL_LOOP` machine sink test (#219171)
DeltaFile
+51-0llvm/test/CodeGen/AMDGPU/machine-sink-temporal-divergence-swdev407790.mir
+51-01 files

OpenBSD/ports JMfwqqfmail/mlmmj distinfo Makefile, mail/mlmmj/patches patch-Makefile_in patch-mk_common_mk

   mail/mlmmj: update to 2.1.0

   ok stsp@
VersionDeltaFile
1.29+18-9mail/mlmmj/Makefile
1.13+12-12mail/mlmmj/pkg/PLIST
1.1+13-0mail/mlmmj/patches/patch-mk_common_mk
1.14+2-2mail/mlmmj/distinfo
1.2+0-0mail/mlmmj/patches/patch-Makefile_in
+45-235 files

FreeBSD/src 69ed3dfsys/contrib/device-tree/src/arm64/qcom x1-asus-vivobook-s15.dtsi sm8650-ayaneo-pocket-s2.dts

Import device-tree files from Linux 7.1
DeltaFile
+7,127-0sys/contrib/device-tree/src/arm64/qcom/glymur.dtsi
+5,407-3sys/contrib/device-tree/src/arm64/qcom/kaanapali.dtsi
+1,889-0sys/contrib/device-tree/src/arm64/qcom/eliza.dtsi
+1,590-0sys/contrib/device-tree/src/arm64/qcom/purwa-iot-evk.dts
+1,551-0sys/contrib/device-tree/src/arm64/qcom/sm8650-ayaneo-pocket-s2.dts
+1,356-0sys/contrib/device-tree/src/arm64/qcom/x1-asus-vivobook-s15.dtsi
+18,920-31,298 files not shown
+96,104-10,4891,304 files

FreeBSD/src 0cd4430sys/contrib/device-tree/src/arm64/mediatek mt8390-tungsten-smarc.dtsi, sys/contrib/device-tree/src/arm64/qcom qcs6490-thundercomm-rubikpi3.dts monaco.dtsi

Import device-tree files from Linux 7.0
DeltaFile
+2,633-0sys/contrib/device-tree/src/arm64/qcom/milos.dtsi
+1,606-0sys/contrib/device-tree/src/arm64/qcom/kaanapali.dtsi
+1,516-0sys/contrib/device-tree/src/arm64/qcom/x1e80100-medion-sprchrgd-14-s1.dts
+1,496-6sys/contrib/device-tree/src/arm64/qcom/monaco.dtsi
+1,489-0sys/contrib/device-tree/src/arm64/mediatek/mt8390-tungsten-smarc.dtsi
+1,410-0sys/contrib/device-tree/src/arm64/qcom/qcs6490-thundercomm-rubikpi3.dts
+10,150-61,196 files not shown
+71,422-4,6501,202 files

NetBSD/pkgsrc-wip 28bdf5ddnscontrol5 TODO PLIST

dnscontrol5: remove, testing completed
DeltaFile
+0-1,835dnscontrol5/distinfo
+0-612dnscontrol5/go-modules.mk
+0-28dnscontrol5/Makefile
+0-8dnscontrol5/DESCR
+0-2dnscontrol5/TODO
+0-2dnscontrol5/PLIST
+0-2,4876 files

OpenBSD/ports V9AfNPVnews/nzbget Makefile distinfo, news/nzbget/patches patch-cmake_par2-turbo_cmake patch-cmake_rapidyenc_cmake

   Update to nzbget-26.3

   Changes: https://github.com/nzbgetcom/nzbget/releases/tag/v26.3
VersionDeltaFile
1.24+6-6news/nzbget/distinfo
1.2+3-3news/nzbget/patches/patch-cmake_rapidyenc_cmake
1.41+3-3news/nzbget/Makefile
1.9+1-1news/nzbget/patches/patch-cmake_par2-turbo_cmake
+13-134 files

FreeBSD/src 96fb1ebsys/contrib/device-tree/src/arm/nvidia tegra124-xiaomi-mocha.dts, sys/contrib/device-tree/src/arm64/nvidia tegra264.dtsi

Import device-tree files from Linux 6.19
DeltaFile
+9,629-0sys/contrib/device-tree/src/arm64/qcom/hamoa.dtsi
+7,750-0sys/contrib/device-tree/src/arm64/qcom/kodiak.dtsi
+6,230-0sys/contrib/device-tree/src/arm64/qcom/monaco.dtsi
+4,792-0sys/contrib/device-tree/src/arm64/qcom/talos.dtsi
+3,190-0sys/contrib/device-tree/src/arm64/nvidia/tegra264.dtsi
+2,790-0sys/contrib/device-tree/src/arm/nvidia/tegra124-xiaomi-mocha.dts
+34,381-01,475 files not shown
+104,084-7,1561,481 files

FreeBSD/src 1537cf7sys/contrib/device-tree/src/arm64/apple t602x-pmgr.dtsi, sys/contrib/device-tree/src/arm64/qcom x1e80100-hp-omnibook-x14.dts x1p42100-lenovo-thinkbook-16.dts

Import device-tree files from Linux 6.18
DeltaFile
+8,604-0sys/contrib/device-tree/src/arm64/qcom/lemans.dtsi
+4,466-0sys/contrib/device-tree/src/arm64/qcom/sm6150.dtsi
+2,265-0sys/contrib/device-tree/src/arm64/apple/t602x-pmgr.dtsi
+1,666-0sys/contrib/device-tree/src/arm64/qcom/x1-dell-thena.dtsi
+1,625-0sys/contrib/device-tree/src/arm64/qcom/x1p42100-lenovo-thinkbook-16.dts
+4-1,545sys/contrib/device-tree/src/arm64/qcom/x1e80100-hp-omnibook-x14.dts
+18,630-1,5451,421 files not shown
+98,443-14,9421,427 files

LLVM/project 5277447clang/lib/Sema SemaDecl.cpp, clang/test/Modules pr218152.cppm

[C++20] [Modules] Handling merging predefined decls from std (#219151)

Close https://github.com/llvm/llvm-project/issues/218152

This was only reported in windows as MSSTL chose to implement std module
by wrapping the STL into extern "C++", which is different from libstdc++
and libc++.

But technically this is not specific to windows and we're able to
preoduce it in linux although we won't face it in linux.
DeltaFile
+17-0clang/test/Modules/pr218152.cppm
+1-1clang/lib/Sema/SemaDecl.cpp
+18-12 files

FreeNAS/freenas 11b997bsrc/middlewared/middlewared/api/v27_0_0 audit.py, src/middlewared/middlewared/etc_files/syslog-ng/conf.d tnaudit.conf.mako

fix it up
DeltaFile
+34-17src/middlewared/middlewared/plugins/audit/schema/s3.py
+1-7src/middlewared/middlewared/api/v27_0_0/audit.py
+0-3src/middlewared/middlewared/etc_files/syslog-ng/conf.d/tnaudit.conf.mako
+35-273 files