FreeBSD/src 0d46d87. localtime.c zic.8.txt

Import tzcode 2025c
DeltaFile
+709-166localtime.c
+274-250zic.8.txt
+347-110zic.c
+230-212tzfile.5.txt
+218-197tz-art.html
+186-181theory.html
+1,964-1,11628 files not shown
+3,107-1,91434 files

FreeBSD/src ac4fb06sys/net pfvar.h, sys/netpfil/pf pf.c

pf: handle TTL expired during nat64

If the TTL (or hop limit) expires during nat64 translation we may
need to send the error message in the original address family (i.e.
pre-translation).
We'd usually handle this in pf_route()/pf_route6(), but at that point we
have already translated the packet, making it difficult to include it in
the generated ICMP message.

Check for this case in pf_translate_af() and send icmp errors directly
from it.

PR:             291527
MFC after:      2 weeks
Sponsored by:   Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D54166
DeltaFile
+36-0tests/sys/netpfil/pf/nat64.py
+20-5sys/netpfil/pf/pf.c
+0-1sys/net/pfvar.h
+56-63 files

FreeBSD/src a717a40sys/netpfil/pf pf.c, tests/sys/netpfil/pf sctp.py

pf: relax sctp v_tag verification

pf was too strict when validating SCTP tags. When a server receives a
retransmitted INIT it will reply with a random initiate tag every time.
However, pf saves the first initiate tag and expects every subsequent INIT_ACK
retransmission to have the same tag. This is not the case, leading to endless
INIT/INIT_ACK cycles.

Allow the tag to be updated as long as we've not gone past COOKIE_WAIT.

Add a test case to verify this.

MFC after:      2 weeks
See also:       https://redmine.pfsense.org/issues/16516
Sponsored by:   Rubicon Communications, LLC ("Netgate")

(cherry picked from commit bc3b72ff48953551e0e8bd6e5a2c718ecd973285)
DeltaFile
+67-0tests/sys/netpfil/pf/sctp.py
+6-2sys/netpfil/pf/pf.c
+73-22 files

FreeBSD/src f629ee0lib/libpfctl libpfctl.c

libpfctl: improve error handling

If we fail to open /dev/pf don't try to close it again. That would result in
errno getting overwritten by close(), hiding potentially useful information.

MFC after:      2 weeks
Sponsored by:   Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 238ad591da9eede122a708be925b6b6a20e9046b)
DeltaFile
+2-2lib/libpfctl/libpfctl.c
+2-21 files

FreeBSD/src cc638b2sys/netpfil/pf pf.c, tests/sys/netpfil/pf sctp.py

pf: relax sctp v_tag verification

pf was too strict when validating SCTP tags. When a server receives a
retransmitted INIT it will reply with a random initiate tag every time.
However, pf saves the first initiate tag and expects every subsequent INIT_ACK
retransmission to have the same tag. This is not the case, leading to endless
INIT/INIT_ACK cycles.

Allow the tag to be updated as long as we've not gone past COOKIE_WAIT.

Add a test case to verify this.

MFC after:      2 weeks
See also:       https://redmine.pfsense.org/issues/16516
Sponsored by:   Rubicon Communications, LLC ("Netgate")

(cherry picked from commit bc3b72ff48953551e0e8bd6e5a2c718ecd973285)
DeltaFile
+67-0tests/sys/netpfil/pf/sctp.py
+5-1sys/netpfil/pf/pf.c
+72-12 files

FreeBSD/src 7b4482fsys/netpfil/pf pf.c, tests/sys/netpfil/pf sctp.py

pf: relax sctp v_tag verification

pf was too strict when validating SCTP tags. When a server receives a
retransmitted INIT it will reply with a random initiate tag every time.
However, pf saves the first initiate tag and expects every subsequent INIT_ACK
retransmission to have the same tag. This is not the case, leading to endless
INIT/INIT_ACK cycles.

Allow the tag to be updated as long as we've not gone past COOKIE_WAIT.

Add a test case to verify this.

MFC after:      2 weeks
See also:       https://redmine.pfsense.org/issues/16516
Sponsored by:   Rubicon Communications, LLC ("Netgate")

