FreeBSD/src 27ad506contrib/bsnmp oid-list

Document some more OIDs that are used by bsnmp.
DeltaFile
+18-0contrib/bsnmp/oid-list
+18-01 files

FreeBSD/src 7906084contrib/bsnmp/snmp_mibII mibII.c

Fix some memory leaks when fetching the mibII.

Reviewed by:    glebius
Sponsored by:   Netflix
Differential Revision:  <https://reviews.freebsd.org/D55998>
DeltaFile
+6-0contrib/bsnmp/snmp_mibII/mibII.c
+6-01 files

FreeBSD/src 6499888lib/geom/part gpart.8

gpart(7): Fix reference to the zfsprops man page

PR:     292147
DeltaFile
+2-2lib/geom/part/gpart.8
+2-21 files

FreeBSD/src 0cd655fsys/netpfil/pf pf_ioctl.c, tests/sys/netpfil/pf match.sh

pf: do not reject rules with colliding hashes

We insert rules in pf_krule_global solely for the benefit of the
'keepcounters' feature. Failing to insert (beause the rule hash
collides, or an identical rule already exists) would be worse than
restoring counts to the wrong rule (or failing to restore them at all).

PR:             282863, 294860, 294859, 294858
MFC after:      3 days
Sponsored by:   Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D56745

(cherry picked from commit a0e4c65f1814a7a677364dc29bb703f84323d175)
DeltaFile
+36-0tests/sys/netpfil/pf/match.sh
+8-16sys/netpfil/pf/pf_ioctl.c
+44-162 files

FreeBSD/src 555ffd9sys/dev/pci pci.c

pci: use uint32_t for eecp

eecp holds the extended capability offset. If that offset is larger
than 0xff, storing it in uint8_t truncates it, which can make the
early EHCI/XHCI capability walk read the wrong location and loop during
boot.

Seen on AMD device 1022:151e, where HCCPARAMS1 = 0x0118ffc5 and the
first xHCI extended capability offset is 0x460. Widen eecp to uint32_t
in xhci_early_takeover(), matching xhci_pci_take_controller().

Signed-off-by: Gisle Nes <gisle at gisle.net>
Reviewed by:    zlei, aokblast
MFC after:      3 days
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2127
Closes:         https://github.com/freebsd/freebsd-src/pull/2127
DeltaFile
+1-1sys/dev/pci/pci.c
+1-11 files

FreeBSD/src 44338ccetc/mtree BSD.root.dist

BSD.root.dist: Correct tag for /etc/sysctl.kld.d

This is only used by rc.subr and belongs in rc, not runtime.

Fixes:          fa6d67cd16b5 ("BSD.root.dist: Add package tag for all directories")
MFC after:      3 days
Reviewed by:    ivy
Differential Revision:  https://reviews.freebsd.org/D56900
DeltaFile
+1-1etc/mtree/BSD.root.dist
+1-11 files

FreeBSD/src 072f79dsys/x86/cpufreq hwpstate_amd.c

hwpstate_amd: Initialize CPPC driver type

Assign the driver type instead of preserving uninitialized stack data

PR:     294899
Reviewed by:    aokblast
DeltaFile
+1-1sys/x86/cpufreq/hwpstate_amd.c
+1-11 files

FreeBSD/src fab9bfcsys/netpfil/pf pf_ioctl.c, tests/sys/netpfil/pf match.sh

pf: do not reject rules with colliding hashes

We insert rules in pf_krule_global solely for the benefit of the
'keepcounters' feature. Failing to insert (beause the rule hash
collides, or an identical rule already exists) would be worse than
restoring counts to the wrong rule (or failing to restore them at all).

PR:             282863, 294860, 294859, 294858
MFC after:      3 days
Sponsored by:   Rubicon Communications, LLC ("Netgate")
Differential Revision:  https://reviews.freebsd.org/D56745

(cherry picked from commit a0e4c65f1814a7a677364dc29bb703f84323d175)
DeltaFile
+36-0tests/sys/netpfil/pf/match.sh
+8-16sys/netpfil/pf/pf_ioctl.c
+44-162 files

FreeBSD/src 10e342csbin/fsck_msdosfs fat.c

fsck_msdosfs: fix FAT header correction not persisting in cache mode

