HardenedBSD/src cb0c532contrib/less screen.c, sys/kern vfs_subr.c

Merge remote-tracking branch 'internal/freebsd/13-stable/main' into hardened/13-stable/master

Conflicts:
        bin/cat/cat.c
        lib/libc/gen/auxv.3
        libexec/rc/rc.d/archdep
        share/man/man5/src.conf.5
        sys/amd64/amd64/elf_machdep.c
        sys/amd64/cloudabi64/cloudabi64_sysvec.c
        sys/amd64/linux/linux_sysvec.c
        sys/amd64/linux32/linux32_sysvec.c
        sys/arm/arm/elf_machdep.c
        sys/arm64/linux/linux_sysvec.c
        sys/compat/ia32/ia32_sysvec.c
        sys/i386/cloudabi32/cloudabi32_sysvec.c
        sys/i386/linux/imgact_linux.c
        sys/i386/linux/linux_sysvec.c
        sys/kern/imgact_aout.c
        sys/kern/kern_module.c

    [22 lines not shown]
DeltaFile
+175-44sys/vm/vm_map.c
+97-38sys/kern/vfs_subr.c
+64-0tests/sys/vm/stack/stack_dlopen_exec_test.c
+57-0tests/sys/vm/stack/stack_mprotect_exec_test.c
+42-11contrib/less/screen.c
+51-0tests/sys/vm/mmap_map_32bit_helper.c
+486-9331,889 files not shown
+1,170-49,85331,895 files

HardenedBSD/src 3bc8099sys/arm/arm swtch-v6.S, sys/arm64/qoriq qoriq_dw_pci.c

sys: Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/

Similar commit in current:
(cherry picked from commit 685dc743dc3b)
DeltaFile
+0-3sys/dev/cfe/cfe_env.c
+0-3sys/dev/extres/clk/clk_mux.c
+0-3sys/dev/cxgb/common/cxgb_t3_hw.c
+0-3sys/arm/arm/swtch-v6.S
+0-3sys/arm64/qoriq/qoriq_dw_pci.c
+0-3sys/kern/subr_syscall.c
+0-184,033 files not shown
+0-7,9144,039 files

HardenedBSD/src acf3d6esys/arm64/arm64 pl031_rtc.c, sys/compat/linux linux_socket.c

Merge remote-tracking branch 'internal/hardened/current/master' into hardened/current/cross-dso-cfi

Conflicts:
        tools/build/options/WITH_OFED_EXTRA (deleted)
        usr.sbin/rpc.yppasswdd/Makefile (unresolved)
DeltaFile
+697-0sys/dev/virtio/gpu/virtio_gpu.c
+454-0sys/dev/virtio/gpu/virtio_gpu.h
+153-0sys/arm64/arm64/pl031_rtc.c
+80-52sys/compat/linux/linux_socket.c
+107-0tools/build/freebsd-yeet.pl
+87-11sys/dev/ixl/ixl_pf_main.c
+1,578-6331,042 files not shown
+2,188-48,40531,048 files

HardenedBSD/src 2226d61sys/arm64/arm64 pl031_rtc.c, sys/compat/linux linux_socket.c

Merge remote-tracking branch 'internal/freebsd/current/main' into hardened/current/master

Conflicts:
        bin/cat/cat.c (unresolved)
        lib/csu/aarch64/crt1_c.c (unresolved)
        lib/csu/amd64/crt1_c.c (unresolved)
        lib/csu/i386/crt1_c.c (unresolved)
        lib/csu/powerpc64/crt1_c.c (unresolved)
        lib/csu/powerpc64/reloc.c (unresolved)
        lib/csu/riscv/crt1_c.c (unresolved)
        lib/libc/gen/auxv.3 (unresolved)
        lib/libcasper/services/cap_net/cap_net.3 (unresolved)
        sys/amd64/amd64/elf_machdep.c (unresolved)
        sys/amd64/include/sgxreg.h (deleted)
        sys/amd64/linux/linux_sysvec.c (unresolved)
        sys/amd64/linux32/linux32_sysvec.c (unresolved)
        sys/amd64/sgx/sgx.c (deleted)
        sys/amd64/sgx/sgx_linux.c (deleted)
        sys/amd64/sgx/sgxvar.h (deleted)

    [29 lines not shown]
DeltaFile
+697-0sys/dev/virtio/gpu/virtio_gpu.c
+454-0sys/dev/virtio/gpu/virtio_gpu.h
+153-0sys/arm64/arm64/pl031_rtc.c
+80-52sys/compat/linux/linux_socket.c
+107-0tools/build/freebsd-yeet.pl
+87-11sys/dev/ixl/ixl_pf_main.c
+1,578-6331,044 files not shown
+2,304-48,37531,050 files

