[flang][cuda] Unify locking regime for the allocation table (#221341)
The lock was acquired in insertAsyncDeviceAllocation but not in other
function. Move the lock outside of the function so the locking regime is
homogeneous.
[clang-format] Add FilesBeforeFolders option to SortIncludes (#208954)
Add a new `SortIncludes.FilesBeforeFolders` boolean option that, when
enabled, sorts includes so that files in a directory appear before
subdirectories at each level, recursively. Within a level, files and
subdirectories are each sorted alphabetically.
For example:
```
true: false (default):
#include "x.h" vs. #include "bar/alpha/e.h"
#include "y.h" #include "bar/alpha/f.h"
#include "z.h" #include "bar/beta/d.h"
#include "bar/g.h" #include "bar/g.h"
#include "bar/h.h" #include "bar/h.h"
#include "bar/i.h" #include "bar/i.h"
#include "bar/alpha/e.h" #include "foo/a.h"
#include "bar/alpha/f.h" #include "x.h"
[4 lines not shown]
[memprof] check path in opendir interceptor (#221309)
The sanitizer `opendir` interceptor unconditionally calls
`internal_strlen(path)` before forwarding to the real function.
Passing `nullptr` therefore causes the sanitizer runtime itself to
dereference address zero.
Add a unit test using a `LD_PRELOAD` shim to verify that a null path
reaches the real implementation without crashing the interceptor.
---------
Co-authored-by: Sharon Xu <sharonxu at fb.com>
NAS-143103 / 26.0.0-RC.1 / add s3 service (#19610)
Adds the s3 service with associated tests. All of the tests pass locally
and without issue but they are disabled until the s3 binary is included
in the TrueNAS image.
(cherry picked from commit c94c6e4d37260bdff8fa6d13dbe8b1caddb053e8)
Merge tag 'drm-fixes-2026-09-05' of https://gitlab.freedesktop.org/drm/kernel
Pull drm fixes from Dave Airlie:
"Lots of scattered fixes: nouveau has a bunch of display fixes for
blackwell GPUs that should mean we light up monitors properly and fix
some desktop rendering problems, amdgpu and intel display changes as
usual.
There also changes to the core pagemap, then the usual amouny of AI
inspired validation fixes.
core:
- Fix drm_crtc_commit leak when PAGE_FLIP_EVENT is used
dma-buf:
- Publish the dma-buf only after copy_to_user succeeds
- fix some kernel-doc warnings
atomic-state-helpers:
[106 lines not shown]
Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
Pull arm64 fixes from Will Deacon:
"Nothing Earth-shattering, but worthwhile fixes nonetheless:
- Disable interrupts during page-table walk in show_pte()
- Fix kexec_file_load() with 52-bit capable kernels on machines
without 52-bit addressing
- Fix MIDR matching in CPU errata handling for KVM guests
- Avoid reading MTE-specific ID registers when MTE support is
disabled"
* tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
arm64: Don't read GMID_EL1 when MTE is disabled
arm64: errata: pass REVIDR when matching target implementation CPUs
arm64: trans_pgd: clone only the linear map that exists at runtime
arm64: mm: Fix the lockless page-table walk in show_pte()
[flang][cuda] Make sure that CUDA is enabled when adding PINNED implicit attribute (#221334)
PINNED was not guarded like MANAGED. Just make a general guard for both.
Merge tag 'ceph-for-7.3-rc2' of https://github.com/ceph/ceph-client
Pull ceph fixes from Ilya Dryomov:
"A small fixup for the new nearfull_sync mount option, a potential
use-after-free fix (marked for stable) and a patch that eliminates
the last use of PageWriteback macro in the tree"
* tag 'ceph-for-7.3-rc2' of https://github.com/ceph/ceph-client:
ceph: apply nearfull_sync option on remount
libceph: remove pinning assertion in ceph_msg_data_iter_next()
ceph: lock mutex in ceph_mds_check_access()
[compiler-rt][ubsan] Fix trailing whitespace in SUMMARY line when function is unknown (#221335)
Fixes #30851. ReportErrorSummary always rendered "%L %F", but %F expands
to nothing when the function name is unknown, leaving a dangling space
at the end of the line. Instead, oly add the function name if it is
known.
warzone2100: mark as not-for-bulk-build on NetBSD
../3rdparty/basis_universal_host_tool/basis_install/bin/basisu -ktx2 -uastc -uastc_level 3 -uastc_rdo_m -mipmap -resample 256 256
tends to hang a lot
NAS-143161 / 26.0.0 / Run the S3 service suites unconditionally (by yocalebo) (#19630)
The daemon is in the TrueNAS image now, so the two suites that start it
no longer wait for TRUENAS_S3_DAEMON to say a box has one. The access
key suite never needed it.
Original PR: https://github.com/truenas/middleware/pull/19629
Co-authored-by: caleb <yocalebo at gmail.com>
ARM: Form fused VFMA/VFMS from the contract flag
Select the fused VFMA/VFMS/VFNMA/VFNMS from the per-node contract fast-math
flag instead of the global AllowFPOpFusion == Fast. This is one of the
few remaining consumers of the TargetOption field.
Co-authored-by: Claude (Claude-Opus-4.8) <noreply at anthropic.com>
zfs-tests: add zhack mos leak/reclaim coverage
- Add a new cli_root zhack test for the mos leak/scan/reclaim flow.
- Verify dry-run leak/reclaim do not change reclaimable leak counts.
- Verify write-mode leak adds the expected reclaimable clone and
space map objects, and write-mode reclaim removes them.
- Verify reclaim idempotency by running write reclaim twice and
asserting the second pass reports "nothing to reclaim".
- Export/import the pool around write-mode operations to match the
zhack mos command import requirements.
- Register the new test in tests/zfs-tests/tests/Makefile.am and
tests/runfiles/common.run.
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Martin Minkus <martin.minkus at gmail.com>
Closes #18907
zhack: add mos leak subcommand for local repro
- Add `zhack mos leak` to create synthetic leaked MOS objects for
testing scan/reclaim behavior on disposable pools, mirroring the
existing `zhack metaslab leak`.
- Support `-c` and `-s` counts for leaked DSL clone maps and
leaked SPA space maps, with dry-run default and `-w` apply.
- Print the created object IDs so test scripts can assert expected
candidates and post-reclaim cleanup.
- Document the new subcommand in zhack.1.
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Martin Minkus <martin.minkus at gmail.com>
Closes #18907
zhack: add mos scan/reclaim for leaked MOS objects
- Add `zhack mos scan` to enumerate reclaim candidates for
unreferenced empty DSL clone maps and zeroed space maps.
- Add `zhack mos reclaim` with dry-run by default; `-w` applies
frees in sync context using `zap_destroy` and `space_map_free_obj`.
- Enable readable spacemaps during readonly analysis to avoid
false positives when counting referenced metaslab space maps.
- Document the new subcommands in zhack.1.
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Martin Minkus <martin.minkus at gmail.com>
Closes #18907
[SLP]Fix narrowing of icmp with mismatched operand extensions
Keep the narrow compare only if the predicate matches the operand
signedness; otherwise extend the operands back to the original
compared type.
Fixes #221240
Reviewers:
Pull Request: https://github.com/llvm/llvm-project/pull/221336
[VPlan] Extend induction cost test coverage (NFC). (#221323)
Widen induction-cost.ll's filter to cover all induction recipes and the
canonical IV increment, run it for two VFs, and add the FP and pointer
induction shapes it was missing entirely: scalarized
FAdd/FSub/invariant-step inductions, a dead induction in the vector
loop, one with both wide and scalar users, one inside a replicate
region, a fully unrolled one, and FP-plus-pointer and pointer-only
loops.
[DAG] SplitVecRes_VECTOR_COMPRESS - rename MaskVT -> LoMaskVT. NFC. (#221285)
MaskVT refers to LoMask's type not the original Mask type.
Noticed in #215772 - avoids some potential Wshadow confusion.
Run the S3 service suites unconditionally
The daemon is in the TrueNAS image now, so the two suites that start
it no longer wait for TRUENAS_S3_DAEMON to say a box has one. The
access key suite never needed it.
(cherry picked from commit b600cb68314579ad97c1f096c1ba0d4ad5462ed0)
NAS-143161 / 26.0.0-RC.1 / Run the S3 service suites unconditionally (#19629)
The daemon is in the TrueNAS image now, so the two suites that start it
no longer wait for TRUENAS_S3_DAEMON to say a box has one. The access
key suite never needed it.