Commit Graph
311297 Commits
Author SHA1 Message Date
Colin Percival 954098103e nvme: Add quirk for broken namespace-change log
Add a QUIRK_EMPTY_NAMESPACE_CHANGED_LOG quirk which indicates that the
nvme controller may not properly populate the namespace-changed log
page.  If we receive a NVME_LOG_CHANGED_NAMESPACE page for a device
with this quirk and the page is empty, probe all of the namespaces
rather than none of them.

Reviewed by:	imp
MFC after:	1 week
Sponsored by:	Amazon
Differential Revision:	https://reviews.freebsd.org/D58231
2026-07-28 16:28:36 -07:00
Colin Percival 4068f3b5f8 nda: Don't sleep with non-sleepable lock held
We reach ndaasync with the CAM device lock held, so we must pass
M_NOWAIT to disk_* rather than M_WAITOK.

Reviewed by:	imp
Fixes:	628d7a3270 ("nda: AC_GETDEV_CHANGED calls media chanaged for sectorsize change")
MFC after:	1 week
Sponsored by:	Amazon
Differential Revision:	https://reviews.freebsd.org/D58230
2026-07-28 16:28:36 -07:00
Richard Scheffenegger 2d01998e9e tcp_hostcache: ensure expire and prune values stay consistent with each other
When configuring the expire timeout to something short, make sure that the
    prune time runs at least at that interval. Similarly, when adjusting the
    prune interval up, ensure the expire timeout reflect that expected minimum
    time also. Finally, restart the callout timer so that the next pruning
    happens after the new, expected interval.

Reviewed By:		glebius
MFC after:		2 weeks
Sponsored by:		NetApp, Inc.
Differential Revision:	https://reviews.freebsd.org/D58424
2026-07-28 23:13:20 +02:00
Richard Scheffenegger 5de91610cc tcp_hostcache: limit scope of struct hc_metrics_lite and rename with tcp_ prefix
Restrict the scope of the struct hc_metrics_lite to the kernel only.
    Update the naming to align with other kernel structures and add a tcp_ prefix.

Reviewed by:		glebius
MFC after:		2 weeks
Sponsored by:		NetApp, Inc.
Differential Revision:	https://reviews.freebsd.org/D58440
2026-07-28 23:13:08 +02:00
Pouria Mousavizadeh Tehrani 2d0b73338a routing: Add tests for prefsrc route attribute
Add tests for both IPv4 and IPv6 routes with the prefsrc attribute.
Also test IPv4 routes over IPv6 nexthops and borrow their IPv4
addresses from the loopback interface.

Reviewed by: glebius
Differential Revision: https://reviews.freebsd.org/D58326
2026-07-29 00:24:38 +03:30
Pouria Mousavizadeh Tehrani dd235f097a route(8): Add prefsrc option in netlink
Add prefsrc option that is frequently used on unnumbered interfaces
or L3 multi-homed network hosts.
This option uses RTA_PREFSRC.
Now you can add a static route by specifying the prefsrc option
with the loopback IP.

PR:		285422
Reviewed by:	glebius
Differential Revision: https://reviews.freebsd.org/D58294
2026-07-29 00:24:37 +03:30
Pouria Mousavizadeh Tehrani be5994cdfb netlink: Add RTA_PREFSRC support
Add the ability to select source ip address of outgoing packets
even when the source ip address is configured on another interface.
Also add this new rtnetlink attribute to manual.

PR:		285422
Reviewed by:	glebius, ziaee (manpages)
Tested by:	ivy, Marek Zarychta <[email protected]>
Relnotes:	yes
Differential Revision: https://reviews.freebsd.org/D58294
2026-07-29 00:24:24 +03:30
Pouria Mousavizadeh Tehrani 788400e9b2 nd6: Do not enter net_epoch under nd6_prelist_add
nd6_prefix_onlink will enter net_epoch when necessary.
Also, exit net_epoch earlier in nd6_prefix_onlink,
Because we acquired a reference to ifa, and we got our ifa
from the pr->ndpr_ifp, we don't need to stay under epoch.
While here, style it.

