FreeBSD/src 2157c0etests/sys/arch/amd64 int0x80.c Makefile

tests/sys/arch/amd64: add a program to check INT $0x80 behavior on amd64

(cherry picked from commit 2c2ec6bbc9cc7762a250ffe903bda6c2e44d25ff)
DeltaFile
+94-0tests/sys/arch/amd64/int0x80.c
+7-0tests/sys/arch/amd64/Makefile
+101-02 files

FreeBSD/src a42f95bsys/amd64/ia32 ia32_syscall.c

amd64 ia32_syscall(): only allow for ILP32 processes

(cherry picked from commit bd8edba0792b71be3f8ed5dea9c22287e95c986a)
DeltaFile
+9-0sys/amd64/ia32/ia32_syscall.c
+9-01 files

FreeBSD/src 0276461bin/sh main.c

bin/sh: make it possible to use as interactive init

(cherry picked from commit d7338bb4914d120e5719d3216b23a509c49ed3be)
DeltaFile
+19-0bin/sh/main.c
+19-01 files

FreeBSD/src fba39d5sbin/init Makefile

init: build dynamically

(cherry picked from commit 24d887436dcd5b6c18a7505e477c79cae3002c3a)
DeltaFile
+0-2sbin/init/Makefile
+0-21 files

FreeBSD/src cd86057sys/amd64/ia32 ia32_syscall.c

amd64: ia32_fetch_syscall_args() does not need to check params != NULL

(cherry picked from commit 912f9dfca451e359dda7cdf45539b7c19764f54d)
DeltaFile
+1-1sys/amd64/ia32/ia32_syscall.c
+1-11 files

FreeBSD/src 350d980sbin/init init.8

init.8: add RECOVERING section

(cherry picked from commit e378d97eeb2b8961f312cc04d4751579a7b70741)
DeltaFile
+35-0sbin/init/init.8
+35-01 files

FreeBSD/src 1332831sbin/init init.8

init.8: document init_path among loader tunables

(cherry picked from commit 9e6ae89d831a4ddce0925ac3682d602a71f1b26d)
DeltaFile
+5-0sbin/init/init.8
+5-01 files

FreeBSD/src e5c9bd6sys/kern init_main.c

kern/init_main.c: path is for the binary, not process

(cherry picked from commit a268af3447ebaa9712174ba2d226ffdc66f68e98)
DeltaFile
+1-1sys/kern/init_main.c
+1-11 files

FreeBSD/src 0073b3dlib/msun/man fmaximum_num.3 fmaximum_mag.3, lib/msun/src s_fminimum_num.c s_fmaximum_num.c

lib/msun: Added fmaximum_mag and fmaximum_num families

Added support for the f{maximum,minimum}_{mag,num} families, the new
C23 standard functions for maximum magnitude and number-preferring
maximum.  This includes modifying fmax.3, on top of D56230, to
recommend the use of fmaximum_num and fminimum_num.

Reviewed by:    fuz, kargl
MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D56236

(cherry picked from commit 4e30c12973c73539bef01be3870a90b6346141e8)
DeltaFile
+113-0lib/msun/man/fmaximum_num.3
+102-0lib/msun/man/fmaximum_mag.3
+76-2lib/msun/tests/fmaximum_fminimum_test.c
+76-0lib/msun/src/s_fminimum_num.c
+74-0lib/msun/src/s_fmaximum_num.c
+74-0lib/msun/src/s_fminimum_mag.c
+515-217 files not shown
+1,169-1123 files

FreeBSD/src c082fc0lib/msun/man math.3

msun/math.3: reference new functions f{max,min}imum{,_num,_mag}()

See also:       D55834, D56236
MFC after:      1 month

(cherry picked from commit 47ca491ca425d0d3d8e2a8a3cac40d6565d8ab6a)
DeltaFile
+9-3lib/msun/man/math.3
+9-31 files

FreeBSD/src 10ea8delib/msun/man fmaximum.3, lib/msun/src s_fminimum.c s_fmaximum.c

lib/msun: Added fmaximum and fminimum family. Tests and man page

Starting from the existing fmax{,f,l} functions I've added the fmaximum
family, which handles NaN according to the newest standard (propagating
it).

This commit is a PoC for GSoC 2026.

Reviewed by:    fuz, kargl
MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D55834