HardenedBSD/src 685dc74sys/arm64/arm64 cpufunc_asm.S, sys/cam/ctl ctl_scsi_all.h

sys: Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
DeltaFile
+0-3sys/cam/ctl/ctl_scsi_all.h
+0-3sys/arm64/arm64/cpufunc_asm.S
+0-3sys/dev/bxe/57710_int_offsets.h
+0-3sys/dev/bxe/57711_int_offsets.h
+0-3sys/dev/bxe/57712_int_offsets.h
+0-3sys/dev/cfe/cfe_env.c
+0-183,795 files not shown
+0-7,4523,801 files

HardenedBSD/src 65b43f4bin/cp/tests cp_test.sh, bin/pkill pkill.c

Merge remote-tracking branch 'freebsd/stable/13' into hardened/13-stable/master

Conflicts:
        sys/i386/linux/imgact_linux.c (deleted)
        sys/kern/imgact_aout.c (deleted)
DeltaFile
+1-3sys/xen/xenbus/xenbusb.h
+1-3sys/dev/qlxge/qls_isr.c
+1-1sys/sys/_bus_dma.h
+1-1bin/cp/tests/cp_test.sh
+1-1bin/pkill/pkill.c
+1-1bin/timeout/timeout.1
+6-105,655 files not shown
+5,661-5,6655,661 files

HardenedBSD/src caa41f6sys/dev/qlxge qls_isr.c, sys/netgraph/bluetooth/l2cap ng_l2cap_ulpi.c

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with:         pfg
MFC After:              3 days
Sponsored by:           Netflix

(cherry picked from commit 4d846d260e2b9a3d4d0a701462568268cbfe7a5b)
DeltaFile
+2-2sys/xen/xenbus/xenbusb.h
+2-2sys/dev/qlxge/qls_isr.c
+1-1sys/powerpc/include/openpicvar.h
+1-1sys/powerpc/include/pcpu.h
+1-1sys/powerpc/include/pcpu_aux.h
+1-1sys/netgraph/bluetooth/l2cap/ng_l2cap_ulpi.c
+8-85,432 files not shown
+5,440-5,4405,438 files

HardenedBSD/src 161fa17sys/contrib/dev/athk/ath11k mac.c wmi.c

Merge remote-tracking branch 'internal/hardened/current/master' into hardened/current/cross-dso-cfi

Conflicts:
        share/man/man5/src.conf.5 (unresolved)
DeltaFile
+8,669-0sys/contrib/dev/athk/ath11k/mac.c
+8,286-0sys/contrib/dev/athk/ath11k/wmi.c
+5,662-0sys/contrib/dev/athk/ath11k/dp_rx.c
+5,585-0sys/contrib/dev/athk/ath11k/wmi.h
+4,704-0sys/contrib/dev/athk/ath11k/debugfs_htt_stats.c
+3,063-0sys/contrib/dev/athk/ath11k/qmi.c
+35,969-06,232 files not shown
+89,418-15,4896,238 files

HardenedBSD/src 8b901f3contrib/xz ChangeLog, contrib/xz/src/liblzma/common memcmplen.h

Merge remote-tracking branch 'freebsd/main' into hardened/current/master

Conflicts:
        lib/csu/common/csu_common.h (deleted)
        share/man/man5/src.conf.5 (unresolved)
        sys/i386/linux/imgact_linux.c (deleted)
        sys/kern/imgact_aout.c (deleted)
DeltaFile
+267-0contrib/xz/ChangeLog
+66-0share/mk/local.sys.dirdeps.env.mk
+0-66share/mk/local.meta.sys.env.mk
+17-0stand/efi/libefi/devpath.c
+14-0tools/build/options/WITH_META_ERROR_TARGET
+12-1contrib/xz/src/liblzma/common/memcmplen.h
+376-675,795 files not shown
+6,208-5,8965,801 files

HardenedBSD/src 4d846d2sys/dev/adb adb_kbd.c adbvar.h, sys/dev/ae if_ae.c if_aereg.h

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with:         pfg
MFC After:              3 days
Sponsored by:           Netflix
DeltaFile
+2-2sys/xen/xenbus/xenbusb.h
+2-2sys/dev/qlxge/qls_isr.c
+1-1sys/dev/adb/adb_kbd.c
+1-1sys/dev/adb/adbvar.h
+1-1sys/dev/ae/if_ae.c
+1-1sys/dev/ae/if_aereg.h
+8-85,571 files not shown
+5,579-5,5795,577 files

