HardenedBSD/src 9f73941contrib/netbsd-tests/kernel t_ptrace_wait.c, libexec/flua/modules lposix.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+94-85sys/dev/asmc/asmc.c
+47-1tools/tools/ifinfo/ifinfo.c
+12-12contrib/netbsd-tests/kernel/t_ptrace_wait.c
+10-6sys/dev/usb/net/if_ure.c
+4-4libexec/flua/modules/lposix.c
+1-1libexec/rc/rc.d/kld
+168-1093 files not shown
+172-1119 files

HardenedBSD/src dc6c804sys/kern vfs_mount.c

unmount(2): do not allow MNT_DEFERRED or MNT_RECURSE flags from userspace

(cherry picked from commit cd8d44173adc375b59a24b1363476c086a7c86b4)
DeltaFile
+2-0sys/kern/vfs_mount.c
+2-01 files

HardenedBSD/src fffd409sys/fs/devfs devfs_vnops.c

devfs: unlock the directory vnode around the call to dev_clone handler

(cherry picked from commit a8e92198f854c2766eedec5a2ea3cc23c64d7b12)
DeltaFile
+20-0sys/fs/devfs/devfs_vnops.c
+20-01 files

HardenedBSD/src 9ccdf3fsys/dev/asmc asmc.c

asmc: unbreak build: add missing curly brace

Fixes:  d76bb14e022 ("chore: asmc: additional style(9) cleanup")
DeltaFile
+1-1sys/dev/asmc/asmc.c
+1-11 files

HardenedBSD/src fa3519dcontrib/netbsd-tests/kernel t_ptrace_wait.c

t_ptrace_wait.c: clean up trailing whitespace

This is being done to aid with future potential updates of this file.

MFC after:      1 week
DeltaFile
+12-12contrib/netbsd-tests/kernel/t_ptrace_wait.c
+12-121 files

HardenedBSD/src e4b1dc4share/man/man7 build.7

Fix typo in build(7) man page

Signed-off-by: Kalevi Kolttonen <kalevi at kolttonen.fi>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2009
DeltaFile
+1-1share/man/man7/build.7
+1-11 files

HardenedBSD/src d3ed0e0libexec/rc/rc.d devmatch kld

rc.d: Convert more service to Use startmsg

Signed-off-by: Thibault Payet <contact at thibaultpayet.fr>
Reviewed by: imp,mhorne
Pull Request: https://github.com/freebsd/freebsd-src/pull/2001
DeltaFile
+1-1libexec/rc/rc.d/devmatch
+1-1libexec/rc/rc.d/kld
+2-22 files

HardenedBSD/src 436af57libexec/flua/modules lposix.c

flua: Fix SIGSEGV in lua_chown when uid/gid doesn't exist

When lua_chown is used to call chown(2) internally, it first resolves
the user and/or group by calling the getpwnam_r(3) and getgrnam_r(3)
functions, respectively. However, although it checks for errors, it does
not check when entries are not found (which is not an error), which
means that the buffer will be set to NULL, and since lua_chown attempts
to access the NULL structure, it will receive a SIGSEGV signal.

Reviewed by:                    imp@
Approved by:                    imp@
Differential Revision:          https://reviews.freebsd.org/D55172
DeltaFile
+4-4libexec/flua/modules/lposix.c
+4-41 files

HardenedBSD/src 7266121sys/dev/usb/net if_ure.c

ure: improve transmit checksum offloading

Apparently, the name of the variable l4off was correct. Providing the
offset to the TCP or UDP header allows the transmit checksum offload to
work for TCP/IPv4, TCP/IPv6, UDP/IPv4, and UDP/IPv6.

Reported by:            vishwin
Reviewed by:            vishwin
MFC after:              1 week
Differential Revision:  https://reviews.freebsd.org/D55187
DeltaFile
+10-6sys/dev/usb/net/if_ure.c
+10-61 files

HardenedBSD/src 2fe3f16. .git-blame-ignore-revs

chore: ignore style(9) changes made in dd1410321

MFC after:      1 month
DeltaFile
+2-0.git-blame-ignore-revs
+2-01 files

HardenedBSD/src d76bb14sys/dev/asmc asmc.c

chore: asmc: additional style(9) cleanup

