FreeBSD/src 243bdaflib/googletest/tests Makefile.inc

lib/googletest: also use -O0 for internal tests with GCC

This fixes the build with gcc 16's aggressive inlining.

Reviewed by:    ngie
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59538
DeltaFile
+3-3lib/googletest/tests/Makefile.inc
+3-31 files

FreeBSD/src 06488d2sys/compat/linux linux_misc.c

linux: LINUX_PR_SET_THP_DISABLE all non-zero values are disable

Linux treats any nonzero value as "disable", so accept them all.

Fixes: a8a6eac57091
Sponsored by:           Netflix
DeltaFile
+2-3sys/compat/linux/linux_misc.c
+2-31 files

FreeBSD/src 772c658stand/common md.c

loader: Use %u to print unsigned value

Fixes: 7055aa7a070f
Sponsored by:           Netflix
DeltaFile
+1-1stand/common/md.c
+1-11 files

FreeBSD/src 197df29stand/efi/loader main.c

loader.efi: Only try to download md if we're netbooting

The only possible time we could download the initmd that the dhcp server
told us about is if we're netbooting. So only attempt to do that if the
load device for loader.efi is a network. IF you are booting off disk and
then need to snag an initmd off the network, that's a different path,
and wouldn't need to necessarily do a dhcp exchange, except to get the
IP address.

Sponsored by:           Netflix
DeltaFile
+16-1stand/efi/loader/main.c
+16-11 files

FreeBSD/src 6413a87stand loader.mk defs.mk, stand/efi/libefi efipart.c Makefile

loader: Move some support things around, maybe lame?

Sponsored by:           Netflix
DeltaFile
+7-0stand/efi/loader/memdisk.c
+1-5stand/loader.mk
+6-0stand/efi/libefi/efinet.c
+6-0stand/defs.mk
+3-0stand/efi/libefi/Makefile
+2-0stand/efi/libefi/efipart.c
+25-56 files

FreeBSD/src 577ea37stand/efi/include efilib.h, stand/efi/libefi efinet.c

loader.efi: Expose efi_devpath_get_mac to get mac

This is a convenient way to test if a device path is a nic or not, so
expose it to the world.

Sponsored by:           Netflix
DeltaFile
+3-6stand/efi/libefi/efinet.c
+1-0stand/efi/include/efilib.h
+4-62 files

FreeBSD/src baa78c8sbin/nvmecontrol power.c

nvmecontrol: Minor correctness issues

