FreeBSD/src 6d46fd2share/man/man4 capsicum.4

capsicum.4: Add capsicum_helpers and libcasper references

These were present in the SEE ALSO section but were not explicitly
mentioned.  Add a brief description of both.

Reviewed by:    ziaee
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50707
DeltaFile
+15-1share/man/man4/capsicum.4
+15-11 files

FreeBSD/src 7b3ee39lib/libcam Makefile, sbin/nvmecontrol Makefile

libcam: Include nvme opcode and status code routines from nvme_util.c

libcam in userspace also includes nvme_all.c which now depends on
nvme_util.c, so add nvme_util.c to libcam's sources.  This requires
exporting the opcode and status code routines in nvme_util.c to
userspace as well as the kernel.  In turn, this means nvmecontrol now
depends on libsbuf (which is already present in /lib).

Reported by:    viswhin, Jenkins
Fixes:          60159a98a837 ("nvme: Move opcode and status code tables from base CAM to nvme_util.c")
Sponsored by:   Chelsio Communications
DeltaFile
+8-5sys/dev/nvme/nvme.h
+3-2lib/libcam/Makefile
+0-4sys/dev/nvme/nvme_util.c
+1-1sbin/nvmecontrol/Makefile
+12-124 files

FreeBSD/src 8c9ce31. UPDATING, lib/csu/common crtbrand.S

Update in preparation for 14.3-RELEASE

- Bump BRANCH to RELEASE
- Add the anticipated RELEASE announcement date
- Set a static __FreeBSD_version

Approved by:    re (implicit)
Sponsored by:   Amazon
DeltaFile
+3-0UPDATING
+1-1sys/conf/newvers.sh
+1-1lib/csu/common/crtbrand.S
+5-23 files

FreeBSD/src 934df0csys/sys mman.h

mman: Reserve two PROT_ for CHERI use

In CheriBSD we use two bits to control load and store of CHERI
capabilities (pointers).  In anticipation of merging CHERI support in
time for FreeBSD 16, reserved these two bits to avoid the (low, but
non-zero) risk of a flag day downstream.

I've used PROT_CHERI0 and PROT_CHERI1 rather than their downstream name
in hopes of avoiding the impression they do something today.

Reviewed by:    kevans, adrian
Suggested by:   kevans, adrian
Sponsored by:   DARPA, AFRL
Differential Revision:  https://reviews.freebsd.org/D50621
DeltaFile
+2-0sys/sys/mman.h
+2-01 files

FreeBSD/src 8e35800. Makefile.inc1, cddl Makefile.inc

build: remove the last vestiges of lint support

Commit 1cbb58886a47 (shipped in 12.0.0) removed all lint infrastructure.
A bunch of NO_LINT definitions remained (perhaps as a bootstrapping
measture).  Remove them.

Reviewed by:    emaste
Differential Revision:  https://reviews.freebsd.org/D50704
DeltaFile
+2-5Makefile.inc1
+1-4gnu/Makefile.inc
+0-5cddl/Makefile.inc
+0-2secure/lib/libssl/Makefile
+0-2secure/lib/libssh/Makefile
+0-2lib/ncurses/tinfo/Makefile
+3-205 files not shown
+3-2711 files

FreeBSD/src e989719sys/fs/pseudofs pseudofs.c

pseudofs: make dup name an error instead of panic

There are enough cases where the duplicate name is caused by dubious
hardware configuration.  Stopping the whole system instead of failing a
driver, or even a diagnostic subsystem in a driver, is more
user-friendly.

Another issue right now is that the check is only present for the
INVARIANTS builds, silently accepting the request to create an entry
with the existing name on production builds.

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D50669
DeltaFile
+36-17sys/fs/pseudofs/pseudofs.c
+36-171 files

FreeBSD/src b63f298sys/fs/pseudofs pseudofs.c

pseudofs: fix typo in comment

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
Differential revision:  https://reviews.freebsd.org/D50669
DeltaFile
+1-1sys/fs/pseudofs/pseudofs.c
+1-11 files

FreeBSD/src 46fce00sys/dev/gve gve_tx_dqo.c

gve: Fix timestamp invalidation for DQO queue formats

We need to invalidate timestamps when a TX queue is cleared so that the
TX timeout detection callout does not mistakenly fire for cleared
packets. When using DQO queue formats, timestamps are set on the pending
packet array whose length is not the same as the length of the
descriptor ring itself. This commit fixes logic which invalidated the
wrong number of pending packets.

