FreeBSD/src a371b00stand/common commands.c, stand/efi/loader main.c

Add boot_setenv

Move is_restricted_var() to libsa/environment.c so it can be leveraged
by boot_setenv called from subr_boot with not truted input.

Also, allow for local tuning via ENV_IS_RESTRICTED_ALLOWED_LIST and
ENV_IS_RESTRICTED_LIST

Sponsored by:   Hewlett Packard Enterprise Development LP.

Reviewed by:    kevans, imp
Differential Revision:  https://reviews.freebsd.org/D56287
DeltaFile
+76-0stand/libsa/environment.c
+3-57stand/common/commands.c
+5-0stand/efi/loader/main.c
+3-0stand/libsa/stand.h
+1-1sys/kern/subr_boot.c
+88-585 files

FreeNAS/freenas c8a7b08src/freenas/usr/bin install-dev-tools

Fix pykmip 0.10.0 requires enum-compat, which is not installed.

(cherry picked from commit 5c1ee5fde2264b477498ec0fdfaf6fd617ac5b5b)
DeltaFile
+2-0src/freenas/usr/bin/install-dev-tools
+2-01 files

LLVM/project cf784aclldb/bindings/interface SBFileSpecExtensions.i, lldb/test/API/python_api/filespec TestFileSpecAPI.py

