zed: show the search path when a command cannot be found
A mail program that works in an interactive shell can be missing from
the restricted PATH used by zedlets. Include the search path in the
lookup error and document how to configure a custom mail program.
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: zibuyu <zibuyu423 at gmail.com>
Closes #13752
Closes #20125
libzfs: keep --json-int property values exact
zprop_nvlist_one_property() prints a property value made only of digits
as a JSON integer for --json-int, and reads it with sscanf("%lld") into
a uint64_t. Four kinds of values come out wrong:
- A value above INT64_MAX does not fit in a long long, and glibc stores
INT64_MAX instead. About half of all guids come out as
9223372036854775807 in 'zpool get -j --json-int guid', and 'zpool
list', 'zfs get' and 'zfs list' do the same with --json-int.
- A run of digits longer than a uint64, which a user property can hold,
is clamped the same way instead of being kept.
- A value with a leading zero, "007" for one, which a user property or
the comment of a pool or vdev can hold, is printed as 7.
- An empty value passes the digits-only test, as strspn() and strlen()
are both 0. sscanf() then converts nothing and the uninitialized
uint64_t is printed. 'zfs set org.test:e= pool' stores such a user
property.
[13 lines not shown]
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
Pull kvm fixes from Paolo Bonzini:
"arm64:
- Bound PINTID during ITE table restore, avoiding the possibility
that the guest plants an out-of-range LPI INTID in its own
in-memory ITS tables prior to restore.
- Do not blindly trust the vINTID field coming from KVM, and reject
anything that is out of the boundaries that the hardware ITS is
configured to support.
- Add signal_pending checks to the scan_its_table() loop; device
table entries with num_eventid_bits = 16 (or 65536 EventIDs per
device) are valid but takes a long time to restore.
- Remove quadratic complexity from the algorithm used to prune IRQs
sitting in the AP list has a quadratic complexity, and simplify the
[68 lines not shown]
[mlir][LLVM] Remove unused TBAANodeAttr::getFromOpaquePointer (NFC) (#248838)
getFromOpaquePointer used to be called by DenseMapInfo::getEmptyKey for
Attribute subclasses. That getEmptyKey method was removed on June 6,
2026 in commit f7f6e6f4011252d3aacd44e87dd07c263049aad1.
Assisted-by: Antigravity
[Utils] Remove write-only PruningFunctionCloner::ModuleLevelChanges (NFC) (#248837)
The last reader was removed on August 18, 2026 in commit
6129e1fefa1a7a69cf830dbfd54bafd83856108a. This patch also removes its
initializer and the now-unused moduleLevelChanges constructor parameter.
Assisted-by: Antigravity
[RISCV] Propagate word sign-extension knowledge through SRA (#246945)
Propagate existing i32 sign-extension knowledge through variable SRA, as
already done for SRAI. This removes redundant sext.w instructions after
shift/PHI chains while preserving the full six-bit shift-count
semantics.
Tests cover sign-extended arguments and loads, unrestricted wide inputs,
and logical-shift counterexamples.
[Hexagon] Use llvm::stable_sort for PullUpCandidates in HexagonGlobalScheduler (#249015)
Fixes nondeterminism exposed by 5c5723624955 (#245961) in
`misneedchainedge.ll`, following up on c2ad1998f0ab (#248187).
Switch to `llvm::stable_sort`.
Note that this appears to have been a pre existing non-determinism issue
in the V1 global scheduler.
pfsync: account for second tickover in bulk updates
When one peer requests a bulk update it keeps track of when it sent this
request. The exporting peer includes 'endtime', indicating how long it
took to send the entire update along with its final message.
That allows the receiving peer to verify that the entire update was done
in response to its most recent request. However, due to different second
tickovers this calculation might be off by one.
Use milliseconds internally. This does not change the wire protocol,
'endtime' is still expressed in seconds. When the exporting peer
computes this value it will implicitly round down.
PR: 300824
Sponsored by: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit f3cb62f798070570db00b51138873474c31bbc6a)
*/*: Chase PORTNAME change of py-unidecode
In 1551308311ca converters/py-unidecode's PORTNAME was capitalized.
PR: 301438
Reported by: Matthew Wener <matthew at wener.org>
*/*: Chase PORTNAME change of py-unidecode
In 719a9f6c3105 converters/py-unidecode's PORTNAME was capitalized.
PR: 301438
Reported by: Matthew Wener <matthew at wener.org>
dummynet: Ignore DN_QHT_HASH when checking for an unchanged flowset
fsk_attach() sets DN_QHT_HASH in fs->fs.flags when the flowset or its
scheduler has a mask. Userland never sends that flag, so the bcmp() in
config_fs() never matches for such a flowset and re-applying the same
"queue N config ... mask ..." line takes the changed path, which
destroys all queues of the flowset and the packets in them. Firewall
front ends that re-run their dummynet config on every reload hit this.
Take the flag from the existing flowset before the comparison. If the
flowset did change, fsk_attach() computes the flag again.
PR: 298731
Reviewed by: kp
Signed-off-by: Abdul Wasey <w453y.me at gmail.com>
Differential Revision: https://reviews.freebsd.org/D61257
dummynet: Allow AQM reconfiguration of flowsets with traffic
config_aqm() refused to configure CoDel/PIE on a flowset whose
scheduler had a hash table or an instance ("flowset busy"). The check
was there because queues that already exist were left without AQM
state after aqm_cleanup_deconfig_fs(). It had two bad effects:
- a scheduler with a mask always has siht allocated, so CoDel/PIE could
never be configured on "pipe N config ... mask ... codel" or on a
queue of a masked scheduler, even with no traffic at all;
- on the changed-parameters path of config_fs(), fsk_detach() has
already removed the old AQM, so a refusal left the flowset with
DN_IS_AQM set and aqmfp NULL. Changing the weight of a queue while
its pipe carried traffic silently turned it into droptail.
The error never reached userland, only the kernel log.
Instead of refusing, init the AQM status of the queues that exist
after the new AQM is configured, which is what si_new() and q_new()
[12 lines not shown]
dummynet tests: Add CoDel/PIE masked and reconfiguration cases
aqm_masked configures CoDel and PIE on pipes with a mask and CoDel on
a queue of a masked WF2Q+ scheduler. aqm_reconfig changes the
parameters and the AQM of a pipe and of two queues (one masked) while
ping keeps an instance alive, and checks that the AQM is still there
and that traffic still passes afterwards.
PR: 298731
Reviewed by: kp
Signed-off-by: Abdul Wasey <w453y.me at gmail.com>
Differential Revision: https://reviews.freebsd.org/D61258
[analyzer] Rename DanglingPtrDeref to StackUseAfterScope and move it to core (#233889)
`DanglingPtrDeref` checks for dereferences of pointers that refer to an
object whose lifetime has already ended. In this PR the checker's name
becomes `StackUseAfterScope` to correctly name the functionality of the
checker. The checker was tested on a large number of open source
projects to confirm the low rate of false positives which is a
prerequisite of a checker to be nominated to core. The
`StackUseAfterScope` checker did not produce any false positives on the
tested projects.
This PR renames the checker from `DanglingPtrDeref` to
`StackUseAfterScope` while also updating the related files accordingly.
This also requires moving the `LifetimeModeling` modeling checker to
core since the `StackUseAfterScope` is a reporting checker that depends
on the modeling checker. And a non-alpha checker should not depend on an
alpha checker.
libpfctl: remove unused pfctl_get_clear_rule()
All in-tree users already use the pfctl_get_clear_rule_h() variant.
This lets us remove a lot of nvlist-based code.
Sponsored by: Rubicon Communications, LLC ("Netgate")
X86: Include the stack alignment override in the subtarget key (#248752)
The subtarget depends on the override-stack-alignment module flag, so
modules with different values need different subtargets.
Assisted-by: Claude
iflib: Cancel stale reset requests when a driver quiesces
A TX watchdog closes admission before the admin task runs. A driver
can then quiesce the datapath from its admin callback and rebuild its
resources. Acting on the earlier watchdog verdict after the callback
can restart a down interface or duplicate the driver's own restart.
Capture reset requests under the context lock before calling the
driver. A successful quiesce cancels both queued requests and those
captured for this pass. A fresh request after quiesce stays queued for
the next pass, which checks IFF_UP before a conditional restart.
Keep the watchdog event for reporting. Request a conditional restart
only while the timed-out datapath still has admission closed.
Check for detach while collecting reset requests. Only the device
selected for the detach failpoint needs the earlier check. Release the
context lock before freeing the taskqueue on failed attach so a late
admin task can acquire the lock, observe detach, and exit.
[5 lines not shown]
[bazel] Stop passing -Wno-uninitialized to c-index-test on Windows (#248426)
`-Wno-uninitialized` is a clang/gcc spelling that cl.exe rejects
outright:
cl : Command line error D8021 : invalid numeric argument
'/Wno-uninitialized'
so the c-index-test binary cannot be built with the msvc config at all.
Key the select on the OS rather than the compiler, because the compiler
identity the Windows toolchain reports differs between Bazel 7 and 8+.
The CMake build never passes this flag to c-index-test, so cl.exe never
sees it there.
Merge tag 'xfs-fixes-7.4-rc6' of git://git.kernel.org:/pub/scm/fs/xfs/xfs-linux
Pull xfs fixes from Carlos Maiolino:
"This includes fixes for xfs's reflink feature, RWF_ATOMIC support, an
uninitialized variable and another wrong function argument"
* tag 'xfs-fixes-7.4-rc6' of git://git.kernel.org:/pub/scm/fs/xfs/xfs-linux:
xfs: force all shared extent swap to use rmap shared path
xfs: move _right_neighbor_result trace before erroring out
xfs: recheck direct write alignment after write checks
fs: validate atomic writes after O_APPEND and limits
xfs: pass proper leaf argument from xfs_rtrefcountbt_broot_realloc()
xfs: initialize error in xfs_getfsmap_rtdev_rtbitmap()
[libc] Implement preadv and pwritev in sys/uio (#248377)
Implement Linux `preadv` and `pwritev` in `sys/uio` using
`syscall_checked` with 32-bit/64-bit `off_t` splitting, along with
YAML/entrypoint/Bazel definitions and unit tests.
Testing:
- `preadv_pwritev_test` compiled with freestanding libc flags and run in
Docker (PASS 2/2)
Assisted-by: Antigravity (Gemini 4 Hydrogen)
[libc] Implement splice in fcntl (#248451)
Implement Linux `splice` in `fcntl` using `syscall_checked`, along with
YAML/entrypoint/Bazel definitions and pipe-to-pipe + `EBADF` unit tests.
Testing:
- `splice_test` compiled with freestanding libc flags and run in Docker
(PASS 2/2)
Assisted-by: Antigravity (Gemini 4 Hydrogen)