(cherry picked from commit bc3b72ff48953551e0e8bd6e5a2c718ecd973285)
DeltaFile
+67-0tests/sys/netpfil/pf/sctp.py
+6-2sys/netpfil/pf/pf.c
+73-22 files

FreeBSD/src a35545esys/vm vm_glue.c

vm: Fix kstack alignment assertion

The expectation that the allocation will be aligned to the kstack size
only applies when allocating from a kstack arena, not when allocating a
non-standard size from the kernel arena.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Sponsored by:   NetApp, Inc.
Fixes:          7a79d0669761 ("vm: improve kstack_object pindex calculation to avoid pindex holes")
Reviewed by:    bnovkov, siderop1_netapp.com
Differential Revision:  https://reviews.freebsd.org/D54171
DeltaFile
+6-4sys/vm/vm_glue.c
+6-41 files

FreeBSD/src e3fa0a2usr.sbin/bhyve pci_uart.c

bhyve: pci-uart needs to also set subclass and function

edk2 PciSioSerialDxe driver setup depends on subclass and function
being set, adding them does make it possible to access pci-uart
serial port from UEFI.

Reviewed by:            corvink
Differential Revision:  https://reviews.freebsd.org/D54167
Sponsored by:           Edgecast Cloud LLC
DeltaFile
+2-0usr.sbin/bhyve/pci_uart.c
+2-01 files

FreeBSD/src a86dc94contrib/tzdata theory.html Makefile

contrib/tzdata: import tzdata 2025c

Changes: https://github.com/eggert/tz/blob/2025c/NEWS

MFC after:      3 days
DeltaFile
+186-181contrib/tzdata/theory.html
+138-58contrib/tzdata/Makefile
+135-0contrib/tzdata/NEWS
+47-47contrib/tzdata/zonenow.tab
+36-16contrib/tzdata/europe
+41-10contrib/tzdata/northamerica
+583-31216 files not shown
+682-40822 files

FreeBSD/src 7d227f6. theory.html Makefile

Import tzdata 2025c
DeltaFile
+186-181theory.html
+138-58Makefile
+135-0NEWS
+47-47zonenow.tab
+36-16europe
+41-10northamerica
+583-31217 files not shown
+693-41923 files

FreeBSD/src d285043sys/dev/aq aq_common.h aq_dbg.h

aq(4): Use sys, not userland, headers

And remove some unused definitions.

Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D54152
DeltaFile
+1-7sys/dev/aq/aq_common.h
+1-1sys/dev/aq/aq_dbg.h
+1-1sys/dev/aq/aq_fw.c
+1-1sys/dev/aq/aq_fw1x.c
+1-1sys/dev/aq/aq_fw2x.c
+0-1sys/dev/aq/aq_hw.h
+5-126 files

FreeBSD/src 473bc57share/man/man4 bnxt.4

bnxt.4: Adjust for recent HARDWARE

+ Adjust document description matching another terabit driver
+ Add BCM576XX family to DESCRIPTION, switch to XX notation
+ Add some model names, additional models, and improvements to HARDWARE

MFC after:              3 days
Reviewed by:            sumit.saxena_broadcom.com (previous)
Differential Revision:  https://reviews.freebsd.org/D54028
DeltaFile
+23-10share/man/man4/bnxt.4
+23-101 files

FreeBSD/src e967a2asys/kern uipc_socket.c

sockets: remove compat shim for divert(4)

All known software in ports had been addressed three years ago and the
shim stays in stable/14 and stable/15 for another couple years with its
printf(), so all ourliers are expected to conform before 16.0-RELEASE.
See 8624f4347e8133911b0554e816f6bedb56dc5fb3 for details.
DeltaFile
+0-11sys/kern/uipc_socket.c
+0-111 files

FreeBSD/src 567a097sys/compat/linuxkpi/common/src linux_80211.c linux_80211.h

LinuxKPI: 802.11: lock down the "txq_scheduled" tailq

For consistency rename the "scheduled_txqs" tailq to
"txq_scheduled" and add a lock per txq ("txq_scheduled_lock[]").
We use the "_bh" locking as this called from the device driver.

This fixes panics due to concurrent access to the tailq, especially
in between "first" and "remove" on the out-direction and between
"insert" and "elem_init" on the in-direction.