(cherry picked from commit e55db843ef45a8788f69e110d97210fb3968b92f)
DeltaFile
+188-0lib/msun/tests/fmaximum_fminimum_test.c
+103-0lib/msun/man/fmaximum.3
+66-0lib/msun/src/s_fminimum.c
+65-0lib/msun/src/s_fmaximum.c
+61-0lib/msun/src/s_fminimumf.c
+60-0lib/msun/src/s_fmaximumf.c
+543-06 files not shown
+680-512 files

FreeBSD/src fca6c9econtrib/expat configure.ac, contrib/expat/lib xmlparse.c Makefile.in

contrib/expat: import expat 2.8.0

Changes: https://github.com/libexpat/libexpat/blob/R_2_8_0/expat/Changes

Security:       CVE-2026-41080

(cherry picked from commit e3935639d8d8b6556cad18e1c90e419a65f26b40)
DeltaFile
+118-200contrib/expat/lib/xmlparse.c
+156-14contrib/expat/lib/Makefile.in
+13-143contrib/expat/tests/Makefile.in
+117-18contrib/expat/configure.ac
+90-0contrib/expat/lib/random_getrandom.c
+88-0contrib/expat/lib/random_rand_s.c
+582-37548 files not shown
+1,281-88654 files

FreeBSD/src 838e237contrib/expat configure.ac, contrib/expat/lib xmlparse.c Makefile.in

contrib/expat: import expat 2.8.0

Changes: https://github.com/libexpat/libexpat/blob/R_2_8_0/expat/Changes

Security:       CVE-2026-41080

(cherry picked from commit e3935639d8d8b6556cad18e1c90e419a65f26b40)
DeltaFile
+118-200contrib/expat/lib/xmlparse.c
+156-14contrib/expat/lib/Makefile.in
+13-143contrib/expat/tests/Makefile.in
+117-18contrib/expat/configure.ac
+90-0contrib/expat/lib/random_getrandom.c
+88-0contrib/expat/lib/random_rand_s.c
+582-37548 files not shown
+1,281-88654 files

FreeBSD/src 7a40b8asys/dev/dpaa if_memac_fdt.c if_memac.h

dpaa: Fix copyright headers

Reported by:    ziaee@
Fixes:  fd8d34ce27 ("dpaa: Migrate from NCSW base to a home-grown driver")
DeltaFile
+3-22sys/dev/dpaa/if_memac_fdt.c
+3-22sys/dev/dpaa/if_memac.h
+1-23sys/dev/dpaa/fman_port_if.m
+3-3sys/dev/dpaa/fman_xmdio.c
+3-3sys/dev/dpaa/fman_port.h
+3-3sys/dev/dpaa/fman_port.c
+16-7615 files not shown
+47-10721 files

FreeBSD/src 7b5a23bsys/dev/iicbus/rtc rs5c372a.c

rs5c372a: Fix copyright header

Reported by:    ziaee@
Fixes:  d22051b18 ("iicbus/rtc: Add driver for the Ricoh rs5c372 RTC")
DeltaFile
+2-22sys/dev/iicbus/rtc/rs5c372a.c
+2-221 files

FreeBSD/src ee58056stand/powerpc/boot1.chrp Makefile

boot1.chrp: Specify --image-base

This is required for LLVM 22's ld.lld to avoid a build error:

ld.lld: error: section '.text' address (0x38000) is smaller than image base (0x10000000); specify --image-base
ld.lld: error: section '.rodata' address (0x3b308) is smaller than image base (0x10000000); specify --image-base
ld.lld: error: section '.data' address (0x3b610) is smaller than image base (0x10000000); specify --image-base
ld.lld: error: section '.bss' address (0x3f618) is smaller than image base (0x10000000); specify --image-base

Use 0x38000 for the image base, which is the address of the lowest
(and only) LOAD segment in the file.

Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D56459

(cherry picked from commit aa0bc7cca153f67f8becec8a8fb259ff5fd30fd0)
DeltaFile
+1-1stand/powerpc/boot1.chrp/Makefile
+1-11 files

FreeBSD/src 0a919e2lib/libifconfig libifconfig_bridge.c

libifconfig: Skip bridge VLAN config for span members

bridge(4) doesn't support BRDGGIFVLANSET for span members, which
means if a span interface is configured, libifconfig will fail to
fetch bridge members.  Skip this for IFBIF_SPAN members.

PR:     292634
MFC after:      3 days
Reported by:    Emrion <kmachine at free.fr>
Reviewed by:    pouria, zlei
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D56694

(cherry picked from commit 454322c08b8aa181939c8d920472f03cfd591032)
DeltaFile
+5-0lib/libifconfig/libifconfig_bridge.c
+5-01 files

