FreeBSD/src 34d66b0sys/modules/cxgbe/if_ccv Makefile, sys/modules/cxgbe/if_cxgbe Makefile

cxgbe(4): Delete leftovers from $FreeBSD$ removal

No functional change.

MFC after:      1 week
Sponsored by:   Chelsio Communications
DeltaFile
+0-4sys/modules/cxgbe/t7_firmware/Makefile
+0-3sys/modules/cxgbe/if_ccv/Makefile
+0-3sys/modules/cxgbe/if_cxgbe/Makefile
+0-3sys/modules/cxgbe/if_cxgbev/Makefile
+0-3sys/modules/cxgbe/if_cxl/Makefile
+0-3sys/modules/cxgbe/if_cxlv/Makefile
+0-195 files not shown
+0-3411 files

FreeBSD/src dcab3c4sys/modules/cxgbe/tom Makefile

Export t4_tom's symbols for other offload modules

This allows iw_cxgbe.ko, cxgbei.ko, nvmf_che.ko, etc. to be loaded when
debug.link_elf_leak_locals and debug.link_elf_obj_leak_locals are
disabled.

PR:             291250
MFC after:      1 week
Sponsored by:   Chelsio Communications
DeltaFile
+2-0sys/modules/cxgbe/tom/Makefile
+2-01 files

FreeBSD/src 6901376sys/kgssapi gss_impl.c

kgssapi: Remove broken MOD_UNLOAD code

The module panicked at unload with "recursing but non-recursive rw".
There is a comment that "Unloading of the kgssapi module is not
currently supported" and the MOD_UNLOAD case falls through to returning
EOPNOTSUPP anyway.  Just #if 0 the code in the unload path, leaving it
as a hint in case someone implements unload support later on.

PR:             291249
Reviewed by:    rmacklem
Fixes: ad704a34bc2c ("Use syscall_helper_register(9) rather than syscall_register().")
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D53949
DeltaFile
+4-0sys/kgssapi/gss_impl.c
+4-01 files

FreeBSD/src 6049f1btools/tools/git git-arc.sh

git-arc: Fix failure to call arc() function

As of b3e53f9fff11, git-arc attempted to call the internal shell
function, arc(), using env(1).  However, because env(1) does not call
shell functions, it actually attempted to run the arc utility.  This led
to errors:

    % git arc create -r xxx HEAD
    env: arc: No such file or directory
    git-arc: could not create Phabricator diff

This change removes the unnecessary use of env(1), so the arc() function
is correctly called.

Reviewed by:    markj
Fixes:          b3e53f9fff11 ("git-arc: Don't require devel/arcanist")
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D53972
DeltaFile
+1-1tools/tools/git/git-arc.sh
+1-11 files

FreeBSD/src ff6a70elibexec/rtld-elf rtld.c, libexec/rtld-elf/powerpc reloc.c rtld_machdep.h

rtld-elf: move powerpc-specific auxv compat code into arch hook

(cherry picked from commit b2b3d2a962eb00005641546fbe672b95e5d0672a)
DeltaFile
+26-0libexec/rtld-elf/powerpc64/reloc.c
+26-0libexec/rtld-elf/powerpc/reloc.c
+1-24libexec/rtld-elf/rtld.c
+2-0libexec/rtld-elf/powerpc64/rtld_machdep.h
+2-0libexec/rtld-elf/riscv/rtld_machdep.h
+2-0libexec/rtld-elf/powerpc/rtld_machdep.h
+59-244 files not shown
+67-2410 files

FreeBSD/src b903f27libexec/rtld-elf/powerpc reloc.c, libexec/rtld-elf/powerpc64 reloc.c

rtld: fix powerpc build

(cherry picked from commit 0628c252bd161ccdd1228a3b8aefeb471044ca04)
DeltaFile
+1-3libexec/rtld-elf/powerpc/reloc.c
+1-3libexec/rtld-elf/powerpc64/reloc.c
+2-62 files

FreeBSD/src 452052esys/vm vm_page.c vm_extern.h

vm_page_free_prep(): convert PG_ZERO zeroed page check to use sf_buf

(cherry picked from commit b9fc7628dbb24b55cbb8791c83bd69f73cfadf23)
DeltaFile
+25-7sys/vm/vm_page.c
+3-0sys/vm/vm_extern.h
+28-72 files