This was easily reproducible just running iperf3 at basic rates for
a few seconds to minutes with multiple chipsets, not only rtw89.

Sponsored by:   The FreeBSD Foundation
PR:             290636
Reported by:    arved, and others before
MFC after:      3 days
DeltaFile
+40-11sys/compat/linuxkpi/common/src/linux_80211.c
+2-1sys/compat/linuxkpi/common/src/linux_80211.h
+42-122 files

FreeBSD/src 0a19464sys/cam cam_ccb.h, sys/dev/nvme nvme_sim.c

nvme: Only attach to storage NVMe devices

Only attach CAM to the nvme storage devices.

Sponsored by:           Netflix
DeltaFile
+8-1sys/dev/nvme/nvme_sim.c
+1-1sys/cam/cam_ccb.h
+9-22 files

FreeBSD/src 8486028sys/dev/nvd nvd.c, sys/dev/nvme nvme.c nvme.h

nvme: remove now-redundant consumer interface

Now that we've moved to newbus methods, we can delete this...

Sponsored by:           Netflix
Reviewed by:            dab
Differential Revision:  https://reviews.freebsd.org/D54095
DeltaFile
+0-133sys/dev/nvme/nvme.c
+0-14sys/dev/nvme/nvme.h
+0-5sys/dev/nvme/nvme_private.h
+0-2sys/dev/nvd/nvd.c
+0-1sys/dev/nvme/nvme_ctrlr.c
+0-1555 files

FreeBSD/src b6b52a9sys/dev/nvme nvme.c nvme_ctrlr.c

nvme: Notify failure with newbus call

Sponsored by:           Netflix
Reviewed by:            dab
Differential Revision:  https://reviews.freebsd.org/D51391
DeltaFile
+10-13sys/dev/nvme/nvme.c
+2-2sys/dev/nvme/nvme_ctrlr.c
+1-1sys/dev/nvme/nvme_private.h
+13-163 files

FreeBSD/src 9b170dcsys/dev/nvme nvme.c nvme_ctrlr.c

nvme: Use new method to do async notifications

Nothing uses these at the moment, but it would be useful to use in the
future so convert this functionality to an newbus function dispatch.

Sponsored by:           Netflix
Reviewed by:            dab
Differential Revision:  https://reviews.freebsd.org/D51390
DeltaFile
+14-15sys/dev/nvme/nvme.c
+5-6sys/dev/nvme/nvme_ctrlr.c
+4-4sys/dev/nvme/nvme_private.h
+23-253 files

FreeBSD/src aed4471sys/dev/nvd nvd.c, sys/dev/nvme nvme_ctrlr.c nvme.c

nvd: Connect nvme_if methods

Conenct methods to manage namespaces explicitly to replace the old
consumer interface.

Sponsored by:           Netflix
Differential Revision:  https://reviews.freebsd.org/D51388
DeltaFile
+135-102sys/dev/nvd/nvd.c
+31-16sys/dev/nvme/nvme_ctrlr.c
+0-36sys/dev/nvme/nvme.c
+1-1sys/dev/nvme/nvme_if.m
+0-2sys/dev/nvme/nvme_private.h
+1-1sys/modules/nvd/Makefile
+168-1586 files

FreeBSD/src a21f128sys/dev/nvme nvme_sim.c, sys/modules/nvme Makefile

nvme_sim: Connect to events broadcast with nvme_if

Connect up the nvme_ns_* events. Copy code from old ways, as needed, and
refactor a little.

Sponsored by:           Netflix
Reviewed by:            dab
Differential Revision:  https://reviews.freebsd.org/D51387
DeltaFile
+93-70sys/dev/nvme/nvme_sim.c
+1-0sys/modules/nvme/Makefile
+94-702 files

FreeBSD/src b32470bsys/dev/nvd nvd.c

nvd: Attach as a child of nvme

Rather than registering as a consumer of the nvme controller, hook into
the child device and use that.

This is a small regression at the moment: we don't fail the device when
that happens at runtime.

Sponsored by:           Netflix
Differential Revision:  https://reviews.freebsd.org/D51385
DeltaFile
+73-37sys/dev/nvd/nvd.c
+73-371 files

FreeBSD/src 1e39b5dsys/dev/nvme nvme_sim.c

