FreeBSD/src d58ca84tools/test/stress2/misc socketpair3.sh

Fix zombie leak in test using pdfork()
DeltaFile
+1-1tools/test/stress2/misc/socketpair3.sh
+1-11 files

FreeBSD/src 8eb77a5tools/test/stress2/misc all.exclude

stress2: Enable two hwpmc tests that now run as expected
DeltaFile
+0-2tools/test/stress2/misc/all.exclude
+0-21 files

FreeBSD/src 2296f35sys/fs/nullfs null_vnops.c

nullfs(4): Fix a typo in a source code comment

- s/modifing/modifying/

(cherry picked from commit 27c70deb3d260b48bee8f3c4c975fd2de64264fb)
DeltaFile
+1-1sys/fs/nullfs/null_vnops.c
+1-11 files

FreeBSD/src 10e3185sys/dev/ichwd i6300esbwd.c

ichwd(4): Fix a typo in a source code comment

- s/modifing/modifying/

(cherry picked from commit 8362aecdeb2548813942a7e604543c71f5a10271)
DeltaFile
+1-1sys/dev/ichwd/i6300esbwd.c
+1-11 files

FreeBSD/src 8402cf6sys/dev/fxp rcvbundl.h

fxp(4): Fix a typo in a source code comment

- s/modifing/modifying/

(cherry picked from commit c47b430c6ea3aa8d133af0af426d018bae3b7018)
DeltaFile
+1-1sys/dev/fxp/rcvbundl.h
+1-11 files

FreeBSD/src 05f4908sys/netpfil/ipfw dn_sched_fq_pie.c

ipfw(4): Fix a typo in a source code comment

- s/varaiables/variables/

(cherry picked from commit 251e6ef40203a6f911d7f4daacf3075de7f870c0)
DeltaFile
+1-1sys/netpfil/ipfw/dn_sched_fq_pie.c
+1-11 files

FreeBSD/src 06c3e7clib/msun/src catrig.c

msun: Fix a typo in a source code comment

- s/uneccessarily/unnecessarily/

Obtained from:  NetBSD

(cherry picked from commit cd4aae2fa9d35015248c445752e23800e75e8517)
DeltaFile
+1-1lib/msun/src/catrig.c
+1-11 files

FreeBSD/src 259c45dsys/vm swap_pager.c

swap_pager: Fix a typo in a source code comment

- s/errornous/erroneous/

(cherry picked from commit 88293bdd1eefb4bf518e1764d370b4a2321afdd1)
DeltaFile
+1-1sys/vm/swap_pager.c
+1-11 files

FreeBSD/src 1c4f2a6sys/dev/ppbus ppb_msq.h

ppbus(4): Fix a typo in a source code comment

- s/predifined/predefined/

(cherry picked from commit 709bd45a1b3a5ca21e05995c0c01f0ee8e7e8c38)
DeltaFile
+1-1sys/dev/ppbus/ppb_msq.h
+1-11 files

FreeBSD/src aeec956sys/fs/nullfs null_vnops.c

nullfs(4): Fix a typo in a source code comment

- s/modifing/modifying/

(cherry picked from commit 27c70deb3d260b48bee8f3c4c975fd2de64264fb)
DeltaFile
+1-1sys/fs/nullfs/null_vnops.c
+1-11 files

FreeBSD/src 4fb09e9sys/dev/ichwd i6300esbwd.c

ichwd(4): Fix a typo in a source code comment

- s/modifing/modifying/

(cherry picked from commit 8362aecdeb2548813942a7e604543c71f5a10271)
DeltaFile
+1-1sys/dev/ichwd/i6300esbwd.c
+1-11 files

FreeBSD/src 4054710sys/dev/fxp rcvbundl.h

fxp(4): Fix a typo in a source code comment

- s/modifing/modifying/

(cherry picked from commit c47b430c6ea3aa8d133af0af426d018bae3b7018)
DeltaFile
+1-1sys/dev/fxp/rcvbundl.h
+1-11 files

FreeBSD/src 9e62481sys/netpfil/ipfw dn_sched_fq_pie.c

ipfw(4): Fix a typo in a source code comment

- s/varaiables/variables/

(cherry picked from commit 251e6ef40203a6f911d7f4daacf3075de7f870c0)
DeltaFile
+1-1sys/netpfil/ipfw/dn_sched_fq_pie.c
+1-11 files

FreeBSD/src bbf2339lib/msun/src catrig.c

msun: Fix a typo in a source code comment

- s/uneccessarily/unnecessarily/

Obtained from:  NetBSD

(cherry picked from commit cd4aae2fa9d35015248c445752e23800e75e8517)
DeltaFile
+1-1lib/msun/src/catrig.c
+1-11 files

FreeBSD/src 352cf5bsys/vm swap_pager.c

swap_pager: Fix a typo in a source code comment

- s/errornous/erroneous/

(cherry picked from commit 88293bdd1eefb4bf518e1764d370b4a2321afdd1)
DeltaFile
+1-1sys/vm/swap_pager.c
+1-11 files