FreeBSD/src be9e4c0sys/vm vm_fault.c

vm_fault: add a verifier that the PG_ZERO page is indeed zeroed

(cherry picked from commit d8bfcacd12aba73188c44a157c707908e275825d)
DeltaFile
+20-0sys/vm/vm_fault.c
+20-01 files

FreeBSD/src 7aedc8d. UPDATING, lib/csu/common crtbrand.S

Update in preparation for 15.0-RELEASE

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

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

FreeBSD/src 463cec1usr.sbin/pkg FreeBSD.conf.quarterly-release

pkg: Move FreeBSD-base to pkg.freebsd.org

Rather than fetching packages directly from the CDN which currently
backs pkgbase.freebsd.org, requests will go to pkg.freebsd.org mirrors
and be 302ed to the correct servers.  This adds ~70 seconds to the
process of installing or upgrading a pkgbase system; it also orphans
systems with 15.0-{PRERELEASE,ALPHA*,BETA*} installed since they are
expecting to see pkgbase files signed with the pkg keys, not the new
pkgbase signing keys.

Approved by:    re (cperciva)
Reviewed by:    dch, philip
MFC after:      immediately (for 15.0-RELEASE)
With hat:       re
Requested by:   clusteradm, core
Differential Revision:  https://reviews.freebsd.org/D53964

(cherry picked from commit a3b0902d73901e7243103e60cf78c53cd7f566a1)
(cherry picked from commit 0c87d29a54da527b2f624cf4d2999ebeb9885f15)
DeltaFile
+1-1usr.sbin/pkg/FreeBSD.conf.quarterly-release
+1-11 files

FreeBSD/src 0c87d29usr.sbin/pkg FreeBSD.conf.quarterly-release

pkg: Move FreeBSD-base to pkg.freebsd.org

Rather than fetching packages directly from the CDN which currently
backs pkgbase.freebsd.org, requests will go to pkg.freebsd.org mirrors
and be 302ed to the correct servers.  This adds ~70 seconds to the
process of installing or upgrading a pkgbase system; it also orphans
systems with 15.0-{PRERELEASE,ALPHA*,BETA*} installed since they are
expecting to see pkgbase files signed with the pkg keys, not the new
pkgbase signing keys.

Reviewed by:    dch, philip
MFC after:      immediately (for 15.0-RELEASE)
With hat:       re
Requested by:   clusteradm, core
Differential Revision:  https://reviews.freebsd.org/D53964

(cherry picked from commit a3b0902d73901e7243103e60cf78c53cd7f566a1)
DeltaFile
+1-1usr.sbin/pkg/FreeBSD.conf.quarterly-release
+1-11 files

FreeBSD/src a3b0902usr.sbin/pkg FreeBSD.conf.quarterly-release

pkg: Move FreeBSD-base to pkg.freebsd.org

Rather than fetching packages directly from the CDN which currently
backs pkgbase.freebsd.org, requests will go to pkg.freebsd.org mirrors
and be 302ed to the correct servers.  This adds ~70 seconds to the
process of installing or upgrading a pkgbase system; it also orphans
systems with 15.0-{PRERELEASE,ALPHA*,BETA*} installed since they are
expecting to see pkgbase files signed with the pkg keys, not the new
pkgbase signing keys.

Reviewed by:    dch, philip
MFC after:      immediately (for 15.0-RELEASE)
With hat:       re
Requested by:   clusteradm, core
Differential Revision:  https://reviews.freebsd.org/D53964
DeltaFile
+1-1usr.sbin/pkg/FreeBSD.conf.quarterly-release
+1-11 files

FreeBSD/src 7521dc5usr.sbin/mountd exports.5

exports.5: Typo: "auomatically" => "automatically"

Fixes:          9d975e47d5a3 ("exports.5: Clarify that exported dirs should be local mount points")
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
DeltaFile
+1-1usr.sbin/mountd/exports.5
+1-11 files

FreeBSD/src e60861eshare/mk bsd.lib.mk

bsd.lib.mk: document INTERNALLIB and PRIVATELIB

Reviewed by:    des, dim, emaste
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D53948
DeltaFile
+15-0share/mk/bsd.lib.mk
+15-01 files

FreeBSD/src 257da67tools/tools/git git-arc.sh

git-arc: Fix existence check

