FreeBSD/src 0588444sys/net80211 ieee80211_vht.c

net80211: add the specific 802.11-2020 references to VHT IEs

Since I keep needing to find them, just add the references to
the VHT info/operation IEs.

Differential Revision:  https://reviews.freebsd.org/D49199
DeltaFile
+4-0sys/net80211/ieee80211_vht.c
+4-01 files

FreeBSD/src 70dc8e5sys/net80211 ieee80211_hostap.c

net80211: add AES-GCM to the hostap logic

This is currently an untested diff set for implementing the
AES-GCM negotiation in hostap mode.

* Decode the AES-GCM-128 cipher in the RSN field;
* Add AES-GCM as the first cipher to check when deciding the
  unicast cipher type;
* Refactor out the "can we do HT A-MPDU + this cipher" check
  for the unicast cipher; and
* .. add AES-GCM-128 to the allowable ciphers.

I haven't tested this yet to make sure I haven't broken the hostapd
path, nor that it actually DOES negotiate AES-GCM-128.

Differential Revision:  https://reviews.freebsd.org/D49189
DeltaFile
+37-5sys/net80211/ieee80211_hostap.c
+37-51 files

FreeBSD/src 00ad581usr.sbin/wlanstats wlanstats.c

wlanstats: add GCMP crypto counters

Add GCMP crypto counters to wlanstats.

Differential Revision:  https://reviews.freebsd.org/D49162
DeltaFile
+24-0usr.sbin/wlanstats/wlanstats.c
+24-01 files

FreeBSD/src 2d4583csys/conf files, sys/modules/wlan_gcmp Makefile

net80211: add initial AES-GCMP crypto support

This adds initial AES-GCMP crypto support.  It registers for both
128 and 256 bit support, although the 256 bit support will not work
without extending the net80211/ioctl keylength.

This is not yet enabled by default; drivers will need to opt-in
to supporting it in either hardware or software.

The AES-GCMP code is BSD licenced code from hostapd.git release 2.11.

Differential Revision:  https://reviews.freebsd.org/D49161
DeltaFile
+681-0sys/net80211/ieee80211_crypto_gcmp.c
+363-0sys/net80211/ieee80211_crypto_gcm.c
+58-0sys/net80211/ieee80211_crypto_gcm.h
+9-0sys/modules/wlan_gcmp/Makefile
+7-0sys/net80211/ieee80211_ioctl.h
+2-0sys/conf/files
+1,120-01 files not shown
+1,121-07 files

FreeBSD/src cabf76fsys/dev/sound/pcm mixer.c

sound: Remove redundant check in mixer_clone()

PCM_REGISTERED() does this check through PCM_ALIVE().

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+1-1sys/dev/sound/pcm/mixer.c
+1-11 files

FreeBSD/src 59c529frelease Makefile.vm

release/vm: force replacement of compressed images

Without this, rebuilding vm images will fail due to the .xz file
existing.

Reviewed by:    emaste
Sponsored by:   DARPA, AFRL
Differential Revision:  https://reviews.freebsd.org/D49321
DeltaFile
+3-3release/Makefile.vm
+3-31 files

FreeBSD/src c41ba99release Makefile.vm, release/tools vmimage.subr basic-ci.conf

release/vm: partially support NO_ROOT

For images that don't require QEMU, support NO_ROOT.  This entails:
 - Passing NO_ROOT down to mk-vmimage.sh (which sets it for
   installworld, etc)
 - Handling etcupdate bootstrapping
 - Adding assorted config file METALOG entries
 - Running makefs in the right directory and adding -D for dups

The main gap in basic NO_ROOT support is package installation.  Each
image type must also be updated to add METALOG entries for any files it
adds.

Reviewed by:    emaste
Sponsored by:   DARPA, AFRL
Differential Revision:  https://reviews.freebsd.org/D49320
DeltaFile
+27-6release/tools/vmimage.subr
+5-0release/Makefile.vm
+3-1release/tools/basic-ci.conf
+35-73 files

FreeBSD/src 92d399arelease Makefile.vm, release/tools vmimage.subr

release/vm: add a WITHOUT_QEMU option

This option disables trying to build a qemu-<target>-static and simply
doesn't do any of the operations that rely on it.  This disables package
installation which is required by most, but not all image types.

Disable all CLOUDWARE variants that require pkg when WITHOUT_QEMU is set
to avoid broken images.

Reviewed by:    emaste
Sponsored by:   DARPA, AFRL
Differential Revision:  https://reviews.freebsd.org/D49310
DeltaFile
+11-0release/tools/vmimage.subr
+8-1release/Makefile.vm
+19-12 files

