HardenedBSD/src f4f1343share/man/man4 vmx.4, sys/dev/e1000 if_em.c

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+66-54usr.bin/whereis/whereis.c
+48-24sys/dev/e1000/if_em.c
+18-16share/man/man4/vmx.4
+33-0sys/geom/raid3/g_raid3.c
+33-0sys/geom/raid/g_raid.c
+18-2usr.bin/netstat/if.c
+216-965 files not shown
+224-9811 files

HardenedBSD/src aef529cshare/man/man4 vmx.4, sys/dev/e1000 if_em.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+66-54usr.bin/whereis/whereis.c
+48-24sys/dev/e1000/if_em.c
+18-16share/man/man4/vmx.4
+33-0sys/geom/raid3/g_raid3.c
+33-0sys/geom/raid/g_raid.c
+18-2usr.bin/netstat/if.c
+216-965 files not shown
+224-9811 files

HardenedBSD/src e5283a9sys/geom/raid3 g_raid3.h g_raid3.c

graid3: Add rotation rate support

If all member devices report the same rotation rate, pass it up.
DeltaFile
+33-0sys/geom/raid3/g_raid3.c
+1-0sys/geom/raid3/g_raid3.h
+34-02 files

HardenedBSD/src 2d9c41dsys/geom/raid g_raid.h g_raid.c

graid: Add rotation rate support

If all member devices report the same rotation rate, pass it up.
DeltaFile
+33-0sys/geom/raid/g_raid.c
+1-0sys/geom/raid/g_raid.h
+34-02 files

HardenedBSD/src f8c6f9fshare/man/man4 vmx.4

vmx.4: Canonicalize SYNOPSIS

MFC after:      3 days
DeltaFile
+12-12share/man/man4/vmx.4
+12-121 files

HardenedBSD/src f1da14eshare/man/man4 vmx.4

vmx.4: Spinoff HARDWARE + tag SPDX

This section will appear in the Hardware Release Note.

MFC after:      3 days
DeltaFile
+6-4share/man/man4/vmx.4
+6-41 files

HardenedBSD/src edadc3fusr.bin/whereis whereis.1 whereis.c

whereis(1): Respect PORTSDIR variable

PORTSDIR is a very common variable that points to the location of a ports
directory. Make whereis(1) respect this variable too.

Reviewed by:    arrowd@, christos@
Approved by:    christos@
Differential Revision:  https://reviews.freebsd.org/D56845
DeltaFile
+66-54usr.bin/whereis/whereis.c
+4-0usr.bin/whereis/whereis.1
+70-542 files

HardenedBSD/src 2454371sys/dev/e1000 if_igb_iov.c e1000_defines.h

e1000: Correct igb(4) DMA coalescing register programming

The disabled path wrote the complement of DMAC_EN to DMACR.  That
set every other field, including reserved bits, the one-shot EXIT_DC
command, watchdog enables, receive threshold, and PCIe Lx selection.

When DMA coalescing was enabled, the requested watchdog and Lx-delay
values were ORed into their reset values rather than replacing the
fields.  PCIEMISC.LX_DECISION was also cleared, preventing
DMACR.DMAC_Lx from controlling PCIe low-power entry.

Disable coalescing by clearing only DMAC_EN and retaining the
documented DMAC_Lx policy and watchdog fields.  On enable, replace the
variable fields under their masks, select DMA requirements for PCIe
low-power entry, and program the loopback and BMC watchdog policies
independently of prior state.

Make igb_init_dmac() the sole owner of this policy, including when
SR-IOV is active, so later IOV initialization cannot overwrite it.

    [14 lines not shown]
DeltaFile
+48-24sys/dev/e1000/if_em.c
+0-2sys/dev/e1000/if_igb_iov.c
+2-0sys/dev/e1000/e1000_defines.h
+50-263 files

HardenedBSD/src 46f09c4usr.bin/netstat if.c

netstat: filtering out unsupported address families

getifaddrs(3) may return AF_INET6 addresses even when netstat(1)
is built without INET6 support.  Avoid passing these addresses to
process_ifa_addr(), which does not handle AF_INET6 in that case.

