Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge FreeBSD 2024-05-10 #2207

Merged
merged 416 commits into from
Aug 26, 2024
Merged

Merge FreeBSD 2024-05-10 #2207

merged 416 commits into from
Aug 26, 2024
This pull request is big! We’re only showing the most recent 250 commits.

Commits on May 10, 2024

  1. Explain cron.d

    Add details on the format of system cron files, which are mentioned in
    cron(8) which refers here but barely explained here.
    
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1106
    Paweł Krawczyk authored and bsdimp committed May 10, 2024
    Configuration menu
    Copy the full SHA
    042267e View commit details
    Browse the repository at this point in the history
  2. mdconfig: Print options when listing devices

    PR: 278624
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1210
    ricardobranco777 authored and bsdimp committed May 10, 2024
    Configuration menu
    Copy the full SHA
    b01988d View commit details
    Browse the repository at this point in the history
  3. Add man page for nfslockd.

    PR:		130238
    MFC after:	3 days
    Differential Revision:	https://reviews.freebsd.org/D45139
    dag-erling committed May 10, 2024
    Configuration menu
    Copy the full SHA
    44e72c6 View commit details
    Browse the repository at this point in the history
  4. am64: Allow cpu.h to be included from assembly

    Reviewed by:	jhibbits, kevans
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D45081
    zxombie committed May 10, 2024
    Configuration menu
    Copy the full SHA
    e353ac0 View commit details
    Browse the repository at this point in the history
  5. arm64: Support a shared release for spin-table

    When releasing multiple CPUs that share a release address we need them
    to wait for their turn to boot. Add a mechanism to do this by booting
    them until they enable the TLB before waiting their turn to enter
    init_secondary.
    
    Reviewed by:	jhibbits, kevans
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D45082
    zxombie committed May 10, 2024
    Configuration menu
    Copy the full SHA
    c78ebc6 View commit details
    Browse the repository at this point in the history
  6. arm64: Flush the spintable release address

    Ensure the spintable release address is written back from the cache
    to memory. The other CPUs reading this may not be reading it with the
    cache enabled so ensure it is written to the point of coherency
    before issuing the wakeup sev.
    
    As cpu_dcache_wbinv_range includes the needed barrier remove it from
    the inline asm before the sev instruction.
    
    Reviewed by:	jhibbits, kevans
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D45083
    zxombie committed May 10, 2024
    Configuration menu
    Copy the full SHA
    797f1c7 View commit details
    Browse the repository at this point in the history
  7. dev/psci: Check all compat strings

    When searching for the PSCI FDT node we only check a few compat strings.
    Use the existing compat_data array to check all strings the driver may
    attach to.
    
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D44913
    zxombie committed May 10, 2024
    Configuration menu
    Copy the full SHA
    f91e940 View commit details
    Browse the repository at this point in the history
  8. arm64/gicv3: Check if the hardware supports LPIs

    Some simulators have the ITS in the DTB passed to the kernel, however
    it is a runtime configuration option to enable it.
    
    Check the GICD_TYPER register to see if LPIs are enabled before
    attaching the ITS driver.
    
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D44914
    zxombie committed May 10, 2024
    Configuration menu
    Copy the full SHA
    4ab0f5a View commit details
    Browse the repository at this point in the history
  9. arm64: Merge common page table creation code

    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D45061
    zxombie committed May 10, 2024
    Configuration menu
    Copy the full SHA
    719908c View commit details
    Browse the repository at this point in the history
  10. arm64: Update the page table list in locore

    The comment describing the page tables was out of date. Update it with
    the current list.
    
    Sponsored by:	Arm Ltd
    zxombie committed May 10, 2024
    Configuration menu
    Copy the full SHA
    634dd43 View commit details
    Browse the repository at this point in the history
  11. cat: Check for lack of success rather than a specific failure.

    MFC after:	3 days
    Sponsored by:	Klara, Inc.
    Reviewed by:	oshogbo
    Differential Revision:	https://reviews.freebsd.org/D45149
    dag-erling committed May 10, 2024
    Configuration menu
    Copy the full SHA
    c6f9df7 View commit details
    Browse the repository at this point in the history
  12. cat: Missed a couple.

    MFC after:	3 days
    Sponsored by:	Klara, Inc.
    dag-erling committed May 10, 2024
    Configuration menu
    Copy the full SHA
    ad4f3bd View commit details
    Browse the repository at this point in the history
  13. ukswitch: fix non-debug build

    PR:		278847
    Sponsored by:	The FreeBSD Foundation
    emaste committed May 10, 2024
    Configuration menu
    Copy the full SHA
    2e0c027 View commit details
    Browse the repository at this point in the history
  14. posix: POSIX-1.2008 moved SA_* from XSI to base standard

    Starting with POSIX-1.2008, "The SA_RESETHAND, SA_RESTART, SA_SIGINFO,
    SA_NOCLDWAIT, and SA_NODEFER constants are moved from the XSI option to
    the Base." Make them so visible.
    
    PR: 275328
    Sponsored by:		Netflix
    bsdimp committed May 10, 2024
    Configuration menu
    Copy the full SHA
    06af7bd View commit details
    Browse the repository at this point in the history
  15. grdc: add countdown timer mode

    PR: 35113
    Differential Revision:	https://reviews.freebsd.org/D43463
    gavinatkinson authored and bsdimp committed May 10, 2024
    Configuration menu
    Copy the full SHA
    71ed1ad View commit details
    Browse the repository at this point in the history
  16. grdc: Add copyright

    Add the stock BSD copyright and license from the 4.4-Lite distribution
    (indirected by SPDX).
    
    Sponsored by:		Netflix
    bsdimp committed May 10, 2024
    Configuration menu
    Copy the full SHA
    6ed7d0e View commit details
    Browse the repository at this point in the history
  17. nvmecontrol: Fix a sizeof mismatch

    In this case it is harmless since it is an array of pointers so the
    resulting length is identical.
    
    Reported by:	Coverity Scan
    CID:		1545055
    Sponsored by:	Chelsio Communications
    bsdjhb committed May 10, 2024
    Configuration menu
    Copy the full SHA
    bf1820f View commit details
    Browse the repository at this point in the history
  18. nvmf: Use strlcpy instead of strncpy to ensure termination

    Reported by:	Coverity Scan
    CID:	 	1545054
    Sponsored by:	Chelsio Communications
    bsdjhb committed May 10, 2024
    Configuration menu
    Copy the full SHA
    1f029b8 View commit details
    Browse the repository at this point in the history
  19. nvmecontrol: Free array of I/O queue pairs on failure to handoff

    This is harmless but cleaner.
    
    Reported by:	Coverity Scan
    CID:	 	1545041,1545049
    Sponsored by:	Chelsio Communications
    bsdjhb committed May 10, 2024
    Configuration menu
    Copy the full SHA
    0ac468c View commit details
    Browse the repository at this point in the history
  20. nvmecontrol: Free the addrinfo list when failing to open a TCP socket

    Reported by:	Coverity Scan
    CID:	 	1545048
    Sponsored by:	Chelsio Communications
    bsdjhb committed May 10, 2024
    Configuration menu
    Copy the full SHA
    1662e47 View commit details
    Browse the repository at this point in the history
  21. ctl_backend_block: Correct value of NVME nsdata nuse field

    Reported by:	Coverity Scan
    CID:	 	1545043
    Sponsored by:	Chelsio Communications
    bsdjhb committed May 10, 2024
    Configuration menu
    Copy the full SHA
    1f83483 View commit details
    Browse the repository at this point in the history
  22. nvmf_transport: Remove invalid assertion

    This is leftover from an earlier iteration of the code where 'nt' was
    not dynamically allocated but was the passed in 'ops' pointer so was
    always alive.
    
    Reported by:	Coverity Scan
    CID:	 	1545042
    Sponsored by:	Chelsio Communications
    bsdjhb committed May 10, 2024
    Configuration menu
    Copy the full SHA
    50884a0 View commit details
    Browse the repository at this point in the history
  23. sctp: store cookie secret change time as time_t

    Reported by:	Coverity Scan
    CID:		1492349
    CID:		1493281
    MFC after:	3 days
    tuexen committed May 10, 2024
    Configuration menu
    Copy the full SHA
    9d8a371 View commit details
    Browse the repository at this point in the history
  24. sctp: store vtag expire time as time_t

    Reported by:	Coverity Scan
    CID:		1492525
    CID:		1493239
    MFC after:	3 days
    tuexen committed May 10, 2024
    Configuration menu
    Copy the full SHA
    42aeb8d View commit details
    Browse the repository at this point in the history
  25. tpm20: Support partial reads

    Summary:
    In some cases the TPM utilities may read only a partial block, instead
    of a full block.  If a new command starts while in the middle of a read
    it may cause the TPM to go catatonic and no longer respond to SPI.
    
    Reviewed by:	kd
    Obtained from:	Juniper Networks, Inc.
    Differential Revision: https://reviews.freebsd.org/D45140
    chmeeedalf committed May 10, 2024
    Configuration menu
    Copy the full SHA
    10eea8d View commit details
    Browse the repository at this point in the history
  26. conf: Generate fdt_static_dtb.h in OBJDIR

    Though the kernel build expects ${.OBJDIR} to be equal to ${.CURDIR}
    that may not always be the case.  Correctly generate fdt_static_dtb.h in
    ${.OBJDIR}, which is conceptually more correct anyway.
    
    Obtained from:	Juniper Networks, Inc.
    chmeeedalf committed May 10, 2024
    Configuration menu
    Copy the full SHA
    de1ac94 View commit details
    Browse the repository at this point in the history
  27. sctp: store heartbeat creation time as time_t

    Reported by:	Coverity Scan
    CID:		1493087
    MFC after:	3 days
    tuexen committed May 10, 2024
    Configuration menu
    Copy the full SHA
    b67716d View commit details
    Browse the repository at this point in the history
  28. sctp: improve heartbeat timer computation

    PR:		278666
    Reviewed by:	Albin Hellqvist
    MFC after:	3 days
    Pull Request:	https://reviews.freebsd.org/D45107
    tuexen committed May 10, 2024
    Configuration menu
    Copy the full SHA
    5120ea0 View commit details
    Browse the repository at this point in the history
  29. kmod.mk use ${XARGS}

    Also ${XARGS_J} this allows use of non-BSD xargs when building
    kernel modules.
    
    Reviewed by:	imp
    Differential Revision:	https://reviews.freebsd.org/D45146
    sgerraty committed May 10, 2024
    Configuration menu
    Copy the full SHA
    dd4d206 View commit details
    Browse the repository at this point in the history
  30. madt: print CPU APIC ID as signed int

    Instead of printing something like "MADT: Found CPU APIC ID 4294967295
    ACPI ID 512: disabled" print the APIC ID as a singed int for a more
    user-friendly -1.
    
    Reviewed by:	jhb
    Sponsored by:	The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D45158
    emaste committed May 10, 2024
    Configuration menu
    Copy the full SHA
    0b272e0 View commit details
    Browse the repository at this point in the history
  31. Increase IOAPIC_MAX_ID to 255 (from 254)

    A test system provided by AMD panicked with "madt_parse_apics:
    I/O APIC ID 255 too high".  I/O APIC ID 255 is acceptable, so increase
    the limit.
    
    Reviewed by:	jhb, kib
    Sponsored by:	The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D45157
    emaste committed May 10, 2024
    Configuration menu
    Copy the full SHA
    4e32868 View commit details
    Browse the repository at this point in the history
  32. Revert "grdc: Add copyright"

    It turns out this wasn't in 4.4BSD. I had a false positive for gdc.c
    (which is in 4.4BSD, but part of gated, not this). gdc.c comes from the
    ncurses tests, so it shouldn't have this copyright. This version is
    mostly Amos Shapir and John Lupien's code. It comes from ncurses test
    directory. ncurses has made dozens of improvements to this file since
    we imported it in 1997 (which pre-dates their online history), so it's
    not clear if their new copyright applies (which doesn't mention Amos
    or John) or if some other copyright applies. In any case, it wasn't
    4.4BSD, so revert this.
    
    This reverts commit 6ed7d0e.
    
    Sponsored by:		Netflix
    bsdimp committed May 10, 2024
    Configuration menu
    Copy the full SHA
    88cbbbb View commit details
    Browse the repository at this point in the history
  33. md: Merge two switch statements in mdstart_vnode

    While here, use bp->bio_cmd instead of auio.uio_rw to drive read vs
    write behavior.
    
    Reviewed by:	kib
    Differential Revision:	https://reviews.freebsd.org/D45155
    bsdjhb committed May 10, 2024
    Configuration menu
    Copy the full SHA
    f75764f View commit details
    Browse the repository at this point in the history
  34. uio: Use switch statements when handling UIO_READ vs UIO_WRITE

    This is mostly to reduce the diff with CheriBSD which adds additional
    constants to enum uio_rw, but also matches the normal style used for
    uio_segflg.
    
    Reviewed by:	kib, emaste
    Obtained from:	CheriBSD
    Differential Revision:	https://reviews.freebsd.org/D45142
    bsdjhb committed May 10, 2024
    Configuration menu
    Copy the full SHA
    473c90a View commit details
    Browse the repository at this point in the history
  35. vm: Change the return types of kernacc and useracc to bool

    Reviewed by:	kib
    Differential Revision:	https://reviews.freebsd.org/D45156
    bsdjhb committed May 10, 2024
    Configuration menu
    Copy the full SHA
    9e01640 View commit details
    Browse the repository at this point in the history
  36. unbound: Vendor import 1.20.0

    Release notes at
    	https://www.nlnetlabs.nl/news/2024/May/08/unbound-1.20.0-released/
    
    Security:	The DNSBomb vulnerability CVE-2024-33655
    cschuber committed May 10, 2024
    Configuration menu
    Copy the full SHA
    c2a8005 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    a7cc56b View commit details
    Browse the repository at this point in the history
  38. CONTRIBUTING.md/style: spring cleaning

    + move Lua to alphabetize subsections
    + word manpages like other subsections
    + man PR's shouldn't bump document date
    
    MFC after: (maybe MFC to BETA3 along w/ e7ff917 ?)
    concussious authored and bsdimp committed May 10, 2024
    Configuration menu
    Copy the full SHA
    467e3e2 View commit details
    Browse the repository at this point in the history
  39. tftpd: Add missing -S option to synopsis.

    MFC after:	3 days
    Sponsored by:	Klara, Inc.
    Reviewed by:	imp, markj
    Differential Revision:	https://reviews.freebsd.org/D45129
    dag-erling committed May 10, 2024
    Configuration menu
    Copy the full SHA
    816c4d3 View commit details
    Browse the repository at this point in the history
  40. tftpd: Drop unneeded includes.

    MFC after:	3 days
    Sponsored by:	Klara, Inc.
    Reviewed by:	imp, markj
    Differential Revision:	https://reviews.freebsd.org/D45130
    dag-erling committed May 10, 2024
    Configuration menu
    Copy the full SHA
    1111da6 View commit details
    Browse the repository at this point in the history
  41. tftpd: Add missing include.

    This went unnoticed due to namespace pollution in our headers.
    
    MFC after:	3 days
    Sponsored by:	Klara, Inc.
    Reviewed by:	imp
    Differential Revision:	https://reviews.freebsd.org/D45131
    dag-erling committed May 10, 2024
    Configuration menu
    Copy the full SHA
    ae285a8 View commit details
    Browse the repository at this point in the history
  42. tftpd: Satisfy clang-analyzer.

    * Replace `random()` with `arc4random()`.
    * Change some variable types.
    * Drop some unused assignments.
    
    MFC after:	3 days
    Sponsored by:	Klara, Inc.
    Reviewed by:	imp, markj
    Differential Revision:	https://reviews.freebsd.org/D45132
    dag-erling committed May 10, 2024
    Configuration menu
    Copy the full SHA
    4d09eb8 View commit details
    Browse the repository at this point in the history
  43. tftpd: silence gcc overflow warnings

    GCC 13 complains that we might be writing too much to an on-stack buffer
    when createing a filename.
    
    In practice there is a check that filename isn't too long given the
    time format and other static characters so GCC is incorrect, but GCC
    isn't wrong that we're potentially trying to put a MAXPATHLEN length
    string + some other characters into a MAXPATHLEN buffer (if you ignore
    the check GCC can't realistically evaluate at compile time).
    
    Switch to snprintf to populate filename to ensure that future logic
    errors don't result in a stack overflow.
    
    Shorten the questionably named yyyymmdd buffer enough to slience the
    warning (checking the snprintf return value isn't sufficent) while
    preserving maximum flexibility for admins who use the -F option.
    
    MFC after:	3 days
    Sponsored by:	Klara, Inc.
    Reviewed by:	brooks
    Differential Revision:	https://reviews.freebsd.org/D45086
    dag-erling committed May 10, 2024
    Configuration menu
    Copy the full SHA
    25945af View commit details
    Browse the repository at this point in the history
  44. unbound: Vendor import 1.20.0

    Release notes at
    	https://www.nlnetlabs.nl/news/2024/May/08/unbound-1.20.0-released/
    
    Security:	The DNSBomb vulnerability CVE-2024-33655
    
    Merge commit 'c2a80056864d6eda0398fd127dc0ae515b39752b' into main
    cschuber committed May 10, 2024
    Configuration menu
    Copy the full SHA
    335c7cd View commit details
    Browse the repository at this point in the history
  45. kern/intr: remove support for passing trap frame as argument

    While otherwise a handy potential approach, getting the trap frame via
    the argument isn't documented and isn't supposed to be used.  With all
    uses removed, now remove support to end the mixed calling conventions.
    
    Differential Revision: https://reviews.freebsd.org/D37688
    
    Reviewed by: imp, mhorne
    Pull Request: freebsd/freebsd-src#1225
    ehem authored and bsdimp committed May 10, 2024
    Configuration menu
    Copy the full SHA
    38c3524 View commit details
    Browse the repository at this point in the history
  46. intr: Document how to get the interrupt frame

    Document that the only way to get the interrupt thread is to use
    curthread->td_intr_frame, rather than the old-style of having a NULL
    pointer for the interrupt thread. As of 38c3524, support for that
    has been removed. I neglected to update that commit message with these
    details.
    
    Suggested by: mhorne
    bsdimp committed May 10, 2024
    Configuration menu
    Copy the full SHA
    a2409f1 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2024

  1. packages: add package for NTP

    Reviewed by: imp, manu
    Pull Request: freebsd/freebsd-src#1193
    llfw authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    0c73a34 View commit details
    Browse the repository at this point in the history
  2. checkstyle9: Relax sob line requirement

    bsdimp authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    38d82f0 View commit details
    Browse the repository at this point in the history
  3. aic7xxx: aicasm correct include file

    aicasm just puts the value of the "-i" passed include file in the
    generated file with quotes around it. This means that there are manual
    edits made to aic7xxx_reg_print.c and aic79xx_reg_print.c
    
    now we check to see if the value passed to '-i' starts with a '<', if it
    does don't output the quotes.
    
    Signed-off-by: HP van Braam <[email protected]>
    Reviewed by: imp (minor code simplification)
    Pull Request: freebsd/freebsd-src#1209
    hpvb authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    5eebdb6 View commit details
    Browse the repository at this point in the history
  4. aic7xxx: make target mode enable a device hint

    Previously it was only possible to enable target mode for these drivers
    by rebuilding the kernel with AHC_TMODE_ENABLE or AHD_TMODE_ENABLE and a
    bitmask of which units to statically enable for target mode.
    
    There is no space-savings in the driver by not having AHC_TMODE_ENABLE
    set, so in addition to the compile time option lets also introduce some
    tunables:
    
    hint.ahc.<unit>.tmode_enable=0/1
    hint.ahd.<unit>.tmode_enable=0/1
    
    For compatibility the old behavior is retained, but it can be overridden
    with tunables
    
    Signed-off-by: HP van Braam <[email protected]>
    Reviewed by: imp, mav
    Pull Request: freebsd/freebsd-src#1208
    hpvb authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    34becad View commit details
    Browse the repository at this point in the history
  5. intro.2 as errno.2: Update maximum hard link limit

    MFC after:	1 week
    Co-authored-by: brooks
    Reviewed by:	brooks, emaste, imp
    Pull Request:	freebsd/freebsd-src#1192
    concussious authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    bec9ad5 View commit details
    Browse the repository at this point in the history
  6. intro.2: Add sys/syscall.h to SYNOPSIS

    MFC after:	1 week
    Co-authored-by: brooks
    Reviewed by:	brooks, emaste, imp
    Pull Request:	freebsd/freebsd-src#1192
    concussious authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    60dfd28 View commit details
    Browse the repository at this point in the history
  7. intro.2 as errno.2: Use the name macro for errno

    Reviewed by: imp
    Pull Request:   freebsd/freebsd-src#1192
    concussious authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    60493ba View commit details
    Browse the repository at this point in the history
  8. arp(8): fix a typo in error message for -s/-S

    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1214
    llfw authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    9234196 View commit details
    Browse the repository at this point in the history
  9. Merge llvm-project release/18.x llvmorg-18.1.5-0-g617a15a9eac9

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18.1.5-0-g617a15a9eac9.
    
    PR:		276104
    MFC after:	3 days
    DimitryAndric authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    e27defa View commit details
    Browse the repository at this point in the history
  10. Fixup: Merge llvm-project release/18.x llvmorg-18.1.5-0-g617a15a9eac9

    Update version numbers, config headers, etc. Git tricked me into losing
    these before pushing.
    
    PR:		276104
    Fixes:		d67fc74b9249
    MFC after:	3 days
    DimitryAndric authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    63113da View commit details
    Browse the repository at this point in the history
  11. rc.conf.5: modernise network_interfaces

    It's not 1996 anymore, and we use CIDR nowadays.  Update the various
    ifconfig_ examples to use CIDR notation instead of netmasks, and also
    add an example of a basic ifconfig_ entry that most users will be
    interested in.
    
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1217
    llfw authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    8473b9e View commit details
    Browse the repository at this point in the history
  12. libfido2: update to 1.14.0

    Sponsored by:	The FreeBSD Foundation
    emaste authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    2bf6da4 View commit details
    Browse the repository at this point in the history
  13. lib/clang: clean out old llvm/clang Sparc target remnants

    The WITH_LLVM_TARGET_ENABLE_SPARC option was removed a long time ago,
    but some ifdefs were still laying around, so clean them up.
    
    PR:		276104
    MFC after:	3 days
    DimitryAndric authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    54e7a5b View commit details
    Browse the repository at this point in the history
  14. nfsd: Fix Link conformance with RFC8881 for delegations

    RFC8881 specifies that, when a Link operation occurs on an
    NFSv4, that file delegations issued to other clients must
    be recalled.  Discovered during a recent discussion on [email protected].
    
    Although I have not observed a problem caused by not doing
    the required delegation recall, it is definitely required
    by the RFC, so this patch makes the server do the recall.
    
    Tested during a recent NFSv4 IETF Bakeathon event.
    
    MFC after:	1 week
    Rick Macklem authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    2c51e39 View commit details
    Browse the repository at this point in the history
  15. rc.conf.5: Fix translation from netmask to cdir

    These two should have been 30 bit masks, not 32, as the original
    netmasks were 255.255.255.252.
    
    Fixes: cb808de
    Noticed by: Kelly Hays
    bsdimp authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    18ea339 View commit details
    Browse the repository at this point in the history
  16. ota: Merge one true awk 20240422 (a3b68e649d2d)

    Apr 22, 2024:
    	fixed regex engine gototab reallocation issue that was
    	introduced during the Nov 24 rewrite. Thanks to Arnold Robbins.
    	Fixed a scan bug in split in the case the separator is a single
    	character. thanks to Oguz Ismail for spotting the issue.
    
    Mar 10, 2024:
    	fixed use-after-free bug in fnematch due to adjbuf invalidating
    	the pointers to buf. thanks to github user caffe3 for spotting
    	the issue and providing a fix, and to Miguel Pineiro Jr.
    	for the alternative fix.
    	MAX_UTF_BYTES in fnematch has been replaced with awk_mb_cur_max.
    	thanks to Miguel Pineiro Jr.
    
    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    75767e1 View commit details
    Browse the repository at this point in the history
  17. release: Use qemu when cross-building vm images

    For a bit over 5 years, we have used qemu when cross-building cloudware
    images; in particular, it's necessary when installing packages which
    might include post-install scripts.
    
    Use qemu in the vm-images target too; while "generic" vm images don't
    install packages, they still run newaliases and /etc/rc.d/ldconfig,
    both of which fail without appropriate emulation.
    
    MFC after:	1 week
    cperciva authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    a21ad2f View commit details
    Browse the repository at this point in the history
  18. TCP can be subject to Sack Attacks lets fix this issue.

    There is a type of attack that a TCP peer can launch on a connection. This is for sure in Rack or BBR and probably even the default stack if it uses lists in sack processing. The idea of the attack is that the attacker is driving you to look at 100's of sack blocks that only update 1 byte. So for example if you have 1 - 10,000 bytes outstanding the attacker sends in something like:
    
    ACK 0 SACK(1-512) SACK(1024 - 1536), SACK(2048-2536), SACK(4096 - 4608), SACK(8192-8704)
    This first sack looks fine but then the attacker sends
    
    ACK 0 SACK(1-512) SACK(1025 - 1537), SACK(2049-2537), SACK(4097 - 4609), SACK(8193-8705)
    ACK 0 SACK(1-512) SACK(1027 - 1539), SACK(2051-2539), SACK(4099 - 4611), SACK(8195-8707)
    ...
    These blocks are making you hunt across your linked list and split things up so that you have an entry for every other byte. Has your list grows you spend more and more CPU running through the lists. The idea here is the attacker chooses entries as far apart as possible that make you run through the list. This example is small but in theory if the window is open to say 1Meg you could end up with 100's of thousands link list entries.
    
    To combat this we introduce three things.
    
    when the peer requests a very small MSS we stop processing SACK's from them. This prevents a malicious peer from just using a small MSS to do the same thing.
    Any time we get a sack block, we use the sack-filter to remove sacks that are smaller than the smallest v4 mss (minus 40 for max TCP options) unless it ties up to snd_max (since that is legal). All other sacks in theory should be at least an MSS. If we get such an attacker that means we basically start skipping all but MSS sized Sacked blocks.
    The sack filter used to throw away data when its bounds were exceeded, instead now we increase its size to 15 and then throw away sack's if the filter gets over-run to prevent the malicious attacker from over-running the sack filter and thus we start to process things anyway.
    The default stack will need to start using the sack-filter which we have talked about in past conference calls to take full advantage of the protections offered by it (and reduce cpu consumption when processing sacks).
    
    After this set of changes is in rack can drop its SAD detection completely
    
    Reviewed by:tuexen@, rscheff@
     Differential Revision:	<https://reviews.freebsd.org/D44903>
    Randall Stewart authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    631cbeb View commit details
    Browse the repository at this point in the history
  19. mlx5en: add diagnostic in one more case of failed eeprom read prepara…

    …tion
    
    Sponsored by:	Nvidia Networking
    MFC after:	1 week
    kostikbel authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    b71f517 View commit details
    Browse the repository at this point in the history
  20. Import device-tree files from Linux 6.6

    Sponsored by:	Beckhoff Automation GmbH & Co. KG
    evadot authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    9240193 View commit details
    Browse the repository at this point in the history
  21. dts: Bump the freebsd branding version to 6.6

    Sponsored by:   Beckhoff Automation GmbH & Co. KG
    evadot authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    5f1f1ee View commit details
    Browse the repository at this point in the history
  22. Import device-tree files from Linux 6.7

    Sponsored by:	Beckhoff Automation GmbH & Co. KG
    evadot authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    ac17482 View commit details
    Browse the repository at this point in the history
  23. dts: Bump the freebsd branding version to 6.7

    Sponsored by:   Beckhoff Automation GmbH & Co. KG
    evadot authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    32a4699 View commit details
    Browse the repository at this point in the history
  24. Import device-tree files from Linux 6.8

    Sponsored by:	Beckhoff Automation GmbH & Co. KG
    evadot authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    7665819 View commit details
    Browse the repository at this point in the history
  25. dts: Bump the freebsd branding version to 6.8

    Sponsored by:   Beckhoff Automation GmbH & Co. KG
    evadot authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    49e551a View commit details
    Browse the repository at this point in the history
  26. if: guard against if_ioctl being NULL

    There are situations where an struct ifnet has a NULL if_ioctl pointer.
    
    For example, e6000sw creates such struct ifnets for each of its ports so it can
    call into the MII code.
    
    If there is then a link state event this calls do_link_state_change()
    -> rtnl_handle_ifevent() -> dump_iface() -> get_operstate() ->
    get_operstate_ether(). That wants to know if the link is up or down, so it tries
    to ioctl(SIOCGIFMEDIA), which doesn't go well if if_ioctl is NULL.
    
    Guard against this, and return EOPNOTSUPP.
    
    PR:		275920
    MFC ater:	3 days
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
    kprovost authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    80555bc View commit details
    Browse the repository at this point in the history
  27. pw: Rename some enums.

    Rename `M_PRINT` and `M_UPDATE` to `M_SHOW` and `M_MODIFY` to match the
    names of the commands they represent.  No functional change intended.
    
    MFC after:	3 days
    Reviewed by:	allanjude
    Differential Revision:	https://reviews.freebsd.org/D45096
    dag-erling authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    28d3f57 View commit details
    Browse the repository at this point in the history
  28. pw: Don't silently ignore unparsed command line arguments.

    MFC after:	3 days
    Reviewed by:	allanjude
    Differential Revision:	https://reviews.freebsd.org/D45097
    dag-erling authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    b0d00c9 View commit details
    Browse the repository at this point in the history
  29. adduser: Fix confusion between uclass and _class.

    This caused adduser to produce an invalid `pw(8)` command line.  Due to
    bugs in `pw(8)`, the command line was silently accepted and led to the
    user being created, but locked out and with no home directory.
    
    Also fix the default value for the “Another user?” prompt.
    
    Fixes:		170d088
    MFC after:	3 days
    Reviewed by:	karels, allanjude
    Differential Revision:	https://reviews.freebsd.org/D45098
    dag-erling authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    983bdc7 View commit details
    Browse the repository at this point in the history
  30. pw: Test home directory ownership and mode.

    MFC after:	3 days
    Reviewed by:	imp
    Differential Revision:	https://reviews.freebsd.org/D45099
    dag-erling authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    5699dc1 View commit details
    Browse the repository at this point in the history
  31. endian.h: Define uint{16,32,64}_t

    The Draft Posix Issue 8 standard requires that these be defined. Define
    them in the usual way that lets multiple headers define them. Opted to
    not just use #include <stdint.h>, allowed by the draft, to be
    conservative. Add notes about how we comply with Issue 8, and that we've
    opted to define these only as macros, though the standard allows
    functions, macros or both.
    
    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    d0f1115 View commit details
    Browse the repository at this point in the history
  32. ps: handle incorrect -D values

    I just noticed a slight issue with the '-D' option. Basically,
    I accidentally typed something along the lines of:
    
    ps -Dboth-p303
    
    I.E. missing out the "space". Instead of giving an error, it behaved as
    if I'd just typed "ps".
    
    Looking at bin/ps/ps.c, where the -D option is parsed, it doesn't
    error-out if there is no valid match.
    
    This commit fixes the bug.
    Jamie Landeg-Jones authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    d25b3e7 View commit details
    Browse the repository at this point in the history
  33. git-arc: Add list mode support for the update command

    This can be particularly useful to do bulk-updates of multiple commits
    using the same message, e.g.
    
      git arc update -lm "Move function xyz to libfoo" main..myfeature
    
    Similar to the list mode for the create command, git arc will list all
    the candidate revisions with a single prompt.  Once that is confirmed,
    all the revisions are updated without showing the diffs or pausing
    further prompts.
    
    Reviewed by:	markj
    Differential Revision:	https://reviews.freebsd.org/D45050
    bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    6a2f09f View commit details
    Browse the repository at this point in the history
  34. fib_dxr: log malloc() failures.

    MFC after:	1 week
    gornjas authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    2c0b063 View commit details
    Browse the repository at this point in the history
  35. sound: Merge pcm_chn_create() and chn_init()

    Follow-up of b3ea087 ("sound: Merge
    pcm_chn_destroy() and chn_kill()")
    
    While here, add device_printf()'s to all failure points. Also fix an
    existing bug where we'd unlock an already unlocked channel, in case we
    went to "out" (now "out2") before locking the channel.
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Reviewed by:	dev_submerge.ch
    Differential Revision:	https://reviews.freebsd.org/D44993
    christosmarg authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    49ca112 View commit details
    Browse the repository at this point in the history
  36. sound: Add __assert_unreachable() to default cases in pcm_chn_add() a…

    …nd pcm_chn_remove()
    
    We should normally never enter these cases.
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Reviewed by:	markj, emaste
    Differential Revision:	https://reviews.freebsd.org/D44994
    christosmarg authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    607948f View commit details
    Browse the repository at this point in the history
  37. sound: Convert pcm_chn_add() to void

    It always returns 0.
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Reviewed by:	markj, emaste
    Differential Revision:	https://reviews.freebsd.org/D44998
    christosmarg authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    7f2ab88 View commit details
    Browse the repository at this point in the history
  38. sound: Remove hw.snd.version and SND_DRV_VERSION

    hw.snd.version and SND_DRV_VERSION define the sound driver version and
    are meant to be used in bug reports, but because these values are
    constant, there is not much useful information we can extract from them.
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Reviewed by:	dev_submerge.ch, emaste
    Differential Revision:	https://reviews.freebsd.org/D44996
    christosmarg authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    f234e2e View commit details
    Browse the repository at this point in the history
  39. RELNOTES: Mention hw.snd.version being removed

    Sponsored by:	The FreeBSD Foundation
    christosmarg authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    8cc0b35 View commit details
    Browse the repository at this point in the history
  40. sound: Move chip.h contents to pcm/sound.h

    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Reviewed by:	markj
    Differential Revision:	https://reviews.freebsd.org/D44997
    christosmarg authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    aa4ec9a View commit details
    Browse the repository at this point in the history
  41. sound: Remove unused dsp_cdevs[] fields and devices

    These fields and devices are unused as of e8c0d15 ("sound: Get rid
    of snd_clone and use DEVFS_CDEVPRIV(9)").
    
    While here, remove unused SND_DEV_* defines from pcm/sound.h and convert
    the list to an enum.
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Reviewed by:	dev_submerge.ch, markj
    Differential Revision:	https://reviews.freebsd.org/D45013
    christosmarg authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    857ac81 View commit details
    Browse the repository at this point in the history
  42. sound: Use nitems() where possible

    No functional change intended.
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Reviewed by:	markj, emaste
    Differential Revision:	https://reviews.freebsd.org/D45014
    christosmarg authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    a90d99e View commit details
    Browse the repository at this point in the history
  43. sound: Move vchan-related code to pcm/vchan.*

    pcm/sound.* contains code that should be part of pcm/vchan.*.
    
    Changes:
    - pcm_setvchans() -> vchan_setnew()
    - pcm_setmaxautovchans() -> vchan_setmaxauto()
    - hw.snd.maxautovchans moved to pcm/vchan.c
    - snd_maxautovchans declaration moved to pcm/vchan.h and definition to
      pcm/vchan.c
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Reviewed by:	dev_submerge.ch, markj
    Differential Revision:	https://reviews.freebsd.org/D45015
    christosmarg authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    d24df84 View commit details
    Browse the repository at this point in the history
  44. sound: Rename pcm_getparentchannel() to vchan_getparentchannel()

    Follow the rest of the vchan.c naming convention.
    
    No functional change intended.
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Reviewed by:	markj
    Differential Revision:	https://reviews.freebsd.org/D45016
    christosmarg authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    84e407e View commit details
    Browse the repository at this point in the history
  45. sound: Remove unused "num" argument from chn_init() and related callers

    It is always -1 (i.e unused).
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Reviewed by:	dev_submerge.ch
    Differential Revision:	https://reviews.freebsd.org/D45095
    christosmarg authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    4005f12 View commit details
    Browse the repository at this point in the history
  46. fib_dxr: free() does nothing if arg is NULL, so remove a redundant ch…

    …eck.
    
    MFC after:	1 week
    gornjas authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    34d2485 View commit details
    Browse the repository at this point in the history
  47. fib_dxr: update comment.

    MFC after:	1 week
    gornjas authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    6b5804f View commit details
    Browse the repository at this point in the history
  48. sound: Update pcm/vchan.c LICENSE header

    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    christosmarg authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    858f3dc View commit details
    Browse the repository at this point in the history
  49. tests/fusefs: fix all tests that depend on kern.maxphys

    The tests try to read kern.maxphys sysctl into int value, while
    unsigned long is required.  Not sure when this was broken, seems like
    since cd85379.
    
    Reviewed by:		asomers
    Differential Revision:	https://reviews.freebsd.org/D45053
    glebius authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    d46ef42 View commit details
    Browse the repository at this point in the history
  50. arm: Remove stray references to dev/sound/chip.h

    Fixes:		923e004 ("sound: Move chip.h contents to pcm/sound.h")
    Reported by:	Jenkins CI
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    christosmarg authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    836c7b2 View commit details
    Browse the repository at this point in the history
  51. sockets: hide socket hhook(9)s under SOCKET_HHOOK

    There are no in-tree consumers of these hooks.
    
    Reviewed by:		stevek
    Differential Revision:	https://reviews.freebsd.org/D44928
    glebius authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    cd1c1bd View commit details
    Browse the repository at this point in the history
  52. release: Rework vm_extra_pre_umount

    The vm_extra_pre_umount function in vmimage.subr served two purposes:
    It removed /etc/resolv.conf and /qemu (if cross-building), and it
    provided a function for cloudware to override in order to make cloud
    specific changes to the filesystem before constructing a disk image.
    
    This resulted in a number of bugs:
    1. When cross-building, the emulator binary was left as /qemu in the
    Azure, GCE, Openstack and Vagrant images.
    2. The build host's resolv.conf was left as /etc/resolv.conf in the
    basic-ci and basic-cloudinit images.
    3. When building GCE images, a Google-specific resolv.conf file was
    constructed, and then deleted before the disk image was created.
    
    Move the bits needed for running code inside a VM staging directory
    from vm_install_base into a new vm_emulation_setup routine, and move
    the corresponding cleanup bits from vm_extra_pre_umount to a new
    vm_emulation_cleanup routine.
    
    Remove the /qemu and /etc/resolv.conf cleanups from the cloudware
    configuration files (where they exist) since we will now be running
    vm_emulation_cleanup to remove those even when vm_extra_pre_umount
    has been overridden.
    
    Override vm_emulation_cleanup in gce.conf since in that one case (and
    *only* that one case) we don't want to clean up resolv.conf (since it
    was constructed for the VM image rather than copied from the host).
    
    releng/14.1 candidate.
    
    MFC after:	1 week
    Sponsored by:	https://www.patreon.com/cperciva
    cperciva authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    5c5d346 View commit details
    Browse the repository at this point in the history
  53. nvmf: Remove packing pragmas from nvmf_proto.h

    The protocol structures do not need explicit packing and static
    assertions verify the size of all the structures as well as the
    offsets of several key fields.  The pragma triggers warnings when
    building with GCC.
    
    Sponsored by:	Chelsio Communications
    bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    273de33 View commit details
    Browse the repository at this point in the history
  54. nvmf_tcp: Correct tests for PDU direction

    Add parentheses to ensure the correct order of operations.
    
    Reported by:	GCC
    bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    d6d099f View commit details
    Browse the repository at this point in the history
  55. clock_gettime.2: fix markup

    The CLOCK_* constants are "defined variable or preprocessor constants"
    and so use .Dv.
    
    Reviewed by:	imp
    Sponsored by:	The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D45106
    emaste authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    22499b6 View commit details
    Browse the repository at this point in the history
  56. nvmf: Add explicit alignment for struct nvmf_fabric_cmd

    This avoids -Wcast-align warnings from clang when upcasting from
    struct nvmf_fabric_cmd to struct nvmf_fabric_prop_set_cmd.
    
    Reported by:	bapt
    Sponsored by:	Chelsio Communications
    bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    537ea50 View commit details
    Browse the repository at this point in the history
  57. lagg: propagate up/down to the children

    Based on the old submission from asomers@.  With modern state of locking
    in lagg(4), the patch got much simplier.  Enable the test that was
    waiting for this change.
    
    PR:			226144
    Reviewed by:		asomers
    Differential Revision:	https://reviews.freebsd.org/D44605
    glebius authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    e84e540 View commit details
    Browse the repository at this point in the history
  58. lagg: remove use of net epoch in the ioctl paths

    Rely on LAGG_SLOCK() instead.  The use of network epoch(9) here was added
    in 6573d75 (later tidied by 87bf9b9) as a large sweep that
    blindly substituted blocking kernel primitives with epoch(9).  In these
    particular code paths use of epoch(9) is incorrect and doesn't provide any
    protection against a stale pointer.  Recent fix 48698ea, which should
    actually have removed the epoch use, created a potential sleeping in epoch
    problem.
    glebius authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    9f80abb View commit details
    Browse the repository at this point in the history
  59. lagg: enable tests that stress the configuration changes

    I wasn't able to reproduce a crash in several runs.  Might be that
    48698ea or earlier changes have closed the races.  In case crashes
    with just enabled tests are registered, I will either work on them or
    disable tests again.
    glebius authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    dede707 View commit details
    Browse the repository at this point in the history
  60. sg: Add sg(4) man page

    Add minimal sg(4) manual page. This implements a subset of the Linux
    IOCTL interface for either native FreeBSD programs, or for Linux
    binaries in the linuxulator.
    
    Noticed by:	Lexi Winter
    Sponsored by:	Netflix
    bsdimp authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    73cc5d6 View commit details
    Browse the repository at this point in the history
  61. Configuration menu
    Copy the full SHA
    a26de97 View commit details
    Browse the repository at this point in the history
  62. Add GBDE to ObsoleteFiles.inc

    bsdphk authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    1b7ced3 View commit details
    Browse the repository at this point in the history
  63. Remove gbde.4 man page

    bsdphk authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    3d7e9ee View commit details
    Browse the repository at this point in the history
  64. Remove gbde support from swapon(8)

    bsdphk authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    460d7f8 View commit details
    Browse the repository at this point in the history
  65. Remove GBDE rc support

    bsdphk authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    887939f View commit details
    Browse the repository at this point in the history
  66. Remove gbde from rescue

    bsdphk authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    4c6ec9d View commit details
    Browse the repository at this point in the history
  67. Remove documentation of GBDE rc support

    bsdphk authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    c9c869f View commit details
    Browse the repository at this point in the history
  68. Remove GBDE stress test

    bsdphk authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    1ae6a4a View commit details
    Browse the repository at this point in the history
  69. Remove GBDE source files

    bsdphk authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    d6e35ce View commit details
    Browse the repository at this point in the history
  70. Add gbde rc.d script to ObsoleteFiles.inc

    bsdphk authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    97a4cd0 View commit details
    Browse the repository at this point in the history
  71. Configuration menu
    Copy the full SHA
    462846d View commit details
    Browse the repository at this point in the history
  72. Remove cross-references to GBDE

    bsdphk authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    fae92ac View commit details
    Browse the repository at this point in the history
  73. Remove final cross-reference to GBDE

    bsdphk authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    1dea710 View commit details
    Browse the repository at this point in the history
  74. Remove lingering geom_bde references.

    bsdphk authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    234460d View commit details
    Browse the repository at this point in the history
  75. dlopen(3): mention fdlopen for capsicum(4)

    Capsicum-sandboxed applications generally cannot use dlopen, as absolute
    and cwd-relative paths cannot be accessed.  Mention that fdlopen is
    useful for sandboxed applications.
    
    PR:		277169
    Reviewed by:	markj, oshogbo
    Sponsored by:	The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D45108
    emaste authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    35325d9 View commit details
    Browse the repository at this point in the history
  76. boot1.efi: Don't redundantly include devpath.c

    devpath.c is on both the comand line and in libefi. This is redundant
    and was a mistake in 4cf36aa. It never should have been here. In
    practice, this just means that the devpath.o from libefi.a goes unused.
    This will cause problems with some upcoming changes (D44872) to enable
    LTO to reduce the size of the binaries, so go ahead and make the change
    now to reduce the changeset for that. No functional change indended.
    
    Fixes:		4cf36aa
    Co-authored-by:	sobomax
    Sponsored by:	Netflix
    bsdimp authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    ebad9e9 View commit details
    Browse the repository at this point in the history
  77. Configuration menu
    Copy the full SHA
    6c9f438 View commit details
    Browse the repository at this point in the history
  78. fib_dxr: KASSERTs for chasing NULL ptr and runaway refcount suspects

    MFC after:	1 week
    gornjas authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    bc97bbd View commit details
    Browse the repository at this point in the history
  79. fib_dxr: s/KASSERT/MPASS/

    MFC after:	1 week
    gornjas authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    e12d36a View commit details
    Browse the repository at this point in the history
  80. fib_dxr: set fib_data field in struct dxr_aux early enough

    Previously it was possible for dxr_build() to return with da->fd
    unset in case of range_tbl or x_tbl malloc() failures.  This
    may have led to NULL ptr dereferencing in dxr_change_rib_batch().
    
    MFC after:	1 week
    
    PR:		278422
    gornjas authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    d183e73 View commit details
    Browse the repository at this point in the history
  81. busdma: deduplicate _bus_dmamap_addseg() function

    It is functionally identical in all implementations, so move the
    function to subr_busdma_bounce.c. The KASSERT present in the x86 version
    is now enabled for all architectures. It should be universally
    applicable.
    
    Reviewed by:	jhb
    MFC after:	1 month
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D45047
    mhorne authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    864fdbe View commit details
    Browse the repository at this point in the history
  82. busdma: better handling of small segment bouncing

    Typically, when a DMA transaction requires bouncing, we will break up
    the request into segments that are, at maximum, page-sized.
    
    However, in the atypical case of a driver whose maximum segment size is
    smaller than PAGE_SIZE, we end up inefficiently assigning each segment
    its own bounce page. For example, the dwmmc driver has a maximum segment
    size of 2048 (PAGE_SIZE / 2); a 4-page transfer ends up requiring 8
    bounce pages in the current scheme.
    
    We should attempt to batch segments into bounce pages more efficiently.
    This is achieved by pushing all considerations of the maximum segment
    size into the new _bus_dmamap_addsegs() function, which wraps
    _bus_dmamap_addseg(). Thus we allocate the minimal number of bounce
    pages required to complete the entire transfer, while still performing
    the transfer with smaller-sized transactions.
    
    For most drivers with a segment size >= PAGE_SIZE, this will have no
    impact. For drivers like dwmmc mentioned above, this improves the memory
    and performance efficiency when bouncing a large transfer.
    
    Co-authored-by:	jhb
    Reviewed by:	jhb
    MFC after:	1 month
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D45048
    mhorne authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    a778d1b View commit details
    Browse the repository at this point in the history
  83. starfive: add a syscon driver

    It serves the purpose of attaching syscon devices as early as possible;
    this is required for early attachment of the PLL clock driver.
    
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D44270
    mhorne authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    d01028f View commit details
    Browse the repository at this point in the history
  84. jh7110: Add StarFive JH7110 clock/reset generator drivers

    Implement a core clknode driver for the JH7110 (StarFive VisionFive v2)
    platform.
    
    Add clock/reset generator drivers for the PLL, SYS, and AON clock
    groupings.
    
    Co-authored-by:	mhorne
    Reviewed by:	mhorne
    Sponsored by:	The FreeBSD Foundation (mhorne's contributions)
    Differential Revision:	https://reviews.freebsd.org/D43037
    mhorne authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    6e97e29 View commit details
    Browse the repository at this point in the history
  85. jh7110: enable MMC driver

    Add a variant of the existing dwmmc driver, and enable it in the GENERIC
    kernel.
    
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D44026
    mhorne authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    8196952 View commit details
    Browse the repository at this point in the history
  86. Revert "jh7110: Add StarFive JH7110 clock/reset generator drivers"

    I did not set the author field properly; revert to fix this.
    
    This reverts commit 5d6d627.
    mhorne authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    c2ce369 View commit details
    Browse the repository at this point in the history
  87. jh7110: Add StarFive JH7110 clock/reset generator drivers

    Implement a core clknode driver for the JH7110 (StarFive VisionFive v2)
    platform.
    
    Add clock/reset generator drivers for the PLL, SYS, and AON clock
    groupings.
    
    Co-authored-by: mhorne
    Reviewed by:    mhorne
    Sponsored by:   The FreeBSD Foundation (mhorne's contributions)
    Differential Revision:  https://reviews.freebsd.org/D43037
    jsihvola authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    64feedf View commit details
    Browse the repository at this point in the history
  88. libcbor: Ignore errors for unknown #pragmas

    libcbor embeds clang-specific #pragmas that GCC then warns about.
    
    Reviewed by:	emaste
    bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    17066e8 View commit details
    Browse the repository at this point in the history
  89. tcp: clean up macro useage in tcp_fixed_maxseg()

    Replace local PAD macro with PADTCPOLEN macro
    No functional change.
    
    Reviewed By:		tuexen, #transport
    Sponsored by:		NetApp, Inc.
    Differential Revision:	https://reviews.freebsd.org/D45076
    rscheff authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    9acc398 View commit details
    Browse the repository at this point in the history
  90. libzpool: Disable -Wpointer-to-int-cast warnings for GCC

    This warning is already disabled for zfs.ko.
    bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    95eafe1 View commit details
    Browse the repository at this point in the history
  91. nvmecontrol: Fix a sign compare mismatch

    Even though mqes (uint16_t) and queue_size (u_int) are both unsigned,
    the expression 'mqes + 1' gets promoted to int which is signed.  Keep
    the value unsigned by explicitly promoting mqes to u_int before
    incrementing the value.
    
    Reported by:	GCC
    bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    0029db0 View commit details
    Browse the repository at this point in the history
  92. nvme: Bump the alignment of struct nvme_health_information_page to 8

    This ensures that embedded uint64_t values used for statistics
    counters are aligned when allocating a structure on the stack or as
    part of a containing structure.  In particular this quiets
    -Waddress-of-packed-member warnings from GCC when compiling the code
    in nvmfd to update the stats.
    
    Reported by:	GCC
    bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    73224df View commit details
    Browse the repository at this point in the history
  93. sockets: garbage collect PRCOREQUESTS and stale comment

    The code deleted predates FreeBSD history.  The comment deleted is 99%
    outdated.  Why KAME decided to use these constants instead of normal ones
    also lost in centuries.
    glebius authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    12b11ad View commit details
    Browse the repository at this point in the history
  94. Configuration menu
    Copy the full SHA
    dc15453 View commit details
    Browse the repository at this point in the history
  95. in6_rmx: remove unnecessary socketvar.h

    glebius authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    3eb7d96 View commit details
    Browse the repository at this point in the history
  96. arm64 pmap: Add ATTR_CONTIGUOUS support [Part 3]

    Introduce L3C promotion of base page mappings.  When the base page size
    is 4KB, use ATTR_CONTIGUOUS to promote 16 aligned, contiguous base page
    mappings to a 64KB mapping.  Alternatively, when the base page size is
    16KB, use ATTR_CONTIGUOUS to promote 128 aligned, contiguous base page
    mappings to a 2MB mapping.
    
    Given the frequency of L3C counter updates, switch to per-CPU counters
    to avoid cache line ping ponging.
    
    Revise the L3C counter descriptions to reflect the fact that the size
    of an L3C mapping varies depending on the base page size.
    
    Co-authored-by:	Eliot Solomon <[email protected]>
    Reviewed by:	markj
    Differential Revision:	https://reviews.freebsd.org/D44983
    alcriceedu authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    7f4b36a View commit details
    Browse the repository at this point in the history
  97. ObsoleteFiles.inc: Remove /var/db/portsnap

    This is a followup to commit "Remove remnants of portsnap(8)"
    (9b30b96).  I wasn't aware of OLD_DIRS.
    
    Approved by:            markj (mentor)
    MFC after:              1 day
    MFC with:               9b30b96
    Sponsored by:           The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D45023
    OlCe2 authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    f2b48d4 View commit details
    Browse the repository at this point in the history
  98. dtb: rockchip: Add Radxa ROCK 4C Plus to the build.

    The ROCK 4C Plus is a cost-reduced variant of the ROCK Pi 4 based on
    the RockChip RK3399-T.
    
    Reviewed by:	manu
    MFC after:	1 week
    Differential Revision:	<https://reviews.freebsd.org/D45110
    Peter Jeremy authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    e54a3cc View commit details
    Browse the repository at this point in the history
  99. mii: Add support for Realtek RTL8211F-VD PHY

    The RTL8211F-VD is a replacement/upgrade for the RTL8211F. Based on
    torvalds/linux@bb726b7,
    the only difference is the lack of the PCR2 register, which FreeBSD
    doesn't use.
    
    This fixes autonegotiation problems using the RTL8211F with ukphy(4).
    Reviewed by:	manu, bz
    MFC after:	1 month
    Differential Revision:  <https://reviews.freebsd.org/D45109
    Peter Jeremy authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    ed09550 View commit details
    Browse the repository at this point in the history
  100. carp: support VRRPv3

    Allow carp(4) to use the VRRPv3 protocol (RFC 5798). We can distinguish carp and
    VRRP based on the protocol version number (carp is 2, VRRPv3 is 3), and support
    both from the carp(4) code.
    
    Reviewed by:	glebius
    Sponsored by:	Rubicon Communications, LLC ("Netgate")
    Differential Revision:	https://reviews.freebsd.org/D44774
    kprovost authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    5ea6b90 View commit details
    Browse the repository at this point in the history
  101. carp: don't chain call vrrp_send_ad via carp_send_ad

    Provide inline send_ad_locked() that switches between protocol
    specific sending function.
    
    Rename carp_send_ad() to carp_callout() to avoid getting lost in
    all these multiple foo_send_ad.
    
    No functional change intended.
    
    Reviewed by:	kp
    Differential Revision:	https://reviews.freebsd.org/D45036
    glebius authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    b8e8ede View commit details
    Browse the repository at this point in the history
  102. carp: assert that we are calling correct input function. We are.

    Reviewed by:	kp
    Differential Revision:	https://reviews.freebsd.org/D45037
    glebius authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    0c67f0a View commit details
    Browse the repository at this point in the history
  103. carp: refactor packet tagging for ether_output()

    - Separate HMAC preparation (CARP specific) from tagging.
    - In unicast mode (CARP specific) don't put tag at all.
    - Don't put pointer to software context into the tag.  Putting just vhid,
      an integer value, is a safer design.
    
    Reviewed by:	kp
    Differential Revision:	https://reviews.freebsd.org/D45038
    glebius authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    54d278d View commit details
    Browse the repository at this point in the history
  104. carp: isolate VRRP from CARP

    There is only one functional change here - we don't allow SIOCSVH (or
    netlink request) to change sc->sc_version.  I'm convinced that allowing
    such a change doesn't brings any practical value, but creates enless
    minefields in front of both developers and end users (sysadmins).  If
    you want to switch from VRRP to CARP or vice versa, you'd need to recreate
    the VHID.
    
    Oh, one tiny funtional change: carp_ioctl_set() won't modify any fields
    if it returns EINVAL.  Previously you could provide valid advbase with
    invalid advskew - that used to modify advbase and return EINVAL.
    
    All other changes is a sweep around not ever using CARP fields when
    we are in VRRP mode and vice versa.  Also adding assertions on sc_version
    where necessary.
    
    Do not send VRRP vars in CARP mode via NetLink and vice versa.  However
    in compat ioctl SIOCGVH for VRRP mode the CARP fields would be zeroes.
    
    This allows to declare softc as union and thus prevent any future logic
    deterioration wrt to mixing VRRP and CARP.
    
    Reviewed by:	kp
    Differential Revision:	https://reviews.freebsd.org/D45039
    glebius authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    40ec3a6 View commit details
    Browse the repository at this point in the history
  105. netinet tests: basic VRRP tests

    Sponsored by:	Rubicon Communications, LLC ("Netgate")
    Differential Revision:	https://reviews.freebsd.org/D44775
    kprovost authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    505dab0 View commit details
    Browse the repository at this point in the history
  106. carp: document the new VRRPv3 support

    Sponsored by:	Rubicon Communications, LLC ("Netgate")
    Differential Revision:	https://reviews.freebsd.org/D44776
    kprovost authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    0835ea3 View commit details
    Browse the repository at this point in the history
  107. pf: always mark states as unlinked before detaching them

    Users have reported crashes in pf_test_state_udp() where at least one state key
    is NULL.
    
    That suggests that pf_detach_state() ran concurrently with pf_test_state_udp().
    pf_test_state_udp() holds the state lock (aka the id lock), but
    pf_detach_state() does not.
    The intent is that detached states are not returned by STATE_LOOKUP/
    pf_find_state(), as the state's timeout is set to PFTM_UNLINKED and thus
    pf_find_state() does not find the state.
    
    There are other paths to pf_detach_state() (outside of pf_unlink_state())
    though, where we did not set the timeout to PFTM_UNLINKED. Fix those, and assert
    that the timeout is set correctly when we enter pf_detach_state().
    
    MFC after:	1 week
    See also:	https://redmine.pfsense.org/issues/15413
    Sponsored by:	Rubicon Communications, LLC ("Netgate")
    Differential Revision:	https://reviews.freebsd.org/D45101
    kprovost authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    25b2d99 View commit details
    Browse the repository at this point in the history
  108. tcp: filter small SACK blocks

    While the SACK Scoreboard in the base stack limits
    the number of holes by default to only 128 per connection
    in order to prevent CPU load attacks by splitting SACKs,
    filtering out SACK blocks of unusually small size can
    further improve the actual processing of SACK loss recovery.
    
    Reviewed By:		tuexen, #transport
    Sponsored by:		NetApp, Inc.
    Differential Revision:	https://reviews.freebsd.org/D45075
    rscheff authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    90e1b4e View commit details
    Browse the repository at this point in the history
  109. tcp: add sysctl to allow/disallow TSO during SACK loss recovery

    Introduce net.inet.tcp.sack.tso for future use when TSO is ready
    to be used during loss recovery.
    
    Reviewed By:		tuexen, #transport
    Sponsored by:		NetApp, Inc.
    Differential Revision:	https://reviews.freebsd.org/D45068
    rscheff authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    57eb93b View commit details
    Browse the repository at this point in the history
  110. tcp: add counter to track when SACK loss recovery uses TSO

    Add a counter to track how frequently SACK has transmitted
    more than one MSS using TSO. Instances when this will be
    beneficial is the use of PRR, or when ACK thinning due to
    GRO/LRO or ACK discards by the network are present.
    
    Reviewed By:		tuexen, #transport
    Sponsored by:		NetApp, Inc.
    Differential Revision:	https://reviews.freebsd.org/D45070
    rscheff authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    40ccd3b View commit details
    Browse the repository at this point in the history
  111. libthr: avoid varargs in fcntl and openat interposers

    Align these signatures with the ones in syscalls.master (and thus
    libsys.h).  There's no reason to do va_args twice and in some ABIs
    (e.g,, CheriABI) you can't access fixed arguments as varargs if you
    weren't called with varargs signature.
    
    Reviewed by:	imp, kib, jhibbits
    Obtained from:	CheriBSD
    Differential Revision:	https://reviews.freebsd.org/D45126
    brooksdavis authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    f0078be View commit details
    Browse the repository at this point in the history
  112. soxstack: slience 32-bit gcc warning

    Modern GCC complains when casting pointers to integers of a different
    size (even a larger one).  Switch from uint64_t to uintptr_t which will
    always be the right size for a stack address instead of maybe being too
    big.
    
    Reviewed by:	dchagin, emaste
    Differential Revision:	https://reviews.freebsd.org/D45087
    brooksdavis authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    7ed262f View commit details
    Browse the repository at this point in the history
  113. ofed: don't expose symbols twice

    ibv_init_wq and ibv_cleanup_wq are made visible with the
    default_symver which puts them in the IBVERBS_1.1 ABI.  Don't
    try to expose them as IBVERBS_PRIVATE_14 symbols as GNU ld
    complains with --no-undefined-symbol.
    
    Reviewed by:	kib
    Differential Revision:	https://reviews.freebsd.org/D45090
    brooksdavis authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    b11b6be View commit details
    Browse the repository at this point in the history
  114. bsdinstall: Stop loading cryptodev for ZFS installations

    - zfs depends on the crypto module, not cryptodev, and most arm64 kernel
      configs include std.dev, which includes "device crypto" anyway.
    - This config works around a problem with kldxref lacking cross-target
      support, but that has since been fixed.
    - Loading cryptodev creates /dev/crypto, which gives unprivileged users
      access to the kernel's opencrypto framework.  Very few applications
      need it, so we're needlessly increasing the kernel's surface area.
    
    Thus, stop auto-loading cryptodev.
    
    Reviewed by:	kevans, allanjude, des
    Differential Revision:	https://reviews.freebsd.org/D45127
    markjdb authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    960ae77 View commit details
    Browse the repository at this point in the history
  115. vmm: Start reconciling amd64 and arm64 copies of vmm_dev.c

    Most of the code in vmm_dev.c and vmm.c can and should be shared between
    amd64 and arm64 (and eventually riscv) rather than being duplicated.  To
    the end of adding a shared implementation in sys/dev/vmm, this patch
    eliminates most of the differences between the two copies of vmm_dev.c.
    
    - Remove an unneeded cdefs.h include.
    - Simplify the amd64 implementation of vcpu_unlock_one().
    - Simplify the arm64 implementation of vcpu_lock_one().
    - Pass buffer sizes to alloc_memseg() and get_memseg() on arm64.  On
      amd64 this is needed for compat ioctls, but these functions should be
      merged.
    - Make devmem_mmap_single() stricter on arm64.
    
    Reviewed by:	corvink, jhb
    Differential Revision:	https://reviews.freebsd.org/D44995
    markjdb authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    99821e1 View commit details
    Browse the repository at this point in the history
  116. bhyve: Do not define GDB_LOG

    This had been added for debugging and shouldn't have been committed.
    
    Fixes:		f81cdf2 ("bhyve: Add support for XML register definitions")
    MFC after:	3 days
    markjdb authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    f8224bb View commit details
    Browse the repository at this point in the history
  117. smsc(4): update to mention Microchip

    Microchip Technology acquired SMSC in 2012, and all current products
    and datasheets refer to the devices supported by this driver as
    Microchip parts.  Mention SMSC in a parenthetical comment to explain
    the driver's name.
    
    Reviewed by:	imp
    Sponsored by:	The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D45115
    emaste authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    f6dc0ae View commit details
    Browse the repository at this point in the history
  118. Merge commit 5300a6731e98 from llvm-project (by Jonathan Peyton):

      [OpenMP] Fix re-locking hang found in issue 86684 (#88539)
    
      This was initially reported here (including stacktraces):
      https://stackoverflow.com/questions/78183545/does-compiling-imagick-with-openmp-enabled-in-freebsd-13-2-cause-sched-yield
    
      If `__kmp_register_library_startup()` detects that another instance of
      the library is present, `__kmp_is_address_mapped()` is eventually
      called. which uses `kmpc_alloc()` to allocate memory. This function
      calls `__kmp_entry_thread()` to access the thread-local memory pool,
      which is a bad idea during initialization. This macro internally calls
      `__kmp_get_global_thread_id_reg()` which sets the bootstrap lock at the
      beginning (before calling `__kmp_register_library_startup()`).
    
      The fix is to use `KMP_INTERNAL_MALLOC()`/`KMP_INTERNAL_FREE()` instead
      of `kmpc_malloc()`/`kmpc_free()`. `KMP_INTERNAL_MALLOC` and
      `KMP_INTERNAL_FREE` do not use any bootstrap locks. They just translate
      to `malloc()`/`free()` and are meant to be used during library
      initialization before other library-specific allocators have been
      initialized.
    
      Fixes: #86684
    
    This should fix OpenMP processes sometimes getting locked with 100% CPU
    usage, endlessly calling sched_yield(2).
    
    PR:		278845
    Reported by:	Cassidy B. Larson <[email protected]>
    MFC after:	3 days
    DimitryAndric authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    1d9b0c7 View commit details
    Browse the repository at this point in the history
  119. Merge commit 73bb8d9d92f6 from llvm-project (by Jonathan Peyton):

      [OpenMP] Fix child processes to use affinity_none (#91391)
    
      When a child process is forked with OpenMP already initialized, the
      child process resets its affinity mask and sets proc-bind-var to false
      so that the entire original affinity mask is used. This patch corrects
      an issue with the affinity initialization code setting affinity to
      compact instead of none for this special case of forked children.
    
      The test trying to catch this only testing explicit setting of
      KMP_AFFINITY=none. Add test run for no KMP_AFFINITY setting.
    
      Fixes: #91098
    
    This should fix OpenMP processes sometimes getting stuck on a single CPU
    core.
    
    PR:		278845
    Reported by:	Cassidy B. Larson <[email protected]>
    MFC after:	3 days
    DimitryAndric authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    8544bc5 View commit details
    Browse the repository at this point in the history
  120. linuxkpi: Make arch_io_*_memtype_wc amd64-only

    Linux only implements these functions on x86.  They return 0 on other
    architectures.  The FreeBSD implementation calls PHYS_TO_DMAP but this
    panics on i386 because it does not have a direct map so return 0 on i386
    as well for now.  These functions are only used by graphics/drm-*-kmod
    to mark the VRAM aperture write-combining but this is also accomplished
    by a call to vm_phys_fictitious_reg_range so this change is sufficient
    to fix drm-*-kmod on i386 for FreeBSD 14.1.
    
    Reviewed by:	kib
    MFC after:	3 days
    Differential Revision:	https://reviews.freebsd.org/D45125
    TijlCoosemans authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    2e871cb View commit details
    Browse the repository at this point in the history
  121. nvme: Explicitly align struct nvme_command on an 8 byte boundary

    This was already true for most architectures due to uint64_t structure
    members.  However, i386 is special in that it only requires 4 byte
    alignment for uint64_t.  As a result, casts from struct nvme_command
    to struct nvmf_fabric_cmd were raising a "cast increases alignment"
    warning on i386.  Explicitly aligning struct nvme_command pacifies
    this warning on i386.
    
    Reported by:	rscheff
    Sponsored by:	Chelsio Communications
    bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    9463d39 View commit details
    Browse the repository at this point in the history
  122. net80211: add a new field specifically for announcing specific ciphers

    This dates way, way back with the original net80211 support w/ atheros chips.
    
    The earliest chip (AR5210) had limitations supporting software encryption.
    It only had the four WEP slots, and not any keycache entries.  So when
    trying to do CCMP/TKIP encryption would be enabled and the key slots
    would have nothing useful in them, resulting in garbage encryption/decryption.
    
    I changed this back in 2012 to disable supporting hardware WEP for AR5210
    so if_ath(4) / net80211 crypto is all done in software and yes,
    I could do CCMP/TKIP on AR5210 in software.
    
    Fast-forward to newer-ish hardware - the Qualcomm 11ac hardware.
    Those also don't support pass-through keycache slots! Well, the hardware
    does at that layer, but then there's a whole offload data path encap/decap
    layer that's turning the frames from raw wifi into ethernet frames (for
    "dumb" AP behaviours) or "wifi direct" frames (ie, "windows".)
    This hides a bunch of header frame contents required for doing the software
    encryption / decryption path.
    
    But then if you enable the raw transmit/receive frame format it ALSO
    bypasses the hardware encryption/decryption engine!
    
    So for those NICs:
    
    * If you want to do encryption, you can only use the firmware supported
      ciphers w/ wifi direct or ethernet;
    * If you want to use software encrypt/decrypt, you MUST disable all encryption
      and instead use 100% software encryption.
    
    The wpa_supplicant bsd driver code has a specific comment about this and
    flips on supporting WEP/TKIP/CCMP, which is understandable but it doesn't
    fix the ACTUAL intention of all of this stuff.
    
    So:
    
    * create a new field, ic_sw_cryptocaps
    * populate it with the default supported set of ciphers for net80211
      (right now wep, tkip, ccmp)
    * Communicate the combination of both ic_sw_cryptocaps and ic_cryptocaps
      to wpa_supplicant via the relevant devcap ioctl.
    * Update manpage.
    
    I'll follow this up with a driver_bsd.c change in wpa_supplicant to
    trust this again, and then start adding the other cipher support there.
    
    Differential Revision:	https://reviews.freebsd.org/D44820
    Adrian Chadd authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    4496e7a View commit details
    Browse the repository at this point in the history
  123. wpa: Remove the now not-needed local logic to hard-code cipher support

    A previous commit now exposes the supported net80211 ciphers for the
    given NIC, rather than the hardware cipher list.  This is going to be
    especially important moving forward when we add more cipher and key
    management support.
    
    Differential Revision:	https://reviews.freebsd.org/D44821
    Adrian Chadd authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    0e8ecc1 View commit details
    Browse the repository at this point in the history
  124. net80211: add driver / crypto methods to set the hardware / software …

    …cipher suites
    
    Drivers currently announce hardware crypto cipher support by
    setting up ic_cryptocaps.
    
    This adds two public function calls:
    
    * ieee80211_set_software_ciphers() - set the software cipher set;
    * ieee80211_set_hardware_ciphers() - set the hardware cipher set.
    
    For now these just call into the newly crypto routines to set the ciphers.
    
    This then adds the two crypto routines, similarly named, to set
    the hardware/software cipher suite.
    
    This is a no-op right now - wep/tkip/ccmp are already set by default
    so drivers aren't required to call these routines for software
    encryption, and drivers already set ic_cryptocaps for hardware
    encryption.
    
    Differential Revision: https://reviews.freebsd.org/D44827
    Adrian Chadd authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    62c7d49 View commit details
    Browse the repository at this point in the history
  125. net80211: add new ciphers and RSN flags

    These are the rest of the ciphers and RSN flags from 802.11-2016.
    
    * add the rest of the ciphers from 802.11-2016
    * add the rest of the RSN flags from 802.11-2016
    
    Of special interest here are the extended key ID field for supporting
    >1 unicast key (to support seamless rekeying w/out dropping frames)
    and the MFP (management frame protection) config bits.
    
    This is a no-op; no code is using these new fields.
    (In particular, no code in net80211 uses the RSN capability bits;
    but that will change when we start on MFP support.)
    
    Differential Revision:	https://reviews.freebsd.org/D44864
    Adrian Chadd authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    882b61e View commit details
    Browse the repository at this point in the history
  126. release: make dependencies, not recursive make

    For historical reasons, the vm-release and cloudware-release targets
    were written as recursive makes of ${VMTARGETS} and ${CLOUDTARGETS};
    this worked fine until we started running `make release -jN` and
    had both VM and cloud targets depending on ${QEMUTGT}, at which
    point things exploded when we tried to build the port twice at the
    same time.
    
    Switch vm-release and cloudware-release to have make dependencies on
    their individual components; this way a single make process runs and
    is aware of the duplicate dependency (and only runs it once).
    
    MFC after:	5 days
    cperciva authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    857524c View commit details
    Browse the repository at this point in the history
  127. xen/debug: remove usage of sbuf_{clear,finish}() on drained sbuf

    Using sbuf_clear() on a drained sbuf is explicitly prohibited, and using
    sbuf_finish() after printing a trace leads to a single trace being printed, as
    after calling sbuf_finish() further attempts to use the same sbuf will lead to
    a panic.
    
    While there also switch to using xen_emergency_print() instead of attempting to
    write directly to the hypervisor console.  xen_emergency_print() can be
    implemented per-arch to use a different mechanism than the console hypercall
    (note the default implementation still uses the console hypercall).
    
    Fixes: df62b8a ('xen: add a handler for the debug interrupt')
    Sponsored by: Cloud Software Group
    Reviewed by: markj
    Differential review: https://reviews.freebsd.org/D45060
    Roger Pau Monné authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    c1e4eac View commit details
    Browse the repository at this point in the history
  128. libpfctl: fix file descriptor leak

    pfctl_get_rules_info() opened a netlink socket, but failed to close it again.
    Fix this by factoring out the netlink-based function into a _h variant that
    takes struct pfctl_handle, and implement pfctl_get_rules_info() based on that,
    remembering to close the fd.
    
    While here migrate all in-tree consumers to the _h variant.
    
    MFC after:	3 days
    Sponsored by:	Rubicon Communications, LLC ("Netgate")
    kprovost authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    2a8233b View commit details
    Browse the repository at this point in the history
  129. sctp: add missing check

    If memory allocation fails, m is NULL. Since this is possible,
    check for it.
    Reported by:	Coverity Scan
    CID:		1086866
    MFC after:	3 days
    tuexen authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    c3dc3b7 View commit details
    Browse the repository at this point in the history
  130. Update example from gcc6 to gcc13

    We only "support" gcc12 and gcc13 for cross building, for some value of
    "support". Update the example from gcc6 to gcc13.
    
    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    25fe736 View commit details
    Browse the repository at this point in the history
  131. sctp: fix sctp_sendall() when an mbuf chain is provided

    In this case uio is NULL, which needs to be checked and m must
    be copied into the sctp_copy_all structure.
    Reported by:	Coverity Scan
    CID:		1400449
    MFC after:	3 days
    tuexen authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    7d42206 View commit details
    Browse the repository at this point in the history
  132. sctp: don't provide uninitialized memory to process_chunk_drop()

    Right now, the code in process_chunk_drop() does not look the
    the corresponding fields.
    Therefore, no functional change intended.
    Reported by:	Coverity Scan
    CID:		1472476
    MFC after:	3 days
    tuexen authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    9260972 View commit details
    Browse the repository at this point in the history
  133. sctp: allow stcb == NULL in sctp_shutdown()

    Consistently handle this case.
    Reported by:	Coverity Scan
    CID:		1533813
    MFC after:	3 days
    tuexen authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    05b95a9 View commit details
    Browse the repository at this point in the history
  134. sctp: minor cleanup

    No functional chnage intended.
    MFC after:	3 days
    tuexen authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    4e10e0e View commit details
    Browse the repository at this point in the history
  135. fusefs: make the tests more robust to changes to maxphys

    Remove assumptions in two test cases that maxphys won't be huge.
    
    Reported by:	kib
    MFC after:	2 weeks
    Sponsored by:	Axcient
    asomers authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    8aab153 View commit details
    Browse the repository at this point in the history
  136. ip17x: fix non-debug build

    PR:		278847
    Reviewed by:	jhibbits
    Sponsored by:	The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D45133
    emaste authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    b86ca10 View commit details
    Browse the repository at this point in the history
  137. snd_hdsp(4): RME HDSP 9632 and HDSP 9652 sound card driver.

    Add a sound(4) bridge device driver for the RME HDSP 9632 and HDSP 9652
    sound cards. These cards require a nowadays rare PCI 32bit (not PCIe)
    slot, but still see use due to their value and wealth of features.
    The HDSP 9632 is mostly comparable to the newer HDSPe AIO, while the
    HDSP 9652 is similar to the HDSPe RayDAT. These HDSPe PCIe cards are
    supported by the snd_hdspe(4) driver which was taken as a starting point
    for development of snd_hdsp(4).
    
    Implementation is kept separately due to substantial differences in
    hardware configuration and to allow easy removal in case PCI 32bit
    support would be phased out in the future.
    
    The snd_hdsp(4) kernel module is not enabled by default, and can be
    loaded at runtime with kldload(8) or during boot via loader.conf(5).
    Basic operation was tested with both cards, not including all optional
    cable connectors and expansion boards. Features should be roughly on par
    with the snd_hdspe(4) supported cards.
    
    Reviewed by:	christos, br
    Differential Revision:	https://reviews.freebsd.org/D45112
    0EVSG authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    6480b74 View commit details
    Browse the repository at this point in the history
  138. sound: Remove nmix variable from mixer_oss_mixerinfo()

    nmix is used to compare against oss_mixerinfo->dev, which is a
    user-supplied value to select the mixer device (if not -1, in which case
    we'll select the default one) we want to fetch the information of. It is
    also used to set oss_mixerinfo->dev in case it is -1.
    
    However, nmix is at best redundant, since we have the loop counter
    already (i), and confusing at worst.
    
    For example, suppose a system with 3 mixer devices. We call
    SNDCTL_MIXERINFO with oss_mixerinfo->dev=1, meaning we want to get
    information for /dev/mixer1. Suppose /dev/mixer0 detaches while inside
    the loop, so we'll hit the loop's "continue" case, and nmix won't get
    incremented (i.e will stay 0 for now). At this point nmix counts 1
    device less, so when it reaches 1, we'll be fetching /dev/mixer2's
    information instead of /dev/mixer1's.
    
    This is also true in case the mixer device disappears prior to the call
    to mixer_oss_mixerinfo().
    
    Simply remove nmix and use the loop counter to both set
    oss_mixerinfo->dev and check against it in case a non -1 value is
    supplied.
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	3 days
    Reviewed by:	dev_submerge.ch
    Differential Revision:	https://reviews.freebsd.org/D45135
    christosmarg authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    d01e92b View commit details
    Browse the repository at this point in the history
  139. sound: Fix oss_sysinfo->numcards

    According to the OSS manual, oss_sysinfo->numcards holds the number of
    detected audio devices in the system, while the current ncards variable,
    whose value is assigned to oss_sysinfo->numcards, holds the number of
    currently registered devices only.
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	3 days
    Reviewed by:	dev_submerge.ch, emaste
    Differential Revision:	https://reviews.freebsd.org/D45136
    christosmarg authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    841b50e View commit details
    Browse the repository at this point in the history
  140. sound: Add missing oss_mixerinfo devnode and legacy_device fields

    They are missing from soundcard.h and are in fact used by some
    applications, such as OSS' ossinfo(1):
    http://manuals.opensound.com/developer/ossinfo.c.html
    
    The new size for filler is chosen according to the most recent official
    version of soundcard.h, which includes those 2 fields.
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	3 days
    Reviewed by:	dev_submerge.ch
    Differential Revision:	https://reviews.freebsd.org/D45137
    christosmarg authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    674f925 View commit details
    Browse the repository at this point in the history
  141. sound: Rename oss_audioinfo->real_device to oss_audioinfo->legacy_device

    The OSS manual now documents this field as "legacy_device".
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	3 days
    Reviewed by:	dev_submerge.ch
    Differential Revision:	https://reviews.freebsd.org/D45138
    christosmarg authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    46a93f8 View commit details
    Browse the repository at this point in the history
  142. arm/pmu: remove passing trap frame as argument

    While otherwise a handy potential approach, getting the trap frame via
    the argument isn't documented and isn't supposed to be used.  Adjust
    pmu_intr() to instead use curthread->td_intr_frame, which is the proper
    way.
    
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1126
    ehem authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    42e52a3 View commit details
    Browse the repository at this point in the history
  143. kern/intr: change ->ie_irq to unsigned

    All architecture implementations actually want this to be unsigned.
    INTRNG the equivalent is overtly unsigned.  x86 and PowerPC merely avoid
    the need to explicitly convert at several points.
    
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1126
    ehem authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    1dbd3ce View commit details
    Browse the repository at this point in the history
  144. kern/intr: redeclare intr_setaffinity()'s third arg constant

    This matches reality and allows removal of a __DECONST().
    
    Fixes: 4c72d07 ("LinuxKPI: const argument to irq_set_affinity_hint()")
    Fixes: 9b33b15 ("Add support to cpuset for binding hardware interrupts")
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1126
    ehem authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    95478df View commit details
    Browse the repository at this point in the history
  145. intrng: switch flag arguments to unsigned

    The flag variables behind these are all unsigned.  As such adjust the
    declarations to match reality and reduce the number of mismatches.
    
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1126
    ehem authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    781d02d View commit details
    Browse the repository at this point in the history
  146. sys: declare bit sets unsigned

    Substantially reduce the number of signed/unsigned issues (warnings if
    enabled).  While these are presently disabled for FreeBSD, being able to
    enable another warning would be good.
    
    Differential Revision: https://reviews.freebsd.org/D32793
    Reviewed by: imp, jhibbits
    Pull Request: freebsd/freebsd-src#1126
    ehem authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    9e13c5c View commit details
    Browse the repository at this point in the history
  147. arm: add missing atomic-pointer functions

    The pointer function types were missing for these functions, so add
    them.  Valuable for places where type sizes vary by architecture.
    
    Differential Revision: https://reviews.freebsd.org/D37778
    Reviewed by: imp, andrew
    Pull Request: freebsd/freebsd-src#1126
    ehem authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    eb013eb View commit details
    Browse the repository at this point in the history
  148. intr/x86: replace use of vector in interface with intsrc

    Several x86 interrupt core functions were already operating on intsrc
    structures.  Now switch the remaining 3 to intsrc for consistency.
    
    Swap the order of intr_add_handler()'s first two arguments.  This
    matches INTRNG and is more consistent with other functions in this
    interface.
    
    Differential Revision: https://reviews.freebsd.org/D35386
    Reviewed by: imp, markj (previous version)
    Pull Request: freebsd/freebsd-src#1126
    ehem authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    46b28fb View commit details
    Browse the repository at this point in the history
  149. arp.8: don't document a syntax that doesn't exist

    The arp.8 manpage documents 'arp -d <addr> pub', but the 'pub' flag is
    not accepted by the arp command.  Remove this incorrect documentation.
    
    Reviewed by: imp, gleb, mp
    Pull Request: freebsd/freebsd-src#1215
    llfw authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    f822128 View commit details
    Browse the repository at this point in the history
  150. Address module reproducibility issues

    Use .PATH & bare filename. This prevents the real source path from
    being included in the built object, which improves reproducibility.
    
    Signed-off-by: Dan McGregor <[email protected]>
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1211
    dankm authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    d71550e View commit details
    Browse the repository at this point in the history
  151. New sysctl to disable NOMATCH until devmatch runs

    Introduce hw.bus.devctl_nomatch_enabled and use it to suppress NOMATCH
    until devmatch runs
    
    There's a lot of NOMATCH events generated at boot. We also run devmatch
    once during early boot to load unmatched devices. To avoid redundant
    work, don't start generating NOMATCH events until after devmatch runs.
    Set hw.bus.devctl_nomatch_enabled=1 just before we run devmatch. The
    kernel will suppress NOMATCH events until this is set to true.
    
    This saves about 170ms from the boot on aarch64 running atop Apple
    M-series processors and the VMWare Fusion hypervisor.
    
    Reviewed by:    imp, cperciva
    MFC after:      3 days
    Sponsored by:   Google Summer of Code
    Pull Request:   freebsd/freebsd-src#1213
    ica574 authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    76d3f23 View commit details
    Browse the repository at this point in the history
  152. Allow -DNO_STRICT_REGEX to restore historic regex behavior

    Allow restoring the behavior of '{' as described in regex(3).
    Ie. only treat it as start of bounds if followed by a digit.
    
    If NO_STRICT_REGEX is not defined, the behavior introduced by
    commit a4a8016 is retained,
    otherwise the previous behavior is restored.
    
    Differential Revision:	https://reviews.freebsd.org/D45134
    sgerraty authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    b151117 View commit details
    Browse the repository at this point in the history
  153. nfscl: Do not do readahead for directories

    For a very long time, the NFS client has done readahead for
    directory blocks.  Unlike data blocks, the readahead cannot
    begin until the Readdir RPC reply has been received, since
    the directory offset cookie in that Readdir RPC reply is needed.
    As such, the readahead is serialized and does not seem to
    provide any real benefit.
    
    Recent testing/benchmarking shows that removing this
    readahead code for Readdir does not have a negative impact
    on performance.
    
    Therefore, this patch deletes the readahead code for Readdir,
    which simplifies the code and may make future changes simpler.
    
    MFC after:	1 month
    Rick Macklem authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    17fa6a1 View commit details
    Browse the repository at this point in the history
  154. Fix memory corruption in C++ demangler

    The __cxa_demangle_gnu3() and cpp_demangle_gnu3() functions segfault on
    various libcxxabi test cases due to a copy and paste error. This change
    fixes that.
    
    This is a subset of libcxxrt/libcxxrt#34 which
    fixes the immediate problem.
    
    Reviewed by: imp, emaste (I think)
    Pull Request: freebsd/freebsd-src#1222
    jart authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    dd81b69 View commit details
    Browse the repository at this point in the history
  155. ipfw: correctly report table manipulation errors

    Let ipfw(8) report the actual error instead of the error that
    may have come from calling printf().
    
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1221
    Ben Wilber authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    92cdab5 View commit details
    Browse the repository at this point in the history
  156. ahc(4): Default to memory mapped IO

    When this driver was written it made sense to make this default to off,
    but these days almost all BIOSses will do the right thing. Furthermore
    non-mmio communication only works on Intel architectures.
    
    So lets default to allowing mmio, but not change the semantics of the
    AHC_ALLOW_MEMIO flag to not break existing installs. Also document the
    already existing hint.ahc.<unit>.allow_memio.
    
    Signed-off-by: HP van Braam <[email protected]>
    Reviewed by: imp (small style tweak)
    Pull Request: freebsd/freebsd-src#1219
    hpvb authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    d9efef5 View commit details
    Browse the repository at this point in the history
  157. Update README.md to add pointer to release page.

    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1151
    LukeTheEngineer authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    2da60fd View commit details
    Browse the repository at this point in the history
  158. sysexits: Tidy deprecated header and manual

    <sysexits.h> was deprecated in the base system in a1432b4 for FreeBSD
    8.0 and is retained only for backwards compatibility.  Make that clear,
    since sysexits(3) suggested using it since it was in style(9) prior
    to this.
    
    MFC after:	1 week
    Co-authored-by:	imp
    Fixes:		a1432b4
    Reviewed by:	imp, pauamma (previous version)
    Pull Request	freebsd/freebsd-src#1195
    concussious authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    516d2a1 View commit details
    Browse the repository at this point in the history
  159. at cron file is now in /etc/cron.d

    PR: 243380
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1106
    Paweł Krawczyk authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    6ab44f3 View commit details
    Browse the repository at this point in the history
  160. Explain cron.d

    Add details on the format of system cron files, which are mentioned in
    cron(8) which refers here but barely explained here.
    
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1106
    Paweł Krawczyk authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    5ac1b9e View commit details
    Browse the repository at this point in the history
  161. mdconfig: Print options when listing devices

    PR: 278624
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1210
    ricardobranco777 authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    f1f07c8 View commit details
    Browse the repository at this point in the history
  162. Add man page for nfslockd.

    PR:		130238
    MFC after:	3 days
    Differential Revision:	https://reviews.freebsd.org/D45139
    dag-erling authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    a4563f7 View commit details
    Browse the repository at this point in the history
  163. am64: Allow cpu.h to be included from assembly

    Reviewed by:	jhibbits, kevans
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D45081
    zxombie authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    897d35c View commit details
    Browse the repository at this point in the history
  164. arm64: Support a shared release for spin-table

    When releasing multiple CPUs that share a release address we need them
    to wait for their turn to boot. Add a mechanism to do this by booting
    them until they enable the TLB before waiting their turn to enter
    init_secondary.
    
    Reviewed by:	jhibbits, kevans
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D45082
    zxombie authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    fc49bf6 View commit details
    Browse the repository at this point in the history
  165. arm64: Flush the spintable release address

    Ensure the spintable release address is written back from the cache
    to memory. The other CPUs reading this may not be reading it with the
    cache enabled so ensure it is written to the point of coherency
    before issuing the wakeup sev.
    
    As cpu_dcache_wbinv_range includes the needed barrier remove it from
    the inline asm before the sev instruction.
    
    Reviewed by:	jhibbits, kevans
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D45083
    zxombie authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    822974a View commit details
    Browse the repository at this point in the history
  166. dev/psci: Check all compat strings

    When searching for the PSCI FDT node we only check a few compat strings.
    Use the existing compat_data array to check all strings the driver may
    attach to.
    
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D44913
    zxombie authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    dce9c12 View commit details
    Browse the repository at this point in the history
  167. arm64/gicv3: Check if the hardware supports LPIs

    Some simulators have the ITS in the DTB passed to the kernel, however
    it is a runtime configuration option to enable it.
    
    Check the GICD_TYPER register to see if LPIs are enabled before
    attaching the ITS driver.
    
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D44914
    zxombie authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    9744b52 View commit details
    Browse the repository at this point in the history
  168. arm64: Merge common page table creation code

    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D45061
    zxombie authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    8637e1f View commit details
    Browse the repository at this point in the history
  169. arm64: Update the page table list in locore

    The comment describing the page tables was out of date. Update it with
    the current list.
    
    Sponsored by:	Arm Ltd
    zxombie authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    201afe6 View commit details
    Browse the repository at this point in the history
  170. cat: Check for lack of success rather than a specific failure.

    MFC after:	3 days
    Sponsored by:	Klara, Inc.
    Reviewed by:	oshogbo
    Differential Revision:	https://reviews.freebsd.org/D45149
    dag-erling authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    e840f3f View commit details
    Browse the repository at this point in the history
  171. cat: Missed a couple.

    MFC after:	3 days
    Sponsored by:	Klara, Inc.
    dag-erling authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    76d0f4f View commit details
    Browse the repository at this point in the history
  172. ukswitch: fix non-debug build

    PR:		278847
    Sponsored by:	The FreeBSD Foundation
    emaste authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    f88e8d0 View commit details
    Browse the repository at this point in the history
  173. tpm20: Support partial reads

    Summary:
    In some cases the TPM utilities may read only a partial block, instead
    of a full block.  If a new command starts while in the middle of a read
    it may cause the TPM to go catatonic and no longer respond to SPI.
    
    Reviewed by:	kd
    Obtained from:	Juniper Networks, Inc.
    Differential Revision: https://reviews.freebsd.org/D45140
    chmeeedalf authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    ba0b942 View commit details
    Browse the repository at this point in the history
  174. conf: Generate fdt_static_dtb.h in OBJDIR

    Though the kernel build expects ${.OBJDIR} to be equal to ${.CURDIR}
    that may not always be the case.  Correctly generate fdt_static_dtb.h in
    ${.OBJDIR}, which is conceptually more correct anyway.
    
    Obtained from:	Juniper Networks, Inc.
    chmeeedalf authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    8414c3c View commit details
    Browse the repository at this point in the history
  175. posix: POSIX-1.2008 moved SA_* from XSI to base standard

    Starting with POSIX-1.2008, "The SA_RESETHAND, SA_RESTART, SA_SIGINFO,
    SA_NOCLDWAIT, and SA_NODEFER constants are moved from the XSI option to
    the Base." Make them so visible.
    
    PR: 275328
    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    ef3dd5d View commit details
    Browse the repository at this point in the history
  176. grdc: add countdown timer mode

    PR: 35113
    Differential Revision:	https://reviews.freebsd.org/D43463
    gavinatkinson authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    0bde748 View commit details
    Browse the repository at this point in the history
  177. grdc: Add copyright

    Add the stock BSD copyright and license from the 4.4-Lite distribution
    (indirected by SPDX).
    
    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    9e5c3ad View commit details
    Browse the repository at this point in the history
  178. nvmecontrol: Fix a sizeof mismatch

    In this case it is harmless since it is an array of pointers so the
    resulting length is identical.
    
    Reported by:	Coverity Scan
    CID:		1545055
    Sponsored by:	Chelsio Communications
    bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    fc79ccb View commit details
    Browse the repository at this point in the history
  179. nvmf: Use strlcpy instead of strncpy to ensure termination

    Reported by:	Coverity Scan
    CID:	 	1545054
    Sponsored by:	Chelsio Communications
    bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    ca2224a View commit details
    Browse the repository at this point in the history
  180. nvmecontrol: Free array of I/O queue pairs on failure to handoff

    This is harmless but cleaner.
    
    Reported by:	Coverity Scan
    CID:	 	1545041,1545049
    Sponsored by:	Chelsio Communications
    bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    15d4893 View commit details
    Browse the repository at this point in the history
  181. nvmecontrol: Free the addrinfo list when failing to open a TCP socket

    Reported by:	Coverity Scan
    CID:	 	1545048
    Sponsored by:	Chelsio Communications
    bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    eebd436 View commit details
    Browse the repository at this point in the history
  182. ctl_backend_block: Correct value of NVME nsdata nuse field

    Reported by:	Coverity Scan
    CID:	 	1545043
    Sponsored by:	Chelsio Communications
    bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    e5e132e View commit details
    Browse the repository at this point in the history
  183. nvmf_transport: Remove invalid assertion

    This is leftover from an earlier iteration of the code where 'nt' was
    not dynamically allocated but was the passed in 'ops' pointer so was
    always alive.
    
    Reported by:	Coverity Scan
    CID:	 	1545042
    Sponsored by:	Chelsio Communications
    bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    99338a0 View commit details
    Browse the repository at this point in the history
  184. kmod.mk use ${XARGS}

    Also ${XARGS_J} this allows use of non-BSD xargs when building
    kernel modules.
    
    Reviewed by:	imp
    Differential Revision:	https://reviews.freebsd.org/D45146
    sgerraty authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    a2162f8 View commit details
    Browse the repository at this point in the history
  185. madt: print CPU APIC ID as signed int

    Instead of printing something like "MADT: Found CPU APIC ID 4294967295
    ACPI ID 512: disabled" print the APIC ID as a singed int for a more
    user-friendly -1.
    
    Reviewed by:	jhb
    Sponsored by:	The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D45158
    emaste authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    ff1ee86 View commit details
    Browse the repository at this point in the history
  186. sctp: store cookie secret change time as time_t

    Reported by:	Coverity Scan
    CID:		1492349
    CID:		1493281
    MFC after:	3 days
    tuexen authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    9339b86 View commit details
    Browse the repository at this point in the history
  187. Increase IOAPIC_MAX_ID to 255 (from 254)

    A test system provided by AMD panicked with "madt_parse_apics:
    I/O APIC ID 255 too high".  I/O APIC ID 255 is acceptable, so increase
    the limit.
    
    Reviewed by:	jhb, kib
    Sponsored by:	The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D45157
    emaste authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    be803f5 View commit details
    Browse the repository at this point in the history
  188. sctp: store vtag expire time as time_t

    Reported by:	Coverity Scan
    CID:		1492525
    CID:		1493239
    MFC after:	3 days
    tuexen authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    4c29956 View commit details
    Browse the repository at this point in the history
  189. sctp: store heartbeat creation time as time_t

    Reported by:	Coverity Scan
    CID:		1493087
    MFC after:	3 days
    tuexen authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    eeb5e86 View commit details
    Browse the repository at this point in the history
  190. Revert "grdc: Add copyright"

    It turns out this wasn't in 4.4BSD. I had a false positive for gdc.c
    (which is in 4.4BSD, but part of gated, not this). gdc.c comes from the
    ncurses tests, so it shouldn't have this copyright. This version is
    mostly Amos Shapir and John Lupien's code. It comes from ncurses test
    directory. ncurses has made dozens of improvements to this file since
    we imported it in 1997 (which pre-dates their online history), so it's
    not clear if their new copyright applies (which doesn't mention Amos
    or John) or if some other copyright applies. In any case, it wasn't
    4.4BSD, so revert this.
    
    This reverts commit 6ed7d0e.
    
    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    365dfe3 View commit details
    Browse the repository at this point in the history
  191. sctp: improve heartbeat timer computation

    PR:		278666
    Reviewed by:	Albin Hellqvist
    MFC after:	3 days
    Pull Request:	https://reviews.freebsd.org/D45107
    tuexen authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    94dc360 View commit details
    Browse the repository at this point in the history
  192. md: Merge two switch statements in mdstart_vnode

    While here, use bp->bio_cmd instead of auio.uio_rw to drive read vs
    write behavior.
    
    Reviewed by:	kib
    Differential Revision:	https://reviews.freebsd.org/D45155
    bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    4a76675 View commit details
    Browse the repository at this point in the history
  193. Skipping merge of 473c90a

    bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    92a4887 View commit details
    Browse the repository at this point in the history
  194. vm: Change the return types of kernacc and useracc to bool

    Reviewed by:	kib
    Differential Revision:	https://reviews.freebsd.org/D45156
    bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    4ed5c79 View commit details
    Browse the repository at this point in the history
  195. Configuration menu
    Copy the full SHA
    6e18ee3 View commit details
    Browse the repository at this point in the history
  196. CONTRIBUTING.md/style: spring cleaning

    + move Lua to alphabetize subsections
    + word manpages like other subsections
    + man PR's shouldn't bump document date
    
    MFC after: (maybe MFC to BETA3 along w/ e7ff917 ?)
    concussious authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    591891f View commit details
    Browse the repository at this point in the history
  197. tftpd: Add missing -S option to synopsis.

    MFC after:	3 days
    Sponsored by:	Klara, Inc.
    Reviewed by:	imp, markj
    Differential Revision:	https://reviews.freebsd.org/D45129
    dag-erling authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    7bf3106 View commit details
    Browse the repository at this point in the history
  198. tftpd: Drop unneeded includes.

    MFC after:	3 days
    Sponsored by:	Klara, Inc.
    Reviewed by:	imp, markj
    Differential Revision:	https://reviews.freebsd.org/D45130
    dag-erling authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    1d1f9d2 View commit details
    Browse the repository at this point in the history
  199. tftpd: Add missing include.

    This went unnoticed due to namespace pollution in our headers.
    
    MFC after:	3 days
    Sponsored by:	Klara, Inc.
    Reviewed by:	imp
    Differential Revision:	https://reviews.freebsd.org/D45131
    dag-erling authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    d26188b View commit details
    Browse the repository at this point in the history
  200. tftpd: Satisfy clang-analyzer.

    * Replace `random()` with `arc4random()`.
    * Change some variable types.
    * Drop some unused assignments.
    
    MFC after:	3 days
    Sponsored by:	Klara, Inc.
    Reviewed by:	imp, markj
    Differential Revision:	https://reviews.freebsd.org/D45132
    dag-erling authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    9caa6ed View commit details
    Browse the repository at this point in the history
  201. tftpd: silence gcc overflow warnings

    GCC 13 complains that we might be writing too much to an on-stack buffer
    when createing a filename.
    
    In practice there is a check that filename isn't too long given the
    time format and other static characters so GCC is incorrect, but GCC
    isn't wrong that we're potentially trying to put a MAXPATHLEN length
    string + some other characters into a MAXPATHLEN buffer (if you ignore
    the check GCC can't realistically evaluate at compile time).
    
    Switch to snprintf to populate filename to ensure that future logic
    errors don't result in a stack overflow.
    
    Shorten the questionably named yyyymmdd buffer enough to slience the
    warning (checking the snprintf return value isn't sufficent) while
    preserving maximum flexibility for admins who use the -F option.
    
    MFC after:	3 days
    Sponsored by:	Klara, Inc.
    Reviewed by:	brooks
    Differential Revision:	https://reviews.freebsd.org/D45086
    dag-erling authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    b8a049f View commit details
    Browse the repository at this point in the history
  202. unbound: Vendor import 1.20.0

    Release notes at
    	https://www.nlnetlabs.nl/news/2024/May/08/unbound-1.20.0-released/
    
    Security:	The DNSBomb vulnerability CVE-2024-33655
    
    Merge commit 'c2a80056864d6eda0398fd127dc0ae515b39752b' into main
    cschuber authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    4f467cb View commit details
    Browse the repository at this point in the history
  203. kern/intr: remove support for passing trap frame as argument

    While otherwise a handy potential approach, getting the trap frame via
    the argument isn't documented and isn't supposed to be used.  With all
    uses removed, now remove support to end the mixed calling conventions.
    
    Differential Revision: https://reviews.freebsd.org/D37688
    
    Reviewed by: imp, mhorne
    Pull Request: freebsd/freebsd-src#1225
    ehem authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    90ec168 View commit details
    Browse the repository at this point in the history
  204. intr: Document how to get the interrupt frame

    Document that the only way to get the interrupt thread is to use
    curthread->td_intr_frame, rather than the old-style of having a NULL
    pointer for the interrupt thread. As of 38c3524, support for that
    has been removed. I neglected to update that commit message with these
    details.
    
    Suggested by: mhorne
    bsdimp authored and bsdjhb committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    c205e0e View commit details
    Browse the repository at this point in the history