FreeBSD/src 0eb2c9dsys/compat/freebsd32 freebsd32.h

freebsd32: Fix includes

The previous commit added <sys/cdefs.h>, which isn't actually needed.
Conversely, <sys/event.h> is needed (and has been for a long time) but
was not included.

MFC after:      1 week
Fixes:          a11d132f6c62 ("devstat: Provide 32-bit compatibility")
Reported by:    gallatin@
DeltaFile
+1-1sys/compat/freebsd32/freebsd32.h
+1-11 files

FreeNAS/freenas 4790b05src/middlewared/middlewared/utils security_descriptor.py

Fix
DeltaFile
+3-0src/middlewared/middlewared/utils/security_descriptor.py
+3-01 files

LLVM/project 21dad8ellvm/lib/Target/AMDGPU SIInstrInfo.cpp, llvm/test/CodeGen/MIR/AMDGPU s_wait_alu_missing_operand_crash.mir

[AMDGPU] Improve crash message when S_WAITCNT_DEPCTR is missing its operand (#177065)

The code in the test is causing a crash in `SIInstrInfo.cpp`
`fixImplicitOperands()` in `MI.implicit_operands()`:
```
  for (auto &Op : MI.implicit_operands()) {
```
MachineInstr.h:
```
  mop_range implicit_operands() {
=>  return operands_impl().drop_front(getNumExplicitOperands());
  }
```
We are trying to drop 1 operand from the operands of MI which are 0.

By early returning we are no longer crashing at that point and we are
getting a more meaningful error message:

```

    [8 lines not shown]
DeltaFile
+9-0llvm/test/CodeGen/MIR/AMDGPU/s_wait_alu_missing_operand_crash.mir
+3-0llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
+12-02 files

NetBSD/pkgsrc m7vkaoGgames/rocksndiamonds distinfo Makefile, games/rocksndiamonds/patches patch-src_libgame_zip_ioapi.c

   rocksndiamonds: updated to 4.4.1.3

   4.4.1.3

   A new patch release is required to fix a terrible bug in the Windows version that prevents the program from saving important game data, which affects all new installations of the game on Windows.

   4.4.1.2

   This patch release fixes some more nasty bugs:

   fixed snapping when using zigzag diagonal movement with BD game engine
   added expanding tabs to spaces when drawing text buffers to the screen
   added ignoring carriage return characters when pasting from clipboard
   fixed configurable menu texts when using “override level graphics”
VersionDeltaFile
1.1+15-0games/rocksndiamonds/patches/patch-src_libgame_zip_ioapi.c
1.48+5-4games/rocksndiamonds/distinfo
1.82+2-2games/rocksndiamonds/Makefile
+22-63 files

LLVM/project 38b7176llvm/lib/Target/AMDGPU R600ISelLowering.cpp, llvm/test/CodeGen/AMDGPU kernel-args.ll

Revert "R600: Remove softPromoteHalfType (#177420)"

This reverts commit 99fab0106b428676c37154821d955797fe1786a3.

llc was crashing in kernel-args.ll after this patch:
```
.---command stderr------------
| LLVM ERROR: Cannot select: t3: f32,ch = load<(non-temporal dereferenceable invariant load (s16), align 4, addrspace 7), sext from f16> t0, Constant:i32<36>, undef:i32
| In function: f16_arg
| PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
| Stack dump:
| 0.    Program arguments: /b/ml-opt-devrel-x86-64-b1/build/bin/llc -mtriple=r600 -mcpu=redwood
| 1.    Running pass 'Function Pass Manager' on module '<stdin>'.
| 2.    Running pass 'Unnamed pass: implement Pass::getPassName()' on function '@f16_arg'
|  #0 0x0000561402607438 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/b/ml-opt-devrel-x86-64-b1/build/bin/llc+0x81a7438)
|  #1 0x0000561402604b75 llvm::sys::RunSignalHandlers() (/b/ml-opt-devrel-x86-64-b1/build/bin/llc+0x81a4b75)
|  #2 0x00005614026081b1 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
|  #3 0x00007f55eb45a050 (/lib/x86_64-linux-gnu/libc.so.6+0x3c050)
|  #4 0x00007f55eb4a8eec (/lib/x86_64-linux-gnu/libc.so.6+0x8aeec)

    [21 lines not shown]
DeltaFile
+0-164llvm/test/CodeGen/AMDGPU/kernel-args.ll
+0-3llvm/lib/Target/AMDGPU/R600ISelLowering.cpp
+0-1672 files

FreeBSD/src 972c488sys/riscv/include cpufunc.h, sys/riscv/vmm vmm_riscv.c

riscv: Add macro for hfence.gvma instruction

Add an inline function hfence_gvma() for hfence.gvma instruction.

Signed-off-by:  Doongar Singh <doonbsd at gmail.com>
Reviewed by:    mhorne, markj
Differential Revision:  https://reviews.freebsd.org/D54857
DeltaFile
+7-0sys/riscv/include/cpufunc.h
+1-1sys/riscv/vmm/vmm_riscv.c
+8-12 files

pfSense/pfsense 2d485cdsrc/usr/local/www services_dyndns_edit.php

DDNS: allow wildcard for deSEC.io

Co-authored-by: Leif <33157431+lswaage at users.noreply.github.com>

Service API docs mention wildcards are allowed.
DeltaFile
+2-3src/usr/local/www/services_dyndns_edit.php
+2-31 files

LLVM/project 2c9efd0clang/lib/Driver/ToolChains CommonArgs.cpp, clang/test/Driver opencl-libclc.cl

Revert "[libclc] Rework libclc naming convention to use the triple (#177465)"

This reverts commit c5cb48c39701086393d1177929a328868849fc72.

This was causing CMake configuration failures for the postsubmit
buildbot checking the premerge configuration:
```
2026-01-26T13:46:47.849060051Z CMake Error at /home/gha/llvm-project/libclc/cmake/modules/AddLibclc.cmake:407 (add_custom_command):
2026-01-26T13:46:47.849086795Z   Attempt to add a custom rule to output
2026-01-26T13:46:47.849088339Z
2026-01-26T13:46:47.849090228Z     /home/gha/llvm-project/build/lib/clang/23/lib/r600--/libclc.bc.rule
2026-01-26T13:46:47.849101045Z
2026-01-26T13:46:47.849103110Z   which already has a custom rule.
2026-01-26T13:46:47.849104522Z Call Stack (most recent call first):
2026-01-26T13:46:47.849106013Z   /home/gha/llvm-project/libclc/CMakeLists.txt:460 (add_libclc_builtin_set)
2026-01-26T13:46:47.849107043Z
2026-01-26T13:46:47.849108005Z
2026-01-26T13:46:47.851329201Z CMake Error at /home/gha/llvm-project/libclc/cmake/modules/AddLibclc.cmake:407 (add_custom_command):
2026-01-26T13:46:47.851341592Z   Attempt to add a custom rule to output

    [22 lines not shown]
DeltaFile
+45-37libclc/cmake/modules/AddLibclc.cmake
+23-40clang/lib/Driver/ToolChains/CommonArgs.cpp
+0-12clang/test/Driver/opencl-libclc.cl
+3-2libclc/CMakeLists.txt
+0-0clang/test/Driver/Inputs/resource_dir_with_per_target_subdir/lib/amdgcn-amd-amdhsa/gfx90a/libclc.bc
+0-0clang/test/Driver/Inputs/resource_dir_with_per_target_subdir/lib/amdgcn-amd-amdhsa/libclc.bc
+71-916 files

FreeNAS/freenas 29c17cesrc/middlewared/middlewared/plugins account.py, tests/api2 test_account.py

NAS-139445 / 26.04 / Add validation checks for adding the root user to groups (by mgrimesix) (#18098)

Automatic cherry-pick failed. Please resolve conflicts by running:

    git reset --hard HEAD~1
    git cherry-pick -x 504ac18aded633d37d28c92e43341f4d4d8908ec

If the original PR was merged via a squash, you can just cherry-pick the
squashed commit:

    git reset --hard HEAD~1
    git cherry-pick -x e40fc459b6894926d2cd1d9bc058d453d2482e77

The root user can be a member of 'builtin_administrators' only and
cannot be added to other groups.
We are missing validation checks for this in the group management
interface.

This PR adds the validation checks to the group management interface to

    [6 lines not shown]
DeltaFile
+25-11src/middlewared/middlewared/plugins/account.py
+15-0tests/api2/test_account.py
+40-112 files

FreeBSD/src f34fe1alib/libiconv_modules/mapper_std citrus_mapper_std.c

libiconv: Fix typo in comment

(cherry picked from commit dec3ea45b65442b4f3cafcd8a672f1e13b69a066)
(cherry picked from commit 14dc55c7a03d4d3b3fae9a8ed38649cb2d3fbc52)
DeltaFile
+1-1lib/libiconv_modules/mapper_std/citrus_mapper_std.c
+1-11 files

OPNSense/core 0338aefsrc/etc/inc interfaces.inc, src/opnsense/scripts/interfaces rtsold_script.sh

interfaces: multi-dhcp6c support and custom PD association #7647

This splits off rtsold and dhcp6c into separate processes
which frees us from the restrictions of faked iterative IDs
for PD associations.  For NA we simply default to 0 now.

I'm not entirely sure why we settled for a single deamon of
dhcp6c back in the day, but there are certianly downsides to
it and I don't see something that wasn't fixed in the meantime
that makes this not work.

Add two debugging files which still need to be steered via the
debug setting.
DeltaFile
+26-58src/etc/inc/interfaces.inc
+58-4src/www/interfaces.php
+6-6src/opnsense/scripts/interfaces/rtsold_script.sh
+90-683 files

OPNSense/core 6d73fc8. plist, src/etc/inc interfaces.inc

interfaces: generalise the dhcp6c_script using the new IFNAME variable #7647

The file was conceptually created in d36f0f4f62557 and before was a single
command line script... so add appropriate copyrights from that time onward.

Many thanks to Martin for pinoeering this back in the day!

interfaces: show the prefix shift in the log message

Move the other force message to the respective if which is more or
less what we had before.  This is important for making clear what
the impact of #9521 to renewals actually is.

interfaces: missed script path via @cm-rudolph
DeltaFile
+90-0src/opnsense/scripts/interfaces/dhcp6c_script.sh
+3-72src/etc/inc/interfaces.inc
+1-0plist
+94-723 files

FreeBSD/doc 92dc5d1documentation/content/en/books/porters-handbook/versions _index.adoc

porters-hadbook: describe KPI change in ip6 ND context

Describe KPI change in ip6 ND context which missed __FreeBSD_version bump.

Use nearest next as time window is narrow and potential consumers ar rare.

Reviewed by:    glebius
DeltaFile
+4-0documentation/content/en/books/porters-handbook/versions/_index.adoc
+4-01 files

OPNSense/core c60d103src/opnsense/mvc/app/controllers/OPNsense/Kea/Api LeasesController.php, src/opnsense/mvc/app/views/OPNsense/Kea leases6.volt dhcpv6.volt

kea: Evaluate hwaddr in the lease6 view as well
DeltaFile
+14-6src/opnsense/mvc/app/controllers/OPNsense/Kea/Api/LeasesController.php
+1-0src/opnsense/mvc/app/views/OPNsense/Kea/leases6.volt
+1-0src/opnsense/mvc/app/views/OPNsense/Kea/dhcpv6.volt
+16-63 files

OPNSense/core 1c4a3e4src/www firewall_rules_edit.php firewall_rules.php

firewall: make previously associated DNAT rules editable

(cherry picked from commit 6c10a1cbe7721e7e7fbafbc618636983eb19f941)
(cherry picked from commit 8493f8d656f2b6f689727ac04a7e0abcb99bc9df)
DeltaFile
+28-50src/www/firewall_rules_edit.php
+0-22src/www/firewall_rules.php
+28-722 files

OPNSense/core 4f4ba9dsrc/etc/inc interfaces.inc

interfaces: if no track/idassoc is used still emit a PD request

Appanrently it has always caused dhcp6c process to loop which
we can fix later.

PR: https://forum.opnsense.org/index.php?topic=50505.0
(cherry picked from commit 9a80c6ddb29862e618a094f861b75625a8f15d48)
DeltaFile
+5-0src/etc/inc/interfaces.inc
+5-01 files

LLVM/project a150e80clang/lib/AST/ByteCode InterpBuiltin.cpp, clang/test/AST/ByteCode builtin-functions.cpp

[clang][bytecode] Avoid crash in constexpr wcslen on invalid argument… (#177891)

### What the problem ?

Fix a clang bytecode constant interpreter crash when evaluating
wcslen("x") in a constant-expression path.

Previously we asserted on wchar element size mismatch and crashed in
assertion builds.

### Why it happened

The expression is already ill-typed (char[2] → const wchar_t*), clang
correctly emits a diagnostic, but later ICE checking tries to fold the
expression and reaches the builtin handler. That path must not crash.

### whats the Fix

Replace the assert(ElemSize == wchar_t size) with a graceful failure

    [26 lines not shown]
DeltaFile
+12-0clang/test/AST/ByteCode/builtin-functions.cpp
+4-2clang/lib/AST/ByteCode/InterpBuiltin.cpp
+16-22 files

LLVM/project b0ce26cclang-tools-extra/clang-tidy add_new_check.py rename_check.py, clang-tools-extra/clang-tidy/tool run-clang-tidy.py clang-tidy-diff.py

[clang-tidy][NFC] Run ruff over python scripts (#176927)

Co-authored-by: EugeneZelenko <eugene.zelenko at gmail.com>
DeltaFile
+39-56clang-tools-extra/clang-tidy/add_new_check.py
+4-4clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
+2-3clang-tools-extra/clang-tidy/rename_check.py
+1-1clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py
+46-644 files

OPNSense/plugins b681e4dnet/isc-dhcp Makefile pkg-descr, net/isc-dhcp/src/etc/inc/plugins.inc.d dhcpd.inc

isc-dhcp: check if device we try to configure exists in the system

PR: https://github.com/opnsense/plugins/issues/5169
(cherry picked from commit 4020561368ab697fbef2c5d6a3585b7647298fd3)
DeltaFile
+4-0net/isc-dhcp/src/etc/inc/plugins.inc.d/dhcpd.inc
+1-1net/isc-dhcp/Makefile
+1-0net/isc-dhcp/pkg-descr
+6-13 files

OPNSense/plugins 4020561net/isc-dhcp Makefile pkg-descr, net/isc-dhcp/src/etc/inc/plugins.inc.d dhcpd.inc

isc-dhcp: check if device we try to configure exists in the system

PR: https://github.com/opnsense/plugins/issues/5169
DeltaFile
+4-0net/isc-dhcp/src/etc/inc/plugins.inc.d/dhcpd.inc
+1-1net/isc-dhcp/Makefile
+1-0net/isc-dhcp/pkg-descr
+6-13 files

LLVM/project d7666c6llvm/lib/Target/AMDGPU SILoadStoreOptimizer.cpp

[AMDGPU][SILoadStoreOptimizer] Fix unused variable warning (#177969)

Fix unused variable warning that fires in SILoadStoreOptimizer.cpp when
assertions are disabled. On review, we can just delete the whole assert,
since it isn't querying the def anymore. Fixes #176816
(13b20e7aeab83e82368be9ffd22ce02cb9b831ae).
DeltaFile
+0-2llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
+0-21 files

LLVM/project 3dfe7bcmlir/include/mlir/IR Diagnostics.h, mlir/lib/Dialect/LLVMIR/IR NVVMDialect.cpp

[MLIR] Allowed streaming enums into an mlir::Diagnostic (#177959)

Prior to this change users had to manually call `stringifyEnum` or
`mlir::debugString` to bea ble to stream an enum value into a
diagnostic, e.g.

    op.emiError("Something went wrong: ")
        << mlir::some_dialect::stringifyEnum(some_enum);

The added overload allows streaming the value directly

    op.emitError("Something went wrong: ") << some_enum;
DeltaFile
+25-35mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
+11-0mlir/include/mlir/IR/Diagnostics.h
+36-352 files

LLVM/project 090a08dllvm/lib/Transforms/Vectorize VectorCombine.cpp, llvm/test/Transforms/VectorCombine/AArch64 fold-equivalent-reduction-cmp.ll icmp-vector-reduce.ll

[VectorCombine] Switch vector or<->umax/and<->umin in comparisons (#177159)

Resolves #174500

In the transformation, we use either use one of these equivalences
directly or one of the trivial inferences of their combinations.

`or<->umax`

1. `or(X) == 0 <=> umax(X) == 0`
2. `or(X) == 1 <=> umax(X) == 1`
3. `sign(or(X)) == sign(umax(X))`

`and<->umin`

1. `and(X) == -1 <=> umin(X) == -1`
2. `and(X) == -2 <=> umin(X) == -2`
3. `sign(and(X)) == sign(umin(X))`


    [25 lines not shown]
DeltaFile
+342-0llvm/test/Transforms/VectorCombine/AArch64/fold-equivalent-reduction-cmp.ll
+342-0llvm/test/Transforms/VectorCombine/X86/fold-equivalent-reduction-cmp.ll
+137-0llvm/lib/Transforms/Vectorize/VectorCombine.cpp
+6-6llvm/test/Transforms/VectorCombine/AArch64/icmp-vector-reduce.ll
+5-5llvm/test/Transforms/VectorCombine/X86/icmp-vector-reduce.ll
+832-115 files

FreeBSD/src 518c01bsys/dev/sym sym_hipd.c

sym(4): Provide a DEVICE_DETACH(9) method

This also fixes sym_cam_free() to tear things down correctly, i. e. in
opposite order of setup, as well as sym_cam_attach() to not free devq
and SIM twice in the failure case.
DeltaFile
+19-15sys/dev/sym/sym_hipd.c
+19-151 files

FreeBSD/src e769bc7sys/dev/sym sym_hipd.c

sym(4): Employ memory barriers also on x86

In an MP world, it doesn't hold that x86 requires no memory barriers.

This change should also fix panics due to out-of-sync data seen with
FreeBSD VMs on top of OpenStack and HBAs of type lsiLogic. [1]

While at it:
- Improve the granularity somewhat by distinguishing between read and
  write memory barriers as well as refer to existing *mb(9) functions
  instead of duplicating these [2], unless IO barriers are also used.
- Nuke the unused SYM_DRIVER_NAME macro.

PR:             270816 [1]
Obtained from:  BSD-licensed Linux sym53c8xx driver [2]
MFC after:      1 week
DeltaFile
+14-26sys/dev/sym/sym_hipd.c
+14-261 files

FreeBSD/src c8e9479sys/dev/sym sym_hipd.c

sym(4): Use memcpy(9) instead of bcopy(9)

The overlap handling of bcopy(9) is not required in these cases.

Obtained from:  BSD-licensed Linux sym53c8xx driver
DeltaFile
+5-5sys/dev/sym/sym_hipd.c
+5-51 files

FreeBSD/src 48eee74sys/dev/sym sym_hipd.c

sym(4): Consistently use device_printf(9) where applicable
DeltaFile
+114-108sys/dev/sym/sym_hipd.c
+114-1081 files

FreeBSD/src 14dc55clib/libiconv_modules/mapper_std citrus_mapper_std.c

libiconv: Fix typo in comment

(cherry picked from commit dec3ea45b65442b4f3cafcd8a672f1e13b69a066)
DeltaFile
+1-1lib/libiconv_modules/mapper_std/citrus_mapper_std.c
+1-11 files

LLVM/project a70a1f3utils/bazel/llvm-project-overlay/mlir/python BUILD.bazel

[bazel] Fix mlir python build (#177980)

Fixes #169045 (2cc4d45715cdd5eb23df51a48d6fd95c37a2276a)
DeltaFile
+1-0utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel
+1-01 files

FreeBSD/src f0fbaa7sys/sys namei.h

namei: clear internal flags in NDREINIT()

same as it is done for NDRESTART()

Fixes:  e05e33041c252
Reported and tested by: pho
Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 58b2bd33aff71c0268d99d63e9c83f6544d3beb3)
DeltaFile
+1-0sys/sys/namei.h
+1-01 files