[clang-tidy] Emit warning when user is using deprecated `zircon` checks (#189522)
Add `utils::diagDeprecatedCheckAlias` so checks can detect whether they
are running under a deprecated name without enabling the new names.
This commit also comes with an example with `zircon` module. It is
deprecated in 22 release but we didn't provide a note for it before.
NAS-140647 / 25.10.3 / Use domain sid from secrets.tdb for groupmap construction (by anodos325) (#18722)
This commit transitions from using runtime detection of domain SID via
winbindd requests to reading the stored domain SID from the secrets.tdb
file. During reboot and failover process there was a window in which an
unhealthy AD join could cause a failure to resolve the domain admins SID
and subsequently trigger it to be removed from the group_mapping.tdb.
This change robustizes the groupmap setup by not requiring a healthy AD
state.
Original PR: https://github.com/truenas/middleware/pull/18719
Co-authored-by: Andrew Walker <andrew.walker at truenas.com>
NAS-140634 / 25.10.3 / fix R50 drive identify light (by yocalebo) (#18729)
## Summary
On R50BM (and R50/R50B), the front 48 drive bays are split across two
SAS expanders. The middleware merges both into a single enclosure, but
`set_slot_status` used the top-level enclosure PCI path for all 48
slots. Slots 25-48 live on a different expander, so identifying any of
those slots lit up the wrong drive (slot N-24 on the first expander).
The fix uses the per-slot `original.enclosure_bsg` to resolve the
correct sysfs path for R50-series, matching the existing V-series
approach.
Original PR: https://github.com/truenas/middleware/pull/18727
Co-authored-by: caleb <yocalebo at gmail.com>
NAS-140634 / 26.0.0-BETA.2 / fix R50 drive identify light (by yocalebo) (#18730)
## Summary
On R50BM (and R50/R50B), the front 48 drive bays are split across two
SAS expanders. The middleware merges both into a single enclosure, but
`set_slot_status` used the top-level enclosure PCI path for all 48
slots. Slots 25-48 live on a different expander, so identifying any of
those slots lit up the wrong drive (slot N-24 on the first expander).
The fix uses the per-slot `original.enclosure_bsg` to resolve the
correct sysfs path for R50-series, matching the existing V-series
approach.
Original PR: https://github.com/truenas/middleware/pull/18727
Co-authored-by: caleb <yocalebo at gmail.com>
compat/linux: Add Linux i2c-dev ioctl compatibility support
Implement Linux I2C ioctl translation in the Linux compatibility layer
and wire iicbus cdevs up for in-kernel rdwr handling.
Support common i2c-dev requests including SLAVE, FUNCS, and RDWR,
while rejecting unsupported 10-bit and SMBus operations.
Signed-off-by: YAO, Xin <mr.yaoxin at outlook.com>
Reviewed by: imp, adrian, pouria
Differential Revision: https://reviews.freebsd.org/D56251
NAS-140634 / 27.0.0-BETA.1 / fix R50 drive identify light (#18727)
## Summary
On R50BM (and R50/R50B), the front 48 drive bays are split across two
SAS expanders. The middleware merges both into a single enclosure, but
`set_slot_status` used the top-level enclosure PCI path for all 48
slots. Slots 25-48 live on a different expander, so identifying any of
those slots lit up the wrong drive (slot N-24 on the first expander).
The fix uses the per-slot `original.enclosure_bsg` to resolve the
correct sysfs path for R50-series, matching the existing V-series
approach.
[Flang] External subprograms should be allowed as proc_target in procedure pointers. (#183268)
Fixes https://github.com/llvm/llvm-project/issues/177505.
This patch updates an existing external procedure symbol with the
correct function signature and argument attributes, so it can be safely
used as a proc_target without signature conflicts.
---------
Co-authored-by: jeanPerier <jean.perier.polytechnique at gmail.com>
NAS-140647 / 25.10.3 / Use domain sid from secrets.tdb for groupmap construction (by anodos325) (#18722)
This commit transitions from using runtime detection of domain SID via
winbindd requests to reading the stored domain SID from the secrets.tdb
file. During reboot and failover process there was a window in which an
unhealthy AD join could cause a failure to resolve the domain admins SID
and subsequently trigger it to be removed from the group_mapping.tdb.
This change robustizes the groupmap setup by not requiring a healthy AD
state.
Original PR: https://github.com/truenas/middleware/pull/18719
Co-authored-by: Andrew Walker <andrew.walker at truenas.com>
[AArch64] Mark X16 as clobbered in PAUTH_EPILOGUE for hint-based PAuthLR (#175991)
When users request branch protection with PAuthLR on targets that do not
support the PAuthLR instructions, the PAUTH_EPILOGUE falls back to using
hint-space instructions. This fallback sequence uses X16 as a temporary
register, but X16 was not listed in the clobber set.
Because Speculative Load Hardening uses X16, this omission made SLH
incompatible with this PAUTH_EPILOGUE path.
Mark X16 as clobbered so the compiler does not assume X16 is preserved
across the epilogue, restoring compatibility with Speculative Load
Hardening and avoiding incorrect register liveness assumptions. The
clobber is added in C++ rather than TableGen, as X16 is only clobbered
when PAuthLR is requested as a branch protection variation and should
not be treated as clobbered unconditionally.
[NFC][SPIR-V] Fix logical-struct-access.ll to pass spirv-val validation (#191792)
OpReturnValue with a pointer type is invalid in SPIR-V Logical
addressing model (Vulkan). The functions in the test return
OpAccessChain results, which are pointers
related to https://github.com/llvm/llvm-project/issues/190736
[libc] Add Annex K strnlen_s function (#186112)
This patch adds the `strnlen_s` function from Annex K.
In order to reduce duplication between `strnlen` and `strnlen_s`, the
common logic has been extracted to a new internal function which both
now call.
In addition to the function definition, the patch adds a unit test and a
fuzzing test.
*/*: Chase update of textproc/py-rich to 15.0.0
No actual change to the package API -- the major version bump is
because of dropping support for python-3.8, which is academic for the
ports, where that version was dropped long ago.
[TySan][Sanitizer Common] Enable TySan testing in the sanitizer commo… (#191385)
…n test suite
Secondary pr to enable tests after
https://github.com/llvm/llvm-project/pull/183310 enables the features
NAS-140646 / 27.0.0-BETA.1 / Use `sgdisk_explicit_alignment` even for automatically-calculated data partition size (by themylogin) (#18726)
Original PR: https://github.com/truenas/middleware/pull/18724
Co-authored-by: themylogin <themylogin at gmail.com>
NAS-140646 / 26.0.0-BETA.2 / Use `sgdisk_explicit_alignment` even for automatically-calculated data partition size (by themylogin) (#18725)
Original PR: https://github.com/truenas/middleware/pull/18724
Co-authored-by: themylogin <themylogin at gmail.com>