HardenedBSD/src c9b35fbsys/riscv/sifive sifive_prci.c fu740_pci_dw.c

Merge remote-tracking branch 'origin/freebsd/13-stable/main' into hardened/13-stable/master

Conflicts:
        sys/riscv/riscv/elf_machdep.c (unresolved)
DeltaFile
+703-0sys/riscv/sifive/sifive_prci.c
+465-0sys/riscv/sifive/fu740_pci_dw.c
+464-0sys/riscv/sifive/sifive_gpio.c
+405-0sys/riscv/sifive/sifive_spi.c
+0-400sys/riscv/sifive/fu540_spi.c
+0-327sys/riscv/sifive/fu540_prci.c
+2,037-72789 files not shown
+4,115-1,40295 files

HardenedBSD/src b17ecfdsys/tests/fib_lookup fib_lookup.c

routing: add IPv6 fib validation procedure.

Allow consistency validation of the inet6 fib based on rib data.
Validation can be kicked off by loading test_lookup module and
 running sysctl net.route.test.run_inet6_scan=1

(cherry picked from commit cbfba56c45ab77303a3e25a82cf750043849760b)
DeltaFile
+231-1sys/tests/fib_lookup/fib_lookup.c
+231-11 files

HardenedBSD/src 5b35ba2sys/tests/fib_lookup fib_lookup.c

routing: Use process fib instead of fib 0 when conducting tests.

* Allow to do validation/performance tests by using process
 fib instead of default fib 0.
* Print all validation errors instead of just the first one.

(cherry picked from commit 4a77a9b6491093b9a8bb786a861ed74ddf156e8e)
DeltaFile
+39-24sys/tests/fib_lookup/fib_lookup.c
+39-241 files

HardenedBSD/src 97f483fcontrib/one-true-awk/testdir bib funstack.in, share/colldef zh_CN.UTF-8.src ja_JP.UTF-8.src

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi

Conflicts:
        Makefile.inc1 (unresolved)
        libexec/rtld-elf/Makefile (unresolved)
        share/man/man5/src.conf.5 (unresolved)
        targets/pseudo/bootstrap-tools/Makefile (unresolved)
DeltaFile
+0-69,894share/colldef/zh_CN.UTF-8.src
+67,474-0share/colldef_unicode/zh_CN.UTF-8.src
+31,102-0contrib/one-true-awk/testdir/bib
+27,220-0contrib/one-true-awk/testdir/funstack.in
+22,150-0share/colldef_unicode/ja_JP.UTF-8.src
+0-22,135share/colldef/ja_JP.UTF-8.src
+147,946-92,0293,519 files not shown
+532,005-310,5073,525 files

HardenedBSD/src 3a72406contrib/unbound config.guess Makefile.in, contrib/unbound/services authzone.c outside_network.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+1,387-18contrib/unbound/services/authzone.c
+635-587contrib/unbound/config.guess
+681-2contrib/unbound/sldns/str2wire.c
+537-0contrib/unbound/testcode/unitzonemd.c
+224-289contrib/unbound/Makefile.in
+354-111contrib/unbound/services/outside_network.c
+3,818-1,007179 files not shown
+14,711-1,895185 files

HardenedBSD/src cbfba56sys/tests/fib_lookup fib_lookup.c

routing: add IPv6 fib validation procedure.

Allow consistency validation of the inet6 fib based on rib data.
Validation can be kicked off by loading test_lookup module and
 running sysctl net.route.test.run_inet6_scan=1

MFC after:      1 week
DeltaFile
+231-1sys/tests/fib_lookup/fib_lookup.c
+231-11 files

HardenedBSD/src 708dc16sys/tests/fib_lookup fib_lookup.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+39-24sys/tests/fib_lookup/fib_lookup.c
+39-241 files

HardenedBSD/src 4a77a9bsys/tests/fib_lookup fib_lookup.c

routing: Use process fib instead of fib 0 when conducting tests.

* Allow to do validation/performance tests by using process
 fib instead of default fib 0.
* Print all validation errors instead of just the first one.

MFC after:      1 week
DeltaFile
+39-24sys/tests/fib_lookup/fib_lookup.c
+39-241 files

HardenedBSD/src d429ecacontrib/apr configure, contrib/apr-util configure

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi

Conflicts:
        share/man/man5/src.conf.5 (unresolved)
