FreeBSD/src e71e7ddsys/fs/fdescfs fdesc_vnops.c

fdescfs: do not change vnode type on VOP_GETATTR()

PR:     294768

(cherry picked from commit fbecfc4aa028964f972a0457809aa041d415f61b)
DeltaFile
+0-1sys/fs/fdescfs/fdesc_vnops.c
+0-11 files

FreeBSD/src 49937a6sys/fs/nfs nfs_commonport.c nfs_var.h, sys/fs/nfsclient nfs_clport.c nfs_clrpcops.c

nfscl: Disable use of callbacks for NFSv4.0

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 client.  This is the same behavior as
occurred when the nfscbd(8) daemon was not running.

This change allowed a function called nfscl_getmyip()
to be removed from the kernel, which is nice since
maintaining this function was bothersome, due to its
use of routing, etc.

(cherry picked from commit 71ac1ec5c9d990e7881e75f04140eb0bfe473a21)
DeltaFile
+0-79sys/fs/nfsclient/nfs_clport.c
+5-45sys/fs/nfsclient/nfs_clrpcops.c
+0-4sys/fs/nfs/nfs_commonport.c
+0-1sys/fs/nfs/nfs_var.h
+5-1294 files

FreeBSD/src e0e4d7bsys/vm vm_map.c

vm_map_growstack(): consistently use local vars instead of curthread/proc

(cherry picked from commit 642dd17ee94377c3d5533d05d0d9a58b88f60387)
DeltaFile
+8-6sys/vm/vm_map.c
+8-61 files

FreeBSD/src cd1e479tests/sys/arch/amd64 int0x80.c

amd/int0x80 test: fix inline asm for gcc

(cherry picked from commit d5728351a58b87764f3302eb8c4ca9f35e99e8b6)
DeltaFile
+3-2tests/sys/arch/amd64/int0x80.c
+3-21 files

FreeBSD/src 43c00fbsys/kern vfs_bio.c

bufspace_wait(): only try to help bufdaemon if there is a chance to help

(cherry picked from commit ce4e8c478a261ce6c7af7d81817f86420c5239b9)
DeltaFile
+2-1sys/kern/vfs_bio.c
+2-11 files

FreeBSD/src 5af938fsys/fs/fdescfs fdesc_vnops.c

fdescfs: do not change vnode type on VOP_GETATTR()

PR:     294768

(cherry picked from commit fbecfc4aa028964f972a0457809aa041d415f61b)
DeltaFile
+0-1sys/fs/fdescfs/fdesc_vnops.c
+0-11 files

FreeBSD/src 871bf8asys/vm vm_map.c

vm_map_growstack(): use local for p->p_vmspace

(cherry picked from commit 8eef59db254283eaaee47be94d4ea9f2fef4f2ad)
DeltaFile
+1-2sys/vm/vm_map.c
+1-21 files

FreeBSD/src 1aa7214sys/vm vm_map.c

vm_map_growstack(): give a hint to user that stack was blown out

(cherry picked from commit 18c5a26f8a747583b9bca3a6a1ae9db1ed4591a3)
DeltaFile
+15-2sys/vm/vm_map.c
+15-21 files

FreeBSD/src 96f262dtests/sys/arch/amd64 ptrace-sce-tamper.c Makefile

tests/sys/arch/amd64: Add a basic ptrace syscall tampering test

Signed-off-by: Alex S <iwtcex at gmail.com>
Reviewed-by: kib
Pull-request: https://github.com/freebsd/freebsd-src/pull/2190
DeltaFile
+89-0tests/sys/arch/amd64/ptrace-sce-tamper.c
+1-0tests/sys/arch/amd64/Makefile
+90-02 files

FreeBSD/src efc1f50lib/libcasper/services/cap_net cap_net.3

cap_net: fix typos
DeltaFile
+3-3lib/libcasper/services/cap_net/cap_net.3
+3-31 files

FreeBSD/src 45fa572lib/libcasper/services/cap_sysctl cap_sysctl.3

cap_sysctl: fix typo
DeltaFile
+2-2lib/libcasper/services/cap_sysctl/cap_sysctl.3
+2-21 files

FreeBSD/src 4569c02lib/libcasper/services/cap_dns cap_dns.3

cap_dns: fix typos
DeltaFile
+4-4lib/libcasper/services/cap_dns/cap_dns.3
+4-41 files

FreeBSD/src 69e9d5dlib/libcasper/services/cap_fileargs cap_fileargs.3

cap_fileargs: fix typo
DeltaFile
+2-2lib/libcasper/services/cap_fileargs/cap_fileargs.3
+2-21 files

FreeBSD/src a40f24esys/contrib/openzfs/lib/libzfs/os/linux libzfs_mount_os.c, sys/contrib/openzfs/module/os/linux/zfs zpl_super.c zfs_vfsops.c

zfs: merge openzfs/zfs at 6330a45b0 (zfs-2.4-release) into stable/15

