FreeBSD/src cd7b650share/man/man4 fwisound.4, sys/conf files

fwisound: add Apple FireWire audio driver

Expose audio capture from Apple FireWire devices as a standard
pcm(4)/dsp(4) device via the newpcm framework.

(adrian: I've tested this on an isight camera and looped
it back to USB speakers via "sox -t oss /dev/dsp3 -t oss /dev/dsp4")

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D58109
DeltaFile
+609-0sys/dev/firewire/fwisound.c
+233-0sys/dev/firewire/fwisound_pcm.c
+112-0sys/dev/firewire/fwisound.h
+96-0share/man/man4/fwisound.4
+12-0sys/modules/firewire/fwisound/Makefile
+2-0sys/conf/files
+1,064-03 files not shown
+1,067-09 files

FreeBSD/src d128ddfsys/dev/firewire fwcam.c

fwcam: retry ISO enable after re-powering camera

Some IIDC cameras power down the sensor when inactive (e.g. lens
cover closed) and reject ISO enable with EIO. Re-power the camera
and retry once before failing.

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D58101
DeltaFile
+16-1sys/dev/firewire/fwcam.c
+16-11 files

FreeBSD/src 56d4deesys/dev/firewire fwcam.c

fwcam: defer ISO streaming to first read

Moved ISO start to first usage. Opening the device now
only validates state and increments the open count, allowing info
queries and mode changes without starting the camera. ISO streaming
begins on demand when userland first reads frame data.
This avoid the camera led to turn-on at attach.

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D58100
DeltaFile
+10-14sys/dev/firewire/fwcam.c
+10-141 files

FreeBSD/src fa65155sys/compat/linux linux_socket.c

linux: Fix sockopt copyout

The Linux getsockopt did not check the size of the provided buffer when
copying out the value, leading to buffer overflows (e.g., for TCP_INFO).

Fix is to use the smaller of the option value size and the provided
buffer.

(cherry picked from commit 471fdd91d9156aeab026dc420fb97d97be872d65)
DeltaFile
+14-3sys/compat/linux/linux_socket.c
+14-31 files

FreeBSD/src 687f618sys/compat/linux linux_misc.c linux_misc.h

linux: Add support for PR_SET_VMA to prctl(2)

Implement dummy support for PR_SET_VMA with PR_SET_VMA_ANON_NAME in
prctl(2).  This prevents applications from receiving EINVAL when
attempting to name anonymous memory regions.

(cherry picked from commit a64148e21bb4ac976345cbedbd32942f97f07cc1)
DeltaFile
+7-0sys/compat/linux/linux_misc.c
+2-0sys/compat/linux/linux_misc.h
+9-02 files

FreeBSD/src 750d429sys/kern vfs_cache.c

vfs cache: further massage some commentary
DeltaFile
+13-5sys/kern/vfs_cache.c
+13-51 files

FreeBSD/src 665bb2dcontrib/tzdata africa northamerica

contrib/tzdata: import tzdata 2026c

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

MFC after:      3 days
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 dd6fd39. africa northamerica

Import tzdata 2026c
DeltaFile
+32-159africa
+107-14northamerica
+71-8NEWS
+17-28Makefile
+14-7europe
+9-9theory.html
+250-2258 files not shown
+272-24414 files

FreeBSD/src 815dc35sys/dev/sound/pcm channel.c buffer.c

sound: Pass format and speed as arguments to sndbuf_create()

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+2-6sys/dev/sound/pcm/channel.c
+4-1sys/dev/sound/pcm/buffer.c
+1-1sys/dev/sound/pcm/buffer.h
+7-83 files

FreeBSD/src 69c4e2bsys/dev/sound/pcm dsp.c

sound: Remove dead code in dsp_ioctl()

Sponsored by;   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+0-8sys/dev/sound/pcm/dsp.c
+0-81 files

FreeBSD/src c0dc283etc/mtree BSD.tests.dist, tests/sys/fs Makefile

tests: Add pjdfstest integration

Use ATF to wrap the new reimplementation of pjdfstest that came out of
GSOC 2022, now available in the ports tree as filesystems/pjdfstest.