Reviewed by:	markj, glebius
Discussed with:	zlei
Differential Revision: https://reviews.freebsd.org/D56129
2026-07-29 00:07:58 +03:30
Vinícius Ferrão 053d95ec2a nd6: Set ip6 after m_pullup() in nd6_ra_input()
nd6_ra_input() reads the IPv6 header pointer ip6 before m_pullup(), then
uses that pointer afterwards to set nd_ra.

When m_pullup() relocates the chain it frees the original first mbuf and
returns a new one, leaving ip6 dangling; the subsequent access may be a
use-after-free read.

The fix writes ip6 from the returned mbuf after m_pullup() inside the
conditional if.

Reviewed by: pouria
Differential Revision: https://reviews.freebsd.org/D58229
2026-07-29 00:05:42 +03:30
Michael Tuexen 52b7cbcb78 tcp: improve handling of stopped timers
When a TCP timer is stopped, t_timers[] is set to SBT_MAX. Adding the
corresponding t_precisions[], if it is not zero, would result in
overflows in tcp_timer_next(). To avoid this, skip stopped timers.

The problem was identified while debugging uperf by Lukas Book and
an initial patch was provided by him. The committed patch was
suggested by glebius.

The problem can be observed by running netstat -nxptcp and looking for
negative timer values and by observing very long running timers in
some cases.

Reported by:		Lukas Book <[email protected]>
Reviewed by:		glebius
Differential Revision:	https://reviews.freebsd.org/D58484
2026-07-28 22:15:22 +02:00
Konstantin Belousov 2e259c209f kern_pdwait(): print the process pointer through pd
to avoid using uninitialized value in the KASSERT() statement on the first
iteration.

Also, do the assert under the proctree_lock, which is not critical but
satisfies the invariants.

Noted and reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D58505
2026-07-28 22:45:52 +03:00
Konstantin Belousov 8cef3c9b76 proc_realparent(): assert that an orphaned child has real parent != parent
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D58504
2026-07-28 22:45:47 +03:00
Ali Mashtizadeh ce6ab51fc3 pmc: enable the new pmc commands
This change hooks everything up to the pmc command and improves the
usage to document all functions.  There are a couple older commands that
are currently broken that I have hidden from the usage, but left in the
code for those using it.  I won't remove those until we have our
replacements upstreamed that depend on the AMD PMC multiplexing patches.

Sponsored by: Netflix
Reviewed by:	adrian, imp
Differential Revision:	https://reviews.freebsd.org/D57780
2026-07-28 13:27:45 -06:00
Ali Mashtizadeh cc94d1bd74 pmc: pmc frontend stall analysis based on IBS
The frontend command uses AMD IBS frontend events to analyze the major
sources of frontend stalls.  It displays a table breakind down the major
causes of front end stalls.  This is a simple demonstration of the tools
as you can use the filtering tools to limit the analysis to a subset of
the samples including filtering by fetch latencies.

Sponsored by: Netflix
Reviewed by:	adrian, imp
Differential Revision:	https://reviews.freebsd.org/D57779
2026-07-28 13:27:45 -06:00
Ali Mashtizadeh 3adde0e55d pmc: pmc info command
Prints the log header including machine, cpu and kernel details along
with what counters were selected.

Sponsored by: Netflix
Reviewed by:	adrian, imp
Differential Revision:	https://reviews.freebsd.org/D57778
2026-07-28 13:27:45 -06:00
Ali Mashtizadeh a79a051e7d pmc: pmc record command
The record command is designed around the idea of predefined studies.
While you can still select individual counters, the predefined studies
are meant to enable the best hardware options for a given generation.
It implements all of the base studies that I have built so far.

Sponsored by: Netflix
Reviewed by:	adrian
Differential Revision:	https://reviews.freebsd.org/D57777
2026-07-28 13:27:45 -06:00
Ali Mashtizadeh 93da997ef7 pmc: new pmc log processing framework
View is a class for building PMC log processing tools it is designed to
work with the new PMC record command that adds a header with additional
CPU information.  The new framework processes PMC logs about 2.5 times
faster and in about half the code as libpmcstat.

Sponsored by: Netflix
Reviewed by:	adrian
Differential Revision:	https://reviews.freebsd.org/D57776
2026-07-28 13:27:44 -06:00
Ali Mashtizadeh a53d2e4f5d pmc: console configuration and table rendering for new PMC tools
Initializes the terminal rendering code used by the new pmc tools.  Then
provides a table abstraction for collecting, sorting and rendering
tables.  It provides pretty printed results with typed fields that print
several types used throughout the new PMC tools.  By default the fields
are formatted in engineering notation.