[lldb] Support comparing FileSpec against Python strings (#190690)

We got a bug report where someone was iterating over the modules and
wanted to verify that the module name was empty and noticed it didn't
trigger.

```
for module in target.module_iter():
  if module.file is None or module.file == "":
    # Do something
```

My initial hypothesis was that we were somehow skipping modules, but
upon further investigation, it was the string comparison that was the
culprit. The reporter (reasonably) expected the `file` property to
return a string, but in reality it returns a SBFileSpec.

This could be avoided by explicitly comparing with an empty FileSpec,
but that seems needlessly tedious.

    [9 lines not shown]
DeltaFile
+35-0lldb/test/API/python_api/filespec/TestFileSpecAPI.py
+11-0lldb/bindings/interface/SBFileSpecExtensions.i
+46-02 files

FreeNAS/freenas 56b7304src/freenas/usr/bin install-dev-tools

NAS-140590 / 27.0.0-BETA.1 / Fix pykmip 0.10.0 requires enum-compat, which is not installed. (#18667)
DeltaFile
+2-0src/freenas/usr/bin/install-dev-tools
+2-01 files

DragonFlyBSD/src 1f4419elib/libz Makefile.stand

libz: Trim unneeded sources for libstand

The deflate.c and infback.c sources are not used by libstand.
DeltaFile
+1-2lib/libz/Makefile.stand
+1-21 files

FreeNAS/freenas 1f95d78src/middlewared/middlewared/alembic/versions/26.0 2026-04-04_12-00_remove_tnc_ip_fields.py, src/middlewared/middlewared/api/v26_0_0 tn_connect.py

Remove ips/interfaces fields from tnc configuration
DeltaFile
+283-754src/middlewared/middlewared/pytest/unit/plugins/test_truenas_connect.py
+38-115src/middlewared/middlewared/plugins/truenas_connect/update.py
+35-32src/middlewared/middlewared/plugins/truenas_connect/hostname.py
+3-26src/middlewared/middlewared/api/v26_0_0/tn_connect.py
+29-0src/middlewared/middlewared/alembic/versions/26.0/2026-04-04_12-00_remove_tnc_ip_fields.py
+4-8src/middlewared/middlewared/migration/0017_tnc_ha_defaults.py
+392-9352 files not shown
+396-9408 files

LLVM/project 894fb64llvm/lib/Target/Sparc SparcInstr64Bit.td Sparc.td, llvm/test/MC/Sparc sparc64-alu-instructions.s

[SPARC][IAS] Make 64-bit instructions available in 32-bit mode on V9 (#187534)

When the ISA level is V9, 64-bit instruction definitions should be available
even if currently it's not used by any patterns.

This should allow usage of 64-bit instructions, like `sllx`/`srlx`, in inline
assembly snippets in a source file otherwise intended to target V9 processors
running in 32-bit mode, as found in, for example, the Linux kernel.
DeltaFile
+32-22llvm/lib/Target/Sparc/SparcInstr64Bit.td
+32-0llvm/lib/Target/Sparc/Sparc.td
+4-1llvm/test/MC/Sparc/sparc64-alu-instructions.s
+68-233 files

LLVM/project 1604565lldb/source/Plugins/Process/AIX NativeProcessAIX.cpp, lldb/tools/lldb-server lldb-gdbserver.cpp

[lldb][AIX] Enable NativeProcessAIX Manager for lldb-server (#190173)

This PR is in reference to porting LLDB on AIX. Ref discusssions: [llvm
discourse](https://discourse.llvm.org/t/port-lldb-to-ibm-aix/80640) and
https://github.com/llvm/llvm-project/issues/101657.
Complete changes together in this draft:
- https://github.com/llvm/llvm-project/pull/102601

Description:
This change enables proper AIX processes integration with lldb-server,
ensuring correct loading and handling of AIX target architectures.
It also retrieves the target process architecture from the host and
configures NativeProcessAIX accordingly.
DeltaFile
+16-1lldb/source/Plugins/Process/AIX/NativeProcessAIX.cpp
+4-0lldb/tools/lldb-server/lldb-gdbserver.cpp
+20-12 files

DragonFlyBSD/src 353d275stand/lib gzipfs.c

stand: Fix zf_open() by providing 'zalloc' and 'zfree' hooks

When Z_SOLO is defined, zlib is built for a standalone environment,
where there is no host memory management, so the caller must provides
the 'zalloc' and 'zfree' hooks.  Otherwise, inflateInit2() would return
-2 (Z_STREAM_ERROR).

This fixes the failure of booting into rescue mode because loader failed
to decompress 'initrd.img.gz':
```
zf_open: inflateInit returned -2 : (null)
Unable to load /kernel/initrd.img
```
DeltaFile
+16-0stand/lib/gzipfs.c
+16-01 files

HardenedBSD/ports 5b7f868security/keepassxc Makefile

HBSD: Fix mismerge

I accidentally kept an unndeeded line.

Signed-off-by:  Shawn Webb <shawn.webb at hardenedbsd.org>
DeltaFile
+0-1security/keepassxc/Makefile
+0-11 files

OpenZFS/src 7b1682amodule/os/freebsd/zfs zfs_vnops_os.c, module/os/linux/zfs zpl_file.c

Add support for POSIX_FADV_DONTNEED

For now make it only evict the specified data from the dbuf cache.
Even though dbuf cache is small, this may still reduce eviction of
more useful data from there, and slightly accelerate ARC evictions
by making the blocks there evictable a bit sooner.

On FreeBSD this also adds support for POSIX_FADV_NOREUSE, since the
kernel translates it into POSIX_FADV_DONTNEED after every read/write.
This is not as efficient as it could be for ZFS, but that is the only
way FreeBSD kernel allows to handle POSIX_FADV_NOREUSE now.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Alexander Motin <alexander.motin at TrueNAS.com>
Closes #18399
DeltaFile
+63-0tests/zfs-tests/tests/functional/fadvise/fadvise_dontneed.ksh
+60-0module/zfs/dbuf.c
+29-0module/zfs/dmu.c
+8-2module/os/linux/zfs/zpl_file.c
+3-1module/os/freebsd/zfs/zfs_vnops_os.c
+1-1tests/runfiles/common.run
+164-43 files not shown
+169-49 files

FreeNAS/freenas 8c44b1bsrc/middlewared/middlewared/etc_files group.mako

Fix ordering of groups
DeltaFile
+1-1src/middlewared/middlewared/etc_files/group.mako
+1-11 files

FreeBSD/src b3bf841sys/fs/cd9660 cd9660_rrip.c

cd9660: Add length checks to Rock Ridge parser

* cd9660_rrip_slink() did not check that the lengths of individual
  entries do not exceed the length of the overall record.

* cd9660_rrip_altname() did not check that the length of the record
  was at least 5 before subtracting 5 from it.

Note that in both cases, a better solution would be to check the length
of the data before calling the handler, or immediately upon entry of
the handler, but this would require significant refactoring.

MFC after:      1 week
Reported by:    Calif.io in collaboration with Claude and Anthropic Research
Reported by:    Adam Crosser, Praetorian
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D56215

(cherry picked from commit d0afead876076f605c363f03d92304d1bd75be1c)
DeltaFile
+4-0sys/fs/cd9660/cd9660_rrip.c
+4-01 files

FreeBSD/src 8182437sys/fs/cd9660 cd9660_rrip.c

cd9660: Add length checks to Rock Ridge parser

* cd9660_rrip_slink() did not check that the lengths of individual
  entries do not exceed the length of the overall record.

* cd9660_rrip_altname() did not check that the length of the record
  was at least 5 before subtracting 5 from it.

Note that in both cases, a better solution would be to check the length
of the data before calling the handler, or immediately upon entry of
the handler, but this would require significant refactoring.

MFC after:      1 week
Reported by:    Calif.io in collaboration with Claude and Anthropic Research
Reported by:    Adam Crosser, Praetorian
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D56215

(cherry picked from commit d0afead876076f605c363f03d92304d1bd75be1c)
DeltaFile
+4-0sys/fs/cd9660/cd9660_rrip.c
+4-01 files

FreeBSD/src fb3538fetc/mtree BSD.usr.dist BSD.root.dist

pkgbase: Move all of Kyua into the kyua package

Some Kyua directories were improperly tagged as belonging to the tests
package.  Move them to the kyua package, which contains all of the
files found in these directories.

PR:             294129
MFC after:      1 week
Reviewed by:    ivy, emaste
Differential Revision:  https://reviews.freebsd.org/D56159

(cherry picked from commit 40e8afadc393a102f4199228ae2047d3e6c71251)
DeltaFile
+5-5etc/mtree/BSD.usr.dist
+1-1etc/mtree/BSD.root.dist
+6-62 files

FreeBSD/src 7c717c3sys/fs/cd9660 cd9660_rrip.c

cd9660: Add length checks to Rock Ridge parser

* cd9660_rrip_slink() did not check that the lengths of individual
  entries do not exceed the length of the overall record.

* cd9660_rrip_altname() did not check that the length of the record
  was at least 5 before subtracting 5 from it.

Note that in both cases, a better solution would be to check the length
of the data before calling the handler, or immediately upon entry of
the handler, but this would require significant refactoring.

MFC after:      1 week
Reported by:    Calif.io in collaboration with Claude and Anthropic Research
Reported by:    Adam Crosser, Praetorian
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D56215

(cherry picked from commit d0afead876076f605c363f03d92304d1bd75be1c)
DeltaFile
+4-0sys/fs/cd9660/cd9660_rrip.c
+4-01 files

FreeBSD/src 4f13c34etc/mtree BSD.usr.dist, libexec/atf/atf-sh Makefile

pkgbase: Move all of ATF into the atf package

Parts of ATF (including the licence and some of the documentation) were
for some reason part of the tests package instead of the atf package.
Moving them to where they logically belong poses no problem since tests
already depends on atf.

PR:             294129
MFC after:      1 week
Reviewed by:    ivy
Differential Revision:  https://reviews.freebsd.org/D56158

(cherry picked from commit 0a6dbf51d8ea112a1d164be260004ec795b4368d)
DeltaFile
+6-6share/doc/atf/Makefile
+5-5share/man/man4/Makefile
+5-5share/man/man1/Makefile
+2-2etc/mtree/BSD.usr.dist
+0-1libexec/atf/atf-sh/Makefile
+18-195 files

FreeBSD/src 8396b38sys/amd64/conf FIRECRACKER GENERIC, sys/arm64/conf std.arm64

kernel: Be clearer about what ZSTDIO is for

ZSTDIO is not just for core dumps, and it is now required by ZFS, so
move it (and GZIO, which is still just for dumps) to a new “Compression
support” section in GENERIC, and add them both to MINIMAL.

MFC after:      1 week
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D55940

(cherry picked from commit 092687a031064dc08ac198648c6393cc50b06cee)
DeltaFile
+4-2sys/amd64/conf/FIRECRACKER
+4-2sys/amd64/conf/GENERIC
+4-2sys/arm64/conf/std.arm64
+4-2sys/i386/conf/GENERIC
+4-2sys/powerpc/conf/GENERIC64
+4-2sys/powerpc/conf/GENERIC
+24-125 files not shown
+42-1811 files

FreeBSD/src b68e27dsys/fs/cd9660 cd9660_rrip.c

cd9660: Partial style sweep of Rock Ridge code

This mostly just fixes indentation and continuations and adds spaces
after commas and around binary operators and parentheses around return
values, but cd9660_rrip_extref() was so egregiously unreadable I
rewrote it.  Note that this was done manually, so I may have missed a
few spots, and I made no attempt to fix over-long lines.

MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55865

(cherry picked from commit e6a77f81d1eb345f6a8c827ecf555b88996c8763)
DeltaFile
+96-90sys/fs/cd9660/cd9660_rrip.c
+96-901 files

LLVM/project 20916c6llvm/lib/Target/AMDGPU AMDGPUAttributor.cpp

AMDGPU: Stop creating attributor attributes for declarations (#190800)
DeltaFile
+1-1llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
+1-11 files

LLVM/project 07a40b3llvm/lib/Frontend/OpenMP OMPIRBuilder.cpp, mlir/test/Target/LLVMIR openmp-taskloop-outer-bounds.mlir openmp-taskloop-collapse.mlir

[mlir][OpenMP] Fix taskloop outlined step handling (#190198)

The outlined taskloop preheader still used the original function's
casted step value when computing the canonical loop trip count. When
lb/ub/step were defined outside the taskloop body, the outlined function
ended up referring to an instruction from another function, which
crashed LLVM IR verification and finalization.

Reload the task step from the outlined task shareds, alongside lb and
ub, and use that value for the trip-count division. Update the MLIR
taskloop checks and add a regression for outer-scope variable bounds.

Fortran reproducer:
```
subroutine test(lb, ub, step)
  integer :: i, lb, ub, step

  !$omp taskloop
    do i=lb,ub,step

    [6 lines not shown]
DeltaFile
+41-0mlir/test/Target/LLVMIR/openmp-taskloop-outer-bounds.mlir
+18-6mlir/test/Target/LLVMIR/openmp-taskloop-collapse.mlir
+11-2llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+3-3mlir/test/Target/LLVMIR/openmp-taskloop-cancel.mlir
+2-2mlir/test/Target/LLVMIR/openmp-taskloop-cancellation-point.mlir
+1-2mlir/test/Target/LLVMIR/openmp-taskloop.mlir
+76-151 files not shown
+77-167 files

FreeNAS/freenas 80955aatests/api2 test_300_nfs.py test_200_ftp.py

rm bulk tests
DeltaFile
+0-2,090tests/api2/test_300_nfs.py
+0-1,411tests/api2/test_200_ftp.py
+0-701tests/api2/test_011_user.py
+0-565tests/api2/test_audit_websocket.py
+0-495tests/api2/test_440_snmp.py
+0-488tests/api2/test_420_smb.py
+0-5,750258 files not shown
+0-31,358264 files

FreeNAS/freenas 6381e53tests/api2 test_container.py

fix container api test
DeltaFile
+2-3tests/api2/test_container.py
+2-31 files

FreeBSD/src 53b4ae3sys/fs/nfs nfs_commonsubs.c nfsid.h, sys/nfs nfs_diskless.c

nfs_diskless: Fix handling of nfsuserd case for NFSv4

Commit 8b9775912cbc added support for an NFSv4 mounted
root file system, but only if the NFSv4 configuration
used id numbers in the strings.

This patch adds support for the case where the NFSv4
configuration uses name<-->id mappings via nfsuserd(8)
by priming the mapping cache with just enough entries
so that it works until the nfsuserd(8) is running.
They are listed in nfs_prime_userd[] in
sys/fs/nfs/nfs_commonsubs.c.

The entries in nfs_prime_userd[] are also wired into
the kernel's cache for name<-->id mappings when nfsuserd(8)
starts up.  This is necessary, since an upcall to the
nfsuserd(8) daemon for a mapping when looking up the
path to the passwd/group database files (/etc) will
hang the system, due to a vnode lock being held on

    [15 lines not shown]
DeltaFile
+66-10sys/fs/nfs/nfs_commonsubs.c
+44-0sys/nfs/nfs_diskless.c
+13-0sys/fs/nfs/nfsid.h
+1-0sys/fs/nfs/nfsrvstate.h
+124-104 files

LLVM/project 4a6adf4llvm/lib/Analysis InstructionSimplify.cpp, llvm/test/Transforms/CorrelatedValuePropagation pr187381.ll

[InstSimplify] Fix Compilation Hang in simplifyExtractValueInst (#190279)

Jump Threading can create self-referential insertvalues which are
allowed by the verifier in unreachable code. These self-referential
insertvalues cause the compilation to hang in simplifyExtractValueInst.
This PR adds a check to break out of the loop if it detects it is a
self-referential insertvalue and adds the reproducer's bitcode as a
test.

Fixes: https://github.com/llvm/llvm-project/issues/187381
DeltaFile
+58-0llvm/test/Transforms/CorrelatedValuePropagation/pr187381.ll
+5-0llvm/lib/Analysis/InstructionSimplify.cpp
+63-02 files

LLVM/project c5e0fd1.github/workflows libc-shared-tests.yml

[libc] Add gcc builds to libc-shared-tests precommit CIs. (#190801)
DeltaFile
+19-4.github/workflows/libc-shared-tests.yml
+19-41 files

LLVM/project 36ed3fallvm/unittests/DebugInfo/PDB PublicsStreamTest.cpp

[pdb] Store symbol names without null terminators in PublicsStreamTest (#190790)

to catch any bugs where code assumes these names are null terminated.

This would have caught (at least in ASan builds) #163755 and the bug
fixed in #190133.
DeltaFile
+12-0llvm/unittests/DebugInfo/PDB/PublicsStreamTest.cpp
+12-01 files

FreeBSD/src 8007a78sys/dev/sound/pcm channel.c

sound: Make chn_reset() control flow clearer

I think this is cleaner than playing around with return values.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D56264
DeltaFile
+18-15sys/dev/sound/pcm/channel.c
+18-151 files

FreeBSD/src 66a82f5sys/dev/sound/pcm channel.c

sound: De-macro array definitions in chn_calclatency()

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D56263
DeltaFile
+16-21sys/dev/sound/pcm/channel.c
+16-211 files

FreeBSD/src 8b18fc4sys/dev/sound/pcm channel.c

sound: Simplify parts of chn_notify()

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D56240
DeltaFile
+20-27sys/dev/sound/pcm/channel.c
+20-271 files