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

FreeBSD/src c3aa964sys/kern uipc_shm.c

shm: Zero struct kinfo_file in sysctl handler

Reported by: Calif.io in collaboration with Claude and Anthropic Research
Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55806

(cherry picked from commit 25cc459286a02b646751541ccde5a33319471c73)
(cherry picked from commit 6348a5fd0d4792e752cb714f2a536c3287b8d580)
(cherry picked from commit e61804ae6380c8d1db4b8c43bf7821e5d31ca04e)
DeltaFile
+1-1sys/kern/uipc_shm.c
+1-11 files

FreeBSD/src 815eb5asys/compat/linux linux_misc.c

compat/linux: Avoid waitid() kernel stack disclosure

Reported by:    Adam Crosser, Praetorian
Reviewed by:    philip
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55812

(cherry picked from commit 9a9f93bcf1aa0059d759b2f3ea6faeb2760a11bd)
(cherry picked from commit 9f8db9cc67fb86eeb2b645ce7f8aa748e99241a9)
(cherry picked from commit a347e6e20e75ad6224afefcf650ef738c3de094d)
DeltaFile
+1-0sys/compat/linux/linux_misc.c
+1-01 files

FreeBSD/src 7f4bc45sys/compat/freebsd32 freebsd32_misc.c

compat32: Zero struct to avoid stack disclosure

Reported by:    Adam Crosser, Praetorian
Reviewed by:    philip
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55811

(cherry picked from commit 097cb4e9f0432c543c704cec712ce1cd3302335c)
(cherry picked from commit 4551ea3b3f04650cd5300a9eae8994bdb080db91)
(cherry picked from commit 6a808cd7534802d30010fb0a7f46381ff9f6ef3f)
DeltaFile
+1-1sys/compat/freebsd32/freebsd32_misc.c
+1-11 files

FreeBSD/src c5c5705sys/kern kern_descrip.c

sys: Fix heap disclosure in compat7 kern.proc.filedesc sysctl

Reported by: Yuxiang Yang, Yizhou Zhao, Ao Wang, Xuewei Feng, Qi Li, and Ke Xu from Tsinghua University using GLM-5.1 from Z.ai

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56976

(cherry picked from commit e68433e1990d5f1bcc1bdd270d65f1e4792a8e1b)
(cherry picked from commit 0cef1a9ae5ec90b2c4717de9bc33fc7c3b1fd705)
(cherry picked from commit 5e6b16f4555cba4422dde7c63344359019a23722)
DeltaFile
+1-1sys/kern/kern_descrip.c
+1-11 files

FreeBSD/src efba864sys/sys elf_common.h

elf_common.h: Add some AArch32 relocations

Reviewed by:    mmel
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55268

(cherry picked from commit 10ac7413c060b1496ef54e2338f487ea84f66206)
(cherry picked from commit 50a7a38ea79f05b2da38352629802c346aeb55d6)
DeltaFile
+13-0sys/sys/elf_common.h
+13-01 files

FreeBSD/src f62ab5csys/sys elf_common.h

elf_common.h: Add AArch64 Memtag ABI constants

Obtained from the Memtag ABI Extension to ELF for the Arm® 64-bit
Architecture (AArch64) [1]

[1] https://github.com/ARM-software/abi-aa/blob/main/memtagabielf64/memtagabielf64.rst#dynamic-section

Reviewed by:    andrew
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55486

(cherry picked from commit d971bc5220f7adb8a2bdfadc8e3ca7ffcf9ca843)
(cherry picked from commit 9712b5e4b58bc3ff9402413ce7a149c956774263)
DeltaFile
+8-0sys/sys/elf_common.h
+8-01 files

FreeBSD/src 5e6b16fsys/kern kern_descrip.c

sys: Fix heap disclosure in compat7 kern.proc.filedesc sysctl

Reported by: Yuxiang Yang, Yizhou Zhao, Ao Wang, Xuewei Feng, Qi Li, and Ke Xu from Tsinghua University using GLM-5.1 from Z.ai

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56976

(cherry picked from commit e68433e1990d5f1bcc1bdd270d65f1e4792a8e1b)
(cherry picked from commit 0cef1a9ae5ec90b2c4717de9bc33fc7c3b1fd705)
DeltaFile
+1-1sys/kern/kern_descrip.c
+1-11 files

FreeBSD/src 0cef1a9sys/kern kern_descrip.c

sys: Fix heap disclosure in compat7 kern.proc.filedesc sysctl

Reported by: Yuxiang Yang, Yizhou Zhao, Ao Wang, Xuewei Feng, Qi Li, and Ke Xu from Tsinghua University using GLM-5.1 from Z.ai

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56976

(cherry picked from commit e68433e1990d5f1bcc1bdd270d65f1e4792a8e1b)
DeltaFile
+1-1sys/kern/kern_descrip.c
+1-11 files