Pick out non-gratuitous style(9) changes suggested by `clang-format` on
the driver. This helps eliminate minor stylistic issues with spaces,
braces, line lengths, etc, so future functional changes in the driver
will be easier to pick out.

Many of the other `clang-format` suggested changes were not taken because
they were considerably more gratuitous.

No functional change intended.

MFC after:      1 week
DeltaFile
+56-49sys/dev/asmc/asmc.c
+56-491 files

HardenedBSD/src d84870dtools/tools/ifinfo ifinfo.c

ifinfo: improve output of hwassist value

In addition to print the hexadecimal number hwassist, also print
the symbolic names of the corresponding CSUM_* flags.

Reviewed by:            tuexen
MFC after:              1 week
Differential Revision:  https://reviews.freebsd.org/D55055
DeltaFile
+47-1tools/tools/ifinfo/ifinfo.c
+47-11 files

HardenedBSD/src a8f3c3bsys/dev/asmc asmc.c

chore: asmc: minor code cleanup

- Use symbolic names in Mac definitions in lieu of the unrolled values
  they represent.
- Delete trailing whitespace.
- Fix indentation.

No functional change intended.

MFC after:      1 week
DeltaFile
+37-35sys/dev/asmc/asmc.c
+37-351 files

HardenedBSD/src babe569libexec/rtld-elf/powerpc reloc.c, libexec/rtld-elf/powerpc64 reloc.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+0-13libexec/rtld-elf/powerpc/reloc.c
+0-13libexec/rtld-elf/powerpc64/reloc.c
+6-0sys/dev/vt/vt_core.c
+4-0sys/teken/teken.c
+1-2usr.sbin/bsdinstall/scripts/zfsboot
+2-0sys/teken/teken.h
+13-282 files not shown
+15-288 files

HardenedBSD/src 65383edusr.sbin/bsdinstall/scripts pkgbase.in

HBSD: bsdinstall(8): Align us more closely with FreeBSD

Signed-off-by:  Shawn Webb <shawn.webb at hardenedbsd.org>
DeltaFile
+1-3usr.sbin/bsdinstall/scripts/pkgbase.in
+1-31 files

HardenedBSD/src db765a9usr.sbin/bsdinstall/scripts mirrorselect

HBSD: Update bsdinstall(8) mirrorselect with the right path

We don't support 14-STABLE or 13-STABLE anymore.

Signed-off-by:  Shawn Webb <shawn.webb at hardenedbsd.org>
DeltaFile
+3-6usr.sbin/bsdinstall/scripts/mirrorselect
+3-61 files

HardenedBSD/src d255b40. MAINTAINERS, .github CODEOWNERS

MAINTAINERS, CODEOWNERS: Add myself for vt(4) review
DeltaFile
+1-0.github/CODEOWNERS
+1-0MAINTAINERS
+2-02 files

HardenedBSD/src 825aaabusr.sbin/bsdinstall/scripts zfsboot

bsdinstall: Add note to zfsboot pointing to release/tools/vmimage.subr