FreeBSD/src ef037a0sys/compat/linuxkpi/common/include/linux math.h

linuxkpi: Correct DIV_ROUND_DOWN_ULL

This fixes a black screen issue with the i915 DRM driver from Linux v6.8

Fixes: c4e0746e7d5bd ("LinuxKPI: Add helper macros IS_ALIGNED and DIV_ROUND_DOWN_ULL.")
Pull request: https://github.com/freebsd/freebsd-src/pull/1612
DeltaFile
+1-1sys/compat/linuxkpi/common/include/linux/math.h
+1-11 files

FreeBSD/src ba6c35fsys/dev/usb/controller usb_controller.c

usb: Use bus_detach_children instead of bus_generic_detach

The USB bus performs additional teardown steps in between detaching
child devices and deleting child devices.

Reported by:    phk, thj
Tested by:      phk
Fixes:          e9d3857040a1 ("Use bus_detach_children instead of bus_generic_detach")
DeltaFile
+1-1sys/dev/usb/controller/usb_controller.c
+1-11 files

FreeBSD/src 43a15a2sys/kern kern_mutex.c

mtx: Include the mutex pointer in the panic message for destroyed locks

Reviewed by:    olce, kib, markj
Sponsored by:   AFRL, DARPA
Differential Revision:  https://reviews.freebsd.org/D49315
DeltaFile
+9-7sys/kern/kern_mutex.c
+9-71 files

FreeBSD/src 0ed1049sys/kern kern_mutex.c

mtx: Make idle thread assertions more robust

Just print the pointer to the mutex instead of the name in case the
mutex is corrupted.

Reviewed by:    olce, kib
Sponsored by:   AFRL, DARPA
Differential Revision:  https://reviews.freebsd.org/D49314
DeltaFile
+4-4sys/kern/kern_mutex.c
+4-41 files

FreeBSD/src dba4559sys/kern kern_mutex.c

mtx: Avoid nested panics on lock class mismatch assertions

It is only (somewhat) safe to dereference lo_name if we know the mutex
has a specific lock class that is incorrect, not if just has "some"
incorrect lock class.  In particular, in the case of memory
overwritten with 0xdeadc0de, the lock class won't match either mutex
type.  However, trying to dereference lo_name via a 0xdeadc0de pointer
triggers a nested panic building the panicstr which then prevents a
crash dump.

Reviewed by:    olce, kib, markj
Sponsored by:   AFRL, DARPA
Differential Revision:  https://reviews.freebsd.org/D49313
DeltaFile
+10-10sys/kern/kern_mutex.c
+10-101 files

FreeBSD/src 87eaa30tools/build depend-cleanup.sh

depend-cleanup: Add examples for common cases

Reviewed by:    andrew
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D48521
DeltaFile
+48-0tools/build/depend-cleanup.sh
+48-01 files

FreeBSD/src 5c97b7csys/dev/mana mana_en.c mana.h

mana: refill the rx mbuf in batch

Set the default refill threshod to be one quarter of the rx queue
length. User can change this value with hw.mana.rx_refill_thresh
in loader.conf. It improves the rx completion handling by saving
10% to 15% of overall time with this change.

Tested by:      whu
MFC after:      2 weeks
Sponsored by:   Microsoft

(cherry picked from commit 9b8701b81f14f0fa0787425eb9761b765d5faab0)
DeltaFile
+97-30sys/dev/mana/mana_en.c
+10-0sys/dev/mana/mana.h
+7-0sys/dev/mana/mana_sysctl.c
+114-303 files

FreeBSD/src dae6789sys/dev/mana mana_en.c mana.h

mana: Increase default tx and rx ring size to 1024

Tcp perfomance tests show high number of retries under heave tx
traffic. The numbers of queue stops and wakeups also increase.
Further analysis suggests the FreeBSD network stack tends to send
TSO packets with multiple sg entries, typically ranging from
10 to 16. On mana, every two sgs takes one unit of tx ring.
Therefore, adding up one unit for the head, it takes 6 to 9 units
of tx ring to send a typical TSO packet.

Current default tx ring size is 256, which can get filled up
quickly under heavy load. When tx ring is full, the send queue
is stopped waiting for the ring space to be freed. This could
cause the network stack to drop packets, and lead to tcp
retransmissions.

Increase the default tx and rx ring size to 1024 units. Also
introduce two tuneables allowing users to request tx and rx ring
size in loader.conf:

    [14 lines not shown]