FreeBSD/src 457c621sys/fs/nfsserver nfs_nfsdstate.c

nfsd: Disable use of callbacks for NFSv4.0

Commit 71ac1ec5c9d9 disabled callbacks for the NFS
client for NFSv4.0.  This patch does the same for
the NFSv4.0 server.

The only use for callbacks for NFSv4.0 is delegations
and delegations rarely work well for NFSv4.0 anyhow.

Therefore, this patch disables callbacks for the
NFSv4.0 server.  This is the same behavior as
occurs when vfs.nfsd.issue_delegations is 0.

This change allowed the functions called
nfsrv_getclientipaddr() and nfsrv_getipnumber() to be
removed from the kernel.

MFC after:      2 weeks
DeltaFile
+38-245sys/fs/nfsserver/nfs_nfsdstate.c
+38-2451 files

FreeBSD/src ef029e4sys/netinet ip_mroute.c

ip_mroute: Avoid leaking uninitialized bytes to the routing daemon

Reported by:    KMSAN
MFC after:      1 week

(cherry picked from commit e0751ae801b3e29c6dd52905ef1d63d5cd643b0a)
DeltaFile
+7-6sys/netinet/ip_mroute.c
+7-61 files

FreeBSD/src e125728tests/sys/netinet ip_mroute.py ip6_mrouted.c, tests/sys/netinet6 Makefile

tests: Add some simple regression tests for ip_mroute

These use atf_python to create a number of hosts linked to a router.
The router runs pimd (for IPv4) or ip6_mrouter (simplistic IPv6
multicast router that I wrote since I couldn't find one in the ports
tree).  The vnet_host*_handler() methods are invoked in different VNET
jails connected to the router; they register the connected epair with a
multicast group and verify that they can send messages to each other.

The tests are synchronized by sending messages over a unix domain
socket.  The flow is something like:
1) test startup_method() is called, the unix socket is created,
2) the superclass creates jails and links them together using the
   declared topology,
3) we wait for all child jails to start up and send a message on the
   unix socket indicating that they are ready
4) we start the routing daemon in the main jail,
5) the test actually starts; starttest() kicks off the
   vnet_host*_handlers(), which mostly just verify that they can send

    [13 lines not shown]
DeltaFile
+428-0tests/sys/netinet/ip_mroute.py
+191-0tests/sys/netinet/ip6_mrouted.c
+2-1tests/sys/netinet/Makefile
+1-0tests/sys/netinet6/Makefile
+622-14 files

FreeBSD/src 21c9c53sys/netinet ip_mroute.c, sys/netinet6 ip6_mroute.c

ip_mroute: Fix a lock leak in X_ip_mforward()

If a FIB does not have a router configured, X_ip_mforward() would leak a
lock.  Plug the leak.

The IPv6 counterpart did not have such a check.  It wouldn't send an
upcall to a non-existent router anyway due to the router_ver check, but
we should verify that a router is present anyway.

Add regression test cases to exercise these code paths.

Reported by:    Claude Opus 4.6
Fixes:          0bb9c2b665d9 ("ip6_mroute: FIBify")
Sponsored by:   Klara, Inc.
Sponsored by:   Stormshield

(cherry picked from commit 18b7115cba2f698909a4801dc2cc1b04b1f4f210)
DeltaFile
+140-13tests/sys/netinet/ip_mroute.py
+3-1sys/netinet/ip_mroute.c
+4-0sys/netinet6/ip6_mroute.c
+147-143 files

FreeBSD/src 7ed46c4sys/netinet6 ip6_mroute.c

ip6_mroute: Handle interface detach events

When an interface goes away we need to make sure the v6 multicast
routing tables don't carry any dangling references to the ifnet.  The v4
code handles this already.  Copy the approach there and use an
eventhandler to purge the corresponding MIF, if one exists, and further
go through all routes in the FIB and remove references to the interface.

MFC after:      2 weeks
Sponsored by:   Stormshield
Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D55246

(cherry picked from commit a1c042a9641c9df08010e87d0928703849ff9853)
DeltaFile
+67-2sys/netinet6/ip6_mroute.c
+67-21 files

FreeBSD/src 24b9fb4sys/netinet6 ip6_mroute.c

ip6_mroute: Pass the multicast interface number directly to del_m6if()

There's no need to pass a pointer to the interface number.  No
functional change intended.

MFC after:      2 weeks
Sponsored by:   Stormshield
Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D55245