FreeBSD/src c3b7f92sys/dev/ppbus ppb_msq.h

ppbus(4): Fix a typo in a source code comment

- s/predifined/predefined/

(cherry picked from commit 709bd45a1b3a5ca21e05995c0c01f0ee8e7e8c38)
DeltaFile
+1-1sys/dev/ppbus/ppb_msq.h
+1-11 files

FreeBSD/src aec0f1bsys/dev/e1000 if_em.c

e1000: Report 82571 packet buffer ECC errors

The 82571 PBA_ECC register contains a 12-bit count of packet buffer ECC
detections.  The shared code enables single-bit correction, but neither
FreeBSD nor the DPDK base driver consumes the counter.

Sample it with the ordinary statistics timer, accumulate the value under
dev.em.N.memory_errors.detected_packet_buffer, and clear the hardware
counter while preserving correction and reserved register state.  Do not
enable its shared interrupt: the register does not distinguish corrected
from uncorrectable events and does not provide a safe fatal recovery
policy.

Validated on a dual port 82571EB.  Both functions reported zero after a
clean boot, and a controlled link down/up cycle left the counter at zero
while the management link recovered at 1 Gb/s without issue.

MFC after:      2 weeks
Sponsored by:   BBOX.io
DeltaFile
+47-7sys/dev/e1000/if_em.c
+47-71 files

FreeBSD/src 8d83b10share/examples/jails rc.conf.jails rcjail.xxx.conf

New version of jng (9.1)

Update examples and comments to return eifaces in exec.prestop
with ifconfig -vnet (before jng shutdown in poststop).

Reported by:    jlduran
PR:             268397
MFC after:      1 week
Reviewed by:    kfv, jlduran
Differential Revision:  https://reviews.freebsd.org/D58939
DeltaFile
+12-6share/examples/jails/jng
+2-1share/examples/jails/rcjail.xxx.conf
+2-1share/examples/jails/jail.xxx.conf
+2-0share/examples/jails/rc.conf.jails
+18-84 files

FreeBSD/src ba99013sys/fs/tarfs tarfs_vfsops.c, usr.sbin/jail jail.8

tarfs: allow mounting inside jails

Reviewed by:    des
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D58833
DeltaFile
+9-1usr.sbin/jail/jail.8
+1-1sys/fs/tarfs/tarfs_vfsops.c
+10-22 files

FreeBSD/src 4d52491sys/fs/tarfs tarfs_vfsops.c

tarfs: remove PRIV_VFS_MOUNT_PERM check

The backing file is already opened successfully, so there is
no need to override the permissions.

Reviewed by:    des
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D58832
DeltaFile
+0-5sys/fs/tarfs/tarfs_vfsops.c
+0-51 files

FreeBSD/src 60c0a07sbin/route route_netlink.c, sys/netlink netlink_snl_route_parsers.h netlink_snl_generic.h

netlink: Parse repeated nested attributes

Modern Netlink arrays encode their elements as repeated attributes of
the same type rather than as children of an additional array container.

Add an SNL callback that parses one nested element for each occurrence
and appends it to a geometrically grown parser array.  Retain the
existing parray callback for protocols that use the legacy container
form.

Store the growth capacity in struct snl_parray, appended after its
existing public count and items fields so their offsets remain stable
on LP64 and ILP32.  Require parser targets to be real snl_parray
objects, and convert bitset, generic Netlink, and route multipath arrays
accordingly.  This avoids relying on layout aliases for private growth
state.

Add regression coverage for a nested bit array that grows beyond its
initial allocation, while preserving replacement semantics when a

    [5 lines not shown]
DeltaFile
+78-28sys/netlink/netlink_snl.h
+65-0tests/sys/netlink/test_snl.c
+31-28usr.bin/genl/genl.c
+11-11sbin/route/route_netlink.c
+8-10sys/netlink/netlink_snl_generic.h
+4-7sys/netlink/netlink_snl_route_parsers.h
+197-845 files not shown
+211-10011 files

FreeBSD/src fdcb52dsys/ofed/drivers/infiniband/ulp/ipoib ipoib_ib.c

ofed/ipoib: convert to timer_setup linuxKPI

Reviewed by:    bz
Sponsored by:   NVidia networking
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D58941
DeltaFile
+6-4sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_ib.c
+6-41 files

FreeBSD/src 814cd91sys/dev/mlx5/mlx5_core mlx5_health.c, sys/dev/mlx5/mlx5_ib mlx5_ib_mr.c

mlx5(4): convert to timer_setup() linuxKPI

Reviewed by:    bz
Sponsored by:   NVidia networking
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D58941
DeltaFile
+3-3sys/dev/mlx5/mlx5_ib/mlx5_ib_mr.c
+3-3sys/dev/mlx5/mlx5_core/mlx5_health.c
+6-62 files

FreeBSD/src 241df6asys/kern uipc_usrreq.c

unix: fix comment