Sponsored by: Netflix
Reviewed by:	adrian, imp
Differential Revision:	https://reviews.freebsd.org/D57775
2026-07-28 13:27:44 -06:00
Olivier Cochard 285c749f57 e1000: report UDP RSS hash type on igb/em
{em,igb}_determine_rsstype() mapped only the TCP and bare-IP RSS descriptor
types; the UDP types returned M_HASHTYPE_NONE.
The hardware does hash UDP, but with a NONE hashtype iflib skips its
flowid-based TX queue spread, so all forwarded UDP egressed on a single queue
and serialized transmit on one core.

Add the three UDP cases (IPV4_UDP, IPV6_UDP, IPV6_UDP_EX) so egress spreads
across all TX queues.

Reviewed by:	kbowling, gallatin
Approved by:	kbowling
MFC after:	1 week
MFC to:		stable/14, stable/15
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D58513
2026-07-28 21:23:53 +02:00
Olivier Cochard 6c4d9b9af1 hwpmc: fix event allocation on pre-Zen AMD CPUs
amd_allocate_pmc() chose the pmu-events code path whenever pmc_cpuid was
non-empty, and rejected any allocation lacking PMC_F_EV_PMU.
But pmc_cpuid is set for every AMD CPU, while the pmu-events tables only cover
Zen and later.
On older families (K8, Bobcat, Jaguar/16h, Bulldozer) libpmc finds no
pmu-events entry and falls back to the legacy path, which never sets
PMC_F_EV_PMU.

Reviewed by:	mhorne
Approved by:	mhorne
MFC after:	1 week
MFC to:		stable/14, stable/15
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D58468
2026-07-28 21:11:04 +02:00
Bruce M Simpson f884e820d8 netinet6: Tear down IPv6 source address selection policies with rest of IPv6.
This may plug minor leaks which no-one has reported. The default IPv6 source
address selection policy list in FreeBSD is usually limited to 9 entries,
and can be readily inspected with ip6addrctl(8). The policy table is
however instantiated for each VNET.

The leak of a pol instance in delete_addrsel_policyent() was already
plugged by @ae in commit-id ecc5c73, so that change has not been merged.

Do not tear down the sxlocks as glebius has requested, and move the
addrsel_policyent{} declarations further up to avoid redundant forward
declarations as glebius requested for stylistic reasons.

Reviewed by:	ae, pouria
Sponsored by:	Cisco Systems, Inc.
Differential Revision: https://reviews.freebsd.org/D55599
2026-07-28 19:35:02 +01:00
Jose Luis Duran f7c08d8dd8 openssh: Move back UseBlocklist to global config
Revert UseBlocklist from SSHCFG_ALL to SSHCFG_GLOBAL (with
SSHCFG_COPY_NONE), ensuring it can only be set globally in sshd_config
rather than within conditional Match blocks, matching historical
behavior.

Reviewed by:	emaste
Fixes:		bb5c77e9d2 ("OpenSSH: Update to 10.4p1")
Differential Revision:	https://reviews.freebsd.org/D58520
2026-07-28 18:13:12 +00:00
Mitchell Horne 53187a3665 pmc_dmc620: drop unneeded includes
Neither of these options are checked in the file and cdefs.h should not
be included explicitly. No functional change.

Sponsored by:	The FreeBSD Foundation
2026-07-28 12:00:08 -03:00
Andre Silva 3fdd05c612 libpmc: userland support and pmc.rapl.3 for the RAPL class
Register PMC_CLASS_RAPL in libpmc: event table, allocator, class-table
descriptor, and the event-name/class-listing lookups, all x86-guarded
and modeled on the TSC class. Energy events are read-only and
unqualified. The class prefix (RAPL-) supplies the friendly spelling, so
pmcstat -S rapl-energy-pkg resolves to the canonical ENERGY_PKG event.

Add a pmc.rapl.3 manual page documenting the events, counter scope, the
microjoule unit and wrap handling, and the NUMA/package domain mapping;
link it from pmc.3.