So far I added tests for UFS (with several different option
combinations), tmpfs and ZFS, plus ZFS+nullfs.  All of these create a
memory disk, initialize the filesystem, and point the pjdfstest
executable at it.

In the future it would be good to add tests for at least NFS and p9fs.

Reviewed by:    asomers
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D56605

(cherry picked from commit 8fd4d1c0fff8441b42dbab767810db7aeaf796c3)
DeltaFile
+130-0tests/sys/fs/pjdfstest/ufs.sh
+96-0tests/sys/fs/pjdfstest/zfs.sh
+60-0tests/sys/fs/pjdfstest/tmpfs.sh
+12-0tests/sys/fs/pjdfstest/Makefile
+2-0etc/mtree/BSD.tests.dist
+1-0tests/sys/fs/Makefile
+301-06 files

FreeBSD/src 1a715cbsys/dev/virtio/p9fs virtio_p9fs.c

virtio/p9fs: Define the channel list mutex as static

No functional change intended.

MFC after:      1 week

(cherry picked from commit 2586f9f459adc6610957ba0d74a167b85fe24ac7)
DeltaFile
+1-1sys/dev/virtio/p9fs/virtio_p9fs.c
+1-11 files

FreeBSD/src bfcac89sys/dev/virtio/p9fs virtio_p9fs.c, sys/fs/p9fs p9_transport.h

p9fs: Remove the "cancel" transport method

Nothing calls it, and the existing virtio transport doesn't implement
it.  No functional change intended.

MFC after:      1 week

(cherry picked from commit 94989248641a17f5c2afc367df4845e4113779a1)
DeltaFile
+0-8sys/dev/virtio/p9fs/virtio_p9fs.c
+0-2sys/fs/p9fs/p9_transport.h
+0-102 files

FreeBSD/src fae2b85lib/librpcsec_gss svc_rpcsec_gss.c

librpcsec_gss: Fix an off-by-one in rpc_gss_get_principal_name()

Include an extra byte for the nul-terminator, otherwise we may end up
with an out-of-bounds write.

The corresponding bug in the kernel implementation was fixed by commit
e3081f7e3e2d ("kgssapi(4): Fix string overrun in Kerberos principal construction").

Reviewed by:    markj
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D57738

(cherry picked from commit 635ad6f2ec97e9c6b1f15620cd5ee84eb632082f)
DeltaFile
+1-1lib/librpcsec_gss/svc_rpcsec_gss.c
+1-11 files

FreeBSD/src c8cc442sys/kern uipc_usrreq.c

unix: Fix a socket refcount leak in uipc_sendfile_wait()

Fixes:          d15792780760 ("unix: new implementation of unix/stream & unix/seqpacket")
Reviewed by:    glebius
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D57967

(cherry picked from commit 2a4b8fd1dc070e71fbaab6f12c1c9e4452652aa7)
DeltaFile
+3-1sys/kern/uipc_usrreq.c
+3-11 files

FreeBSD/src 2e1226clib/libnetbsd/sys types.h

libnetbsd: Avoid bringing in all of sys/param.h in sys/types.h

It's okay to hard-code NBBY, as the value is somewhat unlikely to
change.

The pollution from sys/param.h makes it harder to import test code from
NetBSD since it can introduce conflicting definitions, e.g.,
MIN()/MAX().

Reviewed by:    ngie
MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D57754

(cherry picked from commit 0976744085bcd7ebda9779b02d78a85254b3e352)
DeltaFile
+1-1lib/libnetbsd/sys/types.h
+1-11 files

FreeBSD/src b365fc1usr.sbin/makefs/zfs dsl.c

makefs/zfs: Explicitly include sys/param.h for nitems()

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 88deb1cff92cb3620c248f32fa6e7bdbc5301213)
DeltaFile
+1-0usr.sbin/makefs/zfs/dsl.c
+1-01 files

FreeBSD/src 8a641f9sys/net if_ovpn.c

if_ovpn: Fix a lock leak in an error path

