FreeBSD/src 74654balib/libc/gen strtofflags.c, sys/fs/tmpfs tmpfs_subr.c

chflags: Add a new UF_DONTCACHE flag

This internet draft (which is close to being an RFC)
specifies a new NFSv4.2 attribute which tells the NFSv4.2
client to not cache file data. (Similar to O_DIRECT, but
triggered by this attribute set on the file on the NFSv4.2
server and not by the application's open(2).)

https://datatracker.ietf.org/doc/draft-ietf-nfsv4-uncacheable-files/

This patch adds a new chflags(1) flag called UF_DONTCACHE to
implement this.

Patches for NFS and ZFS will be done separately.

Reviewed by:    kib
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D58181
DeltaFile
+3-1lib/libc/gen/strtofflags.c
+1-1sys/fs/tmpfs/tmpfs_subr.c
+1-1sys/ufs/ufs/ufs_vnops.c
+1-0sys/sys/stat.h
+6-34 files

FreeBSD/src 87fb416usr.sbin/usbdump usbdump.c usbdump.8

usbdump: add -t to omit timestamps

Matches tcpdump naming, but without getting more intense as you add more
-t.  This slightly reduces the post-processing needed on usbdump output
to diff two transactions.

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D58196
DeltaFile
+22-13usr.sbin/usbdump/usbdump.c
+7-2usr.sbin/usbdump/usbdump.8
+29-152 files

FreeBSD/src ad91d47sbin/devd devd.conf, sys/netgraph/bluetooth/hci ng_hci_main.c

bluetooth: signal devd on netgraph device events

Currently, devd emits events for external adapters only.

Send Netgraph init/disconnect events to devd so the internal adapter's
state could be asserted from userland.

(adrian - indentation changes.)

Signed-off-by: Kirill Orlov (-k) <slowdive at me.com>
Reviewed-by: adrian, imp
Pull-Request: https://github.com/freebsd/freebsd-src/pull/2196
DeltaFile
+71-0sys/netgraph/bluetooth/hci/ng_hci_main.c
+15-0sbin/devd/devd.conf
+86-02 files

FreeBSD/src 4085d19share/man/man4 hidwacom.4 Makefile, sys/conf files

hidwacom: Add Wacom ExpressKey Remote driver

The Wacom ExpressKey Remote (ACK-411050) is a wireless button pad
with 18 programmable buttons and a touch ring, used as a companion
device with Wacom tablets.

It communicates via a USB wireless receiver (0x056a:0x0331) using a
vendor-specific HID report (ID 0x11).

This driver exposes the device via evdev:
  - 18 buttons: BTN_0–BTN_Z, BTN_BASE, BTN_BASE2
  - Touch ring position via ABS_WHEEL (0–71; reports 0 on release)
  - Pad activity marker via ABS_MISC (set to 15/PAD_DEVICE_ID when
    any input is active, 0 when idle that matches Linux wacom driver
    convention)
  - Remote serial number via MSC_SERIAL (for userland per-remote
    identification)

Battery level, charging state, and touch ring mode (3 LEDs, values 0–2)

    [11 lines not shown]
DeltaFile
+293-0sys/dev/hid/hidwacom.c
+87-0share/man/man4/hidwacom.4
+8-0sys/modules/hid/hidwacom/Makefile
+1-0share/man/man4/Makefile
+1-0sys/conf/files
+1-0sys/dev/usb/usbdevs
+391-01 files not shown
+392-07 files

FreeBSD/src 7aa34e1sys/dev/rge if_rge.c

rge: fix multicast add/removal by using if_getdrvflags()

Using if_getflags() to check IFF_DRV_RUNNING is wrong;
if_getdrvflags() is required.  This issue resulted in the
multicast filter not being updated.

This was an oversight by me in my initial port.

Thanks to danilo@ for reporting it and Oleg <oleglelchuk at gmail.com>
for the fix.

PR: kern/295176
DeltaFile
+1-1sys/dev/rge/if_rge.c
+1-11 files

FreeBSD/src 23a6997share/man/man4 fwdv.4 Makefile, sys/conf NOTES

fwdv: add AV/C DV capture driver for FireWire camcorders

Add fwdv(4) driver for DV video capture from FireWire camcorders
using AV/C protocol and isochronous streaming.

Supports AV/C tape transport commands (play, stop, ff, rewind, pause,
record, eject) with NTSC/PAL auto-detection and read(2) interface
for frame capture.

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D58122
DeltaFile
+1,101-0sys/dev/firewire/fwdv.c
+195-0sys/dev/firewire/fwdv.h
+80-0share/man/man4/fwdv.4
+11-0sys/modules/firewire/fwdv/Makefile
+1-0share/man/man4/Makefile
+1-0sys/conf/NOTES
+1,389-02 files not shown
+1,391-08 files

FreeBSD/src d387a43sys/dev/iicbus/pmic/rockchip rk805.c rk808.c

rockchip: fix stack overflow in rk8xx_rtc

Presumably surfaced by -fstack-protector-strong, rk8xx_settime was
triggering SSP when ntpd set the time on the RockPro64, at the very
least.  A minor oops meant that the weeks mask was getting tossed into
the wrong field, and the mask was never populated.  The mask is 0x7 for
all three of these, thus overflowing the `data` array in settime by one
byte.

PR:             296719
Reported by:    jsm, "Tenkawa" on Discord
Reviewed by:    mmel
Differential Revision:  https://reviews.freebsd.org/D58182
DeltaFile
+2-1sys/dev/iicbus/pmic/rockchip/rk805.c
+2-1sys/dev/iicbus/pmic/rockchip/rk808.c
+2-1sys/dev/iicbus/pmic/rockchip/rk817.c
+6-33 files

FreeBSD/src f72cfef. ObsoleteFiles.inc

Add a few missed files to ObsoleteFiles.inc

There were still some left-over files under usr/tests/gnu/usr.bin/diff,
causing the directory to not be fully removed. Add these to OLD_FILES.

Fixes:          134a4c78d070
DeltaFile
+4-0ObsoleteFiles.inc
+4-01 files

FreeBSD/src 62e22d7share/man/man4 tcp_bblog.4 Makefile

tcp_bblog.4: Add a manual page for TCP Blackbox Logging

The tcp_bblog facility provides structured logging of TCP stack activity
for debugging and performance analysis. It is implemented in the kernel
and allows per-connection tracing of TCP events with low overhead.

Reviewed by:    tuexen, ziaee
MFC after:      1 week
Relnotes:       yes
Differential Revision:  https://reviews.freebsd.org/D56252
DeltaFile
+147-0share/man/man4/tcp_bblog.4
+1-0share/man/man4/Makefile
+148-02 files

FreeBSD/src b34fd60lib/libc/locale localeconv.c

libc locale/localeconv.c: use release semantic when clearing locale_changed

PR:     296410

(cherry picked from commit 4efbcf36a0d49ab142023a767871532f515f1381)
DeltaFile
+2-2lib/libc/locale/localeconv.c
+2-21 files

FreeBSD/src df9d640stand/libsa zstdfs.c xz.c

loader: Add forgotten xz.c and zstdfs.c

These were overlooked when I added compression support.

Fixes: 86d719ae68aa ("loader: Add xzfs, like gzipfs but with xz.")
Fixes: c61ee49cd06a ("loader: zstd based filesystem, zstdfs like gzipfs")
Sponsored by:           Netflix
DeltaFile
+308-0stand/libsa/zstdfs.c
+21-0stand/libsa/xz.c
+329-02 files

FreeBSD/src 5e0b96esys/fs/tmpfs tmpfs_vnops.c

tmpfs: extract tmpfs_rename_check/set_parent() from tmpfs_rename()

Reviewed by:    mckusick
Discussed with: markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D57658
DeltaFile
+89-78sys/fs/tmpfs/tmpfs_vnops.c
+89-781 files

FreeBSD/src 631b8ffsys/fs/tmpfs tmpfs_vnops.c

tmpfs_rename(): style

Reviewed by:    mckusick
Discussed with: markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D57658
DeltaFile
+2-2sys/fs/tmpfs/tmpfs_vnops.c
+2-21 files

FreeBSD/src 8e6e77esys/kern vfs_syscalls.c, sys/sys fcntl.h

renameat(2): add AT_RENAME_EXCHANGE flag

Currently no filesystems support it.

Reviewed by:    mckusick
Discussed with: markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D57658
DeltaFile
+57-13sys/kern/vfs_syscalls.c
+2-0sys/sys/fcntl.h
+59-132 files

FreeBSD/src 7e06c33sys/fs/tmpfs tmpfs_vnops.c

tmpfs: implement AT_RENAME_EXCHANGE

Reviewed by:    mckusick
Discussed with: markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D57658
DeltaFile
+68-24sys/fs/tmpfs/tmpfs_vnops.c
+68-241 files

FreeBSD/src 3055c47lib/libsys rename.2

rename.2: Document AT_RENAME_EXCHANGE

Reviewed by:    mckusick
Discussed with: markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D57658
DeltaFile
+6-0lib/libsys/rename.2
+6-01 files

FreeBSD/src 4735ef6usr.sbin/zonectl zonectl.c

zonectl: display conventional zones better during RZ

zonectl's Report Zones subcommand displays a tabular list of zones.  A
conventional zone's WP column is displayed as 0xffffffffffffffff , the
literal value that the HDD reports.  But that's too wide for the column,
causing the text to be misaligned.  It's also not really meaningful,
because the Write Pointer isn't really defined for a Conventional zone.
Change it to "-1" to fix the text misalignment.

MFC after:      2 weeks
Sponsored by:   ConnectWise
Reviewed by:    fuz
Differential Revision: https://reviews.freebsd.org/D57512
DeltaFile
+14-3usr.sbin/zonectl/zonectl.c
+14-31 files

FreeBSD/src 541e6e2share/mk bsd.dirs.mk

bsd.dirs.mk: Fix MK_INSTALL_AS_USER for directories

Sponsored by:           Netflix
DeltaFile
+5-0share/mk/bsd.dirs.mk
+5-01 files

FreeBSD/src a7ebe2dtools/boot boot-test.sh boot-test.sh.8

boot-test.sh: Test many boot loader combinations.

This is a script that eventually will test boot with qemu all the
supproted combinations for the boot loader. There's several things that
could be done with gptboot or boot0sio (or not) that aren't tested. We
don't test the 10-odd hardware root devices we support, nor do we test
complex scenarios like RELAXED vs STRICT zfs efi booting.

However, the scenarios we do support are included here. We test aarch64,
amd64, armv7, powerpc64, powerpc64le, and riscv64 for BIOS, UEFI, and
Prep and OpenFirmware (as appropriate) crossed with CDROM, MBR and GPT
(and some hybrid) crossed with lua, 4th and simple loaders. Plus some
linuxboot and memdisk scenarios, including the recently added
compression for ram disk scenarios:

=== Results: 67 passed, 3 failed, 9 timed out (of 79) ===

The timeouts are well understood, usually failure to find the root
disk. The failures are bad console assumptions. netboot-bios fails

    [39 lines not shown]
DeltaFile
+1,677-0tools/boot/boot-test.sh
+303-0tools/boot/boot-test.sh.8
+97-0tools/boot/boot-test.json
+2,077-03 files

FreeBSD/src 30d4d3dsys/fs/nfs nfs_var.h, sys/fs/nfsserver nfs_nfsdsocket.c

nfsd: Commit missing patches for c52bcd09c2a6

Oops, I missed the other files for the commit.

This should fix the build.

Pointy hat goes on me.

MFC after:      2 weeks
Fixes:  c52bcd09c2a6 ("nfsd: Garbage collect stray NFSv4 state")
DeltaFile
+2-1sys/fs/nfsserver/nfs_nfsdsocket.c
+1-0sys/fs/nfs/nfs_var.h
+3-12 files

FreeBSD/src c61ee49stand/efi/loader conf.c, stand/i386/loader conf.c

loader: zstd based filesystem, zstdfs like gzipfs

Off by default.

Sponsored by:           Netflix
DeltaFile
+14-0stand/libsa/libsa.3
+6-0stand/libsa/Makefile
+4-0stand/kboot/kboot/conf.c
+1-0stand/userboot/userboot/conf.c
+1-0stand/efi/loader/conf.c
+1-0stand/i386/loader/conf.c
+27-01 files not shown
+28-07 files

FreeBSD/src 86d719astand loader.mk, stand/libsa xzfs.c bzipfs.c

loader: Add xzfs, like gzipfs but with xz.

This is just like gzipfs or bzipfs, except done with the newer xz
program. This is off by default for the moment.

Sponsored by:           Netflix
DeltaFile
+309-0stand/libsa/xzfs.c
+3-2stand/libsa/bzipfs.c
+3-2stand/libsa/gzipfs.c
+4-0stand/loader.mk
+3-0stand/powerpc/ofw/conf.c
+3-0stand/uboot/arch/powerpc/conf.c
+325-46 files not shown
+336-512 files

FreeBSD/src dc6c193stand defs.mk, stand/efi/loader decompress.c Makefile

loader.efi: Add xz decompression

We can now decompress .xz compressed memory disks, like
FreeBSD-15.1-RELEASE-amd64-disc1.iso.xz

Sponsored by:           Netflix
Differential Revision:  https://reviews.freebsd.org/D58073
DeltaFile
+96-5stand/efi/loader/decompress.c
+7-4sys/contrib/xz-embedded/freebsd/xz_config.h
+7-0stand/libsa/Makefile
+5-0stand/defs.mk
+1-1stand/efi/loader/Makefile
+1-1stand/efi/loader/decompress.h
+117-116 files

FreeBSD/src 7db502dstand/efi/loader Makefile, stand/i386/loader Makefile

loader: Add xzfs support by defualt to BIOS and EFI loaders

For the BIOS, add xzfs support. This is a tiny increase in the loader
size, but allows us to fetch compressed files from any of the
filesystems we support, including over the network.

For EFI, also add gzipfs and bzip2fs support we well. The increment for
these files is tiny.

Sponsored by:           Netflix
DeltaFile
+3-2stand/i386/loader/Makefile
+3-0stand/efi/loader/Makefile
+6-22 files

FreeBSD/src 4d37c2etests/sys/net/routing test_routing.sh

routing: Add test for nexthop subscription

Make sure we have reachability when one of our nexthops
gets down without deleting the route.

Differential Revision: https://reviews.freebsd.org/D57552
DeltaFile
+84-6tests/sys/net/routing/test_routing.sh
+84-61 files

FreeBSD/src be42ac4sys/net/route nhgrp_ctl.c nhop_ctl.c

routing: Replace unreachable nhops in nhgrp

If a nhop gets an interface event, revalidate the nhops and
immediately try to recompile existing nexthop groups by
replacing unreachable nexthops with reachable ones.
If none are available, recompile them back to
their normal position in nexthop group slots.

Reviewed by:    glebius
Discussed with: markj
Relnotes:       yes
Differential Revision: https://reviews.freebsd.org/D57389
DeltaFile
+60-6sys/net/route/nhgrp_ctl.c
+13-2sys/net/route/nhop_ctl.c
+1-0sys/net/route/route_var.h
+74-83 files

FreeBSD/src d05d1f2sys/net route.h, sys/net/route nhop_ctl.c nhop.h

routing: Subscribe nhops to ifnet link events

Update nexthop flags with interface link status events and
instead of checking link status of interface for every packet
only check the reachability flag of the final nexthop.

Reviewed by:    glebius
Discussed with: markj
Differential Revision: https://reviews.freebsd.org/D57375
DeltaFile
+66-2sys/net/route/nhop_ctl.c
+1-7sys/net/route/nhop.h
+3-3sys/netinet6/in6_fib.c
+3-3sys/netinet/in_fib.c
+1-3sys/net/route.h
+1-0sys/net/route/route_ctl.h
+75-186 files

FreeBSD/src c52bcd0sys/fs/nfsserver nfs_nfsdstate.c

nfsd: Garbage collect stray NFSv4 state

When a file is deleted on the NFS server by another client,
any NFSv4 state related to that file is left stranded.
This happens because the NFSv4 operations that free the
state use a CFH, which is set by a PutFH operation.
However, the PutFH fails with ESTALE because the file has
been deleted.

This patch adds a function called nfsrv_freestrandedstate()
that frees all the NFSv4 state related to a file and calls
this function when PutFH will be replying ESTALE.

While here, a helper function was defined to handle free'ng
of the nfslockfile structure and replaces the two places
where nearly identical code does this.

Reported by:    Richard Purdie <richard.purdie at linuxfoundation.org>
Tested by:      Michael Halstead <mhalstead at linuxfoundation.org>
MFC after:      2 weeks
DeltaFile
+75-14sys/fs/nfsserver/nfs_nfsdstate.c
+75-141 files

FreeBSD/src 819af80contrib/tzdata africa northamerica

contrib/tzdata: import tzdata 2026c

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

(cherry picked from commit 665bb2d9a440d33e2ec2f9151e45b8cda93433ae)
DeltaFile
+32-159contrib/tzdata/africa
+107-14contrib/tzdata/northamerica
+71-8contrib/tzdata/NEWS
+17-28contrib/tzdata/Makefile
+14-7contrib/tzdata/europe
+9-9contrib/tzdata/theory.html
+250-2258 files not shown
+272-24414 files

FreeBSD/src 6470095contrib/tzdata africa northamerica

contrib/tzdata: import tzdata 2026c

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

(cherry picked from commit 665bb2d9a440d33e2ec2f9151e45b8cda93433ae)
DeltaFile
+32-159contrib/tzdata/africa
+107-14contrib/tzdata/northamerica
+71-8contrib/tzdata/NEWS
+17-28contrib/tzdata/Makefile
+14-7contrib/tzdata/europe
+9-9contrib/tzdata/theory.html
+250-2258 files not shown
+272-24414 files