Reviewed by:	mhorne
Discussed with:	Ali Mashtizadeh <[email protected]>
Sponsored by:	AMD
Differential Revision:	https://reviews.freebsd.org/D58029
2026-07-28 11:54:26 -03:00
Andre Silva a99d04f39d hwpmc: add RAPL energy-counter class (AMD + Intel)
Add hwpmc_rapl.c/.h implementing PMC_CLASS_RAPL, a read-only
system-scope class modeled on TSC and wired into x86 AMD and Intel MD
init. A per-vendor MSR table covers AMD/Hygon and Intel; energy is
reported in microjoules, with the Intel server 2^-16 J DRAM unit
handled and 32-bit wraps recovered into a 64-bit accumulator.

The overflow guard follows the PMC lifetime: armed on the first
allocated PMC, callout_drain()d on the last release, and each tick only
rendezvouses CPUs holding one. Per-CPU spin locks guard the accumulator
against torn reads on i386. PMC_CAP_DOMWIDE lets pmcstat(8) allocate
one counter per NUMA domain instead of per CPU.

Reviewed by:	mhorne, Ali Mashtizadeh <[email protected]>
Sponsored by:	AMD
Differential Revision:	https://reviews.freebsd.org/D58028
2026-07-28 11:54:21 -03:00
Andre Silva 77404ee1e9 x86: add AMD RAPL MSR definitions to specialreg.h
specialreg.h is the tree's MSR registry and already carries the Intel
RAPL group. Add the AMD RAPL package/core energy and unit MSRs here so
the hwpmc RAPL class can reference them without a private driver copy.
Use the names Linux's msr-index.h gives these registers.

Reviewed by:	mhorne, adrian, Ali Mashtizadeh <[email protected]>
MFC after:	3 days
Sponsored by:	AMD
Differential Revision:	https://reviews.freebsd.org/D58027
2026-07-28 11:53:33 -03:00
Mitchell Horne cac0eab342 sys/modules/hwpmc/Makefile: tidy up
This module has several source files, with many conditional on the
platform architecture. Make it easier to read, and better for future
diffs against these lists.

- Convert to one SRC per line
- Simplify arm/armv7 condition
- Remove now-empty header comment
- Minor formatting

MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
2026-07-28 11:48:50 -03:00
Mitchell Horne d6dcd8d2c3 libsysdecode: fix nlm_flag regex in mktables
Some NLM_F_ definitions contain multiple underscores in their name; this
should pick them up.