DeltaFile
+83-13sys/dev/mana/mana_en.c
+19-2sys/dev/mana/mana.h
+16-0sys/dev/mana/mana_sysctl.c
+118-153 files

FreeBSD/src ec0c098sys/dev/hyperv/netvsc if_hn.c

Hyper-V: hn: rewrite hn rsc swtich to avoid sysctl hang

Changing the rsc_switch flag using sysctl to turn rsc on or off
could hang. The orignal code sends request to host to get the
mtu setting. Sometimes the host fails to reply, causing
the thread to sleep forever waiting for the host response.

Use existing cached mtu from hn device instead to avoid calling
host.

Reported by:    whu
Tested by:      whu
MFC after:      1 week

(cherry picked from commit da1deb784d9ad3a4015a3f91fa1a5ce394fd3fdb)
DeltaFile
+15-17sys/dev/hyperv/netvsc/if_hn.c
+15-171 files

FreeBSD/src 454938dstand/defaults loader.conf.5

loader.conf: Document boot_verbose

And for the moment, point people to loader.efi(8) for all boot_*
variables.

Sponsored by: Netflix
MFC After: 1 week

(cherry picked from commit 36f1db7a37aed8e831ec385a542ef3377890bfce)
DeltaFile
+8-1stand/defaults/loader.conf.5
+8-11 files

FreeBSD/src 568a1a1share/man/man4 wg.4

wg.4: Document kernel config option

wg(4) can be compiled into the kernel (device wg), but the wg.4 manpage
does not document this. Adjust it to mention this like other drivers do.

MFC after:      3 days
Reviewed by:    carlavilla, kevans, ziaee
Approved by:    carlavilla (mentor)
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1597

(cherry picked from commit 780a4667bbde0daa90db900bb0f93f6337d6208b)
DeltaFile
+9-2share/man/man4/wg.4
+9-21 files

FreeBSD/src f9857easys/amd64/vmm x86.c

bhyve: fix CPUID L3 Cache Size reporting for AMD/SVM

PR:     279901

(cherry picked from commit 0698ce429f78f548f7eb3e54476fb312109ddd8b)
DeltaFile
+8-3sys/amd64/vmm/x86.c
+8-31 files

FreeBSD/src 7008b9fsys/dev/mlx5/mlx5_core mlx5_main.c

mlx5: Fix BlueField-4 device description

BlueField-4 will not be based on ConnectX-8. Remove the wrong description

Sponsored by:   NVidia networking
MFC after:      1 week
DeltaFile
+1-1sys/dev/mlx5/mlx5_core/mlx5_main.c
+1-11 files

FreeBSD/src 067cf60libexec/rc/rc.d ntpd

Revert "ntpd: Use the ntpd -u option in preference to the rc su plumbing"

Using the ntpd -u option to set the credentials ntpd is to run under
while still using rc(8) to invoke causes some FreeBSD installs to fail
to load mac_ntp. The fact that that can_run_nonroot() does not
indicate why failures occur leaves people on the mailing lists
guessing as to why there are failures. Let's revert back to using
the rc(8) provided su. The ntpd rc script will be rewritten when
the ntpd chroot will be implemented.

Reported on:    freebsd-stable@

This reverts commit 521f66715afb312b356afafc68cbc044a436a753.

(cherry picked from commit 5ca7754519e8c618968d8acbf54d653b6e968829)
DeltaFile
+2-7libexec/rc/rc.d/ntpd
+2-71 files

FreeBSD/src 94f4140libexec/rc/rc.d ntpd

Revert "ntpd: Use the ntpd -u option in preference to the rc su plumbing"

Using the ntpd -u option to set the credentials ntpd is to run under
while still using rc(8) to invoke causes some FreeBSD installs to fail
to load mac_ntp. The fact that that can_run_nonroot() does not
indicate why failures occur leaves people on the mailing lists
guessing as to why there are failures. Let's revert back to using
the rc(8) provided su. The ntpd rc script will be rewritten when
the ntpd chroot will be implemented.

Reported on:    freebsd-stable@

This reverts commit 521f66715afb312b356afafc68cbc044a436a753.

(cherry picked from commit 5ca7754519e8c618968d8acbf54d653b6e968829)
DeltaFile
+2-7libexec/rc/rc.d/ntpd
+2-71 files

FreeBSD/src 5ca7754libexec/rc/rc.d ntpd

Revert "ntpd: Use the ntpd -u option in preference to the rc su plumbing"