(cherry picked from commit 82272cbf56aa5646611c6f1049501cc345fcf6ec)
DeltaFile
+13-13sys/netinet6/ip6_mroute.c
+13-131 files

FreeBSD/src fd30007sys/netinet6 ip6_mroute.c in6.c

ip6_mroute: FIBify

Modify the control plane (ioctl and socket option handlers) to use the
routing socket FIB to index into the mfctable array.  Modify the
forwarding plane to use the mbuf's FIB to determine which routing table
to use.

MFC after:      2 weeks
Sponsored by:   Stormshield
Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D55242

(cherry picked from commit 0bb9c2b665d90934ae16eee152b6b4f4f4be0dd5)
DeltaFile
+77-54sys/netinet6/ip6_mroute.c
+6-11sys/netinet6/in6.c
+1-1sys/netinet6/raw_ip6.c
+1-1sys/netinet6/ip6_mroute.h
+85-674 files

FreeBSD/src 6be9359sys/netinet6 ip6_mroute.c

ip6_mroute: VNETify counters

Commit a223d6c489c7 made most of the ip6_mroute state per-VNET, but
failed to do this for a couple of counter structures.  Make them
per-VNET too.

Reported by:    zlei
Reviewed by:    pouria, zlei
Fixes:          a223d6c489c7 ("ip6_mroute: Start putting global variables into a structure")
Differential Revision:  https://reviews.freebsd.org/D56253

(cherry picked from commit 77df0240307ebbc606e17c9b83c0d940d33c2649)
DeltaFile
+10-8sys/netinet6/ip6_mroute.c
+10-81 files

FreeBSD/src f544b5dsys/netinet ip_mroute.c, sys/netinet6 ip6_mroute.c

Fix nooptions VIMAGE build

The recent FIBify commits deref struct thread without including
sys/proc.h, which can result in a compiler error.  This becomes
apparent when building with LINT-NOVIMAGE, as net/vnet.h includes
sys/proc.h.  Fix this by directly including sys/proc.h

Fixes: 4c486fe40267 ("ip_mroute: FIBify"), 0bb9c2b665d9 ("ip6_mroute: FIBify")

(cherry picked from commit 3f79bc9ca336f634e1afa262ccf5155882550a8a)
DeltaFile
+1-0sys/netinet/ip_mroute.c
+1-0sys/netinet6/ip6_mroute.c
+2-02 files

FreeBSD/src d7a5c26sys/netinet6 ip6_mroute.h

ip6_mroute: Make ip6_mroute.h more self-contained

MFC after:      2 weeks
Sponsored by:   Stormshield
Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D55243

(cherry picked from commit d4339cebbe8e0b26f92a74eb5d4d9a20403c2ad1)
DeltaFile
+3-0sys/netinet6/ip6_mroute.h
+3-01 files

FreeBSD/src 75f5baesys/netinet6 ip6_mroute.c

ip6_mroute: Fix the type name in sysctl_mfctable()

No functional change since apparently it's fine to compute the size of
a pointer type when the base type is undefined.

Fixes:  0bb9c2b665d9 ("ip6_mroute: FIBify")

(cherry picked from commit 0dbbed21a643f6c95bebe23008a332ff68adb203)
DeltaFile
+1-1sys/netinet6/ip6_mroute.c
+1-11 files

FreeBSD/src f6a4a0csys/netinet ip_mroute.c, sys/netinet6 ip6_mroute.c

ip(6)_mroute: Grow the routing tables when the number of FIBs changes

Use the new rtnumfibs_change event to expand the mfctable array when the
number of FIBs increases.

MFC after:      2 weeks
Sponsored by:   Stormshield
Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D55240

(cherry picked from commit 97a4bc9a0da7cd63c660ce59a9dd7c87efe1f218)
DeltaFile
+44-10sys/netinet/ip_mroute.c
+40-3sys/netinet6/ip6_mroute.c
+84-132 files

FreeBSD/src 4c19a50sys/netinet6 ip6_mroute.c

ip6_mroute: Start putting global variables into a structure

As in the IPv4 version of this change, I added a struct mf6ctable
structure which holds all global routing table state, soon to become
per-FIB state.

Note that much of the v6 multicast routing code was not VNETified; this
change fixes that too.

MFC after:      2 weeks
Sponsored by:   Stormshield
Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D55238

(cherry picked from commit a223d6c489c7ea9a384f3d2bbda1b05b00d4502d)
DeltaFile
+229-162sys/netinet6/ip6_mroute.c
+229-1621 files