Reviewed by:	kp, Ishan Agrawal <[email protected]>
Fixes:  4c932a4d45 ("netlink: decode netlink message flags symbolically")
Sponsored by:	The FreeBSD Foundation
Pull Request:	https://github.com/freebsd/freebsd-src/pull/2340
2026-07-28 11:30:52 -03:00
Dag-Erling Smørgrav 744cc51456 mbuf: Parenthesize macro arguments
MFC after:	1 week
Sponsored by:	Klara, Inc.
Sponsored by:	NetApp, Inc.
2026-07-28 14:12:44 +02:00
Jessica Clarke 70509d1d9c Merge commit 6b0a46958c56 from llvm-project (by Piotr Kubaj):
[libunwind][PPC64] Fix unw_getcontext corrupting callee-saved VSX registers on LE (#198371)

  This is the first of two independent fixes for libunwind on ppc64le
  (ELFv2 ABI, little-endian), where two separate bugs together cause
  SIGSEGV during backtracing. This commit addresses the VSX register
  corruption; the TOC-restore fault is handled in a follow-up. Both
  were discovered while debugging lang/rust build failures with
  RUST_BACKTRACE=1 on FreeBSD/powerpc64le (IBM POWER9).

  On ppc64le, `unw_getcontext` saves each VS register with an in-place
  `xxswapd n, n` followed by `stxvd2x`. The swap is needed because
  `stxvd2x` stores doublewords in the wrong order on LE. However, the
  macro never applies a second `xxswapd` to restore the register after
  the store, so all 64 VS registers are permanently corrupted on return
  from `unw_getcontext`.

  This affects every callee-saved VSX register: f14-f31 (VSR14-VSR31)
  and VR20-VR31 (VSR52-VSR63). After `_Unwind_Backtrace` returns, any
  code that uses these registers sees wrong values. In practice this
  manifests as SIGSEGV inside hashbrown's `reserve_rehash`: VR20-VR31
  are corrupted before a SIMD comparison loop runs, producing an
  out-of-bounds access.

  Fix: add a second `xxswapd n, n` after the `stxvd2x` store. Since
  `xxswapd` is its own inverse, the pair is a no-op on the architectural
  register while still writing the correctly byte-swapped value to memory.

MFC after:	1 week
2026-07-28 12:54:04 +01:00
Olivier Houchard c6f5d8fb26 arm64: Use the fault handler when one is provided
In align_abort() and tag_check_abort(), if we got a fault while in kernel,
do not panic if a fault handler has been provided. We may get such a fault
when trying to read or write userland data, it can at least happen with
_umtx_op() if an unaligned pointer is provided. Instead, just let the
fault handler deal with it.

MFC After: 1 week
Approved by: andrew
Differential Revision: https://reviews.freebsd.org/D58426
2026-07-28 12:08:56 +02:00
Sean Eric Fagan 24983c4e9f sleep: Fix man page about IGINFO output
Reviewed by:	des
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D58483
2026-07-28 10:56:17 +01:00
Pouria Mousavizadeh Tehrani 5286cbea91 netstat(1): Emit nhop flags for encoding styles with Wflag
Show nhop flags like invalid nexthop to debug cases like
the PR below.

PR:		296883
Reviewed by:	glebius
Differential Revision: https://reviews.freebsd.org/D58347
2026-07-28 11:47:32 +03:30
Pouria Mousavizadeh Tehrani 84f062e336 routing: Limit enumeration of ifas to fib in rt_getifa_fib
If we have source address specified, try to find it by enumerating
ifas on specified fib.

Reviewed by: glebius
Differential Revision: https://reviews.freebsd.org/D58444
2026-07-28 11:38:37 +03:30
Gleb Smirnoff 76363a7970 Revert "tests/ktls: merge two sysctl checking helpers into one"
With certain sysctl configuration the test will fail.

This reverts commit 801c0f383c.
2026-07-27 19:16:39 -07:00
Rick Macklem 575af5e2fa RELNOTES: Add an entry for pNFS server improvements
There are expected to be additional improvements and this RELNOTES
entry will be updated accordingly.
2026-07-27 18:52:01 -07:00
Colin Percival 8d92f32ae0 make-pkg-package.sh: Fix build for pkg 2.8.0
We used to pass CONFIGURE_ARGS to the make command which builds pkg,
but ports/ports-mgmt/pkg/Makefile has its own CONFIGURE_ARGS and the
version we were providing at the command line didn't contain the
--mandir setting which was added to the port with pkg 2.8.0.  This
broke release builds.

Instead of passing --prefix=${LOCALBASE} via CONFIGURE_ARGS, pass
PREFIX=${LOCALBASE}; the port Makefile passes that value through to
its configure script.  We also used to pass a --host parameter, but
that seems to have become unnecessary at some point in the past decade.

MFC after:	1 day
Sponsored by:	Amazon
2026-07-27 18:49:28 -07:00
Konstantin Belousov a3b5937da6 mknod.2: properly document root requirements
Submitted by:	Martijn Dekker <[email protected]>
PR:	297082
Fixes:	4090d103b0 ("mknod.2: update the man page")
MFC after:	3 days
2026-07-28 04:01:52 +03:00
Mark Johnston 75be700644 umtx: Do not make an exiting thread the owner of a PI mutex
Otherwise an assertion in umtx_thread_alloc()
(TAILQ_EMPTY(&uq->uq_pi_contested)) is violated.

This use of TDB_EXIT is hacky, but I cannot see another way to check for
an exiting thread without adding some more overhead to kern_thr_exit().

Fixes:		2a339d9e3d
Reported by:	Maik Muench of Secfault Security
Reviewed by:	kib
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D58447
2026-07-27 23:12:37 +00:00
Mark Johnston 1f4b0ea4f3 kqueue: Add a helper macro for sleeping on in-flux knotes
Other in-flux operations are implemented by this set of macros, so we
should do the same for sleeping.

No functional change intended.

Reviewed by:	kib
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D58443
2026-07-27 23:12:16 +00:00
Mark Johnston 8616b7dc38 proc: Copy the p_reapsubtree field explicitly during fork
p_reapsubtree lives in the p_startcopy/p_endcopy block of struct proc,
which is copied during fork without any synchronization.  However, the
field is not stable except when the proctree lock is held, and indeed
may change if p1's reaper exits or explicitly releases its reaper
status.  This state change can race with fork() and leave the child with
an incorrect p_reapsubtree field.

Close the race: explicitly copy the field under the proctree lock during
fork.

Reported by:	syzkaller
Reviewed by:	kib
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D58482
2026-07-27 23:03:47 +00:00
Mark Johnston 95a3301ce1 rpcinfo: Fix residual warnings and bump WARNS
Reviewed by:	emaste
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D58442
2026-07-27 23:03:16 +00:00
Mark Johnston 152ba2d3c5 rpcinfo: Fix buffer overflows
Several functions were using sprintf() to write RPC server-controlled
data to a stack buffer.  Adopt some minimal changes from NetBSD to avoid
the potential overflows.

Security:	CVE-2026-16277
Security:	CVE-2026-16461
Reviewed by:	khorben
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D58441
2026-07-27 23:03:16 +00:00
Mark Johnston b02e02958d libfetch: Fix handling of connection failures
After commit 848f360c8f, if one tries to connect to a closed port,
fetch reports "Operation now in progress", which is rather confusing.
Return a more useful error message, restoring the old behaviour.

Fixes:		848f360c8f ("libfetch: Apply timeout to connection attempts")
Reviewed by:	des
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D58481
2026-07-27 23:03:16 +00:00
Bruce M Simpson d93d235291 netinet: Replace IFP_TO_IA() with in_ifprimaryaddr() completely.
IPv4 multicast currently has the big caveat that it depends on the first
assigned IPv4 address on an interface (the so-called "primary address").

in_ifprimaryaddr() only needs to be used by the following:
 - the 0.0.0.0 booting node input workaround in IGMPv1;
 - filtering out the node's own reports in IGMPv2;
 - preserving the source IP where an IGMPv3 report has been looped back;
 - inferring the default upstream IPv4 interface address for the
   IP_MULTICAST_IF socket option;
 - and inferring the source address during ip_output() for a multicast
   datagram where an interface has been explicitly specified by that option.

All of these uses mandate the use of IPv4 source address selection, but
FreeBSD does not yet (fully) implement this functionality.

Approved by:	glebius (2026-02-26)
Reviewed by:	adrian, glebius, pouria
Differential Revision:	D55345
2026-07-27 22:55:12 +01:00
Bruce M Simpson e52655a939 netinet: Promote IFP_TO_IA() from macro to function in_ifprimaryaddr().
in_ifprimaryaddr() exists only to support IPv4 multicast usage. Since the
adoption of epoch tracking, ifa_ref() is no longer required in its body;
that was originally introduced by rwatson in 2009.

We could not use __deprecated1() from <sys/cdefs.h> anyway, as
IFP_TO_IA() is a macro, not a function.

Approved by:	glebius (2026-02-26)
Reviewed by:	adrian, glebius, pouria
Differential Revision:	D55344
2026-07-27 22:55:12 +01:00
Gleb Smirnoff 698402f4f9 inpcb: declare struct in_conninfo as a single declaration
This removes just one level of #define mess that is needed to reach into
an inpcbs IPv4 address.  And makes the declaration easier to read.  No
functional change.

Reviewed by:		markj
Differential Revision:	https://reviews.freebsd.org/D58273
2026-07-27 12:28:08 -07:00
Dag-Erling Smørgrav 51c0cdb049 pwait: Fix pwait_normal test case
Reported by:	markj
Fixes:		e115066370 ("pwait: Test the new -r option")
2026-07-27 20:54:11 +02:00
Konstantin Belousov 34ca5a9e73 geom_zero(4): reset the uio vector on each uiomove()
PR:	297062
Tested by:	Jordan Gordeev <[email protected]>
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D58472
2026-07-27 21:46:32 +03:00
John Baldwin c13a9982b5 kdump: Treat a flags argument of 0 to shmat as valid
Sponsored by:	AFRL, DARPA
2026-07-27 14:09:03 -04:00