Turn an assert into a bounds check to not overflow if the nvme drive
reports too many power states (we validate the user input, but not the
drive's identify data).

Use a uint32_t instead of int for entry so right shift we do is defined.

No functional changes.

Fixes:                  35793364d722
Noticed by:             claude + Sonet 5
Sponsored by:           Netflix
DeltaFile
+4-3sbin/nvmecontrol/power.c
+4-31 files

FreeBSD/src 79e2a46sbin/nvmecontrol power.c

nvmecontrol: Fix APST transition encoding

Use uin64_t casts to encode data sent to avoid overflows.

Fixes: 35793364d722
Sponsored by: Netflix
DeltaFile
+6-4sbin/nvmecontrol/power.c
+6-41 files

FreeBSD/src bbee544stand/efi/libefi efihttp.c

loader.efi: Fix memory leak in efihttp_dev_close

Save enough context to free the host we allocated in open on close.

Fixes: 6788e42d53c6
Noticed by: claude + Sonet 5
Sponsored by: Netflix
DeltaFile
+6-4stand/efi/libefi/efihttp.c
+6-41 files

FreeBSD/src f9517d2usr.sbin/mpsutil mps_show.c

mpsutil: Better naming form the discovery_status function

It's really discovery_status_str(). Rename it and use open_memstream()
to write the string so we don't have to play as many str* games.

Fixes: afb60897a15c
Noticed by: claude + Sonet 5 (size error, bad fix ignored)
Sponsored by: Netflix
DeltaFile
+22-17usr.sbin/mpsutil/mps_show.c
+22-171 files

FreeBSD/src b485d70sbin/dhclient dhclient.c

dhclient(8): Fix dhcpack comment

Restore a comment accidentally removed above dhcpack.

Fixes:  37fd3fcaaf0e ("dhclient(8): Add support for IPv6-Only option (RFC 8925)")
DeltaFile
+2-1sbin/dhclient/dhclient.c
+2-11 files

FreeBSD/src 37fd3fcsbin/dhclient Makefile dhcpd.h

dhclient(8): Add support for IPv6-Only option (RFC 8925)

Accept and validate the ipv6only option. When dhclient receives this
option and IPv6 connectivity is available, stop the DHCP configuration
process and wait for the duration specified by the option before
restarting DHCP discovery.

If the address was previously leased, disassociate it and send a
DHCPRELEASE packet.

Use netlink to check for IPv6 connectivity.

Also, unregister ignored options from default PRL.

Reviewed by:    ziaee, kfv
Tested by:      Marek Zarychta <zarychtam at plan-b.pwste.edu.pl>
Relnotes:       yes
Differential Revision: https://reviews.freebsd.org/D56637
DeltaFile
+160-22sbin/dhclient/dhclient.c
+118-0sbin/dhclient/inet6.c
+67-1sbin/dhclient/options.c
+31-0sbin/dhclient/clparse.c
+11-0sbin/dhclient/dhcpd.h
+9-1sbin/dhclient/Makefile
+396-243 files not shown
+409-279 files

FreeBSD/src 3ca70c5sys/powerpc/booke pmap.c

powerpc/pmap: Add a minimum TID width

QEMU doesn't appear to emulate the MMUCFG register for Book-E CPUs, so
give a sane small default of 7, for an 8 bit PID register.
DeltaFile
+2-0sys/powerpc/booke/pmap.c
+2-01 files

FreeBSD/src 300c54asys/powerpc/booke pmap.c

powerpc/booke pmap: Adjust TID bits to correct size

MMUCFG::PIDSIZE is the TID field size less 1, so adjust to get the
full width.
DeltaFile
+1-1sys/powerpc/booke/pmap.c
+1-11 files

FreeBSD/src 35973ecbin/sh sh.1

sh.1: Renew description of case

Update case synopsis, split description into paragraphs, improve markup,
light wordsmithing, and import exit status line from NetBSD.

While here, remove the '-' from the beginning of this document.

PR:     298329
Event:  EuroBSDcon 2026
Fixes:  c9afaa63894e ("Add case statement fallthrough")
Fixes:  f7a9b7fe3a8d ("Allow a left parenthesis before patterns in case blocks")
Fixes:  e00e16ad7f86 ("Allow empty case/esac statements")
MFC after:      3 days
Reviewed by:    bcr, jilles, Artem Bunichev <temcbun at gmail.com>
Differential Revision:  https://reviews.freebsd.org/D59518
DeltaFile
+37-17bin/sh/sh.1
+37-171 files

FreeBSD/src d5c09e3usr.sbin/wpa/wpa_supplicant wpa_supplicant.8

wpa_supplicant.8: Renew SEE ALSO + tag SPDX

- remove old wifi drivers, these are very old and we have many more
- add quick start guide to connecting to wifi

Event:                  EuroBSDCon 2026
MFC after:              3 days
Reviewed by:            bz, emaste
Differential Revision:  https://reviews.freebsd.org/D59615
DeltaFile
+5-9usr.sbin/wpa/wpa_supplicant/wpa_supplicant.8
+5-91 files

FreeBSD/src e46a7d8share/man/man4 Makefile

man: Link mlx5en.4 also to if_mce.4

For consistency, create a symbolic link from mlx5en.4 to also if_mce.4

Reviewed by:            ziaee, #manpages
Event:                  EuroBSDCon 2026
Differential Revision:  https://reviews.freebsd.org/D59610
MFC after:              3 days
DeltaFile
+2-1share/man/man4/Makefile
+2-11 files

FreeBSD/src 465942esys/netinet raw_ip.c

raw ip: clear sin_port on bind(2)

Application may set sin_port to some value.  Although this value is not
used by SOCK_RAW, it breaks a check that the address is available.  A
perfect fix would be not use sockaddrs for ifaddrs, but that would be a
bigger change.

PR:                     298366
Reviewed by:            pouria, bnovkov, adrian
Differential Revision:  https://reviews.freebsd.org/D59570
Fixes:                  948ad32ae1e0811f45e1d38f26636fefed5051f0
DeltaFile
+1-1sys/netinet/raw_ip.c
+1-11 files

FreeBSD/src a1e236esys/dev/acpica acpi_spmc.c

acpi_spmc: Check AMD constraint packages

Also match behaviour with Intel constraint parsing by skipping malformed
constraints instead of failing hard.

Reviewed by:    olce
Sponsored by:   The FreeBSD Foundation
Event:          EuroBSDCon Devsummit 2026
Differential Revision:  https://reviews.freebsd.org/D59568
DeltaFile
+38-6sys/dev/acpica/acpi_spmc.c
+38-61 files

FreeBSD/src 508efe3sys/dev/acpica acpi_spmc.c

acpi_spmc: Check Intel constraint packages

Some firmware inexplicably decides to do non-standard and annoying stuff
here, e.g. the Fujitsu Futro S940 with an Intel Pentium J5005 sometimes
returns the following when calling the DEVICE_CONSTRAINTS function on
the Intel DSM:

    Return (Package (0x01)
    {
        Zero
    })

(Package elements here are supposed to be constraint packages, not just a
single value.)

First reported in the following forum post:

https://forum.netgate.com/topic/201090/2.9.0-beta-leads-to-kernel-panic-on-boot


    [5 lines not shown]
DeltaFile
+46-6sys/dev/acpica/acpi_spmc.c
+46-61 files

FreeBSD/src 8e1ad85sys/sys elf_common.h

elf_common.h: Add definitions for LoongArch ELF files

Including e_machine, e_flags and relocation types.

References:

  Loongson documentation:
    https://github.com/loongson/la-abi-specs/blob/release/laelf.adoc

  LLVM reviews / commits:
    https://reviews.llvm.org/D134601
    https://reviews.llvm.org/D115859
    https://reviews.llvm.org/D131467
    https://reviews.llvm.org/D152184
    https://github.com/llvm/llvm-project/pull/73345
    https://github.com/llvm/llvm-project/pull/77039

  Binutils commits:
    6d13722a97cee3fd397e116bde3bcedbb1e220be

    [8 lines not shown]
DeltaFile
+176-0sys/sys/elf_common.h
+176-01 files

FreeBSD/src de5fcd1sys/powerpc/booke booke_machdep.c trap_subr.S, sys/powerpc/include pcpu.h

powerpc/booke: Add a machine check stack

Machine check and critical exceptions are independent of each other, and
can interrupt each other.  Since they're asynchronous we cannot trust
that the existing stack pointer (%r1) is correct at time of entry, so
add a private machine check stack separate from the critical exception
stack.  As part of this, switch to the STANDARD_CRIT_PROLOG() for
machine check exceptions, and overload the macro to specify the stack to
switch to.  Also add a savearea argument to CRIT_SRR_RESTORE() so that
we can restore machine check exception state from the right location.
DeltaFile
+18-12sys/powerpc/booke/trap_subr.S
+12-2sys/powerpc/booke/booke_machdep.c
+4-3sys/powerpc/include/pcpu.h
+1-0sys/powerpc/powerpc/genassym.c
+35-174 files

FreeBSD/src 4f9de24sys/dev/dpaa fman_port_tx.c fman_port_rx.c

dpaa/fman: Clean up port config code

No functional change, just simplify the code flow a little.
DeltaFile
+16-23sys/dev/dpaa/fman_port_rx.c
+9-21sys/dev/dpaa/fman_port_tx.c
+25-442 files

FreeBSD/src 2e01f5bshare/man/man4 rtwn_usb.4, sys/dev/rtwn/usb rtwn_usb_attach.h

rtwn: add ID for the Edimax EW-7611ULB

The dongle uses the rtl8723bu chip.

Also add an entry for it in usbdevs.
DeltaFile
+2-1share/man/man4/rtwn_usb.4
+1-0sys/dev/usb/usbdevs
+1-0sys/dev/rtwn/usb/rtwn_usb_attach.h
+4-13 files

FreeBSD/src fc3eca3sys/powerpc/powermac powermac_thermal.h smusat.c

powerpmac_thermal: Improve thermal regulation on G5 quad models

Add a new "high temp" threshold below the max temp, in order to ramp the
fans (or pump for liquid cooled quads) sooner, and avoid the maximum
temperature.  From the PR, this makes older G5 quads louder, but usable,
instead of hitting max temperature and forcing a thermal shutdown.

PR:             209202
Submitted by:   gmbroome (PR)
DeltaFile
+3-3sys/powerpc/powermac/powermac_thermal.c
+3-2sys/powerpc/powermac/smusat.c
+3-2sys/powerpc/powermac/smu.c
+1-1sys/powerpc/powermac/powermac_thermal.h
+10-84 files

FreeBSD/src 3d96130sys/dev/e1000 if_em.h e1000_defines.h

e1000: Report corrected LAN management FIFO ECC errors

I350 and I354 report a corrected ECC error in the LAN transmit
management FIFO through LANPERRSTS bit 16.  Unlike the parity status in
the same register, this condition neither interrupts nor stops traffic.

Poll the latch with the other corrected error status, increment a
dedicated counter, and clear only its RW1C bit.  Expose it as
dev.igb.N.memory_errors.corrected_lan_mng_fifo.

Fatal error handling returns before the periodic statistics sweep and
may reset the device.  Drain all I350 and I354 corrected-error status in
the admin task before recovery so the reset does not discard pending
indications.

This follows section 6.21.16 of the Intel Atom Processor C2000 Product
Family Integrated GbE Controller Programmer's Reference Manual,
document 537426 revision 1.5.


    [3 lines not shown]
DeltaFile
+13-1sys/dev/e1000/if_em.c
+1-0sys/dev/e1000/if_em.h
+1-0sys/dev/e1000/e1000_defines.h
+15-13 files

FreeBSD/src f127511sys/dev/e1000 e1000_defines.h if_em.c

e1000: Handle I354 internal memory errors

The Atom C2000 integrated GbE programming reference documents the I354
internal memory error architecture.  It shares the I350 PEIND and
ICR.FER routing, DMA and packet-buffer status, LAN parity status, and
required reset recovery.

Extend the existing I350 recovery and corrected error accounting paths
to I354.  Keep the PCIe corrected error mask family-specific.  C2000
PCIEECCSTS ends at the transmit write-data indication in bit 4 and does
not implement the I350 retry buffer indication in bit 5.  Do not expose
the corresponding retry counter on I354.

The PRM overview says a PCIe region failure requires a system reboot,
while the individual PCIEERRSTS fields prescribe CTRL.RST followed by
port reinitialization.  Use the register specific recovery, matching the
existing I350 path; failed reinitialization still leaves the port down.

This follows sections 5.6 and 6.21 of the Intel Atom Processor C2000

    [6 lines not shown]
DeltaFile
+40-35sys/dev/e1000/if_em.c
+10-8sys/dev/e1000/e1000_defines.h
+50-432 files

FreeBSD/src fe81d42contrib/tzdata asia southamerica

contrib/tzdata: import tzdata 2026d

Changes: https://github.com/eggert/tz/blob/2026d/NEWS

MFC after:      3 days
DeltaFile
+80-46contrib/tzdata/northamerica
+114-1contrib/tzdata/NEWS
+32-31contrib/tzdata/theory.html
+49-5contrib/tzdata/backward
+16-13contrib/tzdata/southamerica
+18-6contrib/tzdata/asia
+309-1028 files not shown
+332-12314 files

FreeBSD/src ef5bc5a. asia southamerica

Import tzdata 2026d
DeltaFile
+80-46northamerica
+114-1NEWS
+32-31theory.html
+49-5backward
+16-13southamerica
+18-6asia
+309-1028 files not shown
+332-12314 files

FreeBSD/src d9c798bsys/powerpc/booke pmap_64.c

powerpc/booke64: Remove unused pmap global
DeltaFile
+0-1sys/powerpc/booke/pmap_64.c
+0-11 files