The VM image creation scripts have a copy of this list of datasets which
should be kept in sync, which can otherwise be easily missed, as was the
case in the now-reverted 3e8619e535b6 ("bsdinstall: Create separate
datasets for directories in /usr/ports").
DeltaFile
+1-0usr.sbin/bsdinstall/scripts/zfsboot
+1-01 files

HardenedBSD/src 024549estand/man loader.efi.8

loader.efi(8): clarify UEFI boot path and boot1.efi usage

Reorganise and clarify the legacy role of boot1.efi in DESCRIPTION to
improve clarity.

Add a minor missing word in the BUGS section ["...caution is required*..."].

See also - PR: 290794

Signed-off-by: Aaditya Singh <aadityavksingh at gmail.com>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1939
(cherry picked from commit 7b3fb3caef9495cdfcc1c8ec39907defb65ce860)
DeltaFile
+22-23stand/man/loader.efi.8
+22-231 files

HardenedBSD/src 5fec99csys/dev/vt vt_core.c, sys/teken teken.c teken.h

vt: Fix handling of backtab

PR: 292463
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2002
DeltaFile
+6-0sys/dev/vt/vt_core.c
+4-0sys/teken/teken.c
+2-0sys/teken/teken.h
+12-03 files

HardenedBSD/src be3962ausr.sbin/bsdinstall/scripts zfsboot

Revert "bsdinstall: Create separate datasets for directories in /usr/ports"

This reverts commit 3e8619e535b61c99f0dc50cc6c7e237eb82a8be7.

While it's generally a good idea to have separate datasets for things
like this, it breaks git clone with:
fatal: destination path 'ports' already exists and is not an empty directory.

Signed-off-by: Ricardo Branco <rbranco at suse.de>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2006
DeltaFile
+0-2usr.sbin/bsdinstall/scripts/zfsboot
+0-21 files

HardenedBSD/src 5beaa1elibexec/rtld-elf/powerpc reloc.c, libexec/rtld-elf/powerpc64 reloc.c

Revert "Additional icache paranoia: non-PLT relocations can modify the text segment."

reloc_nonplt_object, and thus reloc_non_plt, only ever handles data
relocations, so this paranoia is completely unfounded and only has the
effect of significantly slowing down program startup for binaries with
large amounts of code, like Clang.

If this breaks any systems, that would likely be due to insufficient
flushing in the pmap implementation for executable mappings, as this
existing rtld behaviour would mask any such bugs.

This reverts commit 4b51c69976fd84e93ec7695858375c8150c4fe61.

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D54221
DeltaFile
+0-13libexec/rtld-elf/powerpc/reloc.c
+0-13libexec/rtld-elf/powerpc64/reloc.c
+0-262 files

HardenedBSD/src 641eb26sbin/mount mount.8

mount.8: document nosymfollow option

Document the nosymfollow mount option in more details.
Forgotten in 5ddc8ded1dbe650b7d83240a1f86a1eb6e2b9b5a

(cherry picked from commit a067eb525e10acc9d7e1f3b1a8a6dfeca42b4424)
DeltaFile
+7-2sbin/mount/mount.8
+7-21 files

HardenedBSD/src b80d241bin/ln symlink.7

symlink.7: add a new section "mount options"

Add a new section "mount options" to explain
the mount option nosymfollow in more details.

Differential Revision:  https://reviews.freebsd.org/D54530

(cherry picked from commit a2c87d4f88e1bfe3b7007fa7148ebc7d37fc54cc)
DeltaFile
+19-2bin/ln/symlink.7
+19-21 files

HardenedBSD/src 0c59b12. ObsoleteFiles.inc, sys/arm/broadcom/bcm2835 bcm2835_bsc.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+1-1sys/dev/qlnx/qlnxe/ecore_cxt.c
+1-1sys/arm/broadcom/bcm2835/bcm2835_bsc.c
+1-1sys/dev/mlx4/mlx4_core/mlx4_main.c
+1-1sys/fs/nfsserver/nfs_nfsdstate.c
+1-1sys/kern/imgact_elf.c
+1-0ObsoleteFiles.inc
+6-56 files

HardenedBSD/src afe666asys/fs/nfsserver nfs_nfsdstate.c

nfsserver: Fix a typo in a source code comment

- s/preceeded/preceded/

MFC after:      3 days
DeltaFile
+1-1sys/fs/nfsserver/nfs_nfsdstate.c
+1-11 files

HardenedBSD/src 3e46676sys/dev/mlx4/mlx4_core mlx4_main.c

mlx(4): Fix a typo in a source code comment

- s/segements/segments/

MFC after:      3 days
DeltaFile
+1-1sys/dev/mlx4/mlx4_core/mlx4_main.c
+1-11 files

HardenedBSD/src ff08ad3sys/dev/qlnx/qlnxe ecore_cxt.c

qlnxe(4): Fix a typo in a source code comment

- s/segement/segment/

MFC after:      3 days
DeltaFile
+1-1sys/dev/qlnx/qlnxe/ecore_cxt.c
+1-11 files

HardenedBSD/src f87ab06sys/kern imgact_elf.c

kern: Fix a typo in a source code comment

- s/segement/segment/

MFC after:      3 days
DeltaFile
+1-1sys/kern/imgact_elf.c
+1-11 files

HardenedBSD/src 8aa4fa7sys/arm/broadcom/bcm2835 bcm2835_bsc.c

arm/broadcom: Fix a typo in a source code comment

- s/preceeded/preceded/

MFC after:      3 days
DeltaFile
+1-1sys/arm/broadcom/bcm2835/bcm2835_bsc.c
+1-11 files