Noticed by:     mckusick
Fixes:          6563dcb6b1f57e51db63854f3774b52e672232ed
DeltaFile
+1-1sys/kern/uipc_usrreq.c
+1-11 files

FreeBSD/src ba27b63sys/compat/linux linux.h linux_netlink.c

linux: Add STF type and convert some if_type to ARPHRD

Convert IFT_BRIDGE and IFT_L2VLAN to ARPHRD_ETHER, and IFT_LOOP
to ARPHRD_LOOPBACK in linux netlink.
Also, add ARPHRD_SIT and convert IFT_STF to it.

Reviewed by:    kfv
Differential Revision:  https://reviews.freebsd.org/D58573
DeltaFile
+8-0sys/compat/linux/linux_netlink.c
+1-0sys/compat/linux/linux.h
+9-02 files

FreeBSD/src a6e9e4cshare/man/man9 Makefile rtentry.9

nhop.9: Rewrite relics of rtentry.9 into nhop.9

Parts of rtentry.9 information such as information related to
the nexthop is outdated.
Remove those relics and add the new design into separate
manual instead.

Reviewed by:    bcr
Discussed with: ziaee
Differential Revision: https://reviews.freebsd.org/D58564
DeltaFile
+123-0share/man/man9/nhop.9
+16-40share/man/man9/rtentry.9
+2-0share/man/man9/Makefile
+141-403 files

FreeBSD/src f30ef13sys/dev/gve gve_adminq.c

gve: Implement AQ batching for queue creation and destruction

Currently, the FreeBSD driver configures and destroys queues
sequentially by issuing individual Admin Queue (AQ) commands.

During queue teardown (e.g., interface reset), disabling queues
one by one leaves the device in a partially configured state.
Because the device does not yet know that the driver is in the
process of fully unconfiguring all queues, this intermediate
state can trigger transient error logs (such as when queue 0 is
disabled while other queues are still active).

Modify the driver to use Admin Queue batching for both the
creation and destruction of TX and RX queues. Commands are now
queued and kicked together, ensuring the queue configuration changes
are applied atomically and preventing transient errors from being logged.

Signed-off-by: Sujithra Periasamy <sujithra at google.com>


    [6 lines not shown]
DeltaFile
+37-10sys/dev/gve/gve_adminq.c
+37-101 files

FreeBSD/src 43a3400share/man/man4 ctl.4

ctl.4: Document the assumption that CTL HA runs only on trusted networks

The CTL High Availablity clustering feature allows a pair of hosts to
implement transparent failover.  The implementation uses a TCP
connection to exchange messages.  There is no authentication mechanism
and the protocol itself embeds kernel pointers in the messages exchanged
between HA hosts.  This property (of CTL_MSG_DATAMOVE messages
specifically), as well as insufficient validation of inbound messages,
mean that anyone able to access a CTL HA port is able to remotely
execute code on that host.

Provide a warning to this effect in the CTL man page.

Reported by:    Ryan of Calif.io
Reviewed by:    ziaee, ken, mav
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D58622

(cherry picked from commit 3c8f8432b6f653128016c6aaf826e1efb7ee1cec)
DeltaFile
+6-1share/man/man4/ctl.4
+6-11 files

FreeBSD/src 8eef466sys/kern subr_epoch.c

epoch: Fix epoch_drain_callbacks()

This function is supposed to wait until all pending callbacks have been
executed.  This is useful in some contexts where we tear down some
context (like a VNET jail and its associated UMA zones) synchronously,
and we want to make sure that all pending asynchronous callbacks (which
may free objects to said UMA zones) have run first.

The implementation schedules a callback on each CPU and waits for them
all to run.  This assumes that, on a given CPU, callbacks are executed
in the order that they are pushed.  This assumption depends on the
implementation of epoch_call_task() and ck_epoch_poll_deferred(), and it
is not true in general.

Callbacks are pushed onto a per-CPU stack in LIFO order.
ck_epoch_poll_deferred() first pulls out the callbacks from epoch - 2,
which are always safe to execute, and in so doing reorders them such
that the oldest callback as at the top of the stack, so in this case,
epoch_call_task() will execute them in order.  However,

    [24 lines not shown]
DeltaFile
+30-20sys/kern/subr_epoch.c
+30-201 files

FreeBSD/src 1fe3a28sys/netinet6 raw_ip6.c

rawip: Fix handling of checksums in rip6_input()

A v6 raw socket may ask the kernel to validate the checksum of an
inbound packet.  If it does, and the validation fails, we discard the
packet, but this isn't really right: other raw sockets may wish to
receive a copy of the packet anyway.

Rework checksum handling to address this problem, and use a flag to
avoid computing the checksum more than once for a given packet.

Fixes:          de2d47842e880281 ("SMR protection for inpcbs")
Reviewed by:    pouria, glebius
Reported by:    Yunzhi Ke
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D58559

(cherry picked from commit 196874ce2e97e3e6425493b1d501e716b356bc36)
DeltaFile
+15-11sys/netinet6/raw_ip6.c
+15-111 files