nvme_sim: Attach as a child of nvme

Rather than registering as a consumer of the nvme controller, hook into
the child device and use that.

This is a small regression at the moment: we don't fail the device when
that happens at runtime, and we don't handle new namespaces when they
arrive (though that feature is currently fragile).

Sponsored by:           Netflix
Differential Revision:  https://reviews.freebsd.org/D51384
DeltaFile
+86-54sys/dev/nvme/nvme_sim.c
+86-541 files

FreeBSD/src 743fbb5sys/dev/nvme nvme.c nvme_ctrlr.c

nvme: Add child device for each controller

Step 1 in the move from registering consumers for NVMe drives to newbus
nvme drives:

Add a child device and attach them for each controller that we
initialize. Detach them when we detach the main device.

Sponsored by:           Netflix
Reviewed by:            dab
Differential Revision:  https://reviews.freebsd.org/D51383
DeltaFile
+5-0sys/dev/nvme/nvme.c
+5-0sys/dev/nvme/nvme_ctrlr.c
+10-02 files

FreeBSD/src e5c770dsys/conf files, sys/dev/nvme nvme_if.m

nvme: Nvme controller generated events

Interface for the nvme driver notifying its children of different
events: async notifications, namespace events and device failure. These
aren't yet connected.

Sponsored by:           Netflix
Reviewed by:    dab
Differential Revision:  https://reviews.freebsd.org/D51386
DeltaFile
+55-0sys/dev/nvme/nvme_if.m
+1-0sys/conf/files
+56-02 files

FreeBSD/src a8d8bf4sys/kern kern_sendfile.c

sendfile: if sendfile_getobj() fails jump to the function epilogue

The functional change here is that *sent would be zeroed.  Note that some
portable applications, e.g. OpenSSL, use a wrapper around our sendfile(2)
to make it more Linux-like.  These wrappers are usually written in a
manner that expects *sbytes to always be initialized regardless of the
error code returned.
DeltaFile
+1-1sys/kern/kern_sendfile.c
+1-11 files

FreeBSD/src 45b3846sys/compat/linux linux_if.c

linux: fix unr(9) leak on module unload

Suggested by:   jhb
Fixes:          607f11055d2d421770963162a4d9a99cdd136152
DeltaFile
+0-2sys/compat/linux/linux_if.c
+0-21 files

FreeBSD/src b19e5e7sys/cam cam_periph.c, sys/cam/scsi scsi_all.c scsi_all.h

cam: Expand the parts of the sense buffer we report

Decode the descriptors we put into devd.

Sponsored by:           Netflix
DeltaFile
+207-0sys/cam/scsi/scsi_all.c
+2-6sys/cam/cam_periph.c
+3-0sys/cam/scsi/scsi_all.h
+212-63 files

FreeBSD/src d3e7918sys/cam/scsi scsi_all.c scsi_all.h

cam: decode and print direct accecss block device sense data

A more efficient way to include multiple bits of data in a sense
decriptor was defined in SBC4 in 2020. Decode and print it.

Sponsored by:           Netflix
DeltaFile
+45-2sys/cam/scsi/scsi_all.c
+23-0sys/cam/scsi/scsi_all.h
+68-22 files

FreeBSD/src d077ec7libexec/rc/rc.d ipfilter

rc.d/ipfilter: ipfilter must be enabled for options to take

ipfilter options are erased and reset to default when ipfilter is
disabled. This results in nullifying options from rc.conf that were
previously set.

8d6feaaaa26f, which added this code, was incorrect as it was for a bug in
ipfilter 4.2.28 and no longer applies to ipfilter 5.1.2.

Fixes:          8d6feaaaa26f

(cherry picked from commit cc1e4aae5a67a20f3c0fff13612364e6e4404f93)
DeltaFile
+3-6libexec/rc/rc.d/ipfilter
+3-61 files

FreeBSD/src 07b5eb3libexec/rc/rc.d ipfilter ippool

rc.d/{ipfilter,ippool}: Fix typo in variable name

(cherry picked from commit f04b23ce3547c238dcd52d4fa1a7d401ad38d1b1)
DeltaFile
+1-1libexec/rc/rc.d/ipfilter
+1-1libexec/rc/rc.d/ippool
+2-22 files