This fixes corrupted column width calculations and runaway output
from netstat -i, which could cause periodic daily check output to
generate multi-gigabyte mail messages and exhaust disk space and
memory.

MFC after:      2 weeks
DeltaFile
+18-2usr.bin/netstat/if.c
+18-21 files

HardenedBSD/src 15ae4a2share/man/man9 condvar.9, sys/arm64/arm64 pmap.c

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+259-177sys/kern/tty.c
+55-0sys/kern/kern_condvar.c
+17-13sys/arm64/arm64/pmap.c
+8-4sys/kern/tty_ttydisc.c
+10-1share/man/man9/condvar.9
+5-1sys/sys/tty.h
+354-1962 files not shown
+360-1968 files

HardenedBSD/src 38e6478sys/dev/sound/usb uaudio.c

Merge remote-tracking branch 'rad/hardened/15-stable/main' into hardened/15-stable/pledge
DeltaFile
+3-6sys/dev/sound/usb/uaudio.c
+3-61 files

HardenedBSD/src 41daf2bshare/man/man9 condvar.9, sys/arm64/arm64 pmap.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+259-177sys/kern/tty.c
+55-0sys/kern/kern_condvar.c
+17-13sys/arm64/arm64/pmap.c
+8-4sys/kern/tty_ttydisc.c
+10-1share/man/man9/condvar.9
+5-1sys/sys/tty.h
+354-1962 files not shown
+360-1968 files

HardenedBSD/src 5fb6bd2sys/dev/sound/usb uaudio.c

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+3-6sys/dev/sound/usb/uaudio.c
+3-61 files

HardenedBSD/src bd0449asys/dev/sound/usb uaudio.c

snd_uaudio: Use uDWord for the UAC2 sample rate

uaudio20_set_speed() split the sample rate into bytes by hand. Use
uDWord and USETDW() instead.

No functional change intended.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D59066

(cherry picked from commit 5c3bc8ab427c8624b29cd9ac9265445002da3ba8)
DeltaFile
+3-6sys/dev/sound/usb/uaudio.c
+3-61 files

HardenedBSD/src 4204287sys/kern tty_pts.c tty.c, sys/sys tty.h

tty: gracefully handle proctree_lock locking

Instead of relocking tty to get the proctree_lock and experiencing the
race due to the relock, take the proctree_lock in advance for ioctl
commands that need it.  The affected commands, TIOCNOTTY, TIOCSCTTY,
and TIOCSPGRP, must not be overridden by the specific tty drivers,
so the common handling is cleaner.

Reviewed by:    kevans (previous version), markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D59132
DeltaFile
+209-172sys/kern/tty.c
+3-0sys/sys/tty.h
+3-0sys/kern/tty_pts.c
+215-1723 files

HardenedBSD/src 824f934sys/kern tty_ttydisc.c tty.c, sys/sys tty.h

tty: make tty_wait_background() aware of proctree_lock ownership

Reviewed by:    markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D59132
DeltaFile
+11-5sys/kern/tty.c
+8-4sys/kern/tty_ttydisc.c
+2-1sys/sys/tty.h
+21-103 files

HardenedBSD/src 9bd3fe5sys/kern tty.c

tty: add tty_wait_proctree(9)

Reviewed by:    markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D59132
DeltaFile
+39-0sys/kern/tty.c
+39-01 files

HardenedBSD/src a15c712share/man/man9 condvar.9

condvar.9: document cv_wait_sig_unblock(9)

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D59132
DeltaFile
+10-1share/man/man9/condvar.9
+10-11 files

HardenedBSD/src 0cc6c44sys/kern kern_condvar.c, sys/sys condvar.h

condvars(9): add cv_wait_sig_unlock()

Reviewed by:    markj
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D59132
DeltaFile
+55-0sys/kern/kern_condvar.c
+3-0sys/sys/condvar.h
+58-02 files

HardenedBSD/src b2e6b65sys/arm64/arm64 pmap.c

arm64 pmap: optimize TLB management by pmap_update_entry()