Fixes:          b3e53f9fff11 ("git-arc: Don't require devel/arcanist")
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D53942
DeltaFile
+1-1tools/tools/git/git-arc.sh
+1-11 files

FreeBSD/src b3e53f9tools/tools/git git-arc.sh

git-arc: Don't require devel/arcanist

Instead of invoking just “arc”, which requires devel/arcanist, which
conflicts with archivers/arc, invoke the underlying script installed by
devel/arcanist-lib.

Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D53942
DeltaFile
+14-0tools/tools/git/git-arc.sh
+14-01 files

FreeBSD/src 56114d2sys/sys _types.h

max_align_t: apply alignof to 'long double' for long double alignment

(cherry picked from commit 39cad8402d19f361cb8d489a3a69ff94b643c6df)
DeltaFile
+1-1sys/sys/_types.h
+1-11 files

FreeBSD/src 528e70asys/sys _types.h

sys/_types.h: add void * to __max_align_t

Add a pointer member to __max_align_t as pointers may have different
alignment requirements than long long or long double.

Reviewed by:    kib
Effort:         CHERI upstreaming
Sponsored by:   Innovate UK
Differential Revision:  https://reviews.freebsd.org/D53821
DeltaFile
+1-0sys/sys/_types.h
+1-01 files

FreeBSD/src 4e22cd3sys/sys _stdint.h _types.h

add types: (u)int64ptr_t

This type represents an integer value of at least 64 bits which is
capable of being cast to and from pointer types.  It is intended to
replace various spellings of (u)int64_t there the value is expected to
hold a pointer.  This is common in Linux code to allow 32-bit and 64-bit
structures to be the same and used other places including OpenZFS.  With
the introduction of CHERI this no longer works, but we need to preserve
the ABI for integer pointer targets.  Rather than adding ifdefs in every
case, we introduce a new type.

Reviewed by:    kib, markj
Effort:         CHERI upstreaming
Sponsored by:   Innovate UK
Differential Revision:  https://reviews.freebsd.org/D53823
DeltaFile
+16-0sys/sys/_stdint.h
+6-0sys/sys/_types.h
+22-02 files

FreeBSD/src 6ebbfe7sys/sys _types.h

sys/_types.h: add __intptr_t to __mbstate_t

Extend __mbstate_t to include an intptr_t to ensure it can hold a
pointer if required.

Reviewed by:    kib, markj
Effort:         CHERI upstreaming
Sponsored by:   Innovate UK
Differential Revision:  https://reviews.freebsd.org/D53822
DeltaFile
+1-0sys/sys/_types.h
+1-01 files

FreeBSD/src 85ab981sys/sys _types.h

sys/_types.h: define fallback __(u)intcap_t

__intcap_t and __uintcap_t are new primative types in CHERI-aware ABIs
that are used to define (u)intptr_t.  To allow coexistance of integer
pointers and hybrid code, define them to __(u)intptr_t when they are
not otherwise available.

Reviewed by:    kib, markj
Effort:         CHERI upstreaming
Sponsored by:   Innovate UK
Differential Revision:  https://reviews.freebsd.org/D53820
DeltaFile
+11-0sys/sys/_types.h
+11-01 files

FreeBSD/src 6aaba75sys/sys _types.h

sys/_types.h: centralize __vm_offset_t and __vm_size_t definitions

Use __ptraddr_t to define __vm_offset_t and __size_t for __vm_size_t
rather than per-pointer-size definitions.

Reviewed by:    kib, markj
Effort:         CHERI upstreaming
Sponsored by:   Innovate UK
Differential Revision:  https://reviews.freebsd.org/D53818
DeltaFile
+3-4sys/sys/_types.h
+3-41 files

FreeBSD/src 96e05e2sys/sys _types.h

sys/_types.h: define __(u)int(f)ptr_t for CHERI

On pure-capability ABIs, uintptr_t and variants are capabilities and
defined to the new primative type __uintcap_t and variants.  This is
required to allow pointers (capabilities) to round trip through
uintptr_t as required by the C standard.

Reviewed by:    kib, markj
Effort:         CHERI upstreaming
Sponsored by:   Innovate UK
Differential Revision:  https://reviews.freebsd.org/D53819
DeltaFile
+6-1sys/sys/_types.h
+6-11 files

