[AArch64] Remove unused private member variables in MachineSMEABI (NFC) (#243323)
MachineSMEABI::OptLevel: The last use was removed on February 3, 2026 in
commit 79eb804954bee06a62a3d31c697652f6dce982b1. This patch also
removes the now-unused OptLevel parameter from the MachineSMEABI
constructor and createMachineSMEABIPass.
MachineSMEABI::MLI: This member variable was added on October 28, 2025
in commit 57d4c90dac1b6fc8e25f1ba52cdf1189f4ceefa1 without any uses.
Assisted-by: Antigravity
[OpenMP][Archer] Isolate taskwait-depend test variables in TSan shadow cells (#242140)
`races/taskwait-depend.c` can produce no expected race report even after
all ten `deflake.bash` attempts. On AArch64 Linux, the unchanged test
reproduced this empty-output failure in 41 of 100 `ignore_serial=1`
wrapper invocations.
Align `x`, `y`, and `sem` separately to 8 bytes so they occupy different
TSan shadow cells. In the inspected unpatched assembly, `x` and `y`
share one cell. TSan's bounded access history makes the later `y` report
sensitive to intervening accesses to `x`; separating their histories
stabilizes the expected report. The original task scheduling, two-thread
team, and report checks are preserved, with the checked source line
numbers updated.
Fixes #117773.
Validation on AArch64 Linux, using Clang 18.1.3 with source-built
libomp/Archer and an existing LLVM 24 development TSan shared-runtime
[15 lines not shown]
[AArch64] Remove Interleave Intrinsics handling from IA (#234342)
Interleave Intrinsics can directly be lowered in AArch64 codegen for
both scalable and fixed vectors.
System: Routes - following the same logic that network determines ipprotocol, we should also apply the filter in installedRoutes() in the same way
This commit compares requested protocol and installed network instead of looking at the next hop (which could be ab interface as well).
ref https://github.com/opnsense/core/issues/10578
[lldb] Strip authentication bits when SBValue::Cast drops __ptrauth (#242399)
`SBValue::Cast` to a type without the `__ptrauth` qualifier keeps the
authentication bits in the value, as shown below:
```
(lldb) script pSpecial = lldb.frame.FindVariable("pSpecial"); print(pSpecial)
(__ptrauth(2,0,0) intp) pSpecial = (actual=0x100008000) 0x0014800100008000
(lldb) script print(pSpecial.Cast(lldb.frame.FindVariable("pNormal").GetType()))
(intp) pSpecial = 0x0014800100008000
```
The fix is to call `GetStrippedPointerValue` in `UpdateValue` if the
parent's
type has the `__ptrauth` qualifier and the cast type does not, and to
hold the
stripped pointer as a `Scalar`. Since `UpdateValue` rebuilds a `Scalar`
value,
a write to it is lost, so override `ValueObjectCast::CanSetValue` to
[10 lines not shown]
[BOLT][AArch64] Error when LongJmp will relax beyond 128MiB (#229882)
**Before**: LongJmp can relax non-call branches beyond 128MiB using
stubs that clobber `x16`, causing runtime crashes when branching between
hot and cold code.
**After**: LongJmp will emit an error and exit in this case
Assisted-by: Codex
[Plugins] Provide PreCodeGenCallback with all runCodeGenPipeline params (#241314)
Provide plugins with all the parameters that llvm::runCodeGenPipeline()
takes. It lowers the bar for them to run an LLVM-based pipeline of their
own. The plugin API already changed in this release cycle, so
`LLVM_PLUGIN_API_VERSION` remains at 3.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
testcases: Add regression tests for open() and openat()
With the previous open(2) fixes, all the tests pass:
vfs/dotdot testcase:
```
--- open() of dot/dotdot ---
ok: open(.) O_WRONLY|O_CREAT Is a directory (21)
ok: open(.) O_RDWR|O_CREAT Is a directory (21)
ok: open(.) O_RDONLY|O_CREAT Is a directory (21)
ok: open(.) O_WRONLY Is a directory (21)
ok: open(.) O_RDONLY OK
ok: open(.) O_WRONLY|O_TRUNC|O_CREAT Is a directory (21)
ok: open(.) O_WRONLY|O_CREAT|O_EXCL File exists (17)
ok: open(.) O_RDONLY|O_CREAT|O_EXCL File exists (17)
ok: open(.) O_RDONLY|O_CREAT|O_DIRECTORY Is a directory (21)
ok: open(..) O_WRONLY|O_CREAT Is a directory (21)
ok: open(..) O_RDONLY|O_CREAT Is a directory (21)
ok: open(..) O_WRONLY|O_CREAT|O_EXCL File exists (17)
[54 lines not shown]
open(2): Fix open(O_CREAT) to correctly return EISDIR
* Skip "." and ".." terminating paths in nlookup() for NLC_OPEN, so
they'll be handled in vn_open() to correctly return EISDIR instead of
EEXIST.
* Let open("/", O_CREAT) through in nlookup(), so this case can be
handled in vn_open() to return EISDIR.
* Fix vn_open() to return EISDIR if the target is a directory and is
opened with O_CREAT or O_RDWR/O_TRUNC.
* Fix vn_open() to handle the mount-point target normally when the
target already exists, instead of simply return EINVAL.
Bug: https://bugs.dragonflybsd.org/issues/3282
Tested-by: pjdfstest (https://github.com/pjd/pjdfstest)
Assisted-by: DeepSeek-v4.1-flash (with Pi Coding Agent)
rename(2): Fix permission check on cross-parent directory rename
Cross-parent directory rename did not require write permission on the
source directory, although its ".." entry is modified. POSIX requires
EACCES there. UFS already performs this check, but HAMMER2 and tmpfs
don't. Fix the bug by adding a generic check in kern_rename().
To reproduce the bug:
```
$ d=$(mktemp -d)
$ mkdir -p ${d}/p1/dir1 ${d}/p2
$ touch ${d}/p1/dir1/file1
$ chmod 0444 ${d}/p1/dir1
$ mv ${d}/p1/dir1 ${d}/p2
```
Before the fix, the last "mv" command succeeded; after the fix, it would
fail with "Permission denied" (EACCES).
[2 lines not shown]
stat(2): Fix 'st_rdev' to report correct (major, minor) numbers
* Fix vn_stat() to fill 'st_rdev' with makeudev() for character and
block devices that have a valid device number.
* In addition, fix devfs_vop_getattr() to fill 'va_rmajor' in addition to
'va_rminor', and fix hammer2_vop_getattr() to fill 'va_rmajor' and
'va_rminor'.
Before the fix, a manually mknod()-created device would have a 'st_rdev'
of NODEV (i.e., -1), for example:
```
$ ~/mknod /tmp/dev-1-2 1 2
dev: 0x102 (major=1, minor=2)
$ ls -l /tmp/dev-1-2
crw------- 1 root wheel 255, 0xffff00ff Nov 7 18:34 dev-1-2
$ stat -f '%Z' /tmp/dev-1-2
255,4294902015
```
[12 lines not shown]
unlink(2): Fail with EPERM when trying to unlink a directory
As specified by POSIX and documented in the unlink(2) man page,
unlinking a directory fails with EPERM instead of EISDIR. Fix
kern_unlink() to return EPERM when trying to unlink a directory.
Found-by: pjdfstest (https://github.com/pjd/pjdfstest)
Assisted-by: DeepSeek-v4.1-flash (with Pi Coding Agent)
pc64: Fix std_copyinstr() to correctly return ENAMETOOLONG
The too-long branch previously compared the destination pointer (%rsi)
against VM_MAX_USER_ADDRESS instead of the source pointer (%rdi). The
destination is kernel memory, so it would always take the EFAULT path
instead of returning the correct ENAMETOOLONG.
Found-by: pjdfstest (https://github.com/pjd/pjdfstest)
Assisted-by: DeepSeek-v4.1-flash (with Pi Coding Agent)
[Offload][Omp][Acc][NFC] Restructure offload directory (#242220)
Create a src and include directory for libomptarget and libompaccsupport
following the same structure as liboffload.
Move headers from the base include directory to the directories that use
them.
Just a few utility headers remain in the share base include/Shared
directory. Of those, Environment.h and RPCOpcodes.h seem questionable
but seem in used in both the plugins and libomptarget (which seems to
point to further refactoring needed).
Changes in source files are basically due to directory changes, leftover
headers, and in a few cases, changing headers that were only used
transitively for their own dependence.
Headers in libompaccsupport seem like they could be further refined as
they contain both shared and things only neeeded by libomptarget, but
[2 lines not shown]
[AArch64][GlobalISel] Run sdiv_by_const in the post-legalizer combiner (#242643)
A `<2 x i64>` sdiv or srem by a constant is not expanded by the
pre-legalizer combiner, because `<2 x i64>` `G_SMULH` is not legal. The
legalizer then scalarizes the `G_SDIV`, and the resulting i64 divides
were selected as `sdiv` instructions. This runs `sdiv_by_const` in the
post-legalizer combiner so they are expanded into `smulh` and shifts, as
SelectionDAG does.
After legalization the combine can no longer rely on the legalizer to
split or widen an illegal `G_SMULH`, so `matchSDivOrSRemByConst` now
requires `G_SMULH` to be legal for the type in that case. Without this
it creates an i32 `G_SMULH` that cannot be selected.
```
define <2 x i64> @test(<2 x i64> %a) {
%r = sdiv <2 x i64> %a, <i64 7, i64 6>
ret <2 x i64> %r
}
[37 lines not shown]
appstream: updated to 1.2.3
1.2.3
Features:
* search: Make fulltext token search a bit more space and time-efficient
* xml: Leave out translations we don't need while parsing
* Reduce allocations in as_locale_is_compatible
* Avoid some needless copying and folding when writing the cache
* stemmer: Cache stems in-memory instead of recreating them every time
Bugfixes:
* release: Don't drop catalog descriptions when reading other translations
* cache: Do not free a the GError we propagate to the caller
* Reject loading bundles that do not have an explicit type
* compose: Actually add the bundle of a unit to its components
* meson: compose: Run the pkgconf file fixup in the global build root
* bundle: Add back support for Limba
* yaml: Handle translated screenshot media like the XML reader does
[6 lines not shown]