To date, pmap_update_entry() has unconditionally passed false as
final_only to pmap_s1_invalidate_range().  Passing false means that we
invalidate the intermediate "page walk cache" entries in the TLB as well
as the leaf that is being replaced. However, invalidating intermediate
entries is only necessary when doing a superpage promotion that replaces
a pointer to a page table page by a large page mapping.

Reviewed by:    andrew, kib, markj
MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D58917
DeltaFile
+17-13sys/arm64/arm64/pmap.c
+17-131 files

HardenedBSD/src 0072f42crypto/openssl/crypto/aes aes_x86core.c, crypto/openssl/doc/man3 X509_verify_cert.pod

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+0-79,844crypto/openssl/test/recipes/30-test_evp_data/evprand.txt
+0-867crypto/openssl/crypto/aes/aes_x86core.c
+851-3crypto/openssl/test/evp_extra_test.c
+394-125crypto/openssl/test/evp_extra_test2.c
+476-32crypto/openssl/test/endecode_test.c
+439-61crypto/openssl/doc/man3/X509_verify_cert.pod
+2,160-80,9321,174 files not shown
+9,891-83,2341,180 files

HardenedBSD/src 6e8c847sys/dev/sound/pci hdsp.h hdsp.c

Merge remote-tracking branch 'rad/hardened/15-stable/main' into hardened/15-stable/pledge
DeltaFile
+74-29sys/dev/sound/pci/hdsp-pcm.c
+13-13sys/dev/sound/pci/hdsp.c
+9-0sys/dev/sound/pci/hdsp.h
+96-423 files

HardenedBSD/src 0f72fcacrypto/openssl/crypto/aes aes_x86core.c, crypto/openssl/doc/man3 X509_verify_cert.pod

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+0-79,844crypto/openssl/test/recipes/30-test_evp_data/evprand.txt
+0-867crypto/openssl/crypto/aes/aes_x86core.c
+851-3crypto/openssl/test/evp_extra_test.c
+394-125crypto/openssl/test/evp_extra_test2.c
+476-32crypto/openssl/test/endecode_test.c
+439-61crypto/openssl/doc/man3/X509_verify_cert.pod
+2,160-80,9321,174 files not shown
+9,891-83,2341,180 files

HardenedBSD/src a8331fbsys/dev/sound/pci hdsp.h hdsp.c

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+74-29sys/dev/sound/pci/hdsp-pcm.c
+13-13sys/dev/sound/pci/hdsp.c
+9-0sys/dev/sound/pci/hdsp.h
+96-423 files

HardenedBSD/src 59b062eshare/man/man4 vr.4

vr.4: Canonicalize SYNOPSIS + tag SPDX

While here, remove superflouous Nd quoting.

MFC after:      3 days
DeltaFile
+5-13share/man/man4/vr.4
+5-131 files

HardenedBSD/src fa89ea4share/man/man4 vte.4

vte.4: Canonicalize SYNOPSIS + tag SPDX

MFC after:      3 days
DeltaFile
+16-12share/man/man4/vte.4
+16-121 files

HardenedBSD/src 4f5a44ashare/man/man4 vtnet.4

vtnet.4: Canonicalize SYNOPSIS + tag SPDX

MFC after:      3 days
DeltaFile
+25-11share/man/man4/vtnet.4
+25-111 files

HardenedBSD/src 5246f10share/man/man4 vxlan.4

vxlan.4: Canonicalize SYNOPSIS + mechanical nits

+ tag SPDX
+ remove superflouous Nd quoting
+ fix AUTHORS email markup

MFC after:      3 days
DeltaFile
+9-14share/man/man4/vxlan.4
+9-141 files

HardenedBSD/src eddc4e9share/man/man4 wbwd.4

wbwd.4: Canonicalize SYNOPSIS, HARDWARE + tag SPDX

MFC after:      3 days
DeltaFile
+17-13share/man/man4/wbwd.4
+17-131 files

HardenedBSD/src 7199b61share/man/man4 wmt.4

wmt.4: Canonicalize SYNOPSIS

While here, tag SPDX.

MFC after:      3 days
DeltaFile
+9-13share/man/man4/wmt.4
+9-131 files