Using the ntpd -u option to set the credentials ntpd is to run under
while still using rc(8) to invoke causes some FreeBSD installs to fail
to load mac_ntp. The fact that that can_run_nonroot() does not
indicate why failures occur leaves people on the mailing lists
guessing as to why there are failures. Let's revert back to using
the rc(8) provided su. The ntpd rc script will be rewritten when
the ntpd chroot will be implemented.

Reported on:    freebsd-stable@
MFC after:      immediately

This reverts commit 521f66715afb312b356afafc68cbc044a436a753.
DeltaFile
+2-7libexec/rc/rc.d/ntpd
+2-71 files

FreeBSD/src 642fc04sys/dev/usb/controller xlnx_dwc3.c dwc_otg_acpi.c

usb: Kill left-over cdefs.h includes

These includes were for __FBSD_RCSID() macro. They weren't formatted
like the rest of the tree so weren't trimmed automatically when that
script was run. Trim them now.

MFC After: 1 week
Sponsored by:           Netflix

(cherry picked from commit ca48e43ba9ee73a07cdbad8365117793b01273bb)
DeltaFile
+0-2sys/dev/usb/controller/xlnx_dwc3.c
+0-1sys/dev/usb/controller/dwc_otg_acpi.c
+0-1sys/dev/usb/controller/ehci_fsl.c
+0-1sys/dev/usb/controller/ehci_imx.c
+0-1sys/dev/usb/controller/ehci_msm.c
+0-1sys/dev/usb/controller/ehci_mv.c
+0-762 files not shown
+0-6968 files

FreeBSD/src be7b176secure ssh.mk, secure/lib/libssh Makefile

ssh: tidy include handling

Centralize optional krb5_config.h handling in ssh.mk.  Do not add
headers (that are committed to the src tree) to SRCS as there is no
need.

Reviewed by:    imp, jlduran, kevans (all earlier)
MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D34409

(cherry picked from commit 7f916236044d9a733de8b3c47b5dcbf71988cb03)
DeltaFile
+0-5secure/lib/libssh/Makefile
+4-1secure/ssh.mk
+0-2secure/libexec/sshd-session/Makefile
+0-2secure/usr.bin/ssh/Makefile
+0-2secure/usr.sbin/sshd/Makefile
+4-125 files

FreeBSD/src 74776ebsecure ssh.mk, secure/libexec/ssh-keysign Makefile

ssh: Consolidate HAVE_LDNS / LIBWRAP in ssh.mk

Commit 9d63429fa163 ("ssh: move common Makefile boilerplate to a new
ssh.mk") introduced ssh.mk for common OpenSSH paths and flags, as part
of enabling FIDO/U2F.  Move duplicated MK_LDNS and MK_TCP_WRAPPERS
handling there.

Reviewed by:    kevans
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D31896

(cherry picked from commit d71e7e57fc1472e3ea6d31c44e187c2819d2c71e)
DeltaFile
+1-9secure/libexec/ssh-pkcs11-helper/Makefile
+1-9secure/libexec/ssh-keysign/Makefile
+1-9secure/usr.bin/ssh-agent/Makefile
+8-0secure/ssh.mk
+1-7secure/usr.bin/ssh-keygen/Makefile
+0-6secure/usr.bin/ssh-add/Makefile
+12-408 files not shown
+13-7614 files

FreeBSD/src 0f492f7stand/kboot/kboot main.c

loader.kboot: smbios: Add a comment about v3 entry point being favored

Note that the behavior here is consistent with BIOS and EFI boot.

Reviewed by:    imp, markj
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D49293
DeltaFile
+4-0stand/kboot/kboot/main.c
+4-01 files

FreeBSD/src 1ee8714stand/libsa smbios.c

libsa: smbios_probe(): Strictly obey specified entry point address

When such an address is known, do not search elsewhere, contrary to what
we are doing on non-EFI boot (see SMBIOS_START and SMBIOS_LENGTH).

Reviewed by:    markj
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D49291
DeltaFile
+2-2stand/libsa/smbios.c
+2-21 files

FreeBSD/src 96f7757stand/efi/loader main.c

loader.efi: smbios: Favor the v3 (64-bit) entry point

Be consistent with what we are now doing with non-EFI boot (but with the
difference that EFI runs in 64-bit mode on 64-bit platforms, so there is
no restriction that the v3 entry point should be below 4GB).

While here, move out the EFI smbios detection code in a separate
sub-routine.

Reviewed by:    imp, markj
MFC after:      2 weeks
Relnotes:       yes
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D49292
DeltaFile
+36-15stand/efi/loader/main.c
+36-151 files