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-04-26 #2193

Merged
merged 338 commits into from
Aug 11, 2024
Merged

Merge FreeBSD 2024-04-26 #2193

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

Commits on Apr 23, 2024

  1. kern_thr.c: normalize includes

    Remove extra sys/param.h, provided by sys/systm.h.
    Order the rest alphabetically.
    
    Reviewed by:	markj
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44867
    kostikbel committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    0c11c17 View commit details
    Browse the repository at this point in the history
  2. sigqueue(2): add impl-specific flag __SIGQUEUE_TID

    The flag allows the pid argument to designate a thread from the calling
    process.  The flag value is carved from the high bit of the signal
    number, which slightly changes the ABI of syscall.
    
    Reviewed by:	markj
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44867
    kostikbel committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    53186bc View commit details
    Browse the repository at this point in the history
  3. sigqueue(2): Document __SIGQUEUE_TID

    Reviewed by:	markj
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44867
    kostikbel committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    dcc180c View commit details
    Browse the repository at this point in the history
  4. sys/signal.h: move union sigval into dedicated private header sys/_si…

    …gval.h
    
    Reviewed by:	markj
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44867
    kostikbel committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    97acb35 View commit details
    Browse the repository at this point in the history
  5. libthr: add pthread_sigqueue(3)

    PR:	278459
    Reviewed by:	markj
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44867
    kostikbel committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    220aa0f View commit details
    Browse the repository at this point in the history
  6. pthread_sigqueue(3): document

    Reviewed by:	markj
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44867
    kostikbel committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    91da6be View commit details
    Browse the repository at this point in the history
  7. Add test for pthread_sigqueue(3)

    Reviewed by:	markj
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44867
    kostikbel committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    fb2ab7c View commit details
    Browse the repository at this point in the history
  8. nfsserver: Default to nfs_reserved_port_only="YES"

    This setting causes the NFS server to check that all RPCs are sent from
    a privileged (<= 1023) port, rejecting those that are not.  This
    slightly raises the bar for a user with network access to an
    unauthenticated NFS server to access exported NFS filesystems.
    
    Users that use traditional NFS clients (e.g., those provided by FreeBSD
    or Linux) should not see any difference, assuming that unprivileged
    filesystem mounting is disallowed.
    
    Note that the setting is per-VNET, so may be overridden in VNET jails
    without affecting the rest of the system.
    
    Discussed with:	freebsd-arch@
    Reviewed by:	rmacklem, bz, emaste
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D44906
    markjdb committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    6d5ce2b View commit details
    Browse the repository at this point in the history
  9. RELNOTES: Add an entry for the nfs_reserved_port_only default change

    Sponsored by:	The FreeBSD Foundation
    markjdb committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    ca0620b View commit details
    Browse the repository at this point in the history
  10. Use MOVED_LIBS for usr/lib/libcxxrt.so.1 ObsoleteFiles.inc entry

    Otherwise, the "make delete-old-libs" mechanism also deletes 32-bit
    copies, such as in /usr/lib32.
    
    Reported by:	Josef 'Jeff' Sipek <[email protected]>
    Fixes:		911a647
    DimitryAndric committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    f48643d View commit details
    Browse the repository at this point in the history
  11. camcontrol: Enable WITH_NVME unconditionally

    MK_NVME is no longer marked broken for any platforms, so just include
    support for it always as we do for ATA and SCSI.
    
    Reviewed by:	emaste
    Sponsored by:	Chelsio Communications
    Differential Revision:	https://reviews.freebsd.org/D44841
    bsdjhb committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    2b676a6 View commit details
    Browse the repository at this point in the history
  12. nvmecontrol: Always build instead of being conditional on WITH_NVME

    This now builds fine on all platforms so always include it similar
    to other tools such as camcontrol.
    
    Reviewed by:	imp, emaste
    Sponsored by:	Chelsio Communications
    Differential Revision:	https://reviews.freebsd.org/D44842
    bsdjhb committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    2d51a98 View commit details
    Browse the repository at this point in the history
  13. Remove the MK_NVME build option

    The drivers and utilities are now built and installed unconditionally.
    
    Reviewed by:	imp, emaste
    Sponsored by:	Chelsio Communications
    Differential Revision:	https://reviews.freebsd.org/D44843
    bsdjhb committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    ee3187f View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    cbbc577 View commit details
    Browse the repository at this point in the history
  15. libc: make strerror_rl() usable for libc

    Reviewed by:	imp
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44916
    kostikbel committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    92771bc View commit details
    Browse the repository at this point in the history
  16. __vprintf(): switch from strerror() to strerror_rl()

    This eliminates the use of non-thread-safe function in printf*() family,
    and make the call locale-aware.  Also, it stops obliterating the
    strerror() static buffer, which aligns with the POSIX requirement that
    implementations must behave as if no standard-mandated functions call
    strerror().
    
    PR:	278556
    Reported by:	Jonathan Gruber <[email protected]>
    Reviewed by:	imp
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44916
    kostikbel committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    f887667 View commit details
    Browse the repository at this point in the history
  17. libc: minor style, wrap long lines

    Reviewed by:	imp
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44916
    kostikbel committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    bac9d7e View commit details
    Browse the repository at this point in the history
  18. libc printf_render_errno(): do not use strerror()

    Reviewed by:	imp
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44916
    kostikbel committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    aa66995 View commit details
    Browse the repository at this point in the history
  19. pow,powf(3),__ieee754_rem_pio2(f): Avoid negative integer left shift UB

    A compiler clever enough to know that z is positive with a non-zero
    biased exponent could, for example, optimize away the scalbnf(z,n) in
    pow() because behavior for left shift of negative values is undefined.
    `n` is negative when y*log2(|x|) < -0.5.  i.e. |x^y| < sqrt(0.5)
    
    The intended behavior for operator<< in this code is to shift the two's
    complement representation of the first operand.
    
    In the pow() functions, the result is added to the IEEE 754 exponent of
    z = 2^y'.  n may be negative enough to underflow the biased IEEE 754
    exponent below zero, which is manifested in the sign bit of j
    (which would correspond to the IEEE 754 sign bit).
    
    The conversion from uint32_t to int32_t for out-of-int32_t-range values
    is implementation defined.  The assumed behavior of interpreting the
    uint32_t value as a two's complement representation of a signed value
    is already assumed in many parts of the code, such as uses of
    GET_FLOAT_WORD() with signed integers.
    
    This code passes all the current tests, and makes some out of tree
    fuzzing tests pass again rather than hit UB (detailed in the commentary
    of the pull request).
    
    Signed-off-by: Karl Tomlinson <[email protected]>
    Reviewed by: imp, steve kargl, dim
    Pull Request: freebsd/freebsd-src#1137
    karlt authored and bsdimp committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    e75a1bb View commit details
    Browse the repository at this point in the history
  20. checkstyle9.pl: Warn if there's no SOB line

    If there's no Signed-off-by: line, complain.
    
    Sponsored by:		Netflix
    bsdimp committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    ea6f2d7 View commit details
    Browse the repository at this point in the history
  21. ahc(4) clean up old Linux defines

    Linux removed theirs starting in 2018 in commit:
    "scsi: aic7xxx: Fix build using bare-metal toolchain"
    
    Also remove now-useless sys/cdefs.h includes
    
    Signed-off-by: HP van Braam <[email protected]>
    Reviewed by: imp, mav, emaste
    Pull Request: freebsd/freebsd-src#1189
    hpvb authored and bsdimp committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    6597107 View commit details
    Browse the repository at this point in the history
  22. ahc(4)/ahd(4): target mode: cancel outstanding AIOs and INOTs

    When disabling a lun there can still be outstanding AIOs and INOTs, when
    this happens previously the lun would just fail to disable and trying to
    re-use the lun would break the card.
    
    isp(4) in target mode does the same thing when disabling a lun, in
    testing this allows re-starting of ctld(8) with connected initiators and
    allows initiators to gracefully resume afterwards.
    
    Signed-off-by: HP van Braam <[email protected]>
    Reviewed by: imp, mav
    Pull Request: freebsd/freebsd-src#1190
    hpvb authored and bsdimp committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    d31b677 View commit details
    Browse the repository at this point in the history
  23. sys/net/if_bridge: support non-INET kernels

    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1159
    llfw authored and bsdimp committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    65767e6 View commit details
    Browse the repository at this point in the history
  24. sys/netpfil/pf: fix non-INET module build

    pf.ko, when built as a module without 'options INET' but with 'options
    VIMAGE', won't load:
    
    link_elf_obj: symbol vnet_entry_in_loopback_mask undefined
    
    This is because it uses IN_LOOPBACK(), which in the VIMAGE case uses
    INET-specific symbols.
    
    Fix by making this check conditional on #ifdef INET.
    
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1157
    llfw authored and bsdimp committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    93c5ba5 View commit details
    Browse the repository at this point in the history
  25. sys: add conf/std.debug, generic debugging options

    The new sys/conf/std.debug contains the list of debugging options
    enabled by default in -CURRENT, so they don't need to be listed
    individually in every kernel config.
    
    The enabled options are the set of all debug options which were enabled
    for the GENERIC kernel on any platform.  This means some architectures
    now have debugging options enabled in GENERIC which weren't previously
    enabled:
    
    - amd64: [1]
    - arm64: [2]
    - arm: [2]. [3]
    - i386: [1], [2]
    - powerpc: [1], [2], [3]
    - riscv: [2]
    
    [1] ALT_BREAK_TO_DEBUGGER is now enabled.
    [2] BUF_TRACKING, FULL_BUF_TRACKING, and QUEUE_MACRO_DEBUG_TRASH are now
        enabled.
    [3] DEADLKRES is now enabled.
    
    While here, move the documentation for the (commented out) K*SAN options
    for amd64 from GENERIC to NOTES.
    
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1124
    llfw authored and bsdimp committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    4f8f9d7 View commit details
    Browse the repository at this point in the history
  26. sys/*/conf: do not use "../../conf/" when including std.*

    Since config(8) searches sys/conf by default, there's no need to specify
    the full relative path here; replace it by the filename alone.
    
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1124
    llfw authored and bsdimp committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    8a8daea View commit details
    Browse the repository at this point in the history
  27. nanobsd: Set a GPT label for EFI and cfg partitions

    Use efiboot0 for the EFI partition, the nomenclature efiboot + #index
    was taken from bsdinstall (zfsboot).
    
    Use cfg for the cfg partition.  Poudriere firmware images are already
    using this label.
    
    PR: 278480
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1187
    jlduran authored and bsdimp committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    14e3f2d View commit details
    Browse the repository at this point in the history
  28. release: Change vmimage EFI GPT label

    This matches the default bsdinstall nomenclature.
    
    PR: 278480
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1188
    jlduran authored and bsdimp committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    4f223e0 View commit details
    Browse the repository at this point in the history
  29. swapon: Do not overwrite Linux swap header

    Reviewed by: imp, jhb
    Pull Request: freebsd/freebsd-src#1084
    ricardobranco777 authored and bsdimp committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    cf04a77 View commit details
    Browse the repository at this point in the history
  30. zfs: merge openzfs/zfs@1f940de07

    Notable upstream pull request merges:
     #16038 1f940de L2ARC: Cleanup buffer re-compression
     #16093 c183d16 Parallel pool import
     #16094 cd3e6b4 Add zfetch stats in arcstats
     #16103 35bf258 Fix: FreeBSD Arm64 does not build currently
     #16104 4036b8d Refactor dbuf_read() for safer decryption
     #16110 9f83eec Handle FLUSH errors as "expected"
     #16117 c346068 zfs get: add '-t fs' and '-t vol' options
    
    Obtained from:  OpenZFS
    OpenZFS commit: 1f940de
    mmatuska committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    0d4ad64 View commit details
    Browse the repository at this point in the history
  31. bsdinstall/distfetch.c: check environment variables before downloadin…

    …g and handle memory allocation errors
    
    1. Currently, distfetch checks environment variables existence
    when it will use them or in a case (in chdir()) it doesn't check
    at all. As they are necessary to set before doing anything with
    it, check them, if they set or not, before proceeding any further.
    This also avoids extra cleaning when that environment variable
    isn't set.
    
    2. Handle memory allocation error in malloc(PATH_MAX) and replace
    (sizeof const char *) with (sizeof char *). Both are similar and
    const doesn't have a size.
    
    3. Indent the error message a bit in chdir().
    
    Signed-off-by: rilysh <[email protected]>
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1071
    rilysh authored and bsdimp committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    91bdebc View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2024

  1. sockets: inherit SO_ACCEPTFILTER from listener to child

    This is crucial for operation of accept_filter(9).  See added comment.
    
    Fixes:	d29b95e
    glebius committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    a8acc2b View commit details
    Browse the repository at this point in the history
  2. ktrace: Describe CAPFAIL trace point in man page

    Update the ktrace(1) man page to describe the recently improved
    capability failure tracing.
    
    Approved by:	markj (mentor)
    Reviewed by:	markj
    MFC after:	1 month
    Differential Revision:	https://reviews.freebsd.org/D44886
    jakesfreeland committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    4f2ada0 View commit details
    Browse the repository at this point in the history
  3. ktrace: Remove CAPFAIL from default trace points

    The CAPFAIL tracepoint was recently extended to report ECAPMODE
    capability  violations for processes that do not enter capability mode.
    This allows developers that are interested in Capsicumizing their
    programs to determine where violations are being raised.
    
    Previously, CAPFAIL only produced output for processes using Capsicum(4)
    capabilties. Thus, most ktrace users never received log output from the
    trace point. With the recent changes, this is no longer the case.
    
    Having this trace point enabled by default will produce output for all
    processes that use syscalls that are not permitted in capability mode.
    This may lead to confusion for users that are not familiar with the
    feature. Remove KTRFAC_CAPFAIL from ktrace's default points to avoid
    this.
    
    Approved by:	markj (mentor)
    Reviewed by:	markj
    MFC after:	1 month
    Differential Revision:	https://reviews.freebsd.org/D44887
    jakesfreeland committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    f239db4 View commit details
    Browse the repository at this point in the history
  4. Revert "bsdinstall/distfetch.c: check environment variables before do…

    …wnloading and handle memory allocation errors"
    
    This reverts commit 91bdebc. It wasn't
    as ready as I thought
    bsdimp committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    5609315 View commit details
    Browse the repository at this point in the history
  5. Revert "swapon: Do not overwrite Linux swap header"

    This reverts commit cf04a77.This is
    broken on armv7, and closer scrutiny of the reviews shows I was in error
    when I thought it was ready.
    bsdimp committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    feabaf8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e8ec4b5 View commit details
    Browse the repository at this point in the history
  7. MFV: less: Do not trust st_size if it equals zero

    This is a smaller version of upstream
    1fafd968b48e5cea6c85f126d77071a8de707a55 to address the
    issue that less not being able to operate on files
    residing in pseudo-filesystems that advertize a zero
    size value.
    
    PR:		bin/276133
    MFC after:	3 days
    ricardobranco777 authored and delphij committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    cae3362 View commit details
    Browse the repository at this point in the history
  8. kdc: Add restart option

    Add a new kdc_restart rc variable that manages kdc (or krb5kdc) under
    daemon(8). This automatically restarts the kdc should it fail, i.e.
    when it's configured to use LDAP as a backend and cannot connect to its
    LDAP directory.
    
    Set kdc_restart="YES" to auto restart kdc on abnormal termination.
    
    Set kdc_restart_delay="N" to the number of seconds to delay before
    restarting the kdc. The daemon(8) default seconds applies when not set.
    
    Reported by:		Lexi Winter <[email protected]>
    PR:			278395
    Differential Revision:	https://reviews.freebsd.org/D44898
    cschuber committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    9e248b7 View commit details
    Browse the repository at this point in the history
  9. heimdal: Fix compiling hdb ldap as a module

    Fix build when WITH_OPENLDAP defined.
    
    PR:		278430
    Obtained from:	Upstream c1c7da7f79
    cschuber committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    a0d7d68 View commit details
    Browse the repository at this point in the history
  10. ng_pipe: Fix whitespace

    Signed-off-by: Martin Vahlensieck <[email protected]>
    
    Reviewed by:	markj
    MFC after:	2 weeks
    Pull Request:	freebsd/freebsd-src#1181
    Martin Vahlensieck authored and markjdb committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    8512311 View commit details
    Browse the repository at this point in the history
  11. ng_pipe: Remove node when all hooks are disconnected

    This is the behavior described in the man page.
    
    Signed-off-by: Martin Vahlensieck <[email protected]>
    
    Discussed with:	glebius
    Reviewed by:	markj
    MFC after:	2 weeks
    Pull Request:	freebsd/freebsd-src#1181
    Martin Vahlensieck authored and markjdb committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    bb2ab7a View commit details
    Browse the repository at this point in the history
  12. ng_pipe: Replace deprecated random() with prng32_bounded()

    Signed-off-by: Martin Vahlensieck <[email protected]>
    
    MFC after:	2 weeks
    Reviewed by:	markj
    Pull Request:	freebsd/freebsd-src#1181
    Martin Vahlensieck authored and markjdb committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    a3ecf8c View commit details
    Browse the repository at this point in the history
  13. ng_pipe: Do not panic when memory allocations fail

    Signed-off-by: Martin Vahlensieck <[email protected]>
    
    Reviewed by:	markj
    MFC after:	2 weeks
    Pull Request:	freebsd/freebsd-src#1181
    Martin Vahlensieck authored and markjdb committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    d44c780 View commit details
    Browse the repository at this point in the history
  14. dpaa: uma_zcreate() does not fail

    No functional change intended.
    
    MFC after:	1 week
    markjdb committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    9640649 View commit details
    Browse the repository at this point in the history
  15. wg: uma_zcreate() does not fail

    No functional change intended.
    
    MFC after:	1 week
    markjdb committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    b6a0ed7 View commit details
    Browse the repository at this point in the history
  16. udf: uma_zcreate() does not fail

    While here remove an old comment regarding preallocation; it appears to
    refer to an optimization that is almost certainly irrelevant at this
    point.
    
    No functional change intended.
    
    MFC after:	1 week
    markjdb committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    78c51db View commit details
    Browse the repository at this point in the history
  17. khelp: uma_zcreate() does not fail

    No functional change intended.
    
    MFC after:	1 week
    markjdb committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    1e607a0 View commit details
    Browse the repository at this point in the history
  18. busdma: uma_zcreate() does not fail

    No functional change intended.
    
    MFC after:	1 week
    markjdb committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    8ef2c02 View commit details
    Browse the repository at this point in the history
  19. geli.8: add some notes regarding performance tuning

    MFC after:	1 week
    Sponsored by:	Axcient
    Reviewed by:	markj
    Differential Revision: https://reviews.freebsd.org/D44908
    asomers committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    4b79491 View commit details
    Browse the repository at this point in the history
  20. bhyve.8: Remove mention of the -A flag

    It is a no-op on amd64 now and is not implemented on arm64, so let's
    remove mention of it altogether so as to reduce confusion for arm64
    users.
    
    Reviewed by:	corvink, jhb
    Sponsored by:	Innovate UK
    Differential Revision:	https://reviews.freebsd.org/D44737
    markjdb committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    1075847 View commit details
    Browse the repository at this point in the history
  21. vmrun.sh: Stop passing -A to bhyve

    It's a no-op now.
    
    Sponsored by:	Innovate UK
    markjdb committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    63d5f8c View commit details
    Browse the repository at this point in the history
  22. bhyve.8: Document arm64 support

    - Mention the options that are amd64-only.
    - Provide a minimal example for booting an arm64 guest.
    
    Reviewed by:	corvink
    Sponsored by:	Innovate UK
    Differential Revision:	https://reviews.freebsd.org/D44738
    markjdb committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    71b2ba9 View commit details
    Browse the repository at this point in the history
  23. arm64/vmm: Ensure the tlbi has completed

    Ensure the TLB is invalidated before enabling the EL2 MMU. Without
    this the TLB may be in an inconsistant state leading to a possible
    exception when enabling the MMU.
    
    PR:		277559
    Reviewed by:	markj
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D44799
    zxombie committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    ef80df0 View commit details
    Browse the repository at this point in the history
  24. arm64: Check DMAP address is valid in PHYS_IN_DMAP

    When checking if a physical address is in the DMAP region we assume
    all physical addresses between DMAP_MIN_PHYSADDR and DMAP_MAX_PHYSADDR
    are able to be accesses through the DMAP. It may be the case that
    there is device memory in this range that shouldn't be accessed through
    the DMAP mappings.
    
    Add a check to PHYS_IN_DMAP that the translated virtual address is a
    valid kernel address. To support code that already checks the address
    is valid add PHYS_IN_DMAP_RANGE.
    
    PR:		278233
    Reviewed by:	alc, markj
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D44677
    zxombie committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    9d40492 View commit details
    Browse the repository at this point in the history
  25. showconfig: Set MACHINE for src.opts.mk

    Also set MACHINE and MACHINE_ARCH when reading config options from
    src.opts.mk. This ensures any machine-dependent options are reported
    correctly.
    
    Reviewed by:	emaste, imp
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D44838
    zxombie committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    2c35c86 View commit details
    Browse the repository at this point in the history
  26. elf_common.h: Add STO_AARCH64_VARIANT_PCS

    This is used to mark symbols that use a variant procedure call with
    a different calling convention to the main ABI.
    
    Reviewed by:	kib, imp
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D44868
    zxombie committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    d7ac426 View commit details
    Browse the repository at this point in the history
  27. meta.autodep.mk do not override start_utc

    Update meta.autodep.mk
    If included at level 0 it is important not to override start_utc
    sgerraty committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    0135101 View commit details
    Browse the repository at this point in the history
  28. sys/namei.h: move NI_CAP_VIOLATION() macro from namei.h to vfs_lookup.c

    Reviewed by:	emaste, imp, markj
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44931
    kostikbel committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    66df810 View commit details
    Browse the repository at this point in the history
  29. vfs_lookup.c: only call ktrcapfail() if KTRACE is enabled

    Reviewed by:	emaste, imp, markj
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44931
    kostikbel committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    6b0cf2a View commit details
    Browse the repository at this point in the history
  30. syscalls.master: correct return type of {read,write}v

    This was missed when read/write, etc were updated to return ssize_t.
    
    Fixes:		2e83b28 Fix a few syscall arguments to use size_t instead of u_int.
    
    Reviewed by:	imp, kib
    Differential Revision:	https://reviews.freebsd.org/D44930
    brooksdavis committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    78101d4 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2024

  1. Configuration menu
    Copy the full SHA
    c68eed8 View commit details
    Browse the repository at this point in the history
  2. accept_filter: return different errors for non-listener and a busy so…

    …cket
    
    The fact that an accept filter needs to be cleared first before setting to
    a different one isn't properly documented.  The requirement that the
    socket needs already be listening, although trivial, isn't documented
    either.  At least return a more meaningful error than EINVAL for an
    existing filter.  Cover this with a test case.
    glebius committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    19307b8 View commit details
    Browse the repository at this point in the history
  3. Document that gettimeofday() is obsolescent

    Reported by:	kaktus
    Reviewed by:	kaktus, pstef
    MFC after:	3 days
    Differential Revision:	https://reviews.freebsd.org/D23942
    0mp committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    4395d3c View commit details
    Browse the repository at this point in the history
  4. sync.8: Document that the "sync dance" is not a thing

    People still believe that it is essential to run sync(8) a couple of
    times before a reboot/halt. Document that this has not been necessary
    for a long time now.
    
    Reviewed by:	imp, bcr, Pau Amma <[email protected]>
    MFC after:	3 days
    Differential Revision:	https://reviews.freebsd.org/D33233
    0mp committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    177ba18 View commit details
    Browse the repository at this point in the history
  5. checkstyle9: Allow a space between "*" and _*restrict

    Before the change, we would get errors like this:
    
        ERROR: "foo * bar" should be "foo *bar"
        CTSRD-CHERI#369: FILE: foobar.c:369:
        +barbaz(char * __restrict s,
    
    Reviewed by:		des, imp
    Sponsored by:		Klara, Inc.
    Differential Revision:	https://reviews.freebsd.org/D44911
    0mp committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    42255af View commit details
    Browse the repository at this point in the history
  6. kthread: Set *tdptr earlier in kproc_kthread_add()

    See commit ae77041 ("kthread: Set *newtdp earlier in
    kthread_add1()") for details.  That commit was incomplete since
    g_init()'s first call to kproc_kthread_add() will cause
    kproc_kthread_add() to take the `*procptr == NULL` branch, which avoids
    kthread_create().
    
    To ensure that the thread pointer is initialized before the thread
    starts running, we have to start the kernel process with RFSTOPPED.
    We could perhaps go further and use RFSTOPPED only when tdptr != NULL,
    but it's probably better to have consistent behaviour.
    
    Reviewed by:	olce, kib
    Reported by:	[email protected]
    MFC after:	1 week
    Differential Revision:	https://reviews.freebsd.org/D44927
    markjdb committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    d663993 View commit details
    Browse the repository at this point in the history
  7. Skip building libclang_rt when WITHOUT_CLANG is used

    As noted in bug 277096, when building a pkgbase repository using
    WITHOUT_CROSS_COMPILER and WITHOUT_TOOLCHAIN (which sets WITHOUT_CLANG),
    the following residual files are left over:
    
    /usr/lib/clang/18/lib/freebsd/libclang_rt.asan-x86_64.so
    /usr/lib/clang/18/share/asan_ignore_list.txt
    /usr/lib/clang/18/share/cfi_ignore_list.txt
    /usr/lib/clang/18/share/msan_ignore_list.txt
    
    This is because the lib/libclang_rt directory is still descended into,
    even if WITHOUT_CLANG is used. Fix it by not descending into the
    libclang_rt directory in that case.
    
    PR:		277096
    Reported by:	Siva Mahadevan <[email protected]>
    MFC after:	3 days
    DimitryAndric committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    514773a View commit details
    Browse the repository at this point in the history
  8. Revert "nfsd: Fix NFSv4.1/4.2 Claim_Deleg_Cur_FH"

    This reverts commit f300335.
    
    It turns out that the old code was correct and it was wireshark
    that was broken and indicated that the RPC's XDR was bogus.
    Found during IETF bakeathon testing this week.
    Rick Macklem authored and Rick Macklem committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    54c3aa0 View commit details
    Browse the repository at this point in the history
  9. Merge commit 0f329e0246d1 from llvm-project (by Dimitry Andric):

      [sanitizer_symbolizer] Cast arguments for format strings in markup (#89815)
    
      When compiling the common sanitizer libraries, there are many warnings
      about format specifiers, similar to:
    
          compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup.cpp:31:32: warning: format specifies type 'void *' but the argument has type 'uptr' (aka 'unsigned long') [-Wformat]
             31 |   buffer->AppendF(kFormatData, DI->start);
                |                   ~~~~~~~~~~~  ^~~~~~~~~
          compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup_constants.h:33:46: note: format string is defined here
             33 | constexpr const char *kFormatData = "{{{data:%p}}}";
                |                                              ^~
                |                                              %lu
          compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup.cpp:46:43: warning: format specifies type 'void *' but the argument has type 'uptr' (aka 'unsigned long') [-Wformat]
             46 |   buffer->AppendF(kFormatFrame, frame_no, address);
                |                   ~~~~~~~~~~~~            ^~~~~~~
          compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup_constants.h:36:48: note: format string is defined here
             36 | constexpr const char *kFormatFrame = "{{{bt:%u:%p}}}";
                |                                                ^~
                |                                                %lu
          ...
    
      This is because `uptr` is dependent on the platform, and can be either
      `unsigned long long`, `unsigned long`, or `unsigned int`.
    
      To fix the warnings, cast the arguments to the expected type of the
      format strings.
    
    PR:		276104
    Reported by:	pstef
    MFC after:	3 days
    DimitryAndric committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    f08bf5a View commit details
    Browse the repository at this point in the history
  10. bsdinstall: update comment related to pkg

    pkg_add has been gone since 2013(?).  Refer to pkg(8) instead.
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	3 days
    Reviewed by:	jrtc27
    Differential Revision: https://reviews.freebsd.org/D44946
    Bjoern A. Zeeb authored and Bjoern A. Zeeb committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    ad31d47 View commit details
    Browse the repository at this point in the history
  11. if_bridge: Minor style fixes

    And more comments on the #ifdef INET blocks to improve readability.
    
    While here, revert the order of two prototypes to produce minimal diff
    compared to stable branches.
    
    MFC with:	65767e6
    gmshake committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    7358517 View commit details
    Browse the repository at this point in the history
  12. tftpd: Use size_t where appropriate.

    * Limit the use of `ssize_t` to only where it's needed.
    * Correct one case of `int` being used for a length.
    
    MFC after:	1 week
    Sponsored by:	Klara, Inc.
    Reviewed by:	kevans
    Differential Revision:	https://reviews.freebsd.org/D44954
    dag-erling committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    1ed44fc View commit details
    Browse the repository at this point in the history
  13. tftpd: Clean up the tests.

    MFC after:	1 week
    Sponsored by:	Klara, Inc.
    Reviewed by:	kevans
    Differential Revision:	https://reviews.freebsd.org/D44955
    dag-erling committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    7ab7ecf View commit details
    Browse the repository at this point in the history
  14. tftpd: Check the server status after each test.

    * In the setup phase, wait for the server to start (or fail to start)
      before proceeding with the test.  This makes it possible to write test
      cases that don't expect a response from the server without ending up
      in a race over the server PID file.
    * After running each test, wait up to 30 seconds for the server to exit
      and check that the exit status matches what the test case says to
      expect (usually 0).
    * We still kill and collect the server in the cleanup phase, in case the
      test ended early.
    
    MFC after:	1 week
    Sponsored by:	Klara, Inc.
    Reviewed by:	kevans
    Differential Revision:	https://reviews.freebsd.org/D44956
    dag-erling committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    83a6e98 View commit details
    Browse the repository at this point in the history
  15. tftpd: Immediately reject any request shorter than 4 bytes.

    MFC after:	1 week
    Sponsored by:	Klara, Inc.
    Reviewed by:	kevans
    Differential Revision:	https://reviews.freebsd.org/D44957
    dag-erling committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    9f231af View commit details
    Browse the repository at this point in the history
  16. nfscl: Revert part of commit 196787f

    Commit 196787f erroneously assumed that the client code for
    Open/Claim_deleg_cur_FH was broken, but it was not.
    It was actually wireshark that was broken and indicated
    that the correct XDR was bogus.
    
    This reverts the part of 196787f that changed the arguments for
    Open/Claim_deleg_cur_FH.
    
    Found during the IETF bakeathon testing event this week.
    
    MFC after:	3 days
    Rick Macklem authored and Rick Macklem committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    8efba70 View commit details
    Browse the repository at this point in the history
  17. Revert "config.mk: Add MK_VIMAGE knob"

    This commit broke "make makeman" checks in github CI due to a lack of
    option description files.  The split between VIMAGE and VIMAGE_SUPPORT
    is not clearly justified and the code is broken because there is no
    opt_vimage.h (it's in opt_global.h).
    
    This reverts commit 22ca6db.
    brooksdavis committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    68cbb07 View commit details
    Browse the repository at this point in the history
  18. release: remove the RPI CM4s .dtb

    This isn't actually packaged by the sysutils/rpi-firmware port, so we
    cannot include it in the image.  Fix the RPI release build until an
    interested party adds it to the port and packages are available.
    
    Reported by:	cperciva
    kevans91 committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    9245ced View commit details
    Browse the repository at this point in the history
  19. nvmecontrol: Flesh out nvmecontrol format information

    The format command takes a number of different parameters. Include a
    brief summary of what the values mean, though since the driver's support
    for metadata is at best weak, 0's are almost always used for values
    other than -f format. Add an example that ties it all together.
    
    Sponsored by:		Netflix
    Reviewed by:		[email protected], chuck
    Differential Revision:	https://reviews.freebsd.org/D44958
    bsdimp committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    ce3b53f View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2024

  1. CTL: READ(6) should be allowed on CD devices

    DOS ASPI drivers use this, with this change applied it is possible to
    load a DOS ASPI CDROM driver and run the Windows 98 installer.
    
    Signed-off-by: HP van Braam <[email protected]>
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1202
    hpvb authored and bsdimp committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    f0e59ec View commit details
    Browse the repository at this point in the history
  2. nfscl: Do not use nfso_own for delayed nfsrpc_doclose()

    When an initial attempt to close an NFSv4 lock returns NFSERR_DELAY,
    the open structure is put on a list for delayed closing.  When this
    is done, the nfso_own field is set to NULL, so it cannot be used by
    nfsrpc_doclose().
    
    Without this patch, the NFSv4 client can crash when a NFSv4 server
    replies NFSERR_DELAY to a Close operation.  Fortunately, most extant
    NFSv4 servers do not do this.  This patch avoids the crash for any
    that do return NFSERR_DELAY for Close.
    
    Found during a IETF bakeathon testing event this week.
    
    MFC after:	5 days
    Rick Macklem authored and Rick Macklem committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    6251027 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9b10aa4 View commit details
    Browse the repository at this point in the history
  4. date: Add support for nanoseconds

    This patch introduces support for a conversion specification for
    nanoseconds.
    
    The format of %N is meant to be compatible with that of GNU date.
    
    The nanoseconds conversion specification is implemented directly in
    date(1) instead of libc (in strftime(3)) to avoid introducing
    non-standard functions to libc at this time and modifying struct tm.
    
    Apart from introducing the nanoseconds conversion specification, this
    patch brings the following changes:
    
    - The "ns" format for ISO 8061 dates is now unlocked. E.g., date -Ins
      prints:
          2024-04-22T12:20:28,763742224+02:00
    - The -r flag when fed a file is now aware of the nanosecond part of the last
      modification time.
    - date(1) is now able to set the time with nanosecond precision. It is
      not possible as of now to do that by specifying nanoseconds directly
      via the command-line arguments. Instead, the -r flag can be used.
    - date(1) is now using the clock_gettime(3) family of functions instead
      of ctime(3) family of functions where possible.
    
    Reviewed by:	des, markj
    Sponsored by:	Klara, Inc.
    Differential Revision:	https://reviews.freebsd.org/D44905
    0mp committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    eeb04a7 View commit details
    Browse the repository at this point in the history
  5. style.9: Document the existence of tools/build/checkstyle9.pl

    MFC after:	3 days
    Sponsored by:	Klara, Inc.
    0mp committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    5626f9e View commit details
    Browse the repository at this point in the history
  6. date: Fix tests by initializing timespec structure

    The tests related to nanosecond support were failing on amd64 due to
    uninitialized timespec structure.
    
    Fixes:		eeb04a7 date: Add support for nanoseconds
    Reviewed by:	markj
    Sponsored by:	Klara, Inc.
    Differential Revision:	https://reviews.freebsd.org/D44975
    0mp committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    7b390cb View commit details
    Browse the repository at this point in the history
  7. script: minor style improvements

    Fix some nits pointed out by checkstyle9.pl in advance of functional
    changes to script(1).
    
    Reviewed by:	des
    Sponsored by:	Modirum MDPay
    Sponsored by:	Klara, Inc.
    Differential Revision:	https://reviews.freebsd.org/D44167
    Xavier Beaudouin authored and kevans91 committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    4459abe View commit details
    Browse the repository at this point in the history
  8. script: handle terminal resize on SIGWINCH

    Add a -w flag to forward terminal resize events on to the child, which
    can be useful in some circumstances to avoid terminal corruption.
    
    Reviewed by:	des
    Co-authored-by:	Xavier Beaudouin <[email protected]>
    Sponsored by:	Modirum MDPay
    Sponsored by:	Klara, Inc.
    Differential Revision:	https://reviews.freebsd.org/D44167
    kevans91 committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    8ceac8e View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2024

  1. krpc: Ref cnt the client structures for TLS upcalls

    A crash occurred during testing, where the client structures had
    already been free'd when the upcall thread tried to lock them.
    
    This patch acquires a reference count on both of the structures
    and these are released when the upcall is done, so that the
    structures cannot be free'd prematurely.  This happened because
    the testing is done over a very slow vpn.
    
    Found during a IETF bakeathon testing event this week.
    
    MFC after:	5 days
    Rick Macklem authored and Rick Macklem committed Apr 27, 2024
    Configuration menu
    Copy the full SHA
    4ba444d View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2024

  1. ldconfig: document changed default byte-order

    Document that the hints file is created in little-endian byte-order
    by default now. The -B option can be used to create a big-endian hints
    file. Currently, both formats are accepted by the run-time linker on
    all architectures.
    
    MFC after:	3 days
    Relnotes:	yes
    stesser authored and bsdjhb committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    ceb6d49 View commit details
    Browse the repository at this point in the history
  2. man: do not ignore the exit status of roff tools

    PR:		223516
    Approved by:	emaste, bapt
    Differential Revision:	https://reviews.freebsd.org/D44798
    wosch authored and bsdjhb committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    4973acc View commit details
    Browse the repository at this point in the history
  3. binmiscctl.8: Remove a double word

    - s/the the/the/
    
    MFC after:	3 days
    gbergling authored and bsdjhb committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    759886d View commit details
    Browse the repository at this point in the history
  4. nvmecontrol(8): Remove a double word in a source code comment

    - s/the the/the/
    
    MFC after:	3 days
    gbergling authored and bsdjhb committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    d2899bd View commit details
    Browse the repository at this point in the history
  5. tarfs(5): Grammar fix for a source code comment

    - s/the the/of the/
    
    MFC after:i	3 days
    gbergling authored and bsdjhb committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    425384c View commit details
    Browse the repository at this point in the history
  6. timerfd.2: Remove a double word

    - s/is is/is/
    
    MFC after:	3 days
    gbergling authored and bsdjhb committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    1e2f1cf View commit details
    Browse the repository at this point in the history
  7. ifconfig(8): Fix two typos in source code comments

    - s/the the/the/
    
    MFC after:	3 days
    gbergling authored and bsdjhb committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    cd28e59 View commit details
    Browse the repository at this point in the history
  8. mwlstats: Fix a typo in an error message

    - s/the the/the/
    
    MFC after:	5 days
    gbergling authored and bsdjhb committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    9aad8fb View commit details
    Browse the repository at this point in the history
  9. sys: Remove two double words in source code comments

    - s/of of/of/
    
    MFC after:	5 days
    gbergling authored and bsdjhb committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    1b98b75 View commit details
    Browse the repository at this point in the history
  10. arm64: Remove a double word in a source code comment

    - s/of of/of/
    
    MFC after:	3 days
    gbergling authored and bsdjhb committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    bfb914b View commit details
    Browse the repository at this point in the history
  11. NOTES: Remove a double word in comment

    - s/of of/of/
    
    MFC after:	3 days
    gbergling authored and bsdjhb committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    88fac8f View commit details
    Browse the repository at this point in the history
  12. bhnd(4): Remove a double word in a source code comment

    - s/of of/of/
    
    MFC after:	3 days
    gbergling authored and bsdjhb committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    2c3494b View commit details
    Browse the repository at this point in the history
  13. usb(4): Remove a double word in a source code comment

    - s/of of/of/
    
    MFC after:	3 days
    gbergling authored and bsdjhb committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    2c23bbd View commit details
    Browse the repository at this point in the history
  14. safe(4): Remove a double word in a source code comment

    - s/of of/of/
    
    MFC after:	3 days
    gbergling authored and bsdjhb committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    0aaf639 View commit details
    Browse the repository at this point in the history
  15. i386: Fix a typo in a source code comment

    - s/slighly/slightly/
    
    MFC after:	1 week
    gbergling authored and bsdjhb committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    ebeda08 View commit details
    Browse the repository at this point in the history
  16. ds1307(4): Fix a typo in a source code comment

    - s/slighly/slightly/
    
    MFC after:	1 week
    gbergling authored and bsdjhb committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    f0e2ebb View commit details
    Browse the repository at this point in the history
  17. rtld(1): minor clarification for LD_STATIC_TLS_EXTRA

    Also properly style the paragraph.
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	3 days
    kostikbel authored and bsdjhb committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    00d3a90 View commit details
    Browse the repository at this point in the history
  18. Merge llvm-project release/18.x llvmorg-18.1.4-0-ge6c3289804a6

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18.1.4-0-ge6c3289804a6.
    
    PR:		276104
    MFC after:	3 days
    DimitryAndric authored and bsdjhb committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    81df346 View commit details
    Browse the repository at this point in the history
  19. libpmc: Import AMD Zen 4 PMU events

    MFC after:	1 week
    amotin authored and bsdjhb committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    39896e4 View commit details
    Browse the repository at this point in the history
  20. wg: Add netmap support

    When in netmap (emulated) mode, wireguard interfaces prepend or strip a
    dummy ethernet header when interfacing with netmap.  The netmap
    application thus sees unencrypted, de-encapsulated frames with a fixed
    header.
    
    In this mode, netmap hooks the if_input and if_transmit routines of the
    ifnet.  Packets from the host TX ring are handled by wg_if_input(),
    which simply hands them to the netisr layer; packets which would
    otherwise be tunneled are intercepted in wg_output() and placed in the
    host RX ring.
    
    The "physical" TX ring is processed by wg_transmit(), which behaves
    identically to wg_output() when netmap is not enabled, and packets
    appear in the "physical" RX ring by hooking wg_deliver_in().
    
    Reviewed by:	vmaffione
    MFC after:	1 month
    Sponsored by:	Klara, Inc.
    Sponsored by:	Zenarmor
    Differential Revision:	https://reviews.freebsd.org/D43460
    markjdb authored and bsdjhb committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    b24b0d5 View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2024

  1. wg tests: Add a simple regression test case for netmap support

    MFC after:	1 month
    Sponsored by:	Klara, Inc.
    Sponsored by:	Zenarmor
    markjdb authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    bb2efb0 View commit details
    Browse the repository at this point in the history
  2. graid3: Fix teardown in g_raid3_try_destroy()

    Commit 33cb9b3 replaced a g_raid3_destroy_device() call with a
    g_raid3_free_device() call, which was incorrect and could lead to a
    panic if a RAID3 GEOM failed to start (e.g., due to missing disks).
    
    Reported by:	graid3 tests
    Fixes:		33cb9b3 ("graid3: Fix teardown races")
    MFC after:	3 days
    Sponsored by:	Klara, Inc.
    markjdb authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    707ec89 View commit details
    Browse the repository at this point in the history
  3. ldconfig: fix man-page - duplicate dot at end of sentence

    Reported by:	gbe
    stesser authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    86d1098 View commit details
    Browse the repository at this point in the history
  4. adduser: A few more improvements.

    MFC after:	1 week
    Reviewed by:	jrm
    Differential Revision:	https://reviews.freebsd.org/D44871
    dag-erling authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    09b5a67 View commit details
    Browse the repository at this point in the history
  5. ahc(4): resolve some minor nits

    In ahc_init(), qoutfifo is already assigned to effectively the same
    value a couple lines up, except in the first assignment it uses the
    proper definition; keep the more descriptive assignment.
    
    ahc_targetcmd_offset() gets the offset wrong entirely; as per the
    area of ahc_init() this diff also touches, targetcmds is laid out first
    in the shared map and it's followed by the qoutfifo.  As a result, we'd
    generally be getting negative offsets here.  We can't actually do a
    partial sync anyways, so there was no consequence to getting this wrong.
    
    Reviewed by:	imp, mav
    Differential Revision:	https://reviews.freebsd.org/D44859
    kevans91 authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    8b511da View commit details
    Browse the repository at this point in the history
  6. ahc(4)/ahd(4): fix target mode on ARM

    One of the comments in ahc_execute_scb() notes that the CAM direction is
    actually w.r.t. the initiator.  As a consequence, all of our sync ops
    end up being wrong because the direction is flipped from that of the
    transfer.  Fix it to do proper invalidation and avoid spewing random
    garbage out on the SCSI bus.
    
    Reported and tested by:	HP van Braam <[email protected]>
    Reviewed by:	imp, mav
    Differential Revision:	https://reviews.freebsd.org/D44860
    kevans91 authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    68840f7 View commit details
    Browse the repository at this point in the history
  7. vmm(4): Fix a typo in a kernel message

    - s/cant/can't/
    
    MFC after:	1 week
    gbergling authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    ebba87d View commit details
    Browse the repository at this point in the history
  8. wtap: Fix typos in kernel messages

    - s/cant/can't/
    
    MFC after:	1 week
    gbergling authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    d00e014 View commit details
    Browse the repository at this point in the history
  9. geom(4): Fix a typo in a source code comment

    - s/cant/can't/
    
    MFC after:	3 days
    gbergling authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    b1e86a7 View commit details
    Browse the repository at this point in the history
  10. uipc_domain: Fix a typo in a source code comment

    - s/cant/can't/
    
    MFC after:	3 days
    gbergling authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    46c6900 View commit details
    Browse the repository at this point in the history
  11. freescale: Fix a typo in a source code comment

    - s/cant/can't/
    
    MFC after:	3 days
    gbergling authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    628b98a View commit details
    Browse the repository at this point in the history
  12. Revert "dtrace: make 'ring' and 'fill' policies imply 'noswitch' flag"

    This reverts commit e92491d.
    
    The general idea looked good to me.  In particular, it allowed to save
    some memory and avoid memory allocation failures when a large buffer
    size was requested along with ring and fill policies.
    
    But I didn't take into account that the second, supposedly unused
    buffer, was actually used as the scratch buffer.  The scratch buffer is
    used as a temporary space for DTrace subroutines like copyin, copyinstr,
    and alloca.
    
    I think that the change can be fixed by allocating a separate smaller
    buffer for the scratch buffer, but that fix would require more work than
    I am able to do now.  Hence the revert.
    
    Reported by:	Domagoj Stolfa
    Diagnosed by:	Domagoj Stolfa, markj
    MFC after:	immediately
    avg-I authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    4aa5d34 View commit details
    Browse the repository at this point in the history
  13. mfc-candidates: move pretty printing into lua

    d51c590 moved the MFC hash matching logic into a lua utility
    script but left the output formatting in the shell script. Simplify this
    slightly by just printing the formatted output from lua.
    
    Sponsored by:	The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D44836
    emaste authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    fcc8b6f View commit details
    Browse the repository at this point in the history
  14. bsd.subdir.mk: improve SUBDIR.${MK_FOO} advice

    - Remove superfluous whitespace by removing trailing whitespace
      before `\` (line continuation character)
    - Quote `SUBDIR.` to clarify the fact that this is a variable
      reference--not the end of a sentence.
    ngie-eign authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    06e62ac View commit details
    Browse the repository at this point in the history
  15. OpenSSL: use the upstream provided version.map files for the fips/leg…

    …acy providers
    
    This change introduces a static copy of the fips and legacy linker version maps
    generated by the OpenSSL 3.0.13 build process.
    
    This unbreaks the fips and legacy providers by not exposing unnecessary
    symbols from the fips/legacy provider shared objects shared with other
    providers (base, default) and libcrypto.
    
    More discussion:
    
    Prior to this change, loading the fips provider indirectly from a
    FreeBSD 14.0-CURRENT and 15.0-CURRENT host would result in a
    process-wide deadlock when invoking select OpenSSL APIs
    (CONF_modules_load* in this particular example).
    
    Speaking with the upstream maintainers [1], it became obvious that
    the FreeBSD base system was incorrectly building/linking the fips
    provider, resulting in a symbol collision at runtime, and thus a
    process-wide deadlock in specific circumstances. The fips provider
    would deadlock when trying to acquire a write lock on internal
    structures which should have only been available to the base and
    default providers, as certain preprocessor ifdefs only allow specific
    internal calls to be made with the base and default providers.
    
    1. openssl/openssl#24202
    
    Differential Revision:	https://reviews.freebsd.org/D44892
    ngie-eign authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    299d24e View commit details
    Browse the repository at this point in the history
  16. Revert "OpenSSL: use the upstream provided version.map files for the …

    …fips/legacy providers"
    
    This change is still under review and should not have been merged
    directly to main (yet).
    
    This is a case and point for using `push.default` to nothing instead of
    matching or simple.
    
    This reverts commit 42ce242.
    ngie-eign authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    aca11fc View commit details
    Browse the repository at this point in the history
  17. Add a few missed libclang_rt files to ObsoleteFiles.inc

    PR:		276104
    Reported by:	Mark Millard <[email protected]>
    MFC after:	3 days
    DimitryAndric authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    5afdae0 View commit details
    Browse the repository at this point in the history
  18. Enable L1SS handling on RPI4 pcib

    Thanks to @kevans91 for pointing me in the right direction. FreeBSD had
    the same bug as Linux (see
    https://bugzilla.kernel.org/show_bug.cgi?id=217276) where the ultimate
    solution was to honor the brcm,enable-l1ss FDT property.
    
    In current versions of the dtb files this property has been added by
    default.
    
    Without this on many, many pcie addin cards the pcib will Serror when
    trying to assert the clreq# pin on the pcie bus. Many cards do not have
    these hooked up.
    
    PR:		260131, 277638, 277605
    Reviewed-by:	emaste
    Signed-off-by: HP van Braam <[email protected]>
    Pull-request: freebsd/freebsd-src#1179
    hpvb authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    9e4d347 View commit details
    Browse the repository at this point in the history
  19. riscv: create a convenience composite macro

    Define PTE_TO_VM_PAGE to compose the PHYS_TO_VM_PAGE and PTE_TO_PHYS
    macros. Use it where appropriate, and drop some variables that it
    makes unnecessary.
    
    Reviewed by:	jhb (previous version)
    Differential Revision:	https://reviews.freebsd.org/D44700
    Doug Moore authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    04f9e6c View commit details
    Browse the repository at this point in the history
  20. thread: Simplify sanitizer integration with thread creation

    fork() may allocate a new thread in one of two ways: from UMA, or cached
    in a freed proc that was just allocated from UMA.  In either case, KASAN
    and KMSAN need to initialize some state; in particular they need to
    initialize the shadow mapping of the new thread's stack.
    
    This is done differently between KASAN and KMSAN, which is confusing.
    This patch improves things a bit:
    - Add a new thread_recycle() function, which moves all kernel stack
      handling out of kern_fork.c, since it doesn't really belong there.
    - Then, thread_alloc_stack() has only one local caller, so just inline
      it.
    - Avoid redundant shadow stack initialization: thread_alloc()
      initializes the KMSAN shadow stack (via kmsan_thread_alloc()) even
      through vm_thread_new() already did that.
    - Add kasan_thread_alloc(), for consistency with kmsan_thread_alloc().
    
    No functional change intended.
    
    Reviewed by:	khng
    MFC after:	1 week
    Differential Revision:	https://reviews.freebsd.org/D44891
    markjdb authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    730668c View commit details
    Browse the repository at this point in the history
  21. ng_hci: Add sockaddr validation to sendto()

    ng_btsocket_hci_raw_send() wasn't verifying that the destination address
    specified by sendto() is large enough to fill a struct sockaddr_hci.
    Thus, when copying the socket address into an mbuf,
    ng_btsocket_hci_raw_send() may read past the end of the input sockaddr
    while copying.
    
    In practice this is effectively harmless since
    ng_btsocket_hci_raw_output() only uses the address to identify a
    netgraph node.
    
    Reported by:	Oliver Sieber <[email protected]>
    MFC after:	1 week
    Sponsored by:	The FreeBSD Foundation
    markjdb authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    a4d3342 View commit details
    Browse the repository at this point in the history
  22. if_bridge: clean up INET/INET6 handling

    The if_bridge contains several instances of:
    
    	if (AF_INET code ...
    	#ifdef INET6
    	    AF_INET6 code ...
    	#endif
    	) {
    		...
    
    Clean this up by adding a couple of macros at the top of the file that
    are conditionally defined based on whether INET and/or INET6 are enabled,
    which makes the code more readable and easier to maintain.
    
    No functional change intended.
    
    Reviewed by:	zlei, markj
    MFC after:	1 week
    Pull Request:	freebsd/freebsd-src#1191
    llfw authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    b38e3e6 View commit details
    Browse the repository at this point in the history
  23. thread: Add a missing include of asan.h

    I didn't notice this during testing because invariants-enabled kernels
    implicitly include asan.h via kassert.h.
    
    Reported by:	Lexi Winter <[email protected]>
    Fixes:		800da34 ("thread: Simplify sanitizer integration with thread creation")
    markjdb authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    fa772bb View commit details
    Browse the repository at this point in the history
  24. mfc-candidates: use stable/14 as default MFC-to branch

    This tool is typically invoked from within a working tree containing the
    desired MFC target branch, which is detected automatically.  It also has
    a default for when it is invoked from elsewhere.  Switch the default to
    the most recent branch, stable/14.
    
    Sponsored by:	The FreeBSD Foundation
    emaste authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    228963d View commit details
    Browse the repository at this point in the history
  25. libcxxrt: define SHLIBDIR before including bsd.own.mk

    Otherwise bsd.own.mk overrides it, causing libcxxrt.so.1 to be
    erroneously installed into /usr/lib.
    
    Also add an ObsoleteFiles.inc entry, for removing the bad copy.
    
    Reported by:	Josef 'Jeff' Sipek <[email protected]>
    Fixes:		da77a1b
    DimitryAndric authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    a7a3e51 View commit details
    Browse the repository at this point in the history
  26. adduser: Fix a syntax error

    Reported by:	Jose Luis Duran <[email protected]>
    Fixes:		b373338
    MFC after:	1 week
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D44871
    Jehops authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    10b7c6f View commit details
    Browse the repository at this point in the history
  27. geli: add a read-only kern.geom.eli.use_uma_bytes sysctl

    It reports the value of the g_eli_alloc_sz variable.  Allocations of
    this size or less will use UMA.  Larger allocations will use malloc.
    Since malloc is slower, it is useful for users to know this variable so
    they can avoid such allocations.  For example, ZFS users can set
    vfs.zfs.vdev.aggregation_limit to this value.
    
    MFC after:	1 week
    Sponsored by:	Axcient
    Reviewed by:	markj, imp
    Differential Revision: https://reviews.freebsd.org/D44904
    asomers authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    344bab2 View commit details
    Browse the repository at this point in the history
  28. libthr: always use __libc_interposing_slot()

    Use __libc_interposing_slot() in favor of __libsys_interposing_slot() so
    that the interposing interface is entierly between libc and libthr with
    libsys only involved as an implementation detail.
    
    Reviewed by:	kib
    Differential Revision:	https://reviews.freebsd.org/D44880
    brooksdavis authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    b815d6d View commit details
    Browse the repository at this point in the history
  29. Make __libsys_interposing_slot libsys only

    Reviewed by:	kib
    Differential Revision:	https://reviews.freebsd.org/D44881
    brooksdavis authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    67856e6 View commit details
    Browse the repository at this point in the history
  30. src.conf.5: rebuild after WITH_NVME changes

    WITH_NVME is no longer marked broken on armv7, riscv64, or powerpc.
    
    Fixes:		2fda3ab WITH_NVME: Remove from broken.
    Differential Revision:	https://reviews.freebsd.org/D44850
    brooksdavis authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    20c9114 View commit details
    Browse the repository at this point in the history
  31. openssl: don't export nonexistant symbols

    These are all OpenSSL 1.1.0 and 1.1.1 symbols that aren't present in our
    OpenSSL 3.0 builds.
    
    Reviewed by:	emaste
    Differential Revision:	https://reviews.freebsd.org/D44249
    brooksdavis authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    f2514aa View commit details
    Browse the repository at this point in the history
  32. libsys/arm: make vfork less of an outlier

    Following the pattern of other architectures, make __sys_vfork the main
    symbol and _vfork and vfork weak aliases.  This avoids the need to
    special case vfork in the generated list of symbols.
    
    Differential Revision:	https://reviews.freebsd.org/D44330
    brooksdavis authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    5d2bd4d View commit details
    Browse the repository at this point in the history
  33. libcxxrt: align more with libc/Makefile

    Use src.opts.mk instead of bsd.own.mk and define PACKAGE first.
    
    Fixes:		da77a1b libcxxrt: don't export nonexistant symbols
    brooksdavis authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    c70dd9e View commit details
    Browse the repository at this point in the history
  34. geli.8: minor proofreading

    MFC after:	3 days
    Sponsored by:	Axcient
    Reviewed by:	imp, pauamma (manpages)
    Differential Revision: https://reviews.freebsd.org/D44907
    asomers authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    7cbace0 View commit details
    Browse the repository at this point in the history
  35. libipsec: make const-correct

    - add const to the appropriate places in the libipsec public API and the
      relevant internal functions needed to support that.
    
    - replace caddr_t with c_caddr_t in ipsec_dump_policy()
    
    - update the ipsec_dump_policy manpage to use c_caddr_t (this manpage
      was already wrong as it had "char *" instead of caddr_t previously).
    
    While here, update pfkeyv2.h to not cast away const in the PFKEY_*()
    macros.
    
    This should not cause any ABI changes as the actual types have not
    changed.
    
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1099
    llfw authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    e619c3a View commit details
    Browse the repository at this point in the history
  36. linux: ignore setsockopt(IPV6_RECVERR)

    Under Linux, the socket options IP_RECVERR and IPV6_RECVERR are used to
    receive socket errors via a dedicated 'error queue' which can be
    retrieved via recvmsg().  FreeBSD does not support this functionality.
    
    For IPv4, the sysctl compat.linux.ignore_ip_recverr can be set to 1 to
    silently ignore attempts to set IP_RECVERR and return success to the
    application, which is wrong, but is required for (among other things)
    a functional DNS client in recent versions of glibc.
    
    Add support for ignoring IPV6_RECVERR, controlled by the same sysctl.
    This fixes DNS in Linux when using IPv6 resolvers.
    
    Reviewed by: imp, Jose Luis Duran
    Pull Request: freebsd/freebsd-src#1118
    llfw authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    8d47b9c View commit details
    Browse the repository at this point in the history
  37. package: move hv_{vss,kvp}_daemon into hyperv-tools

    Reviewed by: imp, manu
    Pull Request: freebsd/freebsd-src#1170
    llfw authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    8ad80ea View commit details
    Browse the repository at this point in the history
  38. package: move cron into its own package

    Reviewed by: imp, manu, Mina Galic
    Pull Request: freebsd/freebsd-src#1172
    llfw authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    449489a View commit details
    Browse the repository at this point in the history
  39. package: add DESC and COMMENT for cron package

    Reviewed by: imp, manu, Mina Galic
    Pull Request: freebsd/freebsd-src#1172
    llfw authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    b6a6ff8 View commit details
    Browse the repository at this point in the history
  40. share/examples: move examples into appropriate packages

    Allow a new variable SE_xxxPACKAGE to be used to place an example group
    into a package.
    
    Move the following examples into existing appropriate packages:
    
    - bhyve examples into FreeBSD-bhyve
    - bootforth examples into FreeBSD-bootloader
    - csh examples into FreeBSD-csh
    - ipfw examples into FreeBSD-ipfw
    - jail examples into FreeBSD-jail
    - pf examples into FreeBSD-pf
    - ppp examples into FreeBSD-ppp
    - printing examples into FreeBSD-lp
    - uefisign examples into FreeBSD-efi-tools
    - ypldap examples into FreeBSD-yp
    - hast examples into FreeBSD-hast
    
    Move all other examples into the new 'FreeBSD-examples' package.
    
    This removes a significant number of files from the FreeBSD-utilities
    package.
    
    Reviewed by: imp, manu
    Pull Request: freebsd/freebsd-src#1176
    llfw authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    4481979 View commit details
    Browse the repository at this point in the history
  41. umount: Support partitions & slices with -d option

    Signed-off-by: Ricardo Branco <[email protected]>
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1183
    ricardobranco777 authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    1c5fe5d View commit details
    Browse the repository at this point in the history
  42. alc(4): disable MSI-X by default on Killer cards

    Several users with alc(4)-based "Killer" Ethernet cards have reported
    issues with this driver not passing traffic, which are solved by
    disabling MSI-X using the provided tunable.
    
    To work around this issue, disable MSI-X by default on this card.
    
    This is done by having msix_disable default to 2, which means
    "auto-detect".  The user can still override this to either 0 or 1 as
    desired.
    
    Since these are slow (1Gbps) Ethernet ICs used in low-end systems, it's
    unlikely this will cause any practical performance issues; on the other
    hand, the card not working by default likely causes issues for many new
    FreeBSD users who find their network port doesn't work and have no idea
    why.
    
    PR:		230807
    MFC after:	1 week
    
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1185
    llfw authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    67dbdc8 View commit details
    Browse the repository at this point in the history
  43. ifconfig tunnelfib is implemented in wg(4)

    MFC After: 1 week
    Reviewed by: imp, zlei, kevans
    Pull Request: freebsd/freebsd-src#1186
    gshapiro authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    0dcd54c View commit details
    Browse the repository at this point in the history
  44. swab.c(libc): use a simplified version of byte swapping

    This version of swab function simplifies the logic of swapping adjacent
    bytes. Previous version of swab() used an arbitrary unrolling, which was
    relevant back in the day but unnecessary for modern compilers, as if the
    input size is known at compile time, they can do it automatically.
    
    This version of swab() is inspired by musl.
    A similar version can be found at: https://github.com/openbsd/src/blob/master/lib/libc/string/swab.c
    
    Signed-off-by: rilysh <[email protected]>
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1086
    rilysh authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    0b05154 View commit details
    Browse the repository at this point in the history
  45. zfsbootcfg(8), zpool_influxdb(8): move to the zfs package

    These tools are only useful on a system running ZFS.
    
    Reviewed by: imp, manu
    Pull Request: freebsd/freebsd-src#1175
    llfw authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    71d682f View commit details
    Browse the repository at this point in the history
  46. Remove WITHOUT_CAPSICUM build support

    Capsicum is non-optional as of c24c117 ("Remove
    WITHOUT_{CAPSICUM,CASPER} options").
    
    `#ifndef WITHOUT_CAPSICUM` is left in the source for the benefit of
    downstream consumers, but is never defined in FreeBSD.
    
    Reviewed by:	oshogbo
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D42077
    emaste authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    2107d4f View commit details
    Browse the repository at this point in the history
  47. src.conf: regen after 91d35fb, WITHOUT_CAPSICUM removal

    Sponsored by:	The FreeBSD Foundation
    emaste authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    a98c00c View commit details
    Browse the repository at this point in the history
  48. Update manual page references and macros to align to mandoc syntax

    xlocale.3: Comment out reference to atof_l(3), atoi_l(3), atol_l(3), atoll_l(3)
      These manual page references do not exist.
    
    lagg.4: Change the reference for /etc/rc.conf from a reference link
      .Xr -> .Pa based on the context within the manual page it is used.
    
    buf.9: Remove .Xr entries from the file
      The buf.9 manual page contains a commented out .Xr reference.
      The <filmmein> 9 entry is a placeholder and has been removed for
      clarity.
    
    Reviewed by:	mhorne
    Pull Request:	freebsd/freebsd-src#1114
    chrisdavidson authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    0d8b6f0 View commit details
    Browse the repository at this point in the history
  49. ieee80211_vap(9): fix the title

    MFC after:	3 days
    mhorne authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    118043f View commit details
    Browse the repository at this point in the history
  50. Support ARP for 802 networks

    This is used by 802.3 Ethernet.  (Also be used by 802.4 Token Bus and
    802.5 Token Ring, but we don't support those.)
    
    This was accidentally removed along with FDDI support in commit
    0437c8e, presumably because comments implied it was used only by
    FDDI or Token Ring.
    
    Fixes: 0437c8e ("Remove support for FDDI networks.")
    Reviewed-by: emaste
    Signed-off-by: Denny Page <[email protected]>
    Pull-request: freebsd/freebsd-src#1166
    dennypage authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    264729b View commit details
    Browse the repository at this point in the history
  51. kern_thread.c: remove unneeded include of sys/param.h

    Handled by sys/systm.h already.
    
    Reviewed by:	markj
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44867
    kostikbel authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    4e77c49 View commit details
    Browse the repository at this point in the history
  52. kern_thr.c/kern_sig.c: remove sys/cdefs.h

    Reviewed by:	markj
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44867
    kostikbel authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    ace373f View commit details
    Browse the repository at this point in the history
  53. kern_thr.c: normalize includes

    Remove extra sys/param.h, provided by sys/systm.h.
    Order the rest alphabetically.
    
    Reviewed by:	markj
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44867
    kostikbel authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    df3aa87 View commit details
    Browse the repository at this point in the history
  54. sigqueue(2): add impl-specific flag __SIGQUEUE_TID

    The flag allows the pid argument to designate a thread from the calling
    process.  The flag value is carved from the high bit of the signal
    number, which slightly changes the ABI of syscall.
    
    Reviewed by:	markj
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44867
    kostikbel authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    5b5b336 View commit details
    Browse the repository at this point in the history
  55. sigqueue(2): Document __SIGQUEUE_TID

    Reviewed by:	markj
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44867
    kostikbel authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    b89a631 View commit details
    Browse the repository at this point in the history
  56. sys/signal.h: move union sigval into dedicated private header sys/_si…

    …gval.h
    
    Reviewed by:	markj
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44867
    kostikbel authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    9d4a9af View commit details
    Browse the repository at this point in the history
  57. libthr: add pthread_sigqueue(3)

    PR:	278459
    Reviewed by:	markj
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44867
    kostikbel authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    95a3949 View commit details
    Browse the repository at this point in the history
  58. pthread_sigqueue(3): document

    Reviewed by:	markj
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44867
    kostikbel authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    1cd0054 View commit details
    Browse the repository at this point in the history
  59. Add test for pthread_sigqueue(3)

    Reviewed by:	markj
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44867
    kostikbel authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    ff379b9 View commit details
    Browse the repository at this point in the history
  60. nfsserver: Default to nfs_reserved_port_only="YES"

    This setting causes the NFS server to check that all RPCs are sent from
    a privileged (<= 1023) port, rejecting those that are not.  This
    slightly raises the bar for a user with network access to an
    unauthenticated NFS server to access exported NFS filesystems.
    
    Users that use traditional NFS clients (e.g., those provided by FreeBSD
    or Linux) should not see any difference, assuming that unprivileged
    filesystem mounting is disallowed.
    
    Note that the setting is per-VNET, so may be overridden in VNET jails
    without affecting the rest of the system.
    
    Discussed with:	freebsd-arch@
    Reviewed by:	rmacklem, bz, emaste
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D44906
    markjdb authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    074aede View commit details
    Browse the repository at this point in the history
  61. RELNOTES: Add an entry for the nfs_reserved_port_only default change

    Sponsored by:	The FreeBSD Foundation
    markjdb authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    557912d View commit details
    Browse the repository at this point in the history
  62. Use MOVED_LIBS for usr/lib/libcxxrt.so.1 ObsoleteFiles.inc entry

    Otherwise, the "make delete-old-libs" mechanism also deletes 32-bit
    copies, such as in /usr/lib32.
    
    Reported by:	Josef 'Jeff' Sipek <[email protected]>
    Fixes:		911a647
    DimitryAndric authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    86a429d View commit details
    Browse the repository at this point in the history
  63. camcontrol: Enable WITH_NVME unconditionally

    MK_NVME is no longer marked broken for any platforms, so just include
    support for it always as we do for ATA and SCSI.
    
    Reviewed by:	emaste
    Sponsored by:	Chelsio Communications
    Differential Revision:	https://reviews.freebsd.org/D44841
    bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    ab758ac View commit details
    Browse the repository at this point in the history
  64. nvmecontrol: Always build instead of being conditional on WITH_NVME

    This now builds fine on all platforms so always include it similar
    to other tools such as camcontrol.
    
    Reviewed by:	imp, emaste
    Sponsored by:	Chelsio Communications
    Differential Revision:	https://reviews.freebsd.org/D44842
    bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    d9f3784 View commit details
    Browse the repository at this point in the history
  65. Remove the MK_NVME build option

    The drivers and utilities are now built and installed unconditionally.
    
    Reviewed by:	imp, emaste
    Sponsored by:	Chelsio Communications
    Differential Revision:	https://reviews.freebsd.org/D44843
    bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    32de3db View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    9d1933e View commit details
    Browse the repository at this point in the history
  67. libc: make strerror_rl() usable for libc

    Reviewed by:	imp
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44916
    kostikbel authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    93dd428 View commit details
    Browse the repository at this point in the history
  68. __vprintf(): switch from strerror() to strerror_rl()

    This eliminates the use of non-thread-safe function in printf*() family,
    and make the call locale-aware.  Also, it stops obliterating the
    strerror() static buffer, which aligns with the POSIX requirement that
    implementations must behave as if no standard-mandated functions call
    strerror().
    
    PR:	278556
    Reported by:	Jonathan Gruber <[email protected]>
    Reviewed by:	imp
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44916
    kostikbel authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    151f2b2 View commit details
    Browse the repository at this point in the history
  69. libc: minor style, wrap long lines

    Reviewed by:	imp
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44916
    kostikbel authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    921cc15 View commit details
    Browse the repository at this point in the history
  70. libc printf_render_errno(): do not use strerror()

    Reviewed by:	imp
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44916
    kostikbel authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    aa33692 View commit details
    Browse the repository at this point in the history
  71. pow,powf(3),__ieee754_rem_pio2(f): Avoid negative integer left shift UB

    A compiler clever enough to know that z is positive with a non-zero
    biased exponent could, for example, optimize away the scalbnf(z,n) in
    pow() because behavior for left shift of negative values is undefined.
    `n` is negative when y*log2(|x|) < -0.5.  i.e. |x^y| < sqrt(0.5)
    
    The intended behavior for operator<< in this code is to shift the two's
    complement representation of the first operand.
    
    In the pow() functions, the result is added to the IEEE 754 exponent of
    z = 2^y'.  n may be negative enough to underflow the biased IEEE 754
    exponent below zero, which is manifested in the sign bit of j
    (which would correspond to the IEEE 754 sign bit).
    
    The conversion from uint32_t to int32_t for out-of-int32_t-range values
    is implementation defined.  The assumed behavior of interpreting the
    uint32_t value as a two's complement representation of a signed value
    is already assumed in many parts of the code, such as uses of
    GET_FLOAT_WORD() with signed integers.
    
    This code passes all the current tests, and makes some out of tree
    fuzzing tests pass again rather than hit UB (detailed in the commentary
    of the pull request).
    
    Signed-off-by: Karl Tomlinson <[email protected]>
    Reviewed by: imp, steve kargl, dim
    Pull Request: freebsd/freebsd-src#1137
    karlt authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    6ea6d81 View commit details
    Browse the repository at this point in the history
  72. checkstyle9.pl: Warn if there's no SOB line

    If there's no Signed-off-by: line, complain.
    
    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    838d124 View commit details
    Browse the repository at this point in the history
  73. ahc(4) clean up old Linux defines

    Linux removed theirs starting in 2018 in commit:
    "scsi: aic7xxx: Fix build using bare-metal toolchain"
    
    Also remove now-useless sys/cdefs.h includes
    
    Signed-off-by: HP van Braam <[email protected]>
    Reviewed by: imp, mav, emaste
    Pull Request: freebsd/freebsd-src#1189
    hpvb authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    8f9eb97 View commit details
    Browse the repository at this point in the history
  74. ahc(4)/ahd(4): target mode: cancel outstanding AIOs and INOTs

    When disabling a lun there can still be outstanding AIOs and INOTs, when
    this happens previously the lun would just fail to disable and trying to
    re-use the lun would break the card.
    
    isp(4) in target mode does the same thing when disabling a lun, in
    testing this allows re-starting of ctld(8) with connected initiators and
    allows initiators to gracefully resume afterwards.
    
    Signed-off-by: HP van Braam <[email protected]>
    Reviewed by: imp, mav
    Pull Request: freebsd/freebsd-src#1190
    hpvb authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    e75f3c3 View commit details
    Browse the repository at this point in the history
  75. sys/net/if_bridge: support non-INET kernels

    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1159
    llfw authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    f124d32 View commit details
    Browse the repository at this point in the history
  76. sys/netpfil/pf: fix non-INET module build

    pf.ko, when built as a module without 'options INET' but with 'options
    VIMAGE', won't load:
    
    link_elf_obj: symbol vnet_entry_in_loopback_mask undefined
    
    This is because it uses IN_LOOPBACK(), which in the VIMAGE case uses
    INET-specific symbols.
    
    Fix by making this check conditional on #ifdef INET.
    
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1157
    llfw authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    437d1f9 View commit details
    Browse the repository at this point in the history
  77. sys: add conf/std.debug, generic debugging options

    The new sys/conf/std.debug contains the list of debugging options
    enabled by default in -CURRENT, so they don't need to be listed
    individually in every kernel config.
    
    The enabled options are the set of all debug options which were enabled
    for the GENERIC kernel on any platform.  This means some architectures
    now have debugging options enabled in GENERIC which weren't previously
    enabled:
    
    - amd64: [1]
    - arm64: [2]
    - arm: [2]. [3]
    - i386: [1], [2]
    - powerpc: [1], [2], [3]
    - riscv: [2]
    
    [1] ALT_BREAK_TO_DEBUGGER is now enabled.
    [2] BUF_TRACKING, FULL_BUF_TRACKING, and QUEUE_MACRO_DEBUG_TRASH are now
        enabled.
    [3] DEADLKRES is now enabled.
    
    While here, move the documentation for the (commented out) K*SAN options
    for amd64 from GENERIC to NOTES.
    
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1124
    llfw authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    91e2161 View commit details
    Browse the repository at this point in the history
  78. sys/*/conf: do not use "../../conf/" when including std.*

    Since config(8) searches sys/conf by default, there's no need to specify
    the full relative path here; replace it by the filename alone.
    
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1124
    llfw authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    0043f13 View commit details
    Browse the repository at this point in the history
  79. nanobsd: Set a GPT label for EFI and cfg partitions

    Use efiboot0 for the EFI partition, the nomenclature efiboot + #index
    was taken from bsdinstall (zfsboot).
    
    Use cfg for the cfg partition.  Poudriere firmware images are already
    using this label.
    
    PR: 278480
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1187
    jlduran authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    e68fd7e View commit details
    Browse the repository at this point in the history
  80. release: Change vmimage EFI GPT label

    This matches the default bsdinstall nomenclature.
    
    PR: 278480
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1188
    jlduran authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    5576af6 View commit details
    Browse the repository at this point in the history
  81. swapon: Do not overwrite Linux swap header

    Reviewed by: imp, jhb
    Pull Request: freebsd/freebsd-src#1084
    ricardobranco777 authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    b103d67 View commit details
    Browse the repository at this point in the history
  82. zfs: merge openzfs/zfs@1f940de07

    Notable upstream pull request merges:
     #16038 1f940de L2ARC: Cleanup buffer re-compression
     #16093 c183d16 Parallel pool import
     #16094 cd3e6b4 Add zfetch stats in arcstats
     #16103 35bf258 Fix: FreeBSD Arm64 does not build currently
     #16104 4036b8d Refactor dbuf_read() for safer decryption
     #16110 9f83eec Handle FLUSH errors as "expected"
     #16117 c346068 zfs get: add '-t fs' and '-t vol' options
    
    Obtained from:  OpenZFS
    OpenZFS commit: 1f940de
    mmatuska authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    ab69b58 View commit details
    Browse the repository at this point in the history
  83. git subrepo pull --force sys/contrib/subrepo-openzfs

    subrepo:
      subdir:   "sys/contrib/subrepo-openzfs"
      merged:   "3b59372835d2"
    upstream:
      origin:   "https://github.com/CTSRD-CHERI/zfs.git"
      branch:   "cheri-hybrid"
      commit:   "3b59372835d2"
    git-subrepo:
      version:  "0.4.6"
      origin:   "???"
      commit:   "???"
    bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    5d93c6f View commit details
    Browse the repository at this point in the history
  84. bsdinstall/distfetch.c: check environment variables before downloadin…

    …g and handle memory allocation errors
    
    1. Currently, distfetch checks environment variables existence
    when it will use them or in a case (in chdir()) it doesn't check
    at all. As they are necessary to set before doing anything with
    it, check them, if they set or not, before proceeding any further.
    This also avoids extra cleaning when that environment variable
    isn't set.
    
    2. Handle memory allocation error in malloc(PATH_MAX) and replace
    (sizeof const char *) with (sizeof char *). Both are similar and
    const doesn't have a size.
    
    3. Indent the error message a bit in chdir().
    
    Signed-off-by: rilysh <[email protected]>
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1071
    rilysh authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    6609f62 View commit details
    Browse the repository at this point in the history
  85. sockets: inherit SO_ACCEPTFILTER from listener to child

    This is crucial for operation of accept_filter(9).  See added comment.
    
    Fixes:	d29b95e
    glebius authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    4acff4c View commit details
    Browse the repository at this point in the history
  86. ktrace: Describe CAPFAIL trace point in man page

    Update the ktrace(1) man page to describe the recently improved
    capability failure tracing.
    
    Approved by:	markj (mentor)
    Reviewed by:	markj
    MFC after:	1 month
    Differential Revision:	https://reviews.freebsd.org/D44886
    jakesfreeland authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    010a921 View commit details
    Browse the repository at this point in the history
  87. ktrace: Remove CAPFAIL from default trace points

    The CAPFAIL tracepoint was recently extended to report ECAPMODE
    capability  violations for processes that do not enter capability mode.
    This allows developers that are interested in Capsicumizing their
    programs to determine where violations are being raised.
    
    Previously, CAPFAIL only produced output for processes using Capsicum(4)
    capabilties. Thus, most ktrace users never received log output from the
    trace point. With the recent changes, this is no longer the case.
    
    Having this trace point enabled by default will produce output for all
    processes that use syscalls that are not permitted in capability mode.
    This may lead to confusion for users that are not familiar with the
    feature. Remove KTRFAC_CAPFAIL from ktrace's default points to avoid
    this.
    
    Approved by:	markj (mentor)
    Reviewed by:	markj
    MFC after:	1 month
    Differential Revision:	https://reviews.freebsd.org/D44887
    jakesfreeland authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    d542786 View commit details
    Browse the repository at this point in the history
  88. Revert "bsdinstall/distfetch.c: check environment variables before do…

    …wnloading and handle memory allocation errors"
    
    This reverts commit 91bdebc. It wasn't
    as ready as I thought
    bsdimp authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    bef4729 View commit details
    Browse the repository at this point in the history
  89. Revert "swapon: Do not overwrite Linux swap header"

    This reverts commit cf04a77.This is
    broken on armv7, and closer scrutiny of the reviews shows I was in error
    when I thought it was ready.
    bsdimp authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    e0cf6f5 View commit details
    Browse the repository at this point in the history
  90. MFV: less: Do not trust st_size if it equals zero

    This is a smaller version of upstream
    1fafd968b48e5cea6c85f126d77071a8de707a55 to address the
    issue that less not being able to operate on files
    residing in pseudo-filesystems that advertize a zero
    size value.
    
    PR:		bin/276133
    MFC after:	3 days
    ricardobranco777 authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    f6901f3 View commit details
    Browse the repository at this point in the history
  91. kdc: Add restart option

    Add a new kdc_restart rc variable that manages kdc (or krb5kdc) under
    daemon(8). This automatically restarts the kdc should it fail, i.e.
    when it's configured to use LDAP as a backend and cannot connect to its
    LDAP directory.
    
    Set kdc_restart="YES" to auto restart kdc on abnormal termination.
    
    Set kdc_restart_delay="N" to the number of seconds to delay before
    restarting the kdc. The daemon(8) default seconds applies when not set.
    
    Reported by:		Lexi Winter <[email protected]>
    PR:			278395
    Differential Revision:	https://reviews.freebsd.org/D44898
    cschuber authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    2c628b2 View commit details
    Browse the repository at this point in the history
  92. heimdal: Fix compiling hdb ldap as a module

    Fix build when WITH_OPENLDAP defined.
    
    PR:		278430
    Obtained from:	Upstream c1c7da7f79
    cschuber authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    5821586 View commit details
    Browse the repository at this point in the history
  93. ng_pipe: Fix whitespace

    Signed-off-by: Martin Vahlensieck <[email protected]>
    
    Reviewed by:	markj
    MFC after:	2 weeks
    Pull Request:	freebsd/freebsd-src#1181
    Martin Vahlensieck authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    73917b0 View commit details
    Browse the repository at this point in the history
  94. ng_pipe: Remove node when all hooks are disconnected

    This is the behavior described in the man page.
    
    Signed-off-by: Martin Vahlensieck <[email protected]>
    
    Discussed with:	glebius
    Reviewed by:	markj
    MFC after:	2 weeks
    Pull Request:	freebsd/freebsd-src#1181
    Martin Vahlensieck authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    5a76658 View commit details
    Browse the repository at this point in the history
  95. ng_pipe: Replace deprecated random() with prng32_bounded()

    Signed-off-by: Martin Vahlensieck <[email protected]>
    
    MFC after:	2 weeks
    Reviewed by:	markj
    Pull Request:	freebsd/freebsd-src#1181
    Martin Vahlensieck authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    4f3befc View commit details
    Browse the repository at this point in the history
  96. ng_pipe: Do not panic when memory allocations fail

    Signed-off-by: Martin Vahlensieck <[email protected]>
    
    Reviewed by:	markj
    MFC after:	2 weeks
    Pull Request:	freebsd/freebsd-src#1181
    Martin Vahlensieck authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    b4b7e8f View commit details
    Browse the repository at this point in the history
  97. dpaa: uma_zcreate() does not fail

    No functional change intended.
    
    MFC after:	1 week
    markjdb authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    fd63ae2 View commit details
    Browse the repository at this point in the history
  98. wg: uma_zcreate() does not fail

    No functional change intended.
    
    MFC after:	1 week
    markjdb authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    679d84b View commit details
    Browse the repository at this point in the history
  99. udf: uma_zcreate() does not fail

    While here remove an old comment regarding preallocation; it appears to
    refer to an optimization that is almost certainly irrelevant at this
    point.
    
    No functional change intended.
    
    MFC after:	1 week
    markjdb authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    17c2dc2 View commit details
    Browse the repository at this point in the history
  100. khelp: uma_zcreate() does not fail

    No functional change intended.
    
    MFC after:	1 week
    markjdb authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    4e75a4f View commit details
    Browse the repository at this point in the history
  101. busdma: uma_zcreate() does not fail

    No functional change intended.
    
    MFC after:	1 week
    markjdb authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    6cc30ca View commit details
    Browse the repository at this point in the history
  102. geli.8: add some notes regarding performance tuning

    MFC after:	1 week
    Sponsored by:	Axcient
    Reviewed by:	markj
    Differential Revision: https://reviews.freebsd.org/D44908
    asomers authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    6aaa5be View commit details
    Browse the repository at this point in the history
  103. bhyve.8: Remove mention of the -A flag

    It is a no-op on amd64 now and is not implemented on arm64, so let's
    remove mention of it altogether so as to reduce confusion for arm64
    users.
    
    Reviewed by:	corvink, jhb
    Sponsored by:	Innovate UK
    Differential Revision:	https://reviews.freebsd.org/D44737
    markjdb authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    4ceca0f View commit details
    Browse the repository at this point in the history
  104. Skipping merge of 63d5f8c

    bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    c28b67b View commit details
    Browse the repository at this point in the history
  105. bhyve.8: Document arm64 support

    - Mention the options that are amd64-only.
    - Provide a minimal example for booting an arm64 guest.
    
    Reviewed by:	corvink
    Sponsored by:	Innovate UK
    Differential Revision:	https://reviews.freebsd.org/D44738
    markjdb authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    6c5fcf4 View commit details
    Browse the repository at this point in the history
  106. arm64/vmm: Ensure the tlbi has completed

    Ensure the TLB is invalidated before enabling the EL2 MMU. Without
    this the TLB may be in an inconsistant state leading to a possible
    exception when enabling the MMU.
    
    PR:		277559
    Reviewed by:	markj
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D44799
    zxombie authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    e6a2b83 View commit details
    Browse the repository at this point in the history
  107. arm64: Check DMAP address is valid in PHYS_IN_DMAP

    When checking if a physical address is in the DMAP region we assume
    all physical addresses between DMAP_MIN_PHYSADDR and DMAP_MAX_PHYSADDR
    are able to be accesses through the DMAP. It may be the case that
    there is device memory in this range that shouldn't be accessed through
    the DMAP mappings.
    
    Add a check to PHYS_IN_DMAP that the translated virtual address is a
    valid kernel address. To support code that already checks the address
    is valid add PHYS_IN_DMAP_RANGE.
    
    PR:		278233
    Reviewed by:	alc, markj
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D44677
    zxombie authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    255c368 View commit details
    Browse the repository at this point in the history
  108. showconfig: Set MACHINE for src.opts.mk

    Also set MACHINE and MACHINE_ARCH when reading config options from
    src.opts.mk. This ensures any machine-dependent options are reported
    correctly.
    
    Reviewed by:	emaste, imp
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D44838
    zxombie authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    1f82e23 View commit details
    Browse the repository at this point in the history
  109. elf_common.h: Add STO_AARCH64_VARIANT_PCS

    This is used to mark symbols that use a variant procedure call with
    a different calling convention to the main ABI.
    
    Reviewed by:	kib, imp
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D44868
    zxombie authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    ecbdc88 View commit details
    Browse the repository at this point in the history
  110. meta.autodep.mk do not override start_utc

    Update meta.autodep.mk
    If included at level 0 it is important not to override start_utc
    sgerraty authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    26ca32f View commit details
    Browse the repository at this point in the history
  111. sys/namei.h: move NI_CAP_VIOLATION() macro from namei.h to vfs_lookup.c

    Reviewed by:	emaste, imp, markj
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44931
    kostikbel authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    f1e58d1 View commit details
    Browse the repository at this point in the history
  112. vfs_lookup.c: only call ktrcapfail() if KTRACE is enabled

    Reviewed by:	emaste, imp, markj
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44931
    kostikbel authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    1361843 View commit details
    Browse the repository at this point in the history
  113. syscalls.master: correct return type of {read,write}v

    This was missed when read/write, etc were updated to return ssize_t.
    
    Fixes:		2e83b28 Fix a few syscall arguments to use size_t instead of u_int.
    
    Reviewed by:	imp, kib
    Differential Revision:	https://reviews.freebsd.org/D44930
    brooksdavis authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    8b7dd9c View commit details
    Browse the repository at this point in the history
  114. Configuration menu
    Copy the full SHA
    9b07daf View commit details
    Browse the repository at this point in the history
  115. accept_filter: return different errors for non-listener and a busy so…

    …cket
    
    The fact that an accept filter needs to be cleared first before setting to
    a different one isn't properly documented.  The requirement that the
    socket needs already be listening, although trivial, isn't documented
    either.  At least return a more meaningful error than EINVAL for an
    existing filter.  Cover this with a test case.
    glebius authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    445f2b7 View commit details
    Browse the repository at this point in the history
  116. Document that gettimeofday() is obsolescent

    Reported by:	kaktus
    Reviewed by:	kaktus, pstef
    MFC after:	3 days
    Differential Revision:	https://reviews.freebsd.org/D23942
    0mp authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    87776f1 View commit details
    Browse the repository at this point in the history
  117. sync.8: Document that the "sync dance" is not a thing

    People still believe that it is essential to run sync(8) a couple of
    times before a reboot/halt. Document that this has not been necessary
    for a long time now.
    
    Reviewed by:	imp, bcr, Pau Amma <[email protected]>
    MFC after:	3 days
    Differential Revision:	https://reviews.freebsd.org/D33233
    0mp authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    fe11905 View commit details
    Browse the repository at this point in the history
  118. checkstyle9: Allow a space between "*" and _*restrict

    Before the change, we would get errors like this:
    
        ERROR: "foo * bar" should be "foo *bar"
        CTSRD-CHERI#369: FILE: foobar.c:369:
        +barbaz(char * __restrict s,
    
    Reviewed by:		des, imp
    Sponsored by:		Klara, Inc.
    Differential Revision:	https://reviews.freebsd.org/D44911
    0mp authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    2be62d9 View commit details
    Browse the repository at this point in the history
  119. kthread: Set *tdptr earlier in kproc_kthread_add()

    See commit ae77041 ("kthread: Set *newtdp earlier in
    kthread_add1()") for details.  That commit was incomplete since
    g_init()'s first call to kproc_kthread_add() will cause
    kproc_kthread_add() to take the `*procptr == NULL` branch, which avoids
    kthread_create().
    
    To ensure that the thread pointer is initialized before the thread
    starts running, we have to start the kernel process with RFSTOPPED.
    We could perhaps go further and use RFSTOPPED only when tdptr != NULL,
    but it's probably better to have consistent behaviour.
    
    Reviewed by:	olce, kib
    Reported by:	[email protected]
    MFC after:	1 week
    Differential Revision:	https://reviews.freebsd.org/D44927
    markjdb authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    2ef6c92 View commit details
    Browse the repository at this point in the history
  120. Skip building libclang_rt when WITHOUT_CLANG is used

    As noted in bug 277096, when building a pkgbase repository using
    WITHOUT_CROSS_COMPILER and WITHOUT_TOOLCHAIN (which sets WITHOUT_CLANG),
    the following residual files are left over:
    
    /usr/lib/clang/18/lib/freebsd/libclang_rt.asan-x86_64.so
    /usr/lib/clang/18/share/asan_ignore_list.txt
    /usr/lib/clang/18/share/cfi_ignore_list.txt
    /usr/lib/clang/18/share/msan_ignore_list.txt
    
    This is because the lib/libclang_rt directory is still descended into,
    even if WITHOUT_CLANG is used. Fix it by not descending into the
    libclang_rt directory in that case.
    
    PR:		277096
    Reported by:	Siva Mahadevan <[email protected]>
    MFC after:	3 days
    DimitryAndric authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    aa0bae6 View commit details
    Browse the repository at this point in the history
  121. Revert "nfsd: Fix NFSv4.1/4.2 Claim_Deleg_Cur_FH"

    This reverts commit f300335.
    
    It turns out that the old code was correct and it was wireshark
    that was broken and indicated that the RPC's XDR was bogus.
    Found during IETF bakeathon testing this week.
    Rick Macklem authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    aa450af View commit details
    Browse the repository at this point in the history
  122. Merge commit 0f329e0246d1 from llvm-project (by Dimitry Andric):

      [sanitizer_symbolizer] Cast arguments for format strings in markup (#89815)
    
      When compiling the common sanitizer libraries, there are many warnings
      about format specifiers, similar to:
    
          compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup.cpp:31:32: warning: format specifies type 'void *' but the argument has type 'uptr' (aka 'unsigned long') [-Wformat]
             31 |   buffer->AppendF(kFormatData, DI->start);
                |                   ~~~~~~~~~~~  ^~~~~~~~~
          compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup_constants.h:33:46: note: format string is defined here
             33 | constexpr const char *kFormatData = "{{{data:%p}}}";
                |                                              ^~
                |                                              %lu
          compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup.cpp:46:43: warning: format specifies type 'void *' but the argument has type 'uptr' (aka 'unsigned long') [-Wformat]
             46 |   buffer->AppendF(kFormatFrame, frame_no, address);
                |                   ~~~~~~~~~~~~            ^~~~~~~
          compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup_constants.h:36:48: note: format string is defined here
             36 | constexpr const char *kFormatFrame = "{{{bt:%u:%p}}}";
                |                                                ^~
                |                                                %lu
          ...
    
      This is because `uptr` is dependent on the platform, and can be either
      `unsigned long long`, `unsigned long`, or `unsigned int`.
    
      To fix the warnings, cast the arguments to the expected type of the
      format strings.
    
    PR:		276104
    Reported by:	pstef
    MFC after:	3 days
    DimitryAndric authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    625aa02 View commit details
    Browse the repository at this point in the history
  123. bsdinstall: update comment related to pkg

    pkg_add has been gone since 2013(?).  Refer to pkg(8) instead.
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	3 days
    Reviewed by:	jrtc27
    Differential Revision: https://reviews.freebsd.org/D44946
    Bjoern A. Zeeb authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    b9f9572 View commit details
    Browse the repository at this point in the history
  124. if_bridge: Minor style fixes

    And more comments on the #ifdef INET blocks to improve readability.
    
    While here, revert the order of two prototypes to produce minimal diff
    compared to stable branches.
    
    MFC with:	65767e6
    gmshake authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    fbf0ebc View commit details
    Browse the repository at this point in the history
  125. tftpd: Use size_t where appropriate.

    * Limit the use of `ssize_t` to only where it's needed.
    * Correct one case of `int` being used for a length.
    
    MFC after:	1 week
    Sponsored by:	Klara, Inc.
    Reviewed by:	kevans
    Differential Revision:	https://reviews.freebsd.org/D44954
    dag-erling authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    084a8db View commit details
    Browse the repository at this point in the history
  126. tftpd: Clean up the tests.

    MFC after:	1 week
    Sponsored by:	Klara, Inc.
    Reviewed by:	kevans
    Differential Revision:	https://reviews.freebsd.org/D44955
    dag-erling authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    33f6195 View commit details
    Browse the repository at this point in the history
  127. tftpd: Check the server status after each test.

    * In the setup phase, wait for the server to start (or fail to start)
      before proceeding with the test.  This makes it possible to write test
      cases that don't expect a response from the server without ending up
      in a race over the server PID file.
    * After running each test, wait up to 30 seconds for the server to exit
      and check that the exit status matches what the test case says to
      expect (usually 0).
    * We still kill and collect the server in the cleanup phase, in case the
      test ended early.
    
    MFC after:	1 week
    Sponsored by:	Klara, Inc.
    Reviewed by:	kevans
    Differential Revision:	https://reviews.freebsd.org/D44956
    dag-erling authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    a5c4681 View commit details
    Browse the repository at this point in the history
  128. tftpd: Immediately reject any request shorter than 4 bytes.

    MFC after:	1 week
    Sponsored by:	Klara, Inc.
    Reviewed by:	kevans
    Differential Revision:	https://reviews.freebsd.org/D44957
    dag-erling authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    c281478 View commit details
    Browse the repository at this point in the history
  129. nfscl: Revert part of commit 196787f

    Commit 196787f erroneously assumed that the client code for
    Open/Claim_deleg_cur_FH was broken, but it was not.
    It was actually wireshark that was broken and indicated
    that the correct XDR was bogus.
    
    This reverts the part of 196787f that changed the arguments for
    Open/Claim_deleg_cur_FH.
    
    Found during the IETF bakeathon testing event this week.
    
    MFC after:	3 days
    Rick Macklem authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    798d50e View commit details
    Browse the repository at this point in the history
  130. Revert "config.mk: Add MK_VIMAGE knob"

    This commit broke "make makeman" checks in github CI due to a lack of
    option description files.  The split between VIMAGE and VIMAGE_SUPPORT
    is not clearly justified and the code is broken because there is no
    opt_vimage.h (it's in opt_global.h).
    
    This reverts commit 22ca6db.
    brooksdavis authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    174eaf3 View commit details
    Browse the repository at this point in the history
  131. release: remove the RPI CM4s .dtb

    This isn't actually packaged by the sysutils/rpi-firmware port, so we
    cannot include it in the image.  Fix the RPI release build until an
    interested party adds it to the port and packages are available.
    
    Reported by:	cperciva
    kevans91 authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    4fb7fab View commit details
    Browse the repository at this point in the history
  132. nvmecontrol: Flesh out nvmecontrol format information

    The format command takes a number of different parameters. Include a
    brief summary of what the values mean, though since the driver's support
    for metadata is at best weak, 0's are almost always used for values
    other than -f format. Add an example that ties it all together.
    
    Sponsored by:		Netflix
    Reviewed by:		[email protected], chuck
    Differential Revision:	https://reviews.freebsd.org/D44958
    bsdimp authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    8c450f4 View commit details
    Browse the repository at this point in the history
  133. CTL: READ(6) should be allowed on CD devices

    DOS ASPI drivers use this, with this change applied it is possible to
    load a DOS ASPI CDROM driver and run the Windows 98 installer.
    
    Signed-off-by: HP van Braam <[email protected]>
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1202
    hpvb authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    a883c39 View commit details
    Browse the repository at this point in the history
  134. nfscl: Do not use nfso_own for delayed nfsrpc_doclose()

    When an initial attempt to close an NFSv4 lock returns NFSERR_DELAY,
    the open structure is put on a list for delayed closing.  When this
    is done, the nfso_own field is set to NULL, so it cannot be used by
    nfsrpc_doclose().
    
    Without this patch, the NFSv4 client can crash when a NFSv4 server
    replies NFSERR_DELAY to a Close operation.  Fortunately, most extant
    NFSv4 servers do not do this.  This patch avoids the crash for any
    that do return NFSERR_DELAY for Close.
    
    Found during a IETF bakeathon testing event this week.
    
    MFC after:	5 days
    Rick Macklem authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    e3cb8ab View commit details
    Browse the repository at this point in the history
  135. Configuration menu
    Copy the full SHA
    e32b234 View commit details
    Browse the repository at this point in the history
  136. date: Add support for nanoseconds

    This patch introduces support for a conversion specification for
    nanoseconds.
    
    The format of %N is meant to be compatible with that of GNU date.
    
    The nanoseconds conversion specification is implemented directly in
    date(1) instead of libc (in strftime(3)) to avoid introducing
    non-standard functions to libc at this time and modifying struct tm.
    
    Apart from introducing the nanoseconds conversion specification, this
    patch brings the following changes:
    
    - The "ns" format for ISO 8061 dates is now unlocked. E.g., date -Ins
      prints:
          2024-04-22T12:20:28,763742224+02:00
    - The -r flag when fed a file is now aware of the nanosecond part of the last
      modification time.
    - date(1) is now able to set the time with nanosecond precision. It is
      not possible as of now to do that by specifying nanoseconds directly
      via the command-line arguments. Instead, the -r flag can be used.
    - date(1) is now using the clock_gettime(3) family of functions instead
      of ctime(3) family of functions where possible.
    
    Reviewed by:	des, markj
    Sponsored by:	Klara, Inc.
    Differential Revision:	https://reviews.freebsd.org/D44905
    0mp authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    3d34e64 View commit details
    Browse the repository at this point in the history
  137. style.9: Document the existence of tools/build/checkstyle9.pl

    MFC after:	3 days
    Sponsored by:	Klara, Inc.
    0mp authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    ce6830f View commit details
    Browse the repository at this point in the history
  138. date: Fix tests by initializing timespec structure

    The tests related to nanosecond support were failing on amd64 due to
    uninitialized timespec structure.
    
    Fixes:		eeb04a7 date: Add support for nanoseconds
    Reviewed by:	markj
    Sponsored by:	Klara, Inc.
    Differential Revision:	https://reviews.freebsd.org/D44975
    0mp authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    da5fa04 View commit details
    Browse the repository at this point in the history
  139. script: minor style improvements

    Fix some nits pointed out by checkstyle9.pl in advance of functional
    changes to script(1).
    
    Reviewed by:	des
    Sponsored by:	Modirum MDPay
    Sponsored by:	Klara, Inc.
    Differential Revision:	https://reviews.freebsd.org/D44167
    Xavier Beaudouin authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    f043711 View commit details
    Browse the repository at this point in the history
  140. script: handle terminal resize on SIGWINCH

    Add a -w flag to forward terminal resize events on to the child, which
    can be useful in some circumstances to avoid terminal corruption.
    
    Reviewed by:	des
    Co-authored-by:	Xavier Beaudouin <[email protected]>
    Sponsored by:	Modirum MDPay
    Sponsored by:	Klara, Inc.
    Differential Revision:	https://reviews.freebsd.org/D44167
    kevans91 authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    f7a58a4 View commit details
    Browse the repository at this point in the history
  141. krpc: Ref cnt the client structures for TLS upcalls

    A crash occurred during testing, where the client structures had
    already been free'd when the upcall thread tried to lock them.
    
    This patch acquires a reference count on both of the structures
    and these are released when the upcall is done, so that the
    structures cannot be free'd prematurely.  This happened because
    the testing is done over a very slow vpn.
    
    Found during a IETF bakeathon testing event this week.
    
    MFC after:	5 days
    Rick Macklem authored and bsdjhb committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    3110b15 View commit details
    Browse the repository at this point in the history