When fsck_msdosfs runs with FAT32 cache mode (used for large
filesystems that cannot be mmap'd), a detected FAT header correction
was written into the in-memory buffer but the corresponding cache
entry (fat32_cache_allentries[0]) was never marked dirty.  As a
result, fat_flush_fat32_cache_entry() skipped it, the corrected
bytes were never written to disk, and copyfat() propagated the
uncorrected on-disk data to all backup FAT copies.  Every subsequent
fsck run would repeat the same "FAT starts with odd byte sequence /
FIXED" cycle indefinitely.

Fix by marking fat32_cache_allentries[0].dirty = true after applying
the in-memory correction, ensuring the chunk is flushed before
copyfat() runs.

Obtained from:  https://android-review.googlesource.com/c/platform/external/fsck_msdos/+/4047981
MFC after:      3 days
DeltaFile
+11-0sbin/fsck_msdosfs/fat.c
+11-01 files

FreeBSD/src 1bef553sys/dev/cxgbe t4_main.c, sys/dev/cxgbe/common t4_regs.h

cxgbe(4): Updates to the hw and fw headers and config file

MFC after:      1 week
Sponsored by:   Chelsio Communications
DeltaFile
+99-8sys/dev/cxgbe/firmware/t4fw_interface.h
+22-29sys/dev/cxgbe/common/t4_regs.h
+11-8sys/dev/cxgbe/firmware/t7fw_cfg.txt
+11-8sys/dev/cxgbe/firmware/t7fw_cfg_uwire.txt
+11-4sys/dev/cxgbe/t4_main.c
+154-575 files

FreeBSD/src 9432351sys/arm/include _types.h, sys/arm64/include _types.h

types: provide __SIZEOF_{INT{8,16,32,64},TIME,TIME32}_T

Suggested by:   kib
Reviewed by:    imp, kib
Discussed with: emaste, jrtc27
Differential Revision:  https://reviews.freebsd.org/D56783
DeltaFile
+5-0sys/sys/_types.h
+2-0sys/x86/include/_types.h
+2-0sys/sys/abi_types.h
+1-0sys/riscv/include/_types.h
+1-0sys/arm64/include/_types.h
+1-0sys/arm/include/_types.h
+12-01 files not shown
+13-07 files

FreeBSD/src 324d53csys/sys time.h

sys/time: rework saturation ifdef to avoid direct arch ref

Suggested by:   kib
Reviewed by:    imp, kib
Differential Revision:  https://reviews.freebsd.org/D56401
DeltaFile
+2-2sys/sys/time.h
+2-21 files

FreeBSD/src d9b272acontrib/llvm-project/clang/lib/Sema AnalysisBasedWarnings.cpp

Merge commit 871038759afb from llvm git (by Marco Elver):

  Thread Safety Analysis: Fix pointer handling of variables with deprecated attributes (#148974)

  de10e44b6fe7 ("Thread Safety Analysis: Support warning on
  passing/returning pointers to guarded variables") added checks for
  passing pointer to guarded variables. While new features do not
  necessarily need to support the deprecated attributes (`guarded_var`,
  and `pt_guarded_var`), we need to ensure that such features do not cause
  the compiler to crash.

  As such, code such as this:

          struct {
            int v __attribute__((guarded_var));
          } p;

          int *g() {
            return &p.v;  // handleNoMutexHeld() with POK_ReturnPointer

    [24 lines not shown]
DeltaFile
+20-5contrib/llvm-project/clang/lib/Sema/AnalysisBasedWarnings.cpp
+20-51 files

FreeBSD/src cab150fsys/sys time.h

sys/time: appease gcc -Wtype-limits

In environments where time_t is 32 bits, including the 32-bit library
build on amd64, the overflow being tested for cannot happen, and gcc
complains with -Wtype-limits, causing the gcc build to fail.  Work
around this by ifdef'ing out the saturation code on i386.

Reviewed by:    imp, jfree
Discussed with: markj
Fixes:  e3799530b3ba ("sys/time: Add saturating sbt conversions")
Differential Revision:  https://reviews.freebsd.org/D56369

(cherry picked from commit 00dccc3164c6dff38350a1baeeea7238acf2efc3)
DeltaFile
+4-0sys/sys/time.h
+4-01 files

FreeBSD/src bd1e789. Makefile.inc1

Make "make update-packages" idempotent

If the user runs "make update-packages" without bumping BRANCH, then it
isn't possible to copy packages from the old location to the new one
(because the two locations are the same).  So just skip that step.

Sponsored by:           ConnectWise
PR:                     295085
MFC after:              1 week
Reviewed by:            ivy, emaste
Differential Revision:  https://reviews.freebsd.org/D56872
DeltaFile
+3-1Makefile.inc1
+3-11 files

FreeBSD/src 57efbb1sys/arm/include _stdint.h, sys/arm64/include _stdint.h

Define stdint.h macros unconditionally

Similar to glibc, define all the stdint.h macros such as `SIZE_MAX`,
`UINT64_C`, etc unconditionally. I.e. no longer check whether
`__STDC_CONSTANT_MACROS` or `__STDC_LIMIT_MACROS` are defined. See also
<https://sourceware.org/bugzilla/show_bug.cgi?id=15366>.

This is part of reverting base 00bee6fcd77f, which reverted an upstream
libc++ commit that eliminated libc++'s stdint.h wrapper header.

Submitted by:   Nikolas Klauser <nikolasklauser at berlin.de>
MFC after:      1 week
Reviewed by:    imp
Differential Revision: https://reviews.freebsd.org/D56746

(cherry picked from commit 966fb94cb3575ccd39da211165d0858fd0eb0ef2)
DeltaFile
+0-8sys/arm/include/_stdint.h
+0-8sys/arm64/include/_stdint.h
+0-8sys/powerpc/include/_stdint.h
+0-8sys/riscv/include/_stdint.h
+0-8sys/x86/include/_stdint.h
+0-405 files

FreeBSD/src 9a69511sys/powerpc/include _stdint.h, sys/riscv/include _stdint.h

Remove extraneous tab characters at EOL in various _stdint.h files

MFC after:      3 days

(cherry picked from commit daeab702f9adbbb718ecf48e17de8dd619cfe7b8)
DeltaFile
+2-2sys/powerpc/include/_stdint.h
+1-1sys/riscv/include/_stdint.h
+1-1sys/x86/include/_stdint.h
+4-43 files

FreeBSD/src 4699fffsys/powerpc/include _stdint.h, sys/riscv/include _stdint.h

Remove extraneous tab characters at EOL in various _stdint.h files

MFC after:      3 days

(cherry picked from commit daeab702f9adbbb718ecf48e17de8dd619cfe7b8)
DeltaFile
+2-2sys/powerpc/include/_stdint.h
+1-1sys/riscv/include/_stdint.h
+1-1sys/x86/include/_stdint.h
+4-43 files

FreeBSD/src c70f196sys/arm/include _stdint.h, sys/arm64/include _stdint.h

Define stdint.h macros unconditionally

Similar to glibc, define all the stdint.h macros such as `SIZE_MAX`,
`UINT64_C`, etc unconditionally. I.e. no longer check whether
`__STDC_CONSTANT_MACROS` or `__STDC_LIMIT_MACROS` are defined. See also
<https://sourceware.org/bugzilla/show_bug.cgi?id=15366>.

This is part of reverting base 00bee6fcd77f, which reverted an upstream
libc++ commit that eliminated libc++'s stdint.h wrapper header.

Submitted by:   Nikolas Klauser <nikolasklauser at berlin.de>
MFC after:      1 week
Reviewed by:    imp
Differential Revision: https://reviews.freebsd.org/D56746

(cherry picked from commit 966fb94cb3575ccd39da211165d0858fd0eb0ef2)
DeltaFile
+0-8sys/arm/include/_stdint.h
+0-8sys/arm64/include/_stdint.h
+0-8sys/powerpc/include/_stdint.h
+0-8sys/riscv/include/_stdint.h
+0-8sys/x86/include/_stdint.h
+0-405 files

FreeBSD/src eba1c36sys/arm/include _stdint.h, sys/arm64/include _stdint.h

Define stdint.h macros unconditionally

Similar to glibc, define all the stdint.h macros such as `SIZE_MAX`,
`UINT64_C`, etc unconditionally. I.e. no longer check whether
`__STDC_CONSTANT_MACROS` or `__STDC_LIMIT_MACROS` are defined. See also
<https://sourceware.org/bugzilla/show_bug.cgi?id=15366>.

This is part of reverting base 00bee6fcd77f, which reverted an upstream
libc++ commit that eliminated libc++'s stdint.h wrapper header.

Submitted by:   Nikolas Klauser <nikolasklauser at berlin.de>
MFC after:      1 week
Reviewed by:    imp
Differential Revision: https://reviews.freebsd.org/D56746

(cherry picked from commit 966fb94cb3575ccd39da211165d0858fd0eb0ef2)
DeltaFile
+0-8sys/arm/include/_stdint.h
+0-8sys/arm64/include/_stdint.h
+0-8sys/powerpc/include/_stdint.h
+0-8sys/riscv/include/_stdint.h
+0-8sys/x86/include/_stdint.h
+0-405 files

FreeBSD/src a4d15efsys/powerpc/include _stdint.h, sys/riscv/include _stdint.h

Remove extraneous tab characters at EOL in various _stdint.h files

MFC after:      3 days

(cherry picked from commit daeab702f9adbbb718ecf48e17de8dd619cfe7b8)
DeltaFile
+2-2sys/powerpc/include/_stdint.h
+1-1sys/riscv/include/_stdint.h
+1-1sys/x86/include/_stdint.h
+4-43 files

FreeBSD/src 076e448share/man/man9 uio.9 Makefile

uio.9: Document uiomove_fromphys()

Reviewed by:    kib
Discussed with: markj, royger
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D54070
DeltaFile
+34-11share/man/man9/uio.9
+1-0share/man/man9/Makefile
+35-112 files

FreeBSD/src 6933fdcsys/kern uipc_shm.c

uipc_shm.c: make large page allocation interruptible

(cherry picked from commit 839d3266d8c6f6471cb92a3c0ae32eb16d117427)
DeltaFile
+8-0sys/kern/uipc_shm.c
+8-01 files

FreeBSD/src c335dafsys/kern uipc_shm.c

uipc_shm.c: make large page allocation interruptible

(cherry picked from commit 839d3266d8c6f6471cb92a3c0ae32eb16d117427)
DeltaFile
+8-0sys/kern/uipc_shm.c
+8-01 files

FreeBSD/src b3f9be4sys/conf newvers.sh

15.1: Update to BETA2

Approved by:    re (implicit)
Sponsored by:   OpenSats Initiative
DeltaFile
+1-1sys/conf/newvers.sh
+1-11 files

FreeBSD/src 7781f5esys/cddl/compat/opensolaris/kern opensolaris_cmn_err.c

dtrace: Improve dmesg kernel message prefix

Provide intuitive log search keywords and increased system consistency.

Approved by:    re (cperciva)
MFC after:              2 weeks
Reported by:            mav
Reviewed by:            0mp, dteske
OpenZFS change:         d45c8d648 (Improve dmesg kernel message prefix)
Differential Revision:  https://reviews.freebsd.org/D55765

(cherry picked from commit 49e9b3061df036a73e8bc424c026158f3f57b183)
(cherry picked from commit b5f45474517646c3df377a75e50260026742ee92)
DeltaFile
+7-7sys/cddl/compat/opensolaris/kern/opensolaris_cmn_err.c
+7-71 files

FreeBSD/src df38b41share/man/man7 build.7

build.7: Explain update-packages repo signing

Approved by:    re (cperciva)
MFC after:              3 days
Reported by:            kevans
Reviewed by:            kevans, ngie
Differential Revision:  https://reviews.freebsd.org/D56607

(cherry picked from commit ab98fd3234304ea10db3dee70205828d372c443a)
(cherry picked from commit dd926806a723b99c9184ce44ab68b83c03fdc173)
DeltaFile
+10-1share/man/man7/build.7
+10-11 files

FreeBSD/src bf5ca5cusr.sbin/bsdinstall/scripts auto

bsdinstall: Improve auto-partition message

Manually tuning ZFS for systems with <8GB ram hasn't been necessary at
least since the switch to OpenZFS. We have users reporting using 1GB RAM
with no manual tuning/issues. Further, the page this links to is a stale
wiki page, which is causing complaints. Remove this misleading note and
replace it with a similar message for UFS. While here, reword that note
to be a bit clearer.

Approved by:    re (cperciva)
PR:                     287719
MFC after:              3 days
Differential Revision:  https://reviews.freebsd.org/D50971

(cherry picked from commit 5ed26c21e4ff1d478d4611abbf3dc14cc1b77244)
(cherry picked from commit 5702d242429f1f791e05a720a9a411b1e64212dc)
DeltaFile
+2-2usr.sbin/bsdinstall/scripts/auto
+2-21 files

FreeBSD/src 1b5b786share/man/man7 ports.7

ports.7/FILES: Expand and refactor into 3 tables

Add make.conf, CHANGES, CONTRIBUTING.Md, UPDATING, and Tools/scripts.
Refactor the FILES section of the ports reference manual into a bigger
table with three sections separated by root directory. Remove preceeding
article from all but "the big Kahuna", and root dirs where reasonable.

Approved by:    re (cperciva)
MFC after:              3 days
Relnotes:               yes
Reported by:            adamw, arrowd, linimon
Differential Revision:  https://reviews.freebsd.org/D55441

(cherry picked from commit 28deec9b7e2b08b00160eb39de84ade6f27eb125)
(cherry picked from commit aa519edfe50a65db516e62752914cb6922b3227f)
DeltaFile
+29-18share/man/man7/ports.7
+29-181 files

FreeBSD/src 519c687usr.sbin/nvram nvram.8

nvram.8: Align option list and tag SPDX

Approved by:    re (cperciva)
MFC after:      3 days

(cherry picked from commit 33fbfceeb4d9daf1145089a10ce7b25110d8840f)
(cherry picked from commit 8318c2f613bea98573aa4cd9ef7a4249d5010dd3)
DeltaFile
+4-2usr.sbin/nvram/nvram.8
+4-21 files