OpenZFS 2.4.2

Notable upstream pull request merges:
 #18208 6f14581e1 Cleanup allocation class selection
 #18235 7590972f7 Prevent range tree corruption race by updating
                  dnode_sync()
 #18255 b06caaeec range_tree: use zfs_panic_recover() for partial-overlap
                  remove
 #18258 33961142a Fix deadlock on dmu_tx_assign() from vdev_rebuild()
 #18262 02ed09106 Fix check for .cfi_negate_ra_state on aarch64
 #18263 9f92266b7 Fix redundant declaration of dsl_pool_t
 #18276 3862aadf7 Fix vdev_rebuild_range() tx commit
 #18290 a94b137aa FreeBSD: Improve dmesg kernel message prefix
 #18294 938c8c98b draid: fix data corruption after disk clear
 #18310 b40cd9191 Fix s_active leak in zfsvfs_hold() when z_unmounted is
                  true
 #18380 9b8ccbd2c draid: fix import failure after disks replacements

    [13 lines not shown]
DeltaFile
+619-118sys/contrib/openzfs/module/os/linux/zfs/zpl_super.c
+24-207sys/contrib/openzfs/module/os/linux/zfs/zfs_vfsops.c
+152-0sys/contrib/openzfs/tests/zfs-tests/tests/functional/redundancy/redundancy_draid_degraded2.ksh
+143-0sys/contrib/openzfs/lib/libzfs/os/linux/libzfs_mount_os.c
+136-0sys/contrib/openzfs/tests/zfs-tests/tests/functional/redundancy/redundancy_draid_degraded1.ksh
+126-0sys/contrib/openzfs/tests/zfs-tests/cmd/setlease.c
+1,200-325313 files not shown
+3,284-867319 files

FreeBSD/src bab04ddsys/ufs/ufs ufs_bmap.c

ufs: support unmapped bufs for indirect blocks in bmap

Use unmapped bufs for indirect block buffers in bmap, and use sf_bufs
for transient mapping them when we need to read the specific pointer.

[kib note: I changed the original patch to use sf_buf instead of
explicit DMAP utilization, making the change MI].

Tested by:      pho
Reviewed by:    kib
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D53424
DeltaFile
+134-9sys/ufs/ufs/ufs_bmap.c
+134-91 files

FreeBSD/src cb31a26sys/kern sys_process.c

ptrace: clear TDP_USERWR after transparent attach only on attach

The flag indicates that the modifying ptrace op was issued, and clearing
it after transparent attach is needed to not leak the flag to later
operations, since it is cleared on the syscall enter.

But clearing it there unconditionally is too strong.  The clearing
should be only done for attach situation.

Reported by:    Alex S <iwtcex at gmail.com>
Fixes:  99976934274de6fa19f049a0b6eac10856710f96
Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D56928
DeltaFile
+9-10sys/kern/sys_process.c
+9-101 files

FreeBSD/src 54d0ae9lib/geom/part gpart.8

gpart.8: add entry for xbootldr partition type

Reviewed by:    emaste, markj
Sponsored by:   The FreeBSD Foundation
Fixes:  dab8138e13de ("g_part,mkimg: Add additional GPT partition types")
Differential Revision:  https://reviews.freebsd.org/D56969
DeltaFile
+7-1lib/geom/part/gpart.8
+7-11 files

FreeBSD/src 1f58691. UPDATING, usr.sbin/bsdinstall bsdinstall.8

bsdinstall: do pkgbase installations with the "script" command

"bsdinstall script" will now do a pkgbase installation by default.  The
system components to install can be specified in the COMPONENTS
variable, and have the same names as those used in the interactive
installer.  bsdinstall will still do a legacy distset installation if
DISTRIBUTIONS is defined in the installerconfig file.

PR:             290375
Sponsored by:   ConnectWise
Reviewed by:    ziaee, ivy, jduran
Differential Revision: https://reviews.freebsd.org/D56717

(cherry picked from commit dc14ae4217a0babb1240f813b642edc2d7b955a6)
DeltaFile
+42-31usr.sbin/bsdinstall/scripts/script
+35-10usr.sbin/bsdinstall/bsdinstall.8
+14-1usr.sbin/bsdinstall/scripts/pkgbase.in
+5-0UPDATING
+96-424 files

FreeBSD/src 52fa2f9lib/libsys clock_gettime.2

clock_gettime.2: Fix a couple of typos

Reviewed by:    emaste
Differential Revision:  https://reviews.freebsd.org/D56990
DeltaFile
+2-2lib/libsys/clock_gettime.2
+2-21 files

FreeBSD/src e30e507sys/kern vfs_bio.c

vfs_bio: mark uma zone pointer __read_mostly

Reviewed by:    kib, olce
Sponsored by:   Dell Inc.
Differential Revision:  https://reviews.freebsd.org/D56949
DeltaFile
+1-1sys/kern/vfs_bio.c
+1-11 files

FreeBSD/src 3335527sys/kern vfs_subr.c

