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-03-08 #2176

Merged
merged 207 commits into from
Aug 3, 2024
Merged

Commits on Feb 15, 2024

  1. ddt: modernise assertions

    Reviewed-by: Brian Behlendorf <[email protected]>
    Signed-off-by: Rob Norris <[email protected]>
    Sponsored-by: Klara, Inc.
    Sponsored-by: iXsystems, Inc.
    Closes #15887
    robn authored and behlendorf committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    d3bafe4 View commit details
    Browse the repository at this point in the history
  2. ddt: move entry compression into ddt_zap

    I think I can say with some confidence that anyone making a new storage
    type in 2023 is doing their own thing with compression, not this.
    
    Reviewed-by: Brian Behlendorf <[email protected]>
    Signed-off-by: Rob Norris <[email protected]>
    Sponsored-by: Klara, Inc.
    Sponsored-by: iXsystems, Inc.
    Closes #15887
    robn authored and behlendorf committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    86e91c0 View commit details
    Browse the repository at this point in the history
  3. ddt_zap: standardise temp buffer allocations

    Always do them on the heap, and when we know how much we need, only that
    much.
    
    Reviewed-by: Brian Behlendorf <[email protected]>
    Signed-off-by: Rob Norris <[email protected]>
    Sponsored-by: Klara, Inc.
    Sponsored-by: iXsystems, Inc.
    Closes #15887
    robn authored and behlendorf committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    5c4cc21 View commit details
    Browse the repository at this point in the history
  4. ddt: compare keys, not entries

    We're about to have different kinds of things that we'll compare on key,
    so generalise this function to support that.
    
    (It actually worked fine because of the way the casts work out, but it
    requires the key to be at the start of the object so the cast through
    ddt_entry_t works, and even then it reads strangely for anything that's
    not a ddt_entry_t).
    
    Reviewed-by: Brian Behlendorf <[email protected]>
    Signed-off-by: Rob Norris <[email protected]>
    Sponsored-by: Klara, Inc.
    Sponsored-by: iXsystems, Inc.
    Closes #15887
    robn authored and behlendorf committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    0cb1ef6 View commit details
    Browse the repository at this point in the history
  5. ddt: lift dedup stats out to separate file

    We want to add other kinds of dedup-related objects and keep stats for
    them. This makes those functions easier to use from outside ddt.c.
    
    Reviewed-by: Brian Behlendorf <[email protected]>
    Signed-off-by: Rob Norris <[email protected]>
    Sponsored-by: Klara, Inc.
    Sponsored-by: iXsystems, Inc.
    Closes #15887
    robn authored and behlendorf committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    5973854 View commit details
    Browse the repository at this point in the history
  6. ddt: remove DDE_GET_NDVAS macro

    It was a weird and confusing name, because it wasn't actually returning
    the number of DVAs in the entry (as in, in the value/phys part) but the
    maximum number of possible DVAs in a BP generated from the entry, based
    on the encrypt bit in the key. This is unlike the similarly named
    BP_GET_NDVAS, which really does return the number of DVAs.
    
    Since its only used in this one place, and for a specific purpose, it
    seemed more sensible to just write it in-place and remove the name.
    
    Reviewed-by: Brian Behlendorf <[email protected]>
    Signed-off-by: Rob Norris <[email protected]>
    Sponsored-by: Klara, Inc.
    Sponsored-by: iXsystems, Inc.
    Closes #15887
    robn authored and behlendorf committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    9090060 View commit details
    Browse the repository at this point in the history
  7. ddt: split internal DDT API into separate header

    Just to make it easier to know which bits to pay attention to.
    
    Reviewed-by: Brian Behlendorf <[email protected]>
    Signed-off-by: Rob Norris <[email protected]>
    Sponsored-by: Klara, Inc.
    Sponsored-by: iXsystems, Inc.
    Closes #15887
    robn authored and behlendorf committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    8e414fc View commit details
    Browse the repository at this point in the history
  8. ddt: typedef ddt_type and ddt_class

    Mostly for consistency, so the reader is less likely to wonder why these
    things look different.
    
    Reviewed-by: Brian Behlendorf <[email protected]>
    Signed-off-by: Rob Norris <[email protected]>
    Sponsored-by: Klara, Inc.
    Sponsored-by: iXsystems, Inc.
    Closes #15887
    robn authored and behlendorf committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    c8f694f View commit details
    Browse the repository at this point in the history
  9. ddt: remove struct names and forward declarations

    Things get confused when there's more than one name for a thing.
    
    Note that we don't do this for ddt_object_t, ddt_histogram_t and
    ddt_stat_t because they're part of the public ZFS interface.
    
    Reviewed-by: Brian Behlendorf <[email protected]>
    Signed-off-by: Rob Norris <[email protected]>
    Sponsored-by: Klara, Inc.
    Sponsored-by: iXsystems, Inc.
    Closes #15887
    robn authored and behlendorf committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    3bad700 View commit details
    Browse the repository at this point in the history
  10. ddt: ensure ddt objects exist before trying to get stats from them

    ddt_get_dedup_histogram() was actually checking it, just in an extremely
    cursed way. ddt_get_dedup_object_stats() wasn't, but wasn't being called
    from a dangerous place so no one noticed.
    
    These checks are necessary, because spa_ddt[] is not populated until
    spa_load(), but the spa can exist before that, while being created, and
    as vdevs and metaslabs are initialised the space accounting functions
    will be called to update pool space counts.
    
    Probably the whole create path doesn't need to go asking for space
    accounting from metadata subsystems until after the pool is created.
    This will at least catch misuse.
    
    Reviewed-by: Brian Behlendorf <[email protected]>
    Signed-off-by: Rob Norris <[email protected]>
    Sponsored-by: Klara, Inc.
    Sponsored-by: iXsystems, Inc.
    Closes #15887
    robn authored and behlendorf committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    5ee0f9c View commit details
    Browse the repository at this point in the history
  11. ddt: rework ops interface in terms of keys and values

    Store objects store keys and values, so have them take those types and
    nothing more. This way, they don't need to be concerned about the "kind"
    of entry being operated on; the dispatch layer can take care of the
    appropriate conversions.
    
    This adds a "contains" op to see if a particular entry exists without
    loading it, which makes a couple of things easier to do; in particular,
    it allows us to avoid an allocation in ddt_class_contains().
    
    Reviewed-by: Brian Behlendorf <[email protected]>
    Signed-off-by: Rob Norris <[email protected]>
    Sponsored-by: Klara, Inc.
    Sponsored-by: iXsystems, Inc.
    Closes #15887
    robn authored and behlendorf committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    9029278 View commit details
    Browse the repository at this point in the history
  12. ddt: remove ddt_node

    Nothing uses it.
    
    Reviewed-by: Brian Behlendorf <[email protected]>
    Signed-off-by: Rob Norris <[email protected]>
    Sponsored-by: Klara, Inc.
    Sponsored-by: iXsystems, Inc.
    Closes #15887
    robn authored and behlendorf committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    2cffddd View commit details
    Browse the repository at this point in the history
  13. ddt: simplify entry load and flags

    Only a single bit is needed to track entry state, and definitely not two
    whole bytes. Some light refactoring in ddt_lookup() is needed to support
    this, but it reads a lot better now.
    
    Reviewed-by: Brian Behlendorf <[email protected]>
    Signed-off-by: Rob Norris <[email protected]>
    Sponsored-by: Klara, Inc.
    Sponsored-by: iXsystems, Inc.
    Closes #15887
    robn authored and behlendorf committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    406562c View commit details
    Browse the repository at this point in the history
  14. ddt: only create tables for dedup-capable checksums

    Most values in zio_checksum can never be used for dedup, partly because
    the dedup= property only offers a limited list, but also some values (eg
    ZIO_CHECKSUM_OFF) aren't real and will never be seen.
    
    A true flag would be better than a hardcoded list, but thats more
    cleanup elsewhere than I want to do right now.
    
    Reviewed-by: Brian Behlendorf <[email protected]>
    Signed-off-by: Rob Norris <[email protected]>
    Sponsored-by: Klara, Inc.
    Sponsored-by: iXsystems, Inc.
    Closes #15887
    robn authored and behlendorf committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    d961954 View commit details
    Browse the repository at this point in the history
  15. ddt: document the theory and the key data structures

    Reviewed-by: Brian Behlendorf <[email protected]>
    Signed-off-by: Rob Norris <[email protected]>
    Sponsored-by: Klara, Inc.
    Sponsored-by: iXsystems, Inc.
    Closes #15887
    robn authored and behlendorf committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    5720b00 View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2024

  1. ZTS: Skip cross-fs bclone tests if FreeBSD < 14.0

    Skip cross filesystem block cloning tests on FreeBSD if running
    less than version 14.0.  Cross filesystem copy_file_range() was
    added in FreeBSD 14.
    
    Reviewed-by: Brian Behlendorf <[email protected]>
    Signed-off-by: Tony Hutter <[email protected]>
    Closes #15901
    tonyhutter authored Feb 16, 2024
    Configuration menu
    Copy the full SHA
    d6a3d3f View commit details
    Browse the repository at this point in the history
  2. Check for minimum partition size

    On Linux block devices used for vdevs will by partitioned.  The block
    device must be large enough for an 64M partition starting at offset
    of 2048 sectors (part1), and a second 64M reserved partition at the
    end of the device (part9).
    
    This commit adds a capacity check when creating the GPT label to
    immediately detect a device which is too small.  With the existing
    code this would be caught slightly latter when attempting to use
    the partition.  Catching it sooner let's us print a more useful error.
    
    Reviewed-by: Tony Hutter <[email protected]>
    Signed-off-by: Brian Behlendorf <[email protected]>
    Closes #15898
    behlendorf authored Feb 16, 2024
    Configuration menu
    Copy the full SHA
    af4da5c View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2024

  1. Fixed parameter passing error when calling zfs_acl_chmod

    Follow up to 99495ba which
    accidentally introduce this regression.
    
    Reviewed by: Brian Behlendorf <[email protected]>
    Signed-off-by: Quartz <[email protected]>
    Closes #15907
    yyhran authored Feb 26, 2024
    Configuration menu
    Copy the full SHA
    5600dff View commit details
    Browse the repository at this point in the history
  2. config: use -Wno-format-truncation globally

    -Wformat-truncation looks for places where the return code of snprintf()
    is unchecked and the provided buffer might be too short. This is based
    on a heuristic that can change between compiler versions.
    
    It has been seen to get this wrong in ddt_object_name(), leading to
    DDT_NAMELEN being increased somewhat arbitrarily.
    
    There's no good reason to have this warning enabled, so here we disable
    it everywhere. Truncation may be undesirable, but snprintf() is
    guaranteed to emit a trailing null, so at worst we get a short string,
    not a buffer overrun.
    
    Reviewed by: Brian Behlendorf <[email protected]>
    Signed-off-by: Rob Norris <[email protected]>
    Sponsored-by: https://despairlabs.com/sponsor/
    Closes #15908
    robn authored and behlendorf committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    c00c085 View commit details
    Browse the repository at this point in the history
  3. ddt: reduce DDT_NAMELEN

    This is the buffer size passed to ddt_object_name(), to expand the
    DMU_POOL_DDT format. That format inserts the table checksum, class and
    type names, which as I write this are max 6, 9 and 3, respectively.
    
    Reviewed by: Brian Behlendorf <[email protected]>
    Signed-off-by: Rob Norris <[email protected]>
    Sponsored-by: https://despairlabs.com/sponsor/
    Closes #15908
    robn authored and behlendorf committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    8f2f6cd View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2024

  1. getblkx(9): be more tolerant but also strict with the buffer size checks

    It is possible that on-disk filesystem format causes allocation of
    buffers of size larger than maxbcachebuf.  Currently, getblkx() and
    indirectly bufkva_alloc() panic in that situation.
    
    It is more useful to return an error instead, allowing the system to
    continue running.
    
    PR:	277414
    Reported by:	Robert Morris <[email protected]>
    MFC after:	1 week
    Sponsored by:	The FreeBSD Foundation
    kostikbel committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    7e4ac11 View commit details
    Browse the repository at this point in the history
  2. gpioevents: Fix build with newer Clang

    PR:		277422
    VoxSciurorum authored and emaste committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    42b117a View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2024

  1. sys/mount.h: align values of MNTK_XXX flags

    Sponsored by:	The FreeBSD Foundation
    MFC after:	3 days
    kostikbel committed Mar 3, 2024
    Configuration menu
    Copy the full SHA
    2496fb7 View commit details
    Browse the repository at this point in the history
  2. linux: require vnet(9) context in ifname_bsd_to_linux_name()

    This function is used by netlink(9) only.  The netlink(9) taskqueue thread
    runs in the vnet of the socket whose request the thread is processing
    right now.  This is a correct vnet and resetting it to vnet0 is incorrect.
    If the function is to be used by any other caller in addition to
    netlink(9), it would be caller's responsiblity to provide correct vnet(9).
    
    Reviewed by:		melifaro, dchagin
    Differential Revision:	https://reviews.freebsd.org/D44191
    PR:			277286
    glebius committed Mar 3, 2024
    Configuration menu
    Copy the full SHA
    2f5a315 View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2024

  1. posix_spawnattr_setflags(3): validate argument

    Reviewed by:	emaste, kevans
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44195
    kostikbel committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    80ac36c View commit details
    Browse the repository at this point in the history
  2. posix_spawn(3): add POSIX_SPAWN_DISABLE_ASLR_NP

    similar to Apple _POSIX_SPAWN_DISABLE_ASLR
    
    Reviewed by:	emaste, kevans
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44195
    kostikbel committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    822042f View commit details
    Browse the repository at this point in the history
  3. posix_spawn(3): document POSIX_SPAWN_DISABLE_ASLR_NP

    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    kostikbel committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    a725a7a View commit details
    Browse the repository at this point in the history
  4. LinuxKPI: Queue skbuffs at tail in __skb_queue_tail

    Correct skb_queue_tail to queue the buffer at the tail of the skbuff.
    The skbuff is a circular doubly-linked list, and we call with a pointer
    to the head of the list.  Thus queueing before the head gives us a
    queueing at the tail.
    
    As a motivating factor, the current behaviour (queueing at the head) was
    causing frequent kernel panics from my RTL8822BE wireless card, which
    uses the rtw88 driver.  Interrupts can cause buffers to be added to the
    rtwdev c2h_queue while the queue is being drained in rtw_c2h_work.
    Queueing at the head would leave the nascent entry in the linked list
    pointing to the old, now freed, memory for the buffer being processed.
    When rtw_c2h_work is next called, we try reading this and so panic.
    
    Reviewed by:	emaste, bz
    MFC after:	1 week
    Differential Revision: https://reviews.freebsd.org/D44192
    Tom Coldrick authored and emaste committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    d3befb5 View commit details
    Browse the repository at this point in the history
  5. hostapd: Work around lack of MLME support

    hostap MLME uses Linux data structures and definitions not available
    in FreeBSD. The ability for hostapd to select the frequency (channel)
    depends Linux MLME, though strictly it's not required. Work around the
    Linux MLME requirement to configure device frequency.
    
    The detailed description is: hostapd will only set the channel (frequency)
    when Linux MLME is configured. Enabling NEED_AP_MLME will result in
    numerous build errors due do Linux data structures and definitions not
    available under FreeBSD. The code to set the frequency from the selected
    channel is only within the NEED_AP_MLME code path because without MLME,
    hostapd_get_hw_features() is an inline that always returns -1 whereas with
    MLME hostapd_get_hw_features() will obtain hardware features from the
    kernel. Until such time we simply set the frequency as configured.
    
    PR:		276375
    MFC after:	1 month
    cschuber committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    84ed863 View commit details
    Browse the repository at this point in the history
  6. riscv: catch up with EARLY_PRINTF changes

    On this platform early console access is possible via SBI. Follow recent
    changes to EARLY_PRINTF option and give it a named constant.
    
    Update the commented option in GENERIC so that it compiles.
    
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D44100
    mhorne committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    da48ddb View commit details
    Browse the repository at this point in the history
  7. Add a missing space in a warning.

    Hartmut Brandt authored and Hartmut Brandt committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    83550d0 View commit details
    Browse the repository at this point in the history
  8. imgact_elf: Add const to the header_supported callback arguments

    This callback shouldn't be modifying any of the arguments.
    
    Reviewed by:	imp, kib, emaste, jhb
    Obtained from:	CheriBSD
    Differential Revision:	https://reviews.freebsd.org/D44193
    arichardson authored and bsdjhb committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    327ada0 View commit details
    Browse the repository at this point in the history
  9. Merge commit f800c1f3b207 from llvm-project (by Arthur Eubanks):

      [PEI] Don't zero out noreg operands
    
      A tail call may have $noreg operands.
    
      Fixes a crash.
    
      Reviewed By: xgupta
    
      Differential Revision: https://reviews.llvm.org/D156485
    
    This should fix an assertion failure building qemu, specifically those
    parts using -fzero-call-used-regs.
    
    Reported by:	Daniel Berrangé <[email protected]>
    PR:		277474
    MFC after:	3 days
    DimitryAndric committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    a39b3aa View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2024

  1. libc/locale: don't expose nonexistant __collate_load_error

    The private symbol __collate_load_error was removed in 2015 in commit
    2a6abee.  While it had previously been accidently removed in 2011
    (commit 3c87aa1d3dc1a) and restored in 2012 (commit bb4317b) I
    think it's time to write it off after four major releases without it.
    
    Fixes:		2a6abee The collate functions within libc have...
    
    Reviewed by:	bapt
    Differential Revision:	https://reviews.freebsd.org/D44182
    brooksdavis committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    ec911a4 View commit details
    Browse the repository at this point in the history
  2. libc: actually build bsearch_b

    Fixes:		46cdc14 Add support for some block functions ...
    
    Reviewed by:	theraven
    Differential Revision:	https://reviews.freebsd.org/D44189
    brooksdavis committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    7e8e73f View commit details
    Browse the repository at this point in the history
  3. tcp_rack.4: Remove a mentioned paper

    The paper "T-RACKs: A Faster Recovery Mechanism for
    TCP in Data Center Networks" has nothing to do with
    our TCP RACK implementation, so remove it.
    
    Reported by:	tuexen
    MFC after:	3 days
    gbergling committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    7701b99 View commit details
    Browse the repository at this point in the history
  4. imgact_elf: Add const to a few struct image_params pointers

    This makes it more obvious which functions modify fields in this struct.
    
    Reviewed by:	imp, kib
    Obtained from:	CheriBSD
    Differential Revision:	https://reviews.freebsd.org/D44214
    arichardson authored and bsdjhb committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    169641f View commit details
    Browse the repository at this point in the history
  5. imgact_elf: Add const to the checknote parameter to __elfN(parse_notes)

    Reviewed by:	imp, kib
    Sponsored by:	University of Cambridge, Google, Inc.
    Differential Revision:	https://reviews.freebsd.org/D44215
    bsdjhb committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    364d1b2 View commit details
    Browse the repository at this point in the history
  6. pci_host_generic: Pass a valid end address in generic_pcie_translate_…

    …resource
    
    The generic_pcie_containing_range helper added in commit d79b6b8
    assumed that the passed in (start, end) range used to locate the
    containing mapping range was a valid address range (with end >=
    start).  The previous version of
    generic_pcie_translate_resource_common only used the start address to
    locate a mapping range, so the end address of 0 did not matter, but an
    end of 0 now causes the first range to match and an incorrect
    translation for resources using a later range.
    
    PR:		277211
    Reported by:	dch, tuexen
    Reviewed by:	tuexen
    Fixes:		d79b6b8 pci_host_generic: Don't rewrite resource start address for translation
    Differential Revision:	https://reviews.freebsd.org/D44205
    bsdjhb committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    332dbd3 View commit details
    Browse the repository at this point in the history
  7. pci_host_generic: Simplify generic_pcie_translate_resource

    Inline generic_pcie_translate_resource_common into its sole caller.
    No functional change.
    
    Reviewed by:	tuexen
    Differential Revision:	https://reviews.freebsd.org/D44206
    bsdjhb committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    291079d View commit details
    Browse the repository at this point in the history
  8. kern: poll: tap out the pollfd array on successful return

    We do this in kern_poll() to include freebsd32 but exclude the linux
    compat layer.  The ABI should be the same, but the POLL constants are
    probably different or should be assumed so.
    
    Reviewed by:	bapt, jhb
    Differential Revision:	https://reviews.freebsd.org/D44158
    kevans91 committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    b5d2165 View commit details
    Browse the repository at this point in the history
  9. libsysdecode: add a decoder for pollfd events

    We'll use this in another change to read pollfd arrays coming from a
    successful poll(2) operation.
    
    Reviewed by:	bapt, jhb
    Differential Revision:	https://reviews.freebsd.org/D44159
    kevans91 committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    bd23e71 View commit details
    Browse the repository at this point in the history
  10. kdump: decode pollfd struct arrays coming from poll(2)

    We'll handle these just as we do kevents, one per line with subsequent
    lines indented sufficiently to distinguish them from the upcoming
    return value.
    
    Sample, with indentation stripped and revents changed to '...' in the
    first one to keep the line length down:
    
    CALL  poll(0x820610560,0x3,0)
    STRU  struct pollfd[] = { { fd=0, events=0x1<POLLIN>, revents=0x11<...>
     { fd=1, events=0x4<POLLOUT>, revents=0x4<POLLOUT>}
     { fd=-1, events=0x4<POLLOUT>, revents=0} }
    RET   poll 2
    
    Reviewed by:	bapt, jhb
    Differential Revision:	https://reviews.freebsd.org/D44160
    kevans91 committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    02c57f7 View commit details
    Browse the repository at this point in the history
  11. ktrace: log genio events on failed write

    Visibility into the contents of the buffer when a write(2) has failed
    can be immensely useful in debugging IPC issues -- pushing this to
    discuss the idea, or maybe an alternative where we can set a flag like
    KTRFAC_ERRIO to enable it.
    
    When a genio event is potentially raised after an error, currently we'll
    just free the uio and return.  However, such data can be useful when
    debugging communication between processes to, e.g., understand what the
    remote side should have grabbed before closing a pipe.  Tap out the
    entire buffer on failure rather than simply discarding it.
    
    Reviewed by:	kib, markj
    Differential Revision:	https://reviews.freebsd.org/D43799
    kevans91 committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    47ad4f2 View commit details
    Browse the repository at this point in the history
  12. .github: Switch to v4 of actions/checkout

    GitHub is emitting a warning that v3 is deprecated due to using
    Node.js 16.
    bsdjhb committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    e6dccf0 View commit details
    Browse the repository at this point in the history
  13. bsd-family-tree: add FreeBSD 13.3

    MFC after:	3 days
    osokin committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    885590b View commit details
    Browse the repository at this point in the history
  14. diskinfo(8): introduce new option -l

    In modes -p or -s, add an option -l to start each line
    with a device name separated with a tab. Update the manual page.
    Add an example to list names with corresponding serial numbers:
    
    diskinfo -ls /dev/da?
    
    MFC after:	2 weeks
    Eugene Grosbein authored and Eugene Grosbein committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    e333110 View commit details
    Browse the repository at this point in the history
  15. zfsd: Use vdev prop values for fault/degrade thresholds

    ZED uses vdev props for setting disk fault/degrade thresholds, this
    patch enables zfsd to use the same vdev props for these same tasks.
    
    OpenZFS on Linux is using vdev props for ZED disk fault/degrade
    thresholds. Originally the thresholds supported were for io and checksum
    events and recently this was updated to process slow io events as
    well, see
    openzfs/zfs@cbe8822
    
    This patch enables us to use the same vdev props in zfsd as ZED uses.
    After this patch is merged both OSs will use the same vdev props to set
    retirement thresholds.
    
    It's probably important to note that the threshold defaults are
    different between OS. I've kept the existing defaults inside zfsd and
    DID NOT match them to what ZED does.
    
    Differential Revision: https://reviews.freebsd.org/D44043
    MFC after:	2 weeks
    Relnotes:	yes
    Reviewed by:	asomers, allanjude
    Sponsored by:	Axcient
    Submitted by:	Alek Pinchuk <[email protected]>
    asomers committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    89f4f91 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2024

  1. posix_spawn.c: fix typo in comment

    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    kostikbel committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    ebaf907 View commit details
    Browse the repository at this point in the history
  2. libthr: remove explicit sys/cdefs.h includes

    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    kostikbel committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    f8bbbce View commit details
    Browse the repository at this point in the history
  3. libc posix_spawn(): explain why rtld can be used after fork

    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    kostikbel committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    2ce23b1 View commit details
    Browse the repository at this point in the history
  4. Revert "md5.1: Fix an example"

    This reverts commit 865baea.
    gbergling committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    a446582 View commit details
    Browse the repository at this point in the history
  5. if_bnxt: Correcting the firmware package version parsing logic

    The firmware package version currently appears as "Unknown" through
    the sysctl interface. The parsing logic for extracting the firmware
    package version from the package log has been modified to ensure
    compatibility with all controllers.
    
    Reviewed by:            imp
    Approved by:            imp
    Differential revision:  https://reviews.freebsd.org/D42950
    Sumit Saxena authored and Sumit Saxena committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    e436cb7 View commit details
    Browse the repository at this point in the history
  6. vmm.4: Add verbiage about need to load module from loader.conf

    PR:		277530
    MFC after:	1 week
    Co-authored-by:	Mateusz Piotrowski <[email protected]>
    michaelgalassi authored and 0mp committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    d0168b3 View commit details
    Browse the repository at this point in the history
  7. tarfs: Fix two input validation issues.

    * Reject hard or soft links with an empty target path.  Currently, a
      debugging kernel will hit an assertion in tarfs_lookup_path() while
      a non-debugging kernel will happily create a link to the mount root.
    
    * Use a temporary variable to store the result of the link target path,
      and copy it to tnp->other only once we have found it to be valid.
      Otherwise we error out after creating a reference to the target but
      before incrementing the target's reference count, which results in a
      use-after-free situation in the cleanup code.
    
    * Correctly return ENOENT from tarfs_lookup_path() if the requested
      path was not found and create_dirs is false.  Luckily, existing
      callers did not rely solely on the return value.
    
    MFC after:	3 days
    PR:		277360
    Sponsored by:	Juniper Networks, Inc.
    Sponsored by:	Klara, Inc.
    Reviewed by:	sjg
    Differential Revision:	https://reviews.freebsd.org/D44161
    dag-erling committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    38b3683 View commit details
    Browse the repository at this point in the history
  8. tarfs: Improve validation of numeric fields.

    MFC after:	3 days
    Sponsored by:	Juniper Networks, Inc.
    Sponsored by:	Klara, Inc.
    Reviewed by:	sjg, allanjude
    Differential Revision:	https://reviews.freebsd.org/D44166
    dag-erling committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    8427d94 View commit details
    Browse the repository at this point in the history
  9. tarfs: Avoid overflow in exthdr calculation.

    MFC after:	3 days
    PR:		277420
    Sponsored by:	Juniper Networks, Inc.
    Sponsored by:	Klara, Inc.
    Reviewed by:	kib
    Differential Revision:	https://reviews.freebsd.org/D44202
    dag-erling committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    c291b79 View commit details
    Browse the repository at this point in the history
  10. tarfs: Remove unnecessary hack and obsolete comment.

    MFC after:	3 days
    Sponsored by:	Juniper Networks, Inc.
    Sponsored by:	Klara, Inc.
    Reviewed by:	allanjude
    Differential Revision:	https://reviews.freebsd.org/D44203
    dag-erling committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    e212f0c View commit details
    Browse the repository at this point in the history
  11. tarfs: Fix checksum calculation.

    The checksum code assumed that struct ustar_header filled an entire
    block and calculcated the checksum based on the size of the structure.
    The header is in fact only 500 bytes long while the checksum covers
    the entire block (“logical record” in POSIX terms).  Add padding and
    an assertion, and clean up the checksum code.
    
    MFC after:	3 days
    Sponsored by:	Juniper Networks, Inc.
    Sponsored by:	Klara, Inc.
    Reviewed by:	imp
    Differential Revision:	https://reviews.freebsd.org/D44226
    dag-erling committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    0118b0c View commit details
    Browse the repository at this point in the history
  12. tarfs: Factor out common test code.

    MFC after:	3 days
    Sponsored by:	Juniper Networks, Inc.
    Sponsored by:	Klara, Inc.
    Reviewed by:	allanjude
    Differential Revision:	https://reviews.freebsd.org/D44227
    dag-erling committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    32b8aac View commit details
    Browse the repository at this point in the history
  13. timerfd_create: accept CLOCK_UPTIME/CLOCK_BOOTTIME

    This is a common use case when using timerfd_create to actually use
    it with CLOCK_BOOTTIME on linux which is CLOCK_UPTIME for us.
    
    Note that currently on freebsd CLOCK_BOOTTIME is CLOCK_UPTIME, but the
    semantic is supposed to be different, this has to be fixed later.
    
    Tested with the fnott notification software
    
    Reviewed by:	des, imp
    Differential Revision:	https://reviews.freebsd.org/D44253
    bapt committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    cf742fa View commit details
    Browse the repository at this point in the history
  14. timerfd_create: fix after cf742fa

    Remove the include that crept in by accident
    Clang complains about CLOCK_BOOTTIME being the same for now as
    CLOCK_UPTIME, so remove CLOCK_BOOTTIME and leave a comment for
    what to do when CLOCK_BOOTTIME will be different for real.
    bapt committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    0ecf0b2 View commit details
    Browse the repository at this point in the history
  15. bsearch_b: fix compilation with gcc

    Reported by:	rscheff
    Differential Revision:	https://reviews.freebsd.org/D44256
    brooksdavis committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    8c94ed9 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2024

  1. liblzma: don't export lzma_lz_decoder_uncompressed

    It was removed in the 5.4.0 import.
    
    Reviewed by:	delphij
    Differential Revision:	https://reviews.freebsd.org/D44247
    brooksdavis committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    023fa55 View commit details
    Browse the repository at this point in the history
  2. heimdal: don't export nonexistant _wind_ucs2read

    This symbol table entry came in with the 1.5 import (commit
    7c450da), but the only other mention is a commented out entry in
    lib/wind/libwind-exports.def.
    
    Reviewed by:	cy
    Differential Revision:	https://reviews.freebsd.org/D44245
    brooksdavis committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    de4386d View commit details
    Browse the repository at this point in the history
  3. heimdal: don't try to expose nonexistant symbols

    For one reason or another these symbols aren't present so don't try to
    make them available for linkage.
    
    In the case of libroken these seem to be compatability bits we don't
    need a thus don't compile.  For others it seems to rot upstream, but
    I've not investigated deeply.
    
    Reviewed by:	cy
    Differential Revision:	https://reviews.freebsd.org/D44246
    brooksdavis committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    cec2adb View commit details
    Browse the repository at this point in the history
  4. libsys/aarch64: end syscall stubs with newlines

    Technically speaking, POSIX text files must end with a newline.
    
    Reviewed by:	kib
    Differential Revision:	https://reviews.freebsd.org/D44231
    brooksdavis committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    269593d View commit details
    Browse the repository at this point in the history
  5. libsys/riscv: Remove pointless MD syscall(2)

    This file is functionally identical to the stub generated by
    Makefile.sys once the MD version is removed.
    
    Reviewed by:	kib
    Differential Revision:	https://reviews.freebsd.org/D44232
    brooksdavis committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    e6ffc76 View commit details
    Browse the repository at this point in the history
  6. libsys/arm: Remove pointless MD syscall(2)

    This file is functionally identical to the stub generated by
    Makefile.sys once the MD version is removed.
    
    Reviewed by:	kib
    Differential Revision:	https://reviews.freebsd.org/D44233
    brooksdavis committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    0ee0ae2 View commit details
    Browse the repository at this point in the history
  7. libsys/aarch: Remove pointless MD syscall(2)

    This file is functionally identical to the stub generated by
    Makefile.sys once the MD version is removed.
    
    Reviewed by:	kib
    Differential Revision:	https://reviews.freebsd.org/D44234
    brooksdavis committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    7b3836c View commit details
    Browse the repository at this point in the history
  8. syscall(2): make i386 less of an outlier

    Unlike other architectures, i386 only defined syscall() and not
    _syscall() or __sys_syscall().  The syscall() function then invoked the
    desired system call directly rather than invoking syscall(2).  Keep the
    latter as it's marginally more efficent, but also create the
    conventional _syscall() and __sys_syscall() stubs.
    
    This avoids the need to special case syscall(2) in the symbol list
    generation in libsys.
    
    Reviewed by:	kib
    Differential Revision:	https://reviews.freebsd.org/D44235
    brooksdavis committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    39a15d7 View commit details
    Browse the repository at this point in the history
  9. libsys: don't try to expose yield

    The undocumented yield system call has never been implemented via libc
    or libsys (except accidentally for <15 minutes in 1998 between commits
    abd529c and 0db2fac).  Avoid trying to export it now to avoid
    failures when linking with --no-undefined-version.
    
    Reviewed by:	kib
    Differential Revision:	https://reviews.freebsd.org/D44236
    brooksdavis committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    cc4ffc9 View commit details
    Browse the repository at this point in the history
  10. libsys: don't expose __init_elf_aux_vector

    __init_elf_aux_vector is now complied statically so don't try to export
    it from the dynamic library.
    
    Fixes:	8271d9b libsys: remove usage of pthread_once and _once_stub
    
    Reviewed by:	kib
    Differential Revision:	https://reviews.freebsd.org/D44237
    brooksdavis committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    83392af View commit details
    Browse the repository at this point in the history
  11. nvme: split devctl out to its own function

    Split the devctl aspect of things out to its own function in
    nvme_ctrlr_devctl_log. In preparing to document this, and based on
    actual use, we want something different for the SMART errors, so this
    will facilitate that.
    
    Sponsored by:		Netflix
    Reviewed by:		chuck, mav
    Differential Revision:	https://reviews.freebsd.org/D44209
    bsdimp committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    fc3afe9 View commit details
    Browse the repository at this point in the history
  12. nvme: Change devctl events for the controller

    Change the devctl events slightly for the controller. SMART errors will
    log the changed bits in the NVME SMART Critical Warning State as its
    event.
    
    Reset will now emit 'event=start'. Soon more.
    
    Sponsored by:		Netflix
    Reviewed by:		mav
    Differential Revision:	https://reviews.freebsd.org/D44210
    bsdimp committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    4f817fc View commit details
    Browse the repository at this point in the history
  13. nvme: Log reset success or failure to devd

    We're logging when we start a reset, but not when we complete it, nor
    the result. Create now log a success or timed_out event for the reset.
    Currently, the only detectable error we have from reset is 'failure to
    become ready in time,' though the code looks like it might be more
    generic. Log this and if we ever have other failure modes, change the
    logging to devd when that happens.
    
    Sponsored by:		Netflix
    Differential Revision:	https://reviews.freebsd.org/D44211
    bsdimp committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    5cdedf6 View commit details
    Browse the repository at this point in the history
  14. nvme: Add SMART WARNING for persistent memory region

    NVME 2.0 added persistent memory regions, and this bit reports critical
    warnings / errors with those regions.
    
    Sponsored by:		Netflix
    Reviewed by:		mav
    Differential Revision:	https://reviews.freebsd.org/D44213
    bsdimp committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    2a2682e View commit details
    Browse the repository at this point in the history
  15. devd: Document the nvme devd events

    Nvme informs devd of smart and reset controller events. Document them.
    
    Sponsored by:		Netflix
    Differential Revision:	https://reviews.freebsd.org/D44212
    bsdimp committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    6a3877a View commit details
    Browse the repository at this point in the history
  16. devd: Add directory information

    Devd searches /etc/devd and /usr/local/etc/devd by default (given the
    default devd.conf file). Document that here.
    
    Sponsored by:		Netflix
    bsdimp committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    7c6af20 View commit details
    Browse the repository at this point in the history
  17. bhyve/gdb: Avoid rebuilding target.xml for install targets

    Otherwise it's impossible to install from a read-only objdir.
    
    Fixes:	f81cdf2 ("bhyve: Add support for XML register definitions")
    Reported by:	olivier
    markjdb committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    8a802df View commit details
    Browse the repository at this point in the history
  18. tarfs: Fix checksum on 32-bit platforms.

    MFC after:	3 days
    Fixes:		b56872332e47786afc09515a4daaf1388da4d73c
    Sponsored by:	Juniper Networks, Inc.
    Sponsored by:	Klara, Inc.
    Reviewed by:	bapt
    Differential Revision:	https://reviews.freebsd.org/D44261
    dag-erling committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    cbddb2f View commit details
    Browse the repository at this point in the history
  19. zfs: merge openzfs/zfs@8f2f6cd2a

    Notable upstream pull request merges:
     #15887 -multiple Fast Dedup: Cleanup and documentation ahead of
                      integrating Fast Dedup
     #15907 5600dff Fixed parameter passing error when calling zfs_acl_chmod
     #15908 8f2f6cd ddt: reduce DDT_NAMELEN
    
    Obtained from:	OpenZFS
    OpenZFS commit:	8f2f6cd
    mmatuska committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    4fefe1b View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    c849eb8 View commit details
    Browse the repository at this point in the history
  21. if_bnxt: Fix media speed update issue in "ifconfig -m" during PHY hot…

    … plug
    
    Currently, if a media type (e.g., DAC) is hot-plugged out and another type
    (e.g., optical cable) is hot-plugged in, the new speed is not reflected in
    ifconfig. This occurs when the driver fails to update speeds with unchanged
    tx and rx flow control.
    
    To fix, a phy_type check ensures update of phy speeds upon detecting the new
    phy.
    
    Reviewed by:            imp
    Approved by:            imp
    Differential revision:  https://reviews.freebsd.org/D42951
    cp890582 authored and Sumit Saxena committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    7cbffbf View commit details
    Browse the repository at this point in the history
  22. nvme_sim: Add comment about the is_failed test

    We only see a request with a failed controller while we're in the
    process of failing the controller. Add a comment to that effect.
    
    Sponsored by:		Netflix
    bsdimp committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    fe52c33 View commit details
    Browse the repository at this point in the history
  23. if_bnxt: Incorrect Labeling of Supported Medium in `ifconfig -m <inf>…

    …` Command
    
    The 1G speed on DAC medium is incorrectly labeled as 1000baseT, it
    should be 1000baseCX. Updated the label accordingly.
    
    Reviewed by:            imp
    Approved by:            imp
    Differential revision:  https://reviews.freebsd.org/D42952
    cp890582 authored and Sumit Saxena committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    c5108e3 View commit details
    Browse the repository at this point in the history
  24. if_bnxt: Enabled support for 1G SX, CX, and LX forced speed settings

    Enabled User Configuration of 1G Speed on Wh+ SFP28 Port with AOC
    cable.
    
    Reviewed by:            imp
    Approved by:            imp
    Differential revision:  https://reviews.freebsd.org/D42953
    cp890582 authored and Sumit Saxena committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    0f8d1a9 View commit details
    Browse the repository at this point in the history
  25. if_bnxt: Update Maximum Configurable MTU from 9000 to 9600

    Increasing the maximum configurable MTU from 9000 to 9600 to
    align with the firmware's capability of handling an MTU up to 9600.
    
    Reviewed by:            imp
    Approved by:            imp
    Differential revision:  https://reviews.freebsd.org/D42954
    cp890582 authored and Sumit Saxena committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    8a3aab5 View commit details
    Browse the repository at this point in the history
  26. if_bnxt: Update Firmware Header to Latest Version 1.10.2.136

    Update Firmware Header to Latest Version 1.10.2.136.
    
    Reviewed by:            imp
    Approved by:            imp
    Differential revision:  https://reviews.freebsd.org/D42955
    cp890582 authored and Sumit Saxena committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    25f38d0 View commit details
    Browse the repository at this point in the history
  27. if_bnxt: Integrate AOC Cable Support into Current 40G PHY Speed

    Reviewed by:            imp
    Approved by:            imp
    Differential revision:  https://reviews.freebsd.org/D429506
    cp890582 authored and Sumit Saxena committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    816abba View commit details
    Browse the repository at this point in the history
  28. if_bnxt: Implementation of Extended Port Hardware Stats Support for T…

    …HOR Controller
    
    The newly added port extended hardware statistics are now accessible to
    users through the sysctl interface. Also, Few obsolete stats are removed
    and few stats are renamed.
    
    Reviewed by:            imp
    Approved by:            imp
    Differential revision:  https://reviews.freebsd.org/D42957
    cp890582 authored and Sumit Saxena committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    d36b366 View commit details
    Browse the repository at this point in the history
  29. if_bnxt: Pluggable Module Display Support

    This update enables the display of pluggable module information
    to users via the ifconfig utility.
    
    Reviewed by:            imp
    Approved by:            imp
    Differential revision:  https://reviews.freebsd.org/D42958
    Sumit Saxena authored and Sumit Saxena committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    3320f0f View commit details
    Browse the repository at this point in the history
  30. if_bnxt: 50G, 100G and 200G PAM4 support

    Add support for 50G, 100G and 200G PAM4 support
    
    Reviewed by:            imp
    Approved by:            imp
    Differential revision:  https://reviews.freebsd.org/D42959
    cp890582 authored and Sumit Saxena committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    c63d67e View commit details
    Browse the repository at this point in the history
  31. if_bnxt: Set 1G/10G baseT force speed as auto speeds

    The firmware lacks support for manually setting 1G and 10G baseT speeds.
    However, the driver can enable auto speed masks to achieve automatic configuration
    at these speeds.
    
    Reviewed by:            imp
    Approved by:            imp
    Differential revision:  https://reviews.freebsd.org/D42960
    cp890582 authored and Sumit Saxena committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    770e7ba View commit details
    Browse the repository at this point in the history
  32. amend! if_bnxt: Integrate AOC Cable Support into Current 40G PHY Speed

    if_bnxt: Integrate AOC Cable Support into Current 40G PHY Speed
    
    Reviewed by:            imp
    Approved by:            imp
    Differential revision:  https://reviews.freebsd.org/D42956
    Sumit Saxena authored and Sumit Saxena committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    72ecb16 View commit details
    Browse the repository at this point in the history
  33. libc/iconv: don't export nonexistant symbols

    It's unclear to me that any of these symbols ever existed.  The ones
    I've spot checked are only mentioned in the initial Citrus iconv import
    (commit ad30f8e) and this code hasn't changed much over time.
    
    Reviewed by:	kevans
    Differential Revision:	https://reviews.freebsd.org/D44183
    brooksdavis committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    8c8882c View commit details
    Browse the repository at this point in the history
  34. libc/quad: narrow list of symbols exposed on i386

    These symbols aren't present on i386 so don't try to expose them.
    
    Given the structure of quad/Makefile.inc, it might make more sense to
    have per-arch symbol maps here, but this is sufficent to build with
    WITHOUT_UNDEFINED_VERSION on i386.
    
    Reviewed by:	kib
    Differential Revision:	https://reviews.freebsd.org/D44243
    brooksdavis committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    6e6cd03 View commit details
    Browse the repository at this point in the history
  35. libc/i386: don't attempt to export alloca

    The assembly implementation was removed in 2006 (commit 3c03c70).
    
    Reviewed by:	kib
    Differential Revision:	https://reviews.freebsd.org/D44242
    brooksdavis committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    32c7350 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2024

  1. awk: Fix the tests

    I'd forgotten that we have to adjust the stderr tests from
    upstream. Remove the OK files. Also remove system-status.*.  These
    restore the fixes I made in 517e52b which were lost when I imported
    the last version of awk.
    
    Also, force LANG to be C.UTF-8 when testing to ensure that stray lang
    settings don't fail tests.
    
    Sponsored by:		Netflix
    bsdimp committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    ba7b7f9 View commit details
    Browse the repository at this point in the history
  2. ObsoleteFiles.inc: add the awk tests I just remvoed

    These files were bogusly added when I imported awk 2nd edition.
    
    Sponsored by:		Netflix
    bsdimp committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    4f9fbde View commit details
    Browse the repository at this point in the history
  3. TCP LRO: disable mbuf queuing when packet filter hooks are in place

    When doing mbuf queueing, the packet filter hooks in ether_demux(),
    ip_input(), and ip6_input() are by-passed. This means that the packet
    filters don't process incoming packets, which might result in
    connection failures. For example bypassing the TCP sequence number
    validation will result in dropping valid packets.
    Please note that this patch is only disabling mbuf queueing, not LRO.
    
    Reported by:		Herbert J. Skuhra
    Reviewed by:		glebius, rrs, rscheff
    MFC after:		1 week
    Sponsored by:		Netflix, Inc.
    Differential Revision:	https://reviews.freebsd.org/D43769
    tuexen committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    d1ce012 View commit details
    Browse the repository at this point in the history
  4. TCP LRO: add dtrace probe points

    Add the IP, UDP, and TCP receive static probes to the code path,
    which avoids if_input.
    
    Reviewed by:		rrs, markj
    MFC after:		1 week`
    Sponsored by:		Netflix, Inc.
    Differential Revision:	https://reviews.freebsd.org/D43727
    tuexen committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    96ad640 View commit details
    Browse the repository at this point in the history
  5. Hyper-V: vPCI: fix cpu id mis-mapping in vmbus_pcib_map_msi()

    The msi address contains apic id. The code in vmbus_pcib_map_msi()
    treats it as cpu id, which could cause mis-configuration of msix
    IRQs, leading to missing interrupts for SRIOV devices. This happens
    when apic id is not the same as cpu id on certain large VM sizes
    with multiple numa domains in Azure. Fix this issue by correctly
    mapping apic ids to cpu ids.
    
    On vPCI version before 1.4, it only supports up to 64 vcpus
    for msi/msix interrupt. This change also adds a check and returns
    error if the vcpu_id is greater than 63.
    
    Reported by:	NetApp
    Tested by:	whu
    MFC after:	1 week
    Wei Hu authored and Wei Hu committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    999174b View commit details
    Browse the repository at this point in the history
  6. clk_fixed: call clkdom_dump() for verbose boot

    This is standard practice for clock drivers that register clocks
    dynamically. Nothing else uses the CLK_DEBUG macro.
    
    The result is that the name and frequency of the fixed clock is printed
    for a verbose boot, which may aid in debugging.
    
    Reviewed by:	manu
    MFC after:	1 week
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D44265
    mhorne committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    6e66bb9 View commit details
    Browse the repository at this point in the history
  7. clk_fixed: quiet by default

    We may attach several of these devices, but there is no meaningful
    information added to dmesg. For example:
    
      ofwbus0: <Open Firmware Device Tree>
      clk_fixed0: <Fixed clock> on ofwbus0
      clk_fixed1: <Fixed clock> on ofwbus0
      clk_fixed2: <Fixed clock> on ofwbus0
      clk_fixed3: <Fixed clock> on ofwbus0
      clk_fixed4: <Fixed clock> on ofwbus0
      clk_fixed5: <Fixed clock> on ofwbus0
      clk_fixed6: <Fixed clock> on ofwbus0
      clk_fixed7: <Fixed clock> on ofwbus0
      clk_fixed8: <Fixed clock> on ofwbus0
      clk_fixed9: <Fixed clock> on ofwbus0
      clk_fixed10: <Fixed clock> on ofwbus0
      clk_fixed11: <Fixed clock> on ofwbus0
    
    To reduce this noise, quiet the devices for by default. For verbose
    boot, the message will be emitted.
    
    Reviewed by:	manu
    MFC after:	1 week
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D44266
    mhorne committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    1cb9f6f View commit details
    Browse the repository at this point in the history
  8. clkdom_dump(): improve output text

    If the call to clknode_get_freq() returns an error (unlikely), report
    this, rather than printing the error code as the clock frequency.
    
    If the clock has no parent (e.g. a fixed reference clock), print "none"
    rather than "(NULL)(-1)". This is a more human-legible presentation of the
    same information.
    
    Reviewed by:	manu
    MFC after:	1 week
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D44267
    mhorne committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    08635c5 View commit details
    Browse the repository at this point in the history
  9. simple_mfd: don't attach children twice

    Trying to probe+attach the child device at the point it is added comes
    before the syscon handle is set up (if relevant). It will therefore be
    unavailable to the attach method which is expecting it, and the first
    attempt to attach the device will fail.
    
    Just rely on the call to bus_generic_attach() at the end of the function
    to perform probe+attach of dev's children.
    
    Reviewed by:	manu
    MFC after:	1 week
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D44268
    mhorne committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    accda78 View commit details
    Browse the repository at this point in the history
  10. nullfs_mount(): remove unneeded cast

    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    kostikbel committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    0724293 View commit details
    Browse the repository at this point in the history
  11. nullfs: add -o cache

    to allow overwrite global default if needed.
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    kostikbel committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    8921216 View commit details
    Browse the repository at this point in the history
  12. mount_nullfs(8): document -o cache and vfs.nullfs.cache_vnodes

    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    kostikbel committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    4a2a69c View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    4e8d264 View commit details
    Browse the repository at this point in the history
  14. lib{c,sys}: fix incremental builds

    I removed lib/libsys/{aarch64,arm,riscv}/syscall.S in favor of an
    idential generated version.  We need to clean out the .ddepend files to
    ensure the generated version is actually generated.
    
    The guard here is technically too strict, but should be fine in practice
    and I've verified both the breakage and fix on an armv7 build.
    
    Reported by:	imp
    Fixes:		e6ffc76 Remove pointless MD syscall(2)
    Fixes:		0ee0ae2 Remove pointless MD syscall(2)
    Fixes:		7b3836c Remove pointless MD syscall(2)
    brooksdavis committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    a650ec0 View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2024

  1. crunchgen: slap a dependency on the generated makefile for .lo

    crunchgen generates a foo.lo for each binary it will end up crunching
    into the final product.  While they have a dependency on the libs that
    are used to link them, nothing will force relinking if the set of libs
    needed to link them is changed.  Because of this, incremental builds may
    not be possible if one builds a version of, e.g., rescue/ with a broken
    set of libs specified for a project -- a subsequent fix won't be rolled
    in cleanly, it will require purging the rescue/ objdir.
    
    This is a bit crude, but the foo.mk we generate doesn't actually get
    regenerated all that often in practice, so a spurious relink for the
    vast majority of crunched objects won't actually happen all that often.
    
    Reviewed by:	bapt, emaste, imp
    Differential Revision:	https://reviews.freebsd.org/D43869
    kevans91 committed Mar 9, 2024
    Configuration menu
    Copy the full SHA
    6e2cfb2 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2024

  1. getblkx(9): be more tolerant but also strict with the buffer size checks

    It is possible that on-disk filesystem format causes allocation of
    buffers of size larger than maxbcachebuf.  Currently, getblkx() and
    indirectly bufkva_alloc() panic in that situation.
    
    It is more useful to return an error instead, allowing the system to
    continue running.
    
    PR:	277414
    Reported by:	Robert Morris <[email protected]>
    MFC after:	1 week
    Sponsored by:	The FreeBSD Foundation
    kostikbel authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    1b9c3d2 View commit details
    Browse the repository at this point in the history
  2. gpioevents: Fix build with newer Clang

    PR:		277422
    VoxSciurorum authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    a8a6720 View commit details
    Browse the repository at this point in the history
  3. sys/mount.h: align values of MNTK_XXX flags

    Sponsored by:	The FreeBSD Foundation
    MFC after:	3 days
    kostikbel authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    e6729d8 View commit details
    Browse the repository at this point in the history
  4. linux: require vnet(9) context in ifname_bsd_to_linux_name()

    This function is used by netlink(9) only.  The netlink(9) taskqueue thread
    runs in the vnet of the socket whose request the thread is processing
    right now.  This is a correct vnet and resetting it to vnet0 is incorrect.
    If the function is to be used by any other caller in addition to
    netlink(9), it would be caller's responsiblity to provide correct vnet(9).
    
    Reviewed by:		melifaro, dchagin
    Differential Revision:	https://reviews.freebsd.org/D44191
    PR:			277286
    glebius authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    ac89a72 View commit details
    Browse the repository at this point in the history
  5. posix_spawnattr_setflags(3): validate argument

    Reviewed by:	emaste, kevans
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44195
    kostikbel authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    1e95068 View commit details
    Browse the repository at this point in the history
  6. posix_spawn(3): add POSIX_SPAWN_DISABLE_ASLR_NP

    similar to Apple _POSIX_SPAWN_DISABLE_ASLR
    
    Reviewed by:	emaste, kevans
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D44195
    kostikbel authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    86d527f View commit details
    Browse the repository at this point in the history
  7. posix_spawn(3): document POSIX_SPAWN_DISABLE_ASLR_NP

    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    kostikbel authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    e73a03c View commit details
    Browse the repository at this point in the history
  8. LinuxKPI: Queue skbuffs at tail in __skb_queue_tail

    Correct skb_queue_tail to queue the buffer at the tail of the skbuff.
    The skbuff is a circular doubly-linked list, and we call with a pointer
    to the head of the list.  Thus queueing before the head gives us a
    queueing at the tail.
    
    As a motivating factor, the current behaviour (queueing at the head) was
    causing frequent kernel panics from my RTL8822BE wireless card, which
    uses the rtw88 driver.  Interrupts can cause buffers to be added to the
    rtwdev c2h_queue while the queue is being drained in rtw_c2h_work.
    Queueing at the head would leave the nascent entry in the linked list
    pointing to the old, now freed, memory for the buffer being processed.
    When rtw_c2h_work is next called, we try reading this and so panic.
    
    Reviewed by:	emaste, bz
    MFC after:	1 week
    Differential Revision: https://reviews.freebsd.org/D44192
    Tom Coldrick authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    07f5ce4 View commit details
    Browse the repository at this point in the history
  9. hostapd: Work around lack of MLME support

    hostap MLME uses Linux data structures and definitions not available
    in FreeBSD. The ability for hostapd to select the frequency (channel)
    depends Linux MLME, though strictly it's not required. Work around the
    Linux MLME requirement to configure device frequency.
    
    The detailed description is: hostapd will only set the channel (frequency)
    when Linux MLME is configured. Enabling NEED_AP_MLME will result in
    numerous build errors due do Linux data structures and definitions not
    available under FreeBSD. The code to set the frequency from the selected
    channel is only within the NEED_AP_MLME code path because without MLME,
    hostapd_get_hw_features() is an inline that always returns -1 whereas with
    MLME hostapd_get_hw_features() will obtain hardware features from the
    kernel. Until such time we simply set the frequency as configured.
    
    PR:		276375
    MFC after:	1 month
    cschuber authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    c53b971 View commit details
    Browse the repository at this point in the history
  10. riscv: catch up with EARLY_PRINTF changes

    On this platform early console access is possible via SBI. Follow recent
    changes to EARLY_PRINTF option and give it a named constant.
    
    Update the commented option in GENERIC so that it compiles.
    
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D44100
    mhorne authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    6cfc066 View commit details
    Browse the repository at this point in the history
  11. Add a missing space in a warning.

    Hartmut Brandt authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    ebb704f View commit details
    Browse the repository at this point in the history
  12. imgact_elf: Add const to the header_supported callback arguments

    This callback shouldn't be modifying any of the arguments.
    
    Reviewed by:	imp, kib, emaste, jhb
    Obtained from:	CheriBSD
    Differential Revision:	https://reviews.freebsd.org/D44193
    arichardson authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    d26464a View commit details
    Browse the repository at this point in the history
  13. Merge commit f800c1f3b207 from llvm-project (by Arthur Eubanks):

      [PEI] Don't zero out noreg operands
    
      A tail call may have $noreg operands.
    
      Fixes a crash.
    
      Reviewed By: xgupta
    
      Differential Revision: https://reviews.llvm.org/D156485
    
    This should fix an assertion failure building qemu, specifically those
    parts using -fzero-call-used-regs.
    
    Reported by:	Daniel Berrangé <[email protected]>
    PR:		277474
    MFC after:	3 days
    DimitryAndric authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    45c417c View commit details
    Browse the repository at this point in the history
  14. libc/locale: don't expose nonexistant __collate_load_error

    The private symbol __collate_load_error was removed in 2015 in commit
    2a6abee.  While it had previously been accidently removed in 2011
    (commit 3c87aa1d3dc1a) and restored in 2012 (commit bb4317b) I
    think it's time to write it off after four major releases without it.
    
    Fixes:		2a6abee The collate functions within libc have...
    
    Reviewed by:	bapt
    Differential Revision:	https://reviews.freebsd.org/D44182
    brooksdavis authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    da75980 View commit details
    Browse the repository at this point in the history
  15. libc: actually build bsearch_b

    Fixes:		46cdc14 Add support for some block functions ...
    
    Reviewed by:	theraven
    Differential Revision:	https://reviews.freebsd.org/D44189
    brooksdavis authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    2d1a892 View commit details
    Browse the repository at this point in the history
  16. tcp_rack.4: Remove a mentioned paper

    The paper "T-RACKs: A Faster Recovery Mechanism for
    TCP in Data Center Networks" has nothing to do with
    our TCP RACK implementation, so remove it.
    
    Reported by:	tuexen
    MFC after:	3 days
    gbergling authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    f5316e8 View commit details
    Browse the repository at this point in the history
  17. imgact_elf: Add const to a few struct image_params pointers

    This makes it more obvious which functions modify fields in this struct.
    
    Reviewed by:	imp, kib
    Obtained from:	CheriBSD
    Differential Revision:	https://reviews.freebsd.org/D44214
    arichardson authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    c2902cc View commit details
    Browse the repository at this point in the history
  18. imgact_elf: Add const to the checknote parameter to __elfN(parse_notes)

    Reviewed by:	imp, kib
    Sponsored by:	University of Cambridge, Google, Inc.
    Differential Revision:	https://reviews.freebsd.org/D44215
    bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    b4554fb View commit details
    Browse the repository at this point in the history
  19. pci_host_generic: Pass a valid end address in generic_pcie_translate_…

    …resource
    
    The generic_pcie_containing_range helper added in commit d79b6b8
    assumed that the passed in (start, end) range used to locate the
    containing mapping range was a valid address range (with end >=
    start).  The previous version of
    generic_pcie_translate_resource_common only used the start address to
    locate a mapping range, so the end address of 0 did not matter, but an
    end of 0 now causes the first range to match and an incorrect
    translation for resources using a later range.
    
    PR:		277211
    Reported by:	dch, tuexen
    Reviewed by:	tuexen
    Fixes:		d79b6b8 pci_host_generic: Don't rewrite resource start address for translation
    Differential Revision:	https://reviews.freebsd.org/D44205
    bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    83a7a07 View commit details
    Browse the repository at this point in the history
  20. pci_host_generic: Simplify generic_pcie_translate_resource

    Inline generic_pcie_translate_resource_common into its sole caller.
    No functional change.
    
    Reviewed by:	tuexen
    Differential Revision:	https://reviews.freebsd.org/D44206
    bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    d61d760 View commit details
    Browse the repository at this point in the history
  21. kern: poll: tap out the pollfd array on successful return

    We do this in kern_poll() to include freebsd32 but exclude the linux
    compat layer.  The ABI should be the same, but the POLL constants are
    probably different or should be assumed so.
    
    Reviewed by:	bapt, jhb
    Differential Revision:	https://reviews.freebsd.org/D44158
    kevans91 authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    bdb0bcd View commit details
    Browse the repository at this point in the history
  22. libsysdecode: add a decoder for pollfd events

    We'll use this in another change to read pollfd arrays coming from a
    successful poll(2) operation.
    
    Reviewed by:	bapt, jhb
    Differential Revision:	https://reviews.freebsd.org/D44159
    kevans91 authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    887c683 View commit details
    Browse the repository at this point in the history
  23. kdump: decode pollfd struct arrays coming from poll(2)

    We'll handle these just as we do kevents, one per line with subsequent
    lines indented sufficiently to distinguish them from the upcoming
    return value.
    
    Sample, with indentation stripped and revents changed to '...' in the
    first one to keep the line length down:
    
    CALL  poll(0x820610560,0x3,0)
    STRU  struct pollfd[] = { { fd=0, events=0x1<POLLIN>, revents=0x11<...>
     { fd=1, events=0x4<POLLOUT>, revents=0x4<POLLOUT>}
     { fd=-1, events=0x4<POLLOUT>, revents=0} }
    RET   poll 2
    
    Reviewed by:	bapt, jhb
    Differential Revision:	https://reviews.freebsd.org/D44160
    kevans91 authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    a797482 View commit details
    Browse the repository at this point in the history
  24. ktrace: log genio events on failed write

    Visibility into the contents of the buffer when a write(2) has failed
    can be immensely useful in debugging IPC issues -- pushing this to
    discuss the idea, or maybe an alternative where we can set a flag like
    KTRFAC_ERRIO to enable it.
    
    When a genio event is potentially raised after an error, currently we'll
    just free the uio and return.  However, such data can be useful when
    debugging communication between processes to, e.g., understand what the
    remote side should have grabbed before closing a pipe.  Tap out the
    entire buffer on failure rather than simply discarding it.
    
    Reviewed by:	kib, markj
    Differential Revision:	https://reviews.freebsd.org/D43799
    kevans91 authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    e23e73e View commit details
    Browse the repository at this point in the history
  25. .github: Switch to v4 of actions/checkout

    GitHub is emitting a warning that v3 is deprecated due to using
    Node.js 16.
    bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    db46fad View commit details
    Browse the repository at this point in the history
  26. bsd-family-tree: add FreeBSD 13.3

    MFC after:	3 days
    osokin authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    beffe18 View commit details
    Browse the repository at this point in the history
  27. diskinfo(8): introduce new option -l

    In modes -p or -s, add an option -l to start each line
    with a device name separated with a tab. Update the manual page.
    Add an example to list names with corresponding serial numbers:
    
    diskinfo -ls /dev/da?
    
    MFC after:	2 weeks
    Eugene Grosbein authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    81a0963 View commit details
    Browse the repository at this point in the history
  28. zfsd: Use vdev prop values for fault/degrade thresholds

    ZED uses vdev props for setting disk fault/degrade thresholds, this
    patch enables zfsd to use the same vdev props for these same tasks.
    
    OpenZFS on Linux is using vdev props for ZED disk fault/degrade
    thresholds. Originally the thresholds supported were for io and checksum
    events and recently this was updated to process slow io events as
    well, see
    openzfs/zfs@cbe8822
    
    This patch enables us to use the same vdev props in zfsd as ZED uses.
    After this patch is merged both OSs will use the same vdev props to set
    retirement thresholds.
    
    It's probably important to note that the threshold defaults are
    different between OS. I've kept the existing defaults inside zfsd and
    DID NOT match them to what ZED does.
    
    Differential Revision: https://reviews.freebsd.org/D44043
    MFC after:	2 weeks
    Relnotes:	yes
    Reviewed by:	asomers, allanjude
    Sponsored by:	Axcient
    Submitted by:	Alek Pinchuk <[email protected]>
    asomers authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    625f919 View commit details
    Browse the repository at this point in the history
  29. posix_spawn.c: fix typo in comment

    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    kostikbel authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    8b41c9d View commit details
    Browse the repository at this point in the history
  30. libthr: remove explicit sys/cdefs.h includes

    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    kostikbel authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    185d42e View commit details
    Browse the repository at this point in the history
  31. libc posix_spawn(): explain why rtld can be used after fork

    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    kostikbel authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    0f5d498 View commit details
    Browse the repository at this point in the history
  32. Revert "md5.1: Fix an example"

    This reverts commit 865baea.
    gbergling authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    ca3f096 View commit details
    Browse the repository at this point in the history
  33. if_bnxt: Correcting the firmware package version parsing logic

    The firmware package version currently appears as "Unknown" through
    the sysctl interface. The parsing logic for extracting the firmware
    package version from the package log has been modified to ensure
    compatibility with all controllers.
    
    Reviewed by:            imp
    Approved by:            imp
    Differential revision:  https://reviews.freebsd.org/D42950
    Sumit Saxena authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    f8eb29e View commit details
    Browse the repository at this point in the history
  34. vmm.4: Add verbiage about need to load module from loader.conf

    PR:		277530
    MFC after:	1 week
    Co-authored-by:	Mateusz Piotrowski <[email protected]>
    michaelgalassi authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    11a7664 View commit details
    Browse the repository at this point in the history
  35. tarfs: Fix two input validation issues.

    * Reject hard or soft links with an empty target path.  Currently, a
      debugging kernel will hit an assertion in tarfs_lookup_path() while
      a non-debugging kernel will happily create a link to the mount root.
    
    * Use a temporary variable to store the result of the link target path,
      and copy it to tnp->other only once we have found it to be valid.
      Otherwise we error out after creating a reference to the target but
      before incrementing the target's reference count, which results in a
      use-after-free situation in the cleanup code.
    
    * Correctly return ENOENT from tarfs_lookup_path() if the requested
      path was not found and create_dirs is false.  Luckily, existing
      callers did not rely solely on the return value.
    
    MFC after:	3 days
    PR:		277360
    Sponsored by:	Juniper Networks, Inc.
    Sponsored by:	Klara, Inc.
    Reviewed by:	sjg
    Differential Revision:	https://reviews.freebsd.org/D44161
    dag-erling authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    4347703 View commit details
    Browse the repository at this point in the history
  36. tarfs: Improve validation of numeric fields.

    MFC after:	3 days
    Sponsored by:	Juniper Networks, Inc.
    Sponsored by:	Klara, Inc.
    Reviewed by:	sjg, allanjude
    Differential Revision:	https://reviews.freebsd.org/D44166
    dag-erling authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    0a7d28c View commit details
    Browse the repository at this point in the history
  37. tarfs: Avoid overflow in exthdr calculation.

    MFC after:	3 days
    PR:		277420
    Sponsored by:	Juniper Networks, Inc.
    Sponsored by:	Klara, Inc.
    Reviewed by:	kib
    Differential Revision:	https://reviews.freebsd.org/D44202
    dag-erling authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    c4c3724 View commit details
    Browse the repository at this point in the history
  38. tarfs: Remove unnecessary hack and obsolete comment.

    MFC after:	3 days
    Sponsored by:	Juniper Networks, Inc.
    Sponsored by:	Klara, Inc.
    Reviewed by:	allanjude
    Differential Revision:	https://reviews.freebsd.org/D44203
    dag-erling authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    87ccfeb View commit details
    Browse the repository at this point in the history
  39. tarfs: Fix checksum calculation.

    The checksum code assumed that struct ustar_header filled an entire
    block and calculcated the checksum based on the size of the structure.
    The header is in fact only 500 bytes long while the checksum covers
    the entire block (“logical record” in POSIX terms).  Add padding and
    an assertion, and clean up the checksum code.
    
    MFC after:	3 days
    Sponsored by:	Juniper Networks, Inc.
    Sponsored by:	Klara, Inc.
    Reviewed by:	imp
    Differential Revision:	https://reviews.freebsd.org/D44226
    dag-erling authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    88e6c75 View commit details
    Browse the repository at this point in the history
  40. tarfs: Factor out common test code.

    MFC after:	3 days
    Sponsored by:	Juniper Networks, Inc.
    Sponsored by:	Klara, Inc.
    Reviewed by:	allanjude
    Differential Revision:	https://reviews.freebsd.org/D44227
    dag-erling authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    5d31a58 View commit details
    Browse the repository at this point in the history
  41. timerfd_create: accept CLOCK_UPTIME/CLOCK_BOOTTIME

    This is a common use case when using timerfd_create to actually use
    it with CLOCK_BOOTTIME on linux which is CLOCK_UPTIME for us.
    
    Note that currently on freebsd CLOCK_BOOTTIME is CLOCK_UPTIME, but the
    semantic is supposed to be different, this has to be fixed later.
    
    Tested with the fnott notification software
    
    Reviewed by:	des, imp
    Differential Revision:	https://reviews.freebsd.org/D44253
    bapt authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    bd48884 View commit details
    Browse the repository at this point in the history
  42. timerfd_create: fix after cf742fa

    Remove the include that crept in by accident
    Clang complains about CLOCK_BOOTTIME being the same for now as
    CLOCK_UPTIME, so remove CLOCK_BOOTTIME and leave a comment for
    what to do when CLOCK_BOOTTIME will be different for real.
    bapt authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    da328dd View commit details
    Browse the repository at this point in the history
  43. bsearch_b: fix compilation with gcc

    Reported by:	rscheff
    Differential Revision:	https://reviews.freebsd.org/D44256
    brooksdavis authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    c36cbb2 View commit details
    Browse the repository at this point in the history
  44. liblzma: don't export lzma_lz_decoder_uncompressed

    It was removed in the 5.4.0 import.
    
    Reviewed by:	delphij
    Differential Revision:	https://reviews.freebsd.org/D44247
    brooksdavis authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    0fbaa40 View commit details
    Browse the repository at this point in the history
  45. heimdal: don't export nonexistant _wind_ucs2read

    This symbol table entry came in with the 1.5 import (commit
    7c450da), but the only other mention is a commented out entry in
    lib/wind/libwind-exports.def.
    
    Reviewed by:	cy
    Differential Revision:	https://reviews.freebsd.org/D44245
    brooksdavis authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    d97fe15 View commit details
    Browse the repository at this point in the history
  46. heimdal: don't try to expose nonexistant symbols

    For one reason or another these symbols aren't present so don't try to
    make them available for linkage.
    
    In the case of libroken these seem to be compatability bits we don't
    need a thus don't compile.  For others it seems to rot upstream, but
    I've not investigated deeply.
    
    Reviewed by:	cy
    Differential Revision:	https://reviews.freebsd.org/D44246
    brooksdavis authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    fde8238 View commit details
    Browse the repository at this point in the history
  47. libsys/aarch64: end syscall stubs with newlines

    Technically speaking, POSIX text files must end with a newline.
    
    Reviewed by:	kib
    Differential Revision:	https://reviews.freebsd.org/D44231
    brooksdavis authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    2d7c029 View commit details
    Browse the repository at this point in the history
  48. Skipping merge of e6ffc76

    bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    5bc1046 View commit details
    Browse the repository at this point in the history
  49. Skipping merge of 0ee0ae2

    bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    dc83bde View commit details
    Browse the repository at this point in the history
  50. Skipping merge of 7b3836c

    bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    dba7ed2 View commit details
    Browse the repository at this point in the history
  51. syscall(2): make i386 less of an outlier

    Unlike other architectures, i386 only defined syscall() and not
    _syscall() or __sys_syscall().  The syscall() function then invoked the
    desired system call directly rather than invoking syscall(2).  Keep the
    latter as it's marginally more efficent, but also create the
    conventional _syscall() and __sys_syscall() stubs.
    
    This avoids the need to special case syscall(2) in the symbol list
    generation in libsys.
    
    Reviewed by:	kib
    Differential Revision:	https://reviews.freebsd.org/D44235
    brooksdavis authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    8c6ae12 View commit details
    Browse the repository at this point in the history
  52. libsys: don't try to expose yield

    The undocumented yield system call has never been implemented via libc
    or libsys (except accidentally for <15 minutes in 1998 between commits
    abd529c and 0db2fac).  Avoid trying to export it now to avoid
    failures when linking with --no-undefined-version.
    
    Reviewed by:	kib
    Differential Revision:	https://reviews.freebsd.org/D44236
    brooksdavis authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    1653a13 View commit details
    Browse the repository at this point in the history
  53. libsys: don't expose __init_elf_aux_vector

    __init_elf_aux_vector is now complied statically so don't try to export
    it from the dynamic library.
    
    Fixes:	8271d9b libsys: remove usage of pthread_once and _once_stub
    
    Reviewed by:	kib
    Differential Revision:	https://reviews.freebsd.org/D44237
    brooksdavis authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    f6e3c43 View commit details
    Browse the repository at this point in the history
  54. nvme: split devctl out to its own function

    Split the devctl aspect of things out to its own function in
    nvme_ctrlr_devctl_log. In preparing to document this, and based on
    actual use, we want something different for the SMART errors, so this
    will facilitate that.
    
    Sponsored by:		Netflix
    Reviewed by:		chuck, mav
    Differential Revision:	https://reviews.freebsd.org/D44209
    bsdimp authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    afa4908 View commit details
    Browse the repository at this point in the history
  55. nvme: Change devctl events for the controller

    Change the devctl events slightly for the controller. SMART errors will
    log the changed bits in the NVME SMART Critical Warning State as its
    event.
    
    Reset will now emit 'event=start'. Soon more.
    
    Sponsored by:		Netflix
    Reviewed by:		mav
    Differential Revision:	https://reviews.freebsd.org/D44210
    bsdimp authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    fd42d01 View commit details
    Browse the repository at this point in the history
  56. nvme: Log reset success or failure to devd

    We're logging when we start a reset, but not when we complete it, nor
    the result. Create now log a success or timed_out event for the reset.
    Currently, the only detectable error we have from reset is 'failure to
    become ready in time,' though the code looks like it might be more
    generic. Log this and if we ever have other failure modes, change the
    logging to devd when that happens.
    
    Sponsored by:		Netflix
    Differential Revision:	https://reviews.freebsd.org/D44211
    bsdimp authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    65cb85f View commit details
    Browse the repository at this point in the history
  57. nvme: Add SMART WARNING for persistent memory region

    NVME 2.0 added persistent memory regions, and this bit reports critical
    warnings / errors with those regions.
    
    Sponsored by:		Netflix
    Reviewed by:		mav
    Differential Revision:	https://reviews.freebsd.org/D44213
    bsdimp authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    57cd0a6 View commit details
    Browse the repository at this point in the history
  58. devd: Document the nvme devd events

    Nvme informs devd of smart and reset controller events. Document them.
    
    Sponsored by:		Netflix
    Differential Revision:	https://reviews.freebsd.org/D44212
    bsdimp authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    265c130 View commit details
    Browse the repository at this point in the history
  59. devd: Add directory information

    Devd searches /etc/devd and /usr/local/etc/devd by default (given the
    default devd.conf file). Document that here.
    
    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    59df7aa View commit details
    Browse the repository at this point in the history
  60. bhyve/gdb: Avoid rebuilding target.xml for install targets

    Otherwise it's impossible to install from a read-only objdir.
    
    Fixes:	f81cdf2 ("bhyve: Add support for XML register definitions")
    Reported by:	olivier
    markjdb authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    28215cc View commit details
    Browse the repository at this point in the history
  61. tarfs: Fix checksum on 32-bit platforms.

    MFC after:	3 days
    Fixes:		b56872332e47786afc09515a4daaf1388da4d73c
    Sponsored by:	Juniper Networks, Inc.
    Sponsored by:	Klara, Inc.
    Reviewed by:	bapt
    Differential Revision:	https://reviews.freebsd.org/D44261
    dag-erling authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    593aab3 View commit details
    Browse the repository at this point in the history
  62. zfs: merge openzfs/zfs@8f2f6cd2a

    Notable upstream pull request merges:
     #15887 -multiple Fast Dedup: Cleanup and documentation ahead of
                      integrating Fast Dedup
     #15907 5600dff Fixed parameter passing error when calling zfs_acl_chmod
     #15908 8f2f6cd ddt: reduce DDT_NAMELEN
    
    Obtained from:	OpenZFS
    OpenZFS commit:	8f2f6cd
    mmatuska authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    13c9839 View commit details
    Browse the repository at this point in the history
  63. git subrepo pull --force sys/contrib/subrepo-openzfs

    subrepo:
      subdir:   "sys/contrib/subrepo-openzfs"
      merged:   "85b23b348793"
    upstream:
      origin:   "https://github.com/CTSRD-CHERI/zfs.git"
      branch:   "cheri-hybrid"
      commit:   "85b23b348793"
    git-subrepo:
      version:  "0.4.6"
      origin:   "???"
      commit:   "???"
    bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    fdf7f5f View commit details
    Browse the repository at this point in the history
  64. Configuration menu
    Copy the full SHA
    b319a49 View commit details
    Browse the repository at this point in the history
  65. if_bnxt: Fix media speed update issue in "ifconfig -m" during PHY hot…

    … plug
    
    Currently, if a media type (e.g., DAC) is hot-plugged out and another type
    (e.g., optical cable) is hot-plugged in, the new speed is not reflected in
    ifconfig. This occurs when the driver fails to update speeds with unchanged
    tx and rx flow control.
    
    To fix, a phy_type check ensures update of phy speeds upon detecting the new
    phy.
    
    Reviewed by:            imp
    Approved by:            imp
    Differential revision:  https://reviews.freebsd.org/D42951
    cp890582 authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    800add8 View commit details
    Browse the repository at this point in the history
  66. nvme_sim: Add comment about the is_failed test

    We only see a request with a failed controller while we're in the
    process of failing the controller. Add a comment to that effect.
    
    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    b65bb91 View commit details
    Browse the repository at this point in the history
  67. if_bnxt: Incorrect Labeling of Supported Medium in `ifconfig -m <inf>…

    …` Command
    
    The 1G speed on DAC medium is incorrectly labeled as 1000baseT, it
    should be 1000baseCX. Updated the label accordingly.
    
    Reviewed by:            imp
    Approved by:            imp
    Differential revision:  https://reviews.freebsd.org/D42952
    cp890582 authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    94c2d34 View commit details
    Browse the repository at this point in the history
  68. if_bnxt: Enabled support for 1G SX, CX, and LX forced speed settings

    Enabled User Configuration of 1G Speed on Wh+ SFP28 Port with AOC
    cable.
    
    Reviewed by:            imp
    Approved by:            imp
    Differential revision:  https://reviews.freebsd.org/D42953
    cp890582 authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    a0f11c1 View commit details
    Browse the repository at this point in the history
  69. if_bnxt: Update Maximum Configurable MTU from 9000 to 9600

    Increasing the maximum configurable MTU from 9000 to 9600 to
    align with the firmware's capability of handling an MTU up to 9600.
    
    Reviewed by:            imp
    Approved by:            imp
    Differential revision:  https://reviews.freebsd.org/D42954
    cp890582 authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    b1b39ad View commit details
    Browse the repository at this point in the history
  70. if_bnxt: Update Firmware Header to Latest Version 1.10.2.136

    Update Firmware Header to Latest Version 1.10.2.136.
    
    Reviewed by:            imp
    Approved by:            imp
    Differential revision:  https://reviews.freebsd.org/D42955
    cp890582 authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    64dbeab View commit details
    Browse the repository at this point in the history
  71. if_bnxt: Integrate AOC Cable Support into Current 40G PHY Speed

    Reviewed by:            imp
    Approved by:            imp
    Differential revision:  https://reviews.freebsd.org/D429506
    cp890582 authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    0c63799 View commit details
    Browse the repository at this point in the history
  72. if_bnxt: Implementation of Extended Port Hardware Stats Support for T…

    …HOR Controller
    
    The newly added port extended hardware statistics are now accessible to
    users through the sysctl interface. Also, Few obsolete stats are removed
    and few stats are renamed.
    
    Reviewed by:            imp
    Approved by:            imp
    Differential revision:  https://reviews.freebsd.org/D42957
    cp890582 authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    433a3c9 View commit details
    Browse the repository at this point in the history
  73. if_bnxt: Pluggable Module Display Support

    This update enables the display of pluggable module information
    to users via the ifconfig utility.
    
    Reviewed by:            imp
    Approved by:            imp
    Differential revision:  https://reviews.freebsd.org/D42958
    Sumit Saxena authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    867811e View commit details
    Browse the repository at this point in the history
  74. if_bnxt: 50G, 100G and 200G PAM4 support

    Add support for 50G, 100G and 200G PAM4 support
    
    Reviewed by:            imp
    Approved by:            imp
    Differential revision:  https://reviews.freebsd.org/D42959
    cp890582 authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    a3ebf82 View commit details
    Browse the repository at this point in the history
  75. if_bnxt: Set 1G/10G baseT force speed as auto speeds

    The firmware lacks support for manually setting 1G and 10G baseT speeds.
    However, the driver can enable auto speed masks to achieve automatic configuration
    at these speeds.
    
    Reviewed by:            imp
    Approved by:            imp
    Differential revision:  https://reviews.freebsd.org/D42960
    cp890582 authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    6c5c9f5 View commit details
    Browse the repository at this point in the history
  76. amend! if_bnxt: Integrate AOC Cable Support into Current 40G PHY Speed

    if_bnxt: Integrate AOC Cable Support into Current 40G PHY Speed
    
    Reviewed by:            imp
    Approved by:            imp
    Differential revision:  https://reviews.freebsd.org/D42956
    Sumit Saxena authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    8769ce4 View commit details
    Browse the repository at this point in the history
  77. libc/iconv: don't export nonexistant symbols

    It's unclear to me that any of these symbols ever existed.  The ones
    I've spot checked are only mentioned in the initial Citrus iconv import
    (commit ad30f8e) and this code hasn't changed much over time.
    
    Reviewed by:	kevans
    Differential Revision:	https://reviews.freebsd.org/D44183
    brooksdavis authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    c052920 View commit details
    Browse the repository at this point in the history
  78. libc/quad: narrow list of symbols exposed on i386

    These symbols aren't present on i386 so don't try to expose them.
    
    Given the structure of quad/Makefile.inc, it might make more sense to
    have per-arch symbol maps here, but this is sufficent to build with
    WITHOUT_UNDEFINED_VERSION on i386.
    
    Reviewed by:	kib
    Differential Revision:	https://reviews.freebsd.org/D44243
    brooksdavis authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    5502aec View commit details
    Browse the repository at this point in the history
  79. libc/i386: don't attempt to export alloca

    The assembly implementation was removed in 2006 (commit 3c03c70).
    
    Reviewed by:	kib
    Differential Revision:	https://reviews.freebsd.org/D44242
    brooksdavis authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    84ad08d View commit details
    Browse the repository at this point in the history
  80. awk: Fix the tests

    I'd forgotten that we have to adjust the stderr tests from
    upstream. Remove the OK files. Also remove system-status.*.  These
    restore the fixes I made in 517e52b which were lost when I imported
    the last version of awk.
    
    Also, force LANG to be C.UTF-8 when testing to ensure that stray lang
    settings don't fail tests.
    
    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    0698c2b View commit details
    Browse the repository at this point in the history
  81. ObsoleteFiles.inc: add the awk tests I just remvoed

    These files were bogusly added when I imported awk 2nd edition.
    
    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    fea8958 View commit details
    Browse the repository at this point in the history
  82. TCP LRO: disable mbuf queuing when packet filter hooks are in place

    When doing mbuf queueing, the packet filter hooks in ether_demux(),
    ip_input(), and ip6_input() are by-passed. This means that the packet
    filters don't process incoming packets, which might result in
    connection failures. For example bypassing the TCP sequence number
    validation will result in dropping valid packets.
    Please note that this patch is only disabling mbuf queueing, not LRO.
    
    Reported by:		Herbert J. Skuhra
    Reviewed by:		glebius, rrs, rscheff
    MFC after:		1 week
    Sponsored by:		Netflix, Inc.
    Differential Revision:	https://reviews.freebsd.org/D43769
    tuexen authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    fe62536 View commit details
    Browse the repository at this point in the history
  83. TCP LRO: add dtrace probe points

    Add the IP, UDP, and TCP receive static probes to the code path,
    which avoids if_input.
    
    Reviewed by:		rrs, markj
    MFC after:		1 week`
    Sponsored by:		Netflix, Inc.
    Differential Revision:	https://reviews.freebsd.org/D43727
    tuexen authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    1decd43 View commit details
    Browse the repository at this point in the history
  84. Hyper-V: vPCI: fix cpu id mis-mapping in vmbus_pcib_map_msi()

    The msi address contains apic id. The code in vmbus_pcib_map_msi()
    treats it as cpu id, which could cause mis-configuration of msix
    IRQs, leading to missing interrupts for SRIOV devices. This happens
    when apic id is not the same as cpu id on certain large VM sizes
    with multiple numa domains in Azure. Fix this issue by correctly
    mapping apic ids to cpu ids.
    
    On vPCI version before 1.4, it only supports up to 64 vcpus
    for msi/msix interrupt. This change also adds a check and returns
    error if the vcpu_id is greater than 63.
    
    Reported by:	NetApp
    Tested by:	whu
    MFC after:	1 week
    Wei Hu authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    a4a454f View commit details
    Browse the repository at this point in the history
  85. clk_fixed: call clkdom_dump() for verbose boot

    This is standard practice for clock drivers that register clocks
    dynamically. Nothing else uses the CLK_DEBUG macro.
    
    The result is that the name and frequency of the fixed clock is printed
    for a verbose boot, which may aid in debugging.
    
    Reviewed by:	manu
    MFC after:	1 week
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D44265
    mhorne authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    0e78d04 View commit details
    Browse the repository at this point in the history
  86. clk_fixed: quiet by default

    We may attach several of these devices, but there is no meaningful
    information added to dmesg. For example:
    
      ofwbus0: <Open Firmware Device Tree>
      clk_fixed0: <Fixed clock> on ofwbus0
      clk_fixed1: <Fixed clock> on ofwbus0
      clk_fixed2: <Fixed clock> on ofwbus0
      clk_fixed3: <Fixed clock> on ofwbus0
      clk_fixed4: <Fixed clock> on ofwbus0
      clk_fixed5: <Fixed clock> on ofwbus0
      clk_fixed6: <Fixed clock> on ofwbus0
      clk_fixed7: <Fixed clock> on ofwbus0
      clk_fixed8: <Fixed clock> on ofwbus0
      clk_fixed9: <Fixed clock> on ofwbus0
      clk_fixed10: <Fixed clock> on ofwbus0
      clk_fixed11: <Fixed clock> on ofwbus0
    
    To reduce this noise, quiet the devices for by default. For verbose
    boot, the message will be emitted.
    
    Reviewed by:	manu
    MFC after:	1 week
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D44266
    mhorne authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    c98a292 View commit details
    Browse the repository at this point in the history
  87. clkdom_dump(): improve output text

    If the call to clknode_get_freq() returns an error (unlikely), report
    this, rather than printing the error code as the clock frequency.
    
    If the clock has no parent (e.g. a fixed reference clock), print "none"
    rather than "(NULL)(-1)". This is a more human-legible presentation of the
    same information.
    
    Reviewed by:	manu
    MFC after:	1 week
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D44267
    mhorne authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    7d751fc View commit details
    Browse the repository at this point in the history
  88. simple_mfd: don't attach children twice

    Trying to probe+attach the child device at the point it is added comes
    before the syscon handle is set up (if relevant). It will therefore be
    unavailable to the attach method which is expecting it, and the first
    attempt to attach the device will fail.
    
    Just rely on the call to bus_generic_attach() at the end of the function
    to perform probe+attach of dev's children.
    
    Reviewed by:	manu
    MFC after:	1 week
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D44268
    mhorne authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    2959879 View commit details
    Browse the repository at this point in the history
  89. nullfs_mount(): remove unneeded cast

    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    kostikbel authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    44a7e9a View commit details
    Browse the repository at this point in the history
  90. nullfs: add -o cache

    to allow overwrite global default if needed.
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    kostikbel authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    d8e148b View commit details
    Browse the repository at this point in the history
  91. mount_nullfs(8): document -o cache and vfs.nullfs.cache_vnodes

    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    kostikbel authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    845e754 View commit details
    Browse the repository at this point in the history
  92. nullfs_mount(): fix whitespace

    kostikbel authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    06ae737 View commit details
    Browse the repository at this point in the history
  93. Skipping merge of a650ec0

    bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    3089cda View commit details
    Browse the repository at this point in the history
  94. crunchgen: slap a dependency on the generated makefile for .lo

    crunchgen generates a foo.lo for each binary it will end up crunching
    into the final product.  While they have a dependency on the libs that
    are used to link them, nothing will force relinking if the set of libs
    needed to link them is changed.  Because of this, incremental builds may
    not be possible if one builds a version of, e.g., rescue/ with a broken
    set of libs specified for a project -- a subsequent fix won't be rolled
    in cleanly, it will require purging the rescue/ objdir.
    
    This is a bit crude, but the foo.mk we generate doesn't actually get
    regenerated all that often in practice, so a spurious relink for the
    vast majority of crunched objects won't actually happen all that often.
    
    Reviewed by:	bapt, emaste, imp
    Differential Revision:	https://reviews.freebsd.org/D43869
    kevans91 authored and bsdjhb committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    cfb1786 View commit details
    Browse the repository at this point in the history