[lldb] Let language plugins add options to the expression command (#244453)
This patch adds a new mechanism so Language plugins can reguster their
own options with the expression and dwim-print commands and add them to
EvaluateExpressionOptions. It moves --c++-ignore-context-qualifiers from
the expression command into the C++ plugin.
Assisted-by: Claude
shm: Fix a shm object refcount leak in shm_rename(SHM_RENAME_EXCHANGE)
With RENAME_EXCHANGE we acquire an extra ref on the destination object
so that shm_remove() doesn't free it. However, we failed to release
that ref if the rename fails.
Reported by: Laam Alif at Ibteda Digital Library
Fixes: 9afb12bab41f ("Add an shm_rename syscall")
Reviewed by: kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D61806
vm_object: Fix synchronization between reinit and global list walks
Checking for OBJT_DEAD in vm_object_list_handler() is racy since pagers
may set the object type to OBJT_DEAD after having dropped and reacquired
the object lock. dev_pager_dealloc() does this, for instance. Check
for the OBJ_DEAD flag as well, as that is set earlier. Fix one rare
case in the vnode pager where we freed an object without setting
OBJ_DEAD, and add an assertion to the zone destructor.
Try to minimize accesses of the object after dropping the object lock in
vm_object_list_handler().
Add a comment to warn others to think carefully before adding more
cases.
Fix shm_get_path() to reject dead objects. Fix tmpfs to finish
initialization of the object under its lock; we cannot claim that the
object is thread-private since it lives on a global list.
Try to close races with _vm_object_allocate(). Update object->flags,
[20 lines not shown]
linux: Pass a valid thread pointer to linux_msg()
linux_msg() will dereference that pointer if a debugging flag is set.
Reported by: Tianyi Chen <hi at tychen.cc>
Fixes: 3965de642c29 ("linux: Add inotify support")
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
freebsd32: Fix the ffclock estimate conversions
The CP() arguments were reversed in both directions, so
ffclock_getestimate() copied out uninitialized stack memory and
ffclock_setestimate() installed it as the system estimate.
Add helper functions to do the conversion, implemented so as to make
such mistakes harder to make.
Fixes: e3e811a3f824 ("freebsd32: add feed foward clock syscalls")
Reviewed by: brooks
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D61774
corecstat(4): Add Goldmont, Goldmont Plus, and Tremont CPU support.
* This should cover Apollo Lake, Denverton, Gemini Lake,
Elkhart Lake, and Jasper Lake models.
* These last Atom CPU cores use the same MSR registers for the same
states as "Core" CPUs.
corepower(4): Add Goldmont, Goldmont Plus, and Tremont CPU support.
* This should cover Apollo Lake, Denverton, Gemini Lake,
Elkhart Lake, and Jasper Lake models.
arm64 pmap: Sync the icache in pmap_enter_largepage()
Unlike pmap_enter(), don't test PGA_ICACHE_SYNCED, because large pages
are unmanaged.
While here, assert that va is aligned to the page size, as amd64 does,
and that the pmap is stage 1, which the new code assumes.
Reviewed by: kib, markj
Differential Revision: https://reviews.freebsd.org/D61897
[AArch64] Remove write-only and unused members (NFC) (#245006)
AArch64PipelinerLoopInfo::TRI: Added on June 12, 2024 in commit
0c5319e546321d7a766999e49e0ccf801ff2b3dc without any readers. This
patch also removes its initializer.
AArch64StackTaggingPreRAImpl::TRI: Added on August 30, 2019 in commit
04647f5e222b21b9ff178abf77fbdcb4577a7979 without any readers. This
patch also removes its assignment.
MachineSMEABI::emitSetupFullZASave: This declaration was added on
September 9, 2025 in commit 96d556784ed3ec7a8a6c377b44afb5dfa49229e6
without a definition or any callers.
Assisted-by: Antigravity
[X86] Check global size before section kind in isLargeGlobalValue (NFC) (#237015)
Checking a global's section kind can walk its entire initializer,
whereas
checking its size is cheap.
Part of #236952.
Assisted-by: Gemini
openbao: update to 2.7.3
SECURITY
- core/auth: Entity and group aliases of newly created auth mounts are
now case-sensitive by default. GHSA-fgmw-h9wp-wc7g.
- core/auth: Alias case-sensitivity can now be configured per auth mount
via case_sensitive_alias.
- core/listeners: Correctly handle forwarded client cert headers on the
active node when a request was forwarded from a standby.
GHSA-h8fh-pmch-cjww.
- core/listeners: Ensure disable_unauthed_rekey_endpoints and
disable_unauthed_generate_root_endpoints are enforced before
forwarding a request to the active node. GHSA-h8fh-pmch-cjww.
- core/listeners: Ensure max_request_size, max_request_json_memory,
max_request_json_strings and max_request_duration continue to be
enforced at the configured limit after forwarding a request to the
active node. GHSA-h8fh-pmch-cjww.
[4 lines not shown]
[LAA] Find no dependence between invariant accesses a constant distance apart
Two loop-invariant accesses whose addresses differ by a constant overlap
in every iteration or in none, even if the addresses wrap. LAA showed
they were disjoint only when one ended exactly where the other began,
or when it could prove the addresses do not wrap. Otherwise it reported
an unknown dependence and gave up on the loop, so a loop that updates
three or more fields of a struct through a pointer was not vectorized:
struct trio { int a, b, c; };
void acc3(struct trio *p, const int *x, int n) {
for (int i = 0; i < n; i++) {
p->a += x[i];
p->b ^= x[i];
p->c |= x[i];
}
}
This now vectorizes on x86-64 (VF 4, interleaved by 2). 200000 calls on
[5 lines not shown]
libc/fnmatch/rangematch: fix incorrect arguments to memset
strmbs variable is already a pointer, so calling memset on its address
was equivalent to setting the pointer, but the intent was to set the
pointed object.
This was found while debugging an unrelated issue in the same function.
Fixes: af79566b9315
MFC after: 1 week