DeltaFile
+0-32,465contrib/apr/configure
+31,999-0contrib/arm-optimized-routines/math/test/traces/sincosf.txt
+0-30,335contrib/subversion/configure
+0-25,340contrib/apr-util/configure
+0-16,709contrib/subversion/subversion/libsvn_wc/wc_db.c
+16,000-0contrib/arm-optimized-routines/math/test/traces/exp.txt
+47,999-104,84910,834 files not shown
+702,320-1,092,88210,840 files

HardenedBSD/src f67a511sys/contrib/openzfs/module/os/linux/zfs zfs_znode.c, sys/contrib/openzfs/module/zfs arc.c

Merge branch 'freebsd/13-stable/main' into hardened/13-stable/master

* freebsd/13-stable/main:
  tests: Revise FIB lookups per second benchmarking routines
  Revise FIB lookups per second benchmarking routines.
  Add IPv4 fib lookup performance tests with uniform keys.
  Avoid deadlock when removing L2ARC devices under I/O
  systemd: import: expand $ZPOOL_IMPORT_OPTS correctly
  vdev_draid_min_asize() ignores reserved space
  Do not hash unlinked inodes
  Added uncompress requirement
  ZTS: Add zfs_clone_livelist_dedup.ksh to Makefile.am
DeltaFile
+162-0sys/tests/fib_lookup/fib_lookup.c
+6-11sys/contrib/openzfs/module/zfs/arc.c
+11-4sys/contrib/openzfs/module/os/linux/zfs/zfs_znode.c
+7-0sys/contrib/openzfs/rpm/generic/zfs-dkms.spec.in
+7-0sys/contrib/openzfs/rpm/generic/zfs-kmod.spec.in
+5-0sys/contrib/openzfs/rpm/generic/zfs.spec.in
+198-156 files not shown
+205-2312 files

HardenedBSD/src 0927411sys/tests/fib_lookup fib_lookup.c

tests: Revise FIB lookups per second benchmarking routines

Fix a bug in the LPM SEQ benchmark (missing break inside a switch block)
by restructuring the test loop, while introducing additional two
synthetic test options:

ANN: scan only the address space announced in current RIB
REP: repeat lookups over several keys in a sliding window scheme

The total of eight combinations of test options are now available
through dedicated sysctl hooks.

Differential Revision:  <https://reviews.freebsd.org/D30311>
Reviewed by:    melifaro
MFC after:      3 days

(cherry picked from commit b6f8436b094daf7b1c429ce74997a4daf6994fcb)
DeltaFile
+121-23sys/tests/fib_lookup/fib_lookup.c
+121-231 files

HardenedBSD/src 2b6b8easys/tests/fib_lookup fib_lookup.c

Revise FIB lookups per second benchmarking routines.

Add a LPS benchmark variant which introduces artificial dependencies
between successive lookups. While here, instead of writing the results
from the lookups to a huge array, add them to an accumulator, in a more
lightweight attempt at preventing the CPU's OOO machinery from
discarding the lookup results if they would be completely unused.

net.route.test.run_lps_rnd measures LPS throughput with independent
uniformly random keys

net.route.test.run_lps_seq measures LPS throughput with uniformly
random keys with artificial interdependencies
Reviewed by:    melifaro
MFC after:      7 days
Differential Revision: https://reviews.freebsd.org/D30096

(cherry picked from commit a43104ebe7630111d7e7debc56aacf49787dcf43)
DeltaFile
+27-15sys/tests/fib_lookup/fib_lookup.c
+27-151 files

HardenedBSD/src 402ddb8sys/tests/fib_lookup fib_lookup.c

Add IPv4 fib lookup performance tests with uniform keys.

Submitted by:   zec
MFC after:      1 week

(cherry picked from commit b8598e2ff65ab82da0cf6861ee12f078b40bc252)
DeltaFile
+52-0sys/tests/fib_lookup/fib_lookup.c
+52-01 files

HardenedBSD/src ffa1facsys/tests/fib_lookup fib_lookup.c, usr.sbin/bsnmpd/modules/snmp_pf pf_snmp.c

Merge branch 'freebsd/current/main' into hardened/current/master

* freebsd/current/main:
  bsnmp: Fix incorrect use of libpfctl
  tests: Revise FIB lookups per second benchmarking routines
DeltaFile
+121-23sys/tests/fib_lookup/fib_lookup.c
+2-2usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
+123-252 files

HardenedBSD/src b6f8436sys/tests/fib_lookup fib_lookup.c

tests: Revise FIB lookups per second benchmarking routines