vnlru: avoid cache line contention

Reviewed by:    kib, olce
Sponsored by:   Dell Inc.
Differential Revision:  https://reviews.freebsd.org/D56951
DeltaFile
+21-14sys/kern/vfs_subr.c
+21-141 files

FreeBSD/src 2a56cedsys/kern vfs_bio.c

bq_insert: delay the BUF_UNLOCK if not bd_flush()ing

Reduce bufqueue lock contention by delaying the BUF_UNLOCK to after
dropping the bufqueue lock.  Still do the early BUF_UNLOCK if we
actually have to bd_flush.

Reviewed by:    kib, markj
Sponsored by:   Dell Inc.
Differential Revision:  https://reviews.freebsd.org/D56948
DeltaFile
+12-8sys/kern/vfs_bio.c
+12-81 files

FreeBSD/src 89a0148. Makefile.inc1

Make "make update-packages" idempotent

If the user runs "make update-packages" without bumping BRANCH, then it
isn't possible to copy packages from the old location to the new one
(because the two locations are the same).  So just skip that step.

Sponsored by:           ConnectWise
PR:                     295085
Reviewed by:            ivy, emaste
Differential Revision:  https://reviews.freebsd.org/D56872

(cherry picked from commit bd1e789b8452a8c2f166a3b4defb95330c71dadd)
DeltaFile
+3-1Makefile.inc1
+3-11 files

FreeBSD/src 3298d82sys/kern uipc_usrreq.c, sys/sys ucred.h

Fix LOCAL_PEERCRED in 32-bit compat mode

Previously the cr_pid field would be incorrectly copied to userland, due
to a size mismatch between the structure as defined in 32-bit vs 64-bit
builds.  Fix it by converting the structure before copying it to
userland.

PR:             294833
Sponsored by:   ConnectWise
Reviewed by:    emaste
Differential Revision: https://reviews.freebsd.org/D56675

(cherry picked from commit 1d24638d3e8875e4b99a4b5e39f4241e37221b3d)
DeltaFile
+19-2sys/kern/uipc_usrreq.c
+11-0sys/sys/ucred.h
+30-22 files

FreeBSD/src ee04ee9lib/libcasper/services/cap_net cap_net.c, lib/libcasper/services/cap_net/tests net_test.c

cap_net: fix error propagation for ENOTCAPABLE in cap_getaddrinfo

Fixes:          b60053fde172 ("libcasper: Fix inconsistent error codes of cap_get{addr,name}info()")
DeltaFile
+4-4lib/libcasper/services/cap_net/tests/net_test.c
+2-2lib/libcasper/services/cap_net/cap_net.c
+6-62 files

FreeBSD/src 04987aasys/arm64/vmm vmm_hyp.c

arm64/vmm: Enforce a data barrier before tlbi for non-VHE

Exception entry does not include an implicit, architectural data
barrier.

Reported by:    Ben Simner <ben.simner at cl.cam.ac.uk>
Reviewed by:    andrew
Fixes:          5577bb2f67ff ("arm64/vmm: Support tlbi from VHE")
Differential Revision:  https://reviews.freebsd.org/D56855
DeltaFile
+0-4sys/arm64/vmm/vmm_hyp.c
+0-41 files

FreeBSD/src 8766e21contrib/mandoc lib.in

mandoc: Updating FreeBSD thead library descriptions

Remove libkse as it has been obsolete for many years and drop 1:1 from
description of libthr.

Reviewed by:    brooks
Sponsored by:   AFRL, DARPA
Differential Revision:  https://reviews.freebsd.org/D56850
DeltaFile
+1-2contrib/mandoc/lib.in
+1-21 files

FreeBSD/src 538f056contrib/mandoc lib.in

mandoc: Add an entry for libsys to lib.in

Reviewed by:    brooks, emaste
Obtained from:  CheriBSD
Sponsored by:   AFRL, DARPA
Differential Revision:  https://reviews.freebsd.org/D56849
DeltaFile
+1-0contrib/mandoc/lib.in
+1-01 files

FreeBSD/src e03c00bsys/dev/cxgbe t4_main.c, sys/dev/cxgbe/common common.h

cxgbe(4): Query and report IPsec offload related parameters

MFC after:      2 weeks
Sponsored by:   Chelsio Communications
DeltaFile
+32-1sys/dev/cxgbe/t4_main.c
+4-0sys/dev/cxgbe/common/common.h
+36-12 files

FreeBSD/src cc92108release Makefile Makefile.vm

release: Use make's `:H` rather than `/..`

In general we want to strip subdir components, rather than appending
`..`s.

Reviewed by:    lwhsu
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D54373

(cherry picked from commit 3949c2b8c4691a6dff8be7b38805d56faab91187)
(cherry picked from commit 61f0453b3aa71e640a42085f67ce556ca3283c6c)
DeltaFile
+2-2release/Makefile
+1-1release/Makefile.vm
+3-32 files