Signed-off-by: Jasper Tran O'Leary <jtranoleary at google.com>

Fixes:          3d2957336c7d ("gve: Add callout to detect and handle TX timeouts")
Reviewed by:    markj
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D50688
DeltaFile
+3-4sys/dev/gve/gve_tx_dqo.c
+3-41 files

FreeBSD/src 7ce9319sys/fs/fuse fuse_ipc.c fuse_vnops.c

fusefs: delete dead code

These lines have been commented out ever since the first import of fuse.
The intention seems to be for the original developer to experiment with
different error handling strategies, but they're very obsolete by now.
Delete them.

MFC after:      2 weeks
Sponsored by:   ConnectWise
DeltaFile
+0-5sys/fs/fuse/fuse_ipc.c
+1-3sys/fs/fuse/fuse_vnops.c
+1-82 files

FreeBSD/src 35c4ea0tests/sys/fs/fusefs utils.cc

fusefs: revert a workaround for a googletest bug

This bug was fixed by googletest back in 2019 and released in googletest
1.10.0, I think.  Using GTEST_SKIP from a test environment works now.

https://github.com/google/googletest/issues/2189

MFC after:      2 weeks
Sponsored by:   ConnectWise
DeltaFile
+1-8tests/sys/fs/fusefs/utils.cc
+1-81 files

FreeBSD/src 152372asys/conf files

Fix incorrect syntax in sys/conf/files for nvmf_transport.c

Fixes:          a15f7c96a276 ("nvmft: The in-kernel NVMe over Fabrics controller")
Sponsored by:   Chelsio Communications
DeltaFile
+1-1sys/conf/files
+1-11 files

FreeBSD/src 85a6ba3sys/dev/nvme nvme_qpair.c nvme_util.c

nvme: Use routines from nvme_util.c to decode opcodes and status codes

This reduces the number of duplicate string tables for NVMe opcodes
and status codes.

Adjust the formatting of unknown opcodes and status codes to more
closely match nvme(4).

Reviewed by:    imp
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D50652
DeltaFile
+30-234sys/dev/nvme/nvme_qpair.c
+17-7sys/dev/nvme/nvme_util.c
+1-0sys/dev/nvme/nvme.h
+48-2413 files

FreeBSD/src 60159a9sys/cam/nvme nvme_all.c nvme_all.h, sys/conf files

nvme: Move opcode and status code tables from base CAM to nvme_util.c

This makes it possible to share these tables with the nvme(4) driver
in custom kernels that do not include any CAM support, only nvd(4).

Reviewed by:    imp
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D50685
DeltaFile
+231-0sys/dev/nvme/nvme_util.c
+0-224sys/cam/nvme/nvme_all.c
+4-0sys/dev/nvme/nvme.h
+1-1sys/conf/files
+0-2sys/cam/nvme/nvme_all.h
+236-2275 files

FreeBSD/src fa02d9fsys/net80211 ieee80211.h

net80211: add the beginning of the extfield information elements (IE ext)

The original list of IEs got expanded from TLV to TLextTV.
If the T matches 255 then we have a second list of IEs where the
meaning of TL stays the same. That means the 1 octet extT is part
of the length and the value starts at ie+3.

Start populating the list with IEEE802.11-2020 and 802.11ax-2021
values.