Fix a bug in the LPM SEQ benchmark (missing break inside a switch block)
by restructuring the test loop, while introducing additional two
synthetic test options:

ANN: scan only the address space announced in current RIB
REP: repeat lookups over several keys in a sliding window scheme

The total of eight combinations of test options are now available
through dedicated sysctl hooks.

Differential Revision:  <https://reviews.freebsd.org/D30311>
Reviewed by:    melifaro
MFC after:      3 days
DeltaFile
+121-23sys/tests/fib_lookup/fib_lookup.c
+121-231 files

HardenedBSD/src 34ab832contrib/binutils Makefile.in, contrib/terminus ter-u32n.bdf ter-u32b.bdf

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi

Conflicts:
        Makefile.inc1 (unresolved)
        share/man/man5/src.conf.5 (unresolved)
        targets/pseudo/bootstrap-tools/Makefile (unresolved)
        tools/build/options/WITH_OFED_EXTRA (deleted)
DeltaFile
+71,590-432tools/tools/locale/etc/final-maps/widths.txt
+52,834-0contrib/terminus/ter-u32n.bdf
+52,834-0contrib/terminus/ter-u32b.bdf
+0-49,485contrib/binutils/Makefile.in
+47,418-0contrib/terminus/ter-u28b.bdf
+47,418-0contrib/terminus/ter-u28n.bdf
+272,094-49,91725,491 files not shown
+3,013,181-3,285,38525,497 files

HardenedBSD/src bd6cfc6sys/compat/linux linux_futex.c linux_uid16.c, sys/netinet in_fib_dxr.c

Merge branch 'freebsd/current/main' into hardened/current/master

* freebsd/current/main:
  virtio_blk: Fix issuing T_GET_ID before DRIVER_OK status
  Restore Cirrus-CI boot smoke test
  linux: remove redundant SDT tracepoints
  Introduce DXR as an IPv4 longest prefix matching / FIB module
  Revise FIB lookups per second benchmarking routines.
DeltaFile
+1,253-0sys/netinet/in_fib_dxr.c
+14-175sys/compat/linux/linux_futex.c
+2-88sys/compat/linux/linux_uid16.c
+1-70sys/compat/linux/linux_time.c
+27-15sys/tests/fib_lookup/fib_lookup.c
+1-20sys/compat/linux/linux_sysctl.c
+1,298-3685 files not shown
+1,338-37711 files

HardenedBSD/src a43104esys/tests/fib_lookup fib_lookup.c

Revise FIB lookups per second benchmarking routines.

Add a LPS benchmark variant which introduces artificial dependencies
between successive lookups. While here, instead of writing the results
from the lookups to a huge array, add them to an accumulator, in a more
lightweight attempt at preventing the CPU's OOO machinery from
discarding the lookup results if they would be completely unused.

net.route.test.run_lps_rnd measures LPS throughput with independent
uniformly random keys

net.route.test.run_lps_seq measures LPS throughput with uniformly
random keys with artificial interdependencies
Reviewed by:    melifaro
MFC after:      7 days
Differential Revision: https://reviews.freebsd.org/D30096
DeltaFile
+27-15sys/tests/fib_lookup/fib_lookup.c
+27-151 files

HardenedBSD/src 8d5323fsys/cam cam_periph.c cam_xpt.c, sys/cam/scsi scsi_xpt.c

Merge branch 'freebsd/current/main' into hardened/current/master

* freebsd/current/main:
  sh: improve emacs mode
  Add IPv4 fib lookup performance tests with uniform keys.
  powerpc64: support superpages on pmap_mincore
  cam: make sure to clear CCBs allocated on the stack
  fortune/freebsd-tips: Add a few fortunes
  fortune/freebsd-tips: Remove errant spaces
  fortune/freebsd-tips: Remove bogus fortune
DeltaFile
+44-12usr.bin/fortune/datfiles/freebsd-tips
+52-0sys/tests/fib_lookup/fib_lookup.c
+7-0sys/cam/scsi/scsi_xpt.c
+4-2sys/powerpc/aim/mmu_oea64.c
+6-0sys/cam/cam_periph.c
+5-0sys/cam/cam_xpt.c
+118-142 files not shown
+124-158 files

HardenedBSD/src b8598e2sys/tests/fib_lookup fib_lookup.c

Add IPv4 fib lookup performance tests with uniform keys.

Submitted by:   zec
MFC after:      1 week
DeltaFile
+52-0sys/tests/fib_lookup/fib_lookup.c
+52-01 files