FreeBSD/src dca634dshare/man/man7 arch.7, sys/sys stddef.h _types.h

new type: ptraddr_t

ptraddr_t is an unsigned integer type that can hold the address of any
pointer.  It differes from uintptr_t in that it does not carry
provenance which is useful for CHERI in that it can disambigurate the
provenance of uintptr_t expressions.  It differes from size_t in that
some segmented architecture (not supported by FreeBSD) may have a size_t
that does not hold an address.

ptraddr_t is not yet standardized, but is currently proposed for
inclusion in C++2Y.

Prefer the compiler defined __PTRADDR_TYPE__ defintion where available
as this a new type and we don't need to worry about historical values.
Fall back to __size_t where unavailable.

Reviewed by:    kib, markj
Effort:         CHERI upstreaming
Sponsored by:   Innovate UK
Differential Revision:  https://reviews.freebsd.org/D53817
DeltaFile
+8-0sys/sys/stddef.h
+6-0sys/sys/_types.h
+3-2share/man/man7/arch.7
+17-23 files

FreeBSD/src 39cbfc7tests/sys/netpfil/pf pflog.sh

pf tests: pflog:{rdr_action,state_max} disable IPv6

Turn off IPv6 on all interfaces to avoid having multicast listener
reports generated that might turn up in out pflog output, disrupting
the test.

Sponsored by:   Rubicon Communications, LLC ("Netgate")
DeltaFile
+7-0tests/sys/netpfil/pf/pflog.sh
+7-01 files

FreeBSD/src 8cf099btests/sys/netpfil/pf syncookie.sh

pf tests: fix syncookie:loopback_v6

Use 'no_dad' when assigning a v6 address, because otherwise we may try
to use it before it becomes usable.

Sponsored by:   Rubicon Communications, LLC ("Netgate")
DeltaFile
+1-1tests/sys/netpfil/pf/syncookie.sh
+1-11 files

FreeBSD/src a823475tests/sys/netpfil/pf killstate.sh

pf tests: fix killstate:v6

Allow neighbor discovery/advertisement packets, but don't create state
for them. This ensures that the destination jail can respond to our
echo requests, and that we don't create extra states that would confuse
the test.

Sponsored by:   Rubicon Communications, LLC ("Netgate")
DeltaFile
+1-0tests/sys/netpfil/pf/killstate.sh
+1-01 files

FreeBSD/src 685d586tests/sys/netpfil/pf killstate.sh

pf tests: explicitly set the source address in killstate:v6

We've seen failures due to pft_ping.py selecting the wrong source address.
Explicitly use 2001:db8::1 as source, to match the tests's expectations.

Sponsored by:   Rubicon Communications, LLC ("Netgate")
DeltaFile
+1-0tests/sys/netpfil/pf/killstate.sh
+1-01 files

FreeBSD/src d9e734dsys/sys exterrvar.h

exterrvar.h: style(9): Fix two small nits

- Use tabs before '\'.
- Comment for '#else' must be the negation of the initial '#if''s test.

No functional change.

Sponsored by:   The FreeBSD Foundation
DeltaFile
+2-2sys/sys/exterrvar.h
+2-21 files

FreeBSD/src 000d5b5sys/kern kern_prot.c

setcred(2): Fix a panic on too many groups from latest commit

kern_setcred_copyin_supp_groups() is documented to always set
'sc_supp_groups', but did not do it if there are more supplementary
groups than 'ngroups_max'.  Also, that case was omitted from the herald
comment.  Add it there, also including it as a case where
'sc_supp_groups_nb' is reset to 0 as a security measure.

Initially, kern_setcred_copyin_supp_groups() had the usual property that
nothing had to be freed on it returning an error, but was then converted
to relying on the caller to free() even on error, and this part was
missed during the conversion.  The benefits of this unusual convention
are that we can zero or NULLify groups-related attributes in advance,
preventing inadvertent use of stale data (defensive security measure),
and we can avoid some small code duplication (no need to have two same
calls to free()).  This makes sense as kern_setcred_copyin_supp_groups()
is meant to be a private sub-routine of user_setcred() only.  While
here, rename kern_setcred_copyin_supp_groups() =>
user_setcred_copyin_supp_groups().

    [4 lines not shown]
DeltaFile
+22-12sys/kern/kern_prot.c
+22-121 files