They will be initially used to start decoding some of the announced IEs
for ifconfig [-v] list (scan|sta).  That should help users with
AX-enabled APs to see this (rather than no or UNKNOWN_ELEMID_255 and
make debugging easier once we implement 11ax.

Sposored by:    The FreeBSD Foundation
MFC after:      3 days
Reviewed by:    adrian
Differential Revision: https://reviews.freebsd.org/D50674
DeltaFile
+69-0sys/net80211/ieee80211.h
+69-01 files

FreeBSD/src beb5189sys/net80211 ieee80211.h

net80211: update IE list for 802.11-2020

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
Reviewed by:    emaste
Differential Revision: https://reviews.freebsd.org/D50673
DeltaFile
+55-21sys/net80211/ieee80211.h
+55-211 files

FreeBSD/src 173bbdbsys/net80211 ieee80211.h

net80211: add more information elements (IEs) definitions

Annotate a few which are obsolete (gone).
Naming as usual is questionable and I contemplated using the names
from wpa with a different prefix but then we end up with another mix.

While updating the reference to the newer standard I haven't made
a full pass again and I cannot say which version I used in 2020.

The motivation for this is to get rid of unknown IEs displayed in
ifconfig and elsewhere.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
Fixes:          50982d26e45ba (MMIC -> MGMT_MIC)
Reviewed by:    adrian
Differential Revision: https://reviews.freebsd.org/D50671
DeltaFile
+123-8sys/net80211/ieee80211.h
+123-81 files

FreeBSD/src 58dae28sys/compat/linuxkpi/common/src linux_80211.c

LinuxKPI: 802.11: make synching from HT more resilient

During testing I hit a case where htcap->mcs.rx_mask[0,1] were zero.
This should not happen as that would mean we are not supporting HT.
After adding extra caution for debugging I could no longer reproduce
the case.

So just to deal with the eventuality make synching from HT more
resilient by checking that we have nss > 0 or otherwise disable
HT operations.

Move setting the bandwidth below this check to not alter it in
case of the now early return.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+12-8sys/compat/linuxkpi/common/src/linux_80211.c
+12-81 files

FreeBSD/src 29ddd58sys/compat/linuxkpi/common/src linux_80211.c

LinuxKPI: 802.11: add support for GCMP hw crypto offload

For iwlwifi, rtw88, and rtw89 we can treat GCMP the same way as we
treat CCMP which allows us to re-use the CCMP code for now.
Add the missing case statements and factor out some common code.

Allow IEEE80211_CRYPTO_AES_GCM_128 through our filter of supported
cipher suites to announce it to net80211.

Sponsored by;   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+14-9sys/compat/linuxkpi/common/src/linux_80211.c
+14-91 files

FreeBSD/src aaee0edsys/compat/linuxkpi/common/src linux_80211.c

LinuxKPI: 802.11: WEP noise

While we decided that we will not provide WEP support for the LinuxKPI
802.11 compat code, some of it is in there already (also because drivers
still support it).  Put proper keylen checks in place as net80211 only
knows about WEP while LinuxKPI has WEP40 and WEP104.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+7-2sys/compat/linuxkpi/common/src/linux_80211.c
+7-21 files

FreeBSD/src 38c6550sys/net/route route_ctl.c

route: fix rtentry double free

add_route_flags() frees the rtentry on error when called with the RTM_F_CREATE
flag. Don't free the rtentry a second time.

Reviewed by:    ae
Sponsored by:   Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D50665
DeltaFile
+1-2sys/net/route/route_ctl.c
+1-21 files

FreeBSD/src ac05fc3share/mk local.dirdeps.mk

local.dirdeps.mk remove stray .endif
DeltaFile
+0-1share/mk/local.dirdeps.mk
+0-11 files

FreeBSD/src bf407f3share/mk local.dirdeps.mk

local.dirdeps.mk move MK_RUN_TESTS .endif

The MK_RUN_TESTS check should bound all of the logic
relevant to hooking tests into the graph.
DeltaFile
+2-1share/mk/local.dirdeps.mk
+2-11 files

FreeBSD/src 55f9c25crypto/krb5/src/lib/krb5/ccache t_stdio.c, crypto/krb5/src/lib/krb5/os localaddr.c

krb5: Apply patches to build under FreeBSD

These patches fix the MIT KRB5 on FreeBSD. Some are obtained from
ports/security/krb5-121.

Sponsored by:   The FreeBSD Foundation
DeltaFile
+10-0crypto/krb5/src/lib/krb5/os/localaddr.c
+4-0crypto/krb5/src/lib/krb5/ccache/t_stdio.c
+4-0crypto/krb5/src/util/ss/listen.c
+2-0crypto/krb5/src/util/ss/ss_internal.h
+20-04 files

FreeBSD/src 7f2fe78crypto/krb5/doc/pdf appdev.tex admin.tex, crypto/krb5/src configure

krb5: Import MIT 1.21.3

Import MIT KRB5 1.21.3, which will gracefully replace KTH Heimdal.

The tarball used in this import is the same tarball used in
ports/krb5-121.

The Makefiles to add MIT KRB5 to the build will be added later.

Obtained from:  http://web.mit.edu/kerberos/dist/

Sponsored by:   The FreeBSD Foundation

Add 'crypto/krb5/' from commit '8f7d3ef26dec89a92ec0665de84a5936310a5574'

git-subtree-dir: crypto/krb5
git-subtree-mainline: bf6873c5786e333d679a7838d28812febf479a8a
git-subtree-split: 8f7d3ef26dec89a92ec0665de84a5936310a5574
DeltaFile
+31,210-0crypto/krb5/doc/pdf/appdev.tex
+16,426-0crypto/krb5/src/configure
+14,305-0crypto/krb5/src/lib/krb5/unicode/ucdata/uctable.h
+13,874-0crypto/krb5/src/lib/krb5/unicode/UnicodeData.txt
+12,340-0crypto/krb5/src/plugins/kdb/db2/libdb2/docs/libtp.usenix.ps
+12,287-0crypto/krb5/doc/pdf/admin.tex
+100,442-04,453 files not shown
+977,388-04,459 files

FreeBSD/src bf6873ccontrib/pam-krb5 NEWS, contrib/pam-krb5/docs pam_krb5.pod

pam-krb5: Import/add pam-krb5 from eyeire.org

From https://www.eyrie.org/~eagle/software/pam-krb5/:

pam-krb5 provides a Kerberos PAM module that supports authentication,
user ticket cache handling, simple authorization (via .k5login or
checking Kerberos principals against local usernames), and password
changing. It can be configured through either options in the PAM
configuration itself or through entries in the system krb5.conf file,
and it tries to work around PAM implementation flaws in commonly-used
PAM-enabled applications such as OpenSSH and xdm. It supports both
PKINIT and FAST to the extent that the underlying Kerberos libraries
support these features.

The reason for this import is to provide an MIT KRB5 compatible
pam_krb5 PAM module. The existing pam_krb5 in FreeBS only works
with Heimdal.

The Makefiles to hook this software into the build willl come later.

    [8 lines not shown]
DeltaFile
+1,782-0contrib/pam-krb5/tests/runtests.c
+1,215-0contrib/pam-krb5/NEWS
+1,135-0contrib/pam-krb5/module/auth.c
+1,056-0contrib/pam-krb5/docs/pam_krb5.pod
+1,029-0contrib/pam-krb5/tests/tap/basic.c
+766-0contrib/pam-krb5/tests/fakepam/config.c
+6,983-0248 files not shown
+29,790-0254 files

FreeBSD/src 290e8aashare/mk src.opts.mk, tools/build/options WITH_MITKRB5

share/mk: Add MIT KRB5 build knob

This is the first in a series of commits to replace Heimdal with
MIT KRB5. This first commit adds the WITH_MITKRB5/MK_MITKRB5 knob
to src.opts.mk and its corresponding documentation in
tools/build/options. The default is off.

This change of and by itself is of no consequence as MIT KRB5 has
yet to be imported in to HEAD. But it does insulate the build from
inremental change until the last patch is committed when WITH_MITKRB5
will build MIT KRB5 1.21.3 instead of Heimdal.

The affords us the opportunity to review smaller commits.

This is the first of many commits.

Reviewed by:    imp, jhb, brooks, markj
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D50684
DeltaFile
+3-0share/mk/src.opts.mk
+1-0tools/build/options/WITH_MITKRB5
+4-02 files

FreeBSD/src 4be12desys/fs/nfsserver nfs_nfsdserv.c

nfsd: Fix the build for 1749465947a8

MFC after:      2 weeks
Fixes:  1749465947a8 ("nfsd: Fix accumulating nfslockfile structures")
DeltaFile
+1-1sys/fs/nfsserver/nfs_nfsdserv.c
+1-11 files

FreeBSD/src 7304054sys/kern sys_process.c

PT_CONTINUE: undo transparent attach consequences

PR:     287050

(cherry picked from commit 99976934274de6fa19f049a0b6eac10856710f96)
DeltaFile
+22-0sys/kern/sys_process.c
+22-01 files

FreeBSD/src 5e4d562sys/kern sys_process.c

PT_CONTINUE: if pc is set, mark the thread state as modified by user

(cherry picked from commit def0c056d3380b91ca7422d0a8727c6a4c8f6dae)
DeltaFile
+1-0sys/kern/sys_process.c
+1-01 files

FreeBSD/src 84074e2sys/kern kern_sig.c, sys/sys signalvar.h

kern_sig.c: make pt_attach_transparent global

(cherry picked from commit b57eb80596651c1f5972f3b6cd21ef95cc95ac85)
DeltaFile
+1-1sys/kern/kern_sig.c
+1-0sys/sys/signalvar.h
+2-12 files