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

Revert "nvme: Only attach to storage NVMe devices"

This reverts commit 0a19464bf7afa35ce2aa7649152bc3a7629faa98. It's
incorrect for ahci attachments. Reverting to merge to stable/15
to merge to releng/15.1 for the release.

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

FreeBSD/src 988c039sys/compat/linuxkpi/common/include/linux io.h

linux/io: handle memtype_wc mapping for !DMAP range

The amdgpu driver in drm-kmod will attempt to update/reserve certain GPU
VRAM ranges as write-combining. Depending on the system, this address
range may fall outside of FreeBSD's constructed DMAP. We cannot use
pmap_change_attr() in this case.

When INVARIANTS is enabled, this results in the following:

  panic: physical address 0x880000000 not covered by the DMAP

Add a guard against triggering the KASSERT in PHYS_TO_DMAP().

This limitation in our implementation of arch_io_reserve_memtype_wc() is
already known in drm-kmod's amdgpu_bo_init(), and errors are ignored
there (see "BSDFIXME"). This change is only to eliminate the preventable
assertion failure within this scheme.

Tested by:      kevans

    [4 lines not shown]
DeltaFile
+6-1sys/compat/linuxkpi/common/include/linux/io.h
+6-11 files

FreeBSD/src 4cdcacbsys/dev/usb usbdevs

usbdevs: Add TP-Link UB500 (RTL8761BUV) USB ID

This device is not yet supported.

Unfortunately some recently purchased UB400 dongles also contain this
Realtek IC.

Sponsored by:   The FreeBSD Foundation
DeltaFile
+1-0sys/dev/usb/usbdevs
+1-01 files

FreeBSD/src aa92784lib/libc/gen timespec_getres.3 timespec_get.3

libc/timespec_get*.3: expose STANDARDS section

We now have .St -isoC-2023, so the STANDARDS section can go live.

Fixes:          9b5d724cad10087e34165199e55f15f2df744ed5
MFC after:      1 week
DeltaFile
+6-6lib/libc/gen/timespec_getres.3
+5-5lib/libc/gen/timespec_get.3
+11-112 files

FreeBSD/src 6825176lib/libc/stdtime ctime.3

libc/ctime.3: timegm() is in C23.

See also:       D53951, https://wiki.freebsd.org/C23
MFC after:      1 week
DeltaFile
+4-3lib/libc/stdtime/ctime.3
+4-31 files

FreeBSD/src b8606c3sys/arm64/arm64 rsi.c

arm64: Fix the includes for rsi.c

This depended on header pollution only present when FDT is defined. As
FDT isn't check for in this file we can remove opt_platform.h and
include the correct set of vm header files.

Reported by:    ivy
Fixes:  76a2904c352b ("arm64: Add RSI detection for CCA")
Sponsored by:   Arm Ltd
DeltaFile
+2-3sys/arm64/arm64/rsi.c
+2-31 files

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