Reviewed by:    kp
MFC after:      1 week
Fixes:          04a7134c1e92 ("if_ovpn: fix use-after-free of mbuf")
Differential Revision:  https://reviews.freebsd.org/D57696

(cherry picked from commit f7b71f832c990da0bf203095f02405df665529d0)
DeltaFile
+1-0sys/net/if_ovpn.c
+1-01 files

FreeBSD/src 29264fasys/netinet udp_usrreq.c

udp: Wrap a long line in udp_send()

No functional change intended.

MFC after:      1 week

(cherry picked from commit 3b69c7201fd06b368090f2ee3840d384a949cba8)
DeltaFile
+2-1sys/netinet/udp_usrreq.c
+2-11 files

FreeBSD/src e19e201usr.bin/xinstall xinstall.c

install: Explicitly include sys/param.h for MAXPATHLEN

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit ca89b0fa1a93744a5bbf7a5c949826bbee4e2559)
DeltaFile
+1-0usr.bin/xinstall/xinstall.c
+1-01 files

FreeBSD/src 1d02c25tests/sys/fs/fusefs mockfs.cc

fusefs: proofread an error message in the tests

Reported by:    otis
Fixes:          2c1482e3053 ("fusefs: fix a race in the pre-init tests")
Sponsored by:   ConnectWise

(cherry picked from commit 381ebe25f0b9fae5b3470e9c6e0767909e0fa85a)
DeltaFile
+1-1tests/sys/fs/fusefs/mockfs.cc
+1-11 files

FreeBSD/src c57b054tests/sys/fs/fusefs mockfs.cc pre-init.cc

fusefs: fix a race in the pre-init tests

These tests allow the user to customize the INIT response.  But it's
necessary to block the daemon's service loop from running until those
expectations have been set.  This race has never caused failures before
simply due to luck.  But now it's failing on slower platforms.

PR:             296236
Reported by:    siva
Sponsored by:   ConnectWise
Reviewed by:    siva
Differential Revision: https://reviews.freebsd.org/D57781

(cherry picked from commit 2c1482e305368af182a7bde0e53d0d180b319326)
DeltaFile
+8-3tests/sys/fs/fusefs/mockfs.cc
+6-0tests/sys/fs/fusefs/pre-init.cc
+3-0tests/sys/fs/fusefs/mockfs.hh
+17-33 files

FreeBSD/src ed15ec6sys/fs/fuse fuse_vnops.c

fusefs: only search for FREAD fufh in readdir

The extra search for an FEXEC fufh shall be removed, since readdir
is only supposed to be called on a directory opened with FREAD.  The
sole exception is NFS, which will call VOP_READDIR with directories that
aren't open at all.  fuse already has special code to handle that.

Also remove the fuse_filehandle_get_dir() function, since it's not
used anywhere else.

Signed-off-by:  CismonX <admin at cismon.net>
Reviewed by:    asomers
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1729

(cherry picked from commit 4179f1d9deed83977f159c8afea204293ef4c7d7)
DeltaFile
+1-11sys/fs/fuse/fuse_vnops.c
+1-111 files

FreeBSD/src 2da045asys/fs/fuse fuse_vnops.c, tests/sys/fs/fusefs default_permissions.cc

fusefs: fix error handling when reading a directory's sticky bit

When trying to delete or rename a file, fuse_vnop_lookup must check
whether its parent directory's sticky bit is set.  Realistically, the
parent directory's attributes will almost always be cached.  But it's
possible that they won't be, and in that case we must send a new
FUSE_GETATTR request to the server.  If that request fails for some
reason, then we must fail the lookup.  Prior to this change fusefs would
ignore failure of that request.

Reported by:    Yuxiang Yang, Yizhou Zhao, Ao Wang, Xuewei Feng, Qi Li,
                and Ke Xu of Tsinghua University
Reviewed by:    markj
Differential Revision: https://reviews.freebsd.org/D57588

(cherry picked from commit b4af6a4cccc3b4b0ea461463196c258eb92ad2e5)
DeltaFile
+53-0tests/sys/fs/fusefs/default_permissions.cc
+6-4sys/fs/fuse/fuse_vnops.c
+59-42 files

FreeBSD/src b72397dsys/kern sys_generic.c

kern_filewrite(): unconditionally calculate cnt, it is used by callers

Reported by:    dhw, madpilot
Tested by:      dhw
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Fixes:  dfad790c8cca ("sendfile: stop abusing kern_writev()")
DeltaFile
+1-1sys/kern/sys_generic.c
+1-11 files

FreeBSD/src ed7e0ebusr.sbin/bhyve snapshot.c bhyve_config.5, usr.sbin/bhyve/amd64 bhyverun_machdep.c

bhyve: allow overriding snapshot socket directory

By default bhyve(8) creates a snapshot socket in
"/var/run/bhyve/" (BHYVE_RUN_DIR).
As this is a system directory not writable by users,
this does not work when bhyve(8) is being started
as a non-root user.

Address that by allowing to override this directory.
In bhyve(8) it is done by setting 'rundir' option
with '-o rundir=<path>'.

In bhyvectl(8) it is done with '--rundir=<path>'.

MFC after:              1 month
Reviewed by:            bcr (manpages), bnovkov
Sponsored by:           The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D57494
DeltaFile
+25-7usr.sbin/bhyvectl/bhyvectl.c
+10-4usr.sbin/bhyve/snapshot.c
+8-1usr.sbin/bhyve/bhyve_config.5
+7-1usr.sbin/bhyvectl/bhyvectl.8
+6-0usr.sbin/bhyve/amd64/bhyverun_machdep.c
+1-1usr.sbin/bhyve/bhyverun.c
+57-141 files not shown
+58-157 files

FreeBSD/src e75fa2asys/compat/freebsd32 freebsd32_sysent.c, sys/kern init_sysent.c

Regen syscalls tables.

This catches up with 692b0ef1506ba which added CAPENABLED to
clock_nanosleep(). Curiously recent additions of the pdopenpid(2) and
pddupfd(2) were done before the cited commit, and that regen did not
included the change.

Sponsored by:   The FreeBSD Foundation
DeltaFile
+1-1sys/compat/freebsd32/freebsd32_sysent.c
+1-1sys/kern/init_sysent.c
+2-22 files

FreeBSD/src 7e1245asys/compat/linuxkpi/common/include/linux pm_runtime.h

linuxkpi: Add pm_runtime_resume_and_get

pm_runtime_resume_and_get is used by new versions of amdgpu, and began
use between Linux kernel version 6.12, and 6.14.

Reviewed by:    dumbbell
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57463
DeltaFile
+6-0sys/compat/linuxkpi/common/include/linux/pm_runtime.h
+6-01 files

FreeBSD/src 1cce5efsys/net if_lagg.c

lagg: re-check port caps after bringing up a port

Some nic drivers (including iflib) do not initialize if_hwassist
until after the interface is brought up.  If a lagg member is included
in a lagg when its not yet been brought up, that will cause lagg to see
if_hwassist=0 and will disable all checksum offload, etc, on the interface.
This is almost impossible to debug without kgdb or dtrace, as ifconfig does
not surface if_hwassist.

Fix this by re-calculating lagg caps (including if_hwassist) after adding a port.

I encountered this problem when I had a commented-out if_foo1=up entry in
my rc.conf that i neglected to uncomment when I was re-configuring a lagg.

Sponsored by: Netflix
Reviewed by: markj, zlei
Differential Revision: https://reviews.freebsd.org/D58062
DeltaFile
+2-0sys/net/if_lagg.c
+2-01 files

FreeBSD/src c38abd6sys/net if_epair.c, tests/sys/common vnet.subr

if_epair: support IFCAP_MEXTPG

Enable IFCAP_MEXTPG by default, which may bring performance benefits.
Allow it to be disabled, and when disabled assert that we do not receive
any mbufs with M_EXTPG set. This is useful for testing.
Default the tests to disabling MEXTPG support.

Reviewed by:    zlei
Sponsored by:   Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D58054
DeltaFile
+6-1sys/net/if_epair.c
+3-1tests/sys/common/vnet.subr
+9-22 files