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

caprevoke: merge through 2023-07-07 #1740

Merged
merged 1,026 commits into from
Jul 8, 2023
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Jun 21, 2023

  1. meta.sys.mk: downgrade missing Filemon error to warning

    Cirrus-CI was red because `make makeman` failed with a spurious "filemon
    is not loaded" error.  For now just make it a warning.
    emaste authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    dba6f4b View commit details
    Browse the repository at this point in the history
  2. sctp: use constants from RFC 8260 to improve compliance

    Keep the old constants for backwards compatibility.
    
    MFC after:	1 week
    tuexen authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    8c986c5 View commit details
    Browse the repository at this point in the history
  3. inpcb: Fix some bugs in _in_pcbinshash_wild()

    - In _in_pcbinshash_wild(), we should avoid returning v6 sockets unless
      no other matches are available.  This preserves pre-existing
      semantics.
    - Fix an inverted test: when inserting a non-jailed PCB, we want to
      search for the first non-jailed PCB in the hash chain.
    - Test the right PCB when searching for a non-jailed PCB.
    
    While here, add a required locking assertion.
    
    Fixes:	7b92493 ("inpcb: Avoid inp_cred dereferences in SMR-protected lookup")
    markjdb authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    eb681f0 View commit details
    Browse the repository at this point in the history
  4. arm64: Implement bus_describe_intr() for nexus

    Prompted by a compiler warning introduced by
    e582d4a ("arm64: nexus code tidy-up").
    
    Reviewed by:	mhorne, andrew
    MFC after:	1 week
    Differential Revision:	https://reviews.freebsd.org/D39749
    markjdb authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    76b6ceb View commit details
    Browse the repository at this point in the history
  5. riscv: Implement bus_describe_intr() for nexus

    Reviewed by:	mhorne
    MFC after:	1 week
    Differential Revision:	https://reviews.freebsd.org/D39750
    markjdb authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    8927a1e View commit details
    Browse the repository at this point in the history
  6. arm64: Disable PAC when booting on a Windows Dev Kit 2023

    It appears that PAC registers are configured to trap upon access, but
    since the kernel starts in EL1 on this platform it has no ability to
    inspect or modify this configuration.  Simply disable PAC on this
    platform for now, since the kernel otherwise hangs during boot.
    
    PR:		270472
    Reviewed by:	andrew, emaste
    MFC after:	2 weeks
    Differential Revision:	https://reviews.freebsd.org/D39748
    markjdb authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    1537777 View commit details
    Browse the repository at this point in the history
  7. kcsan: add __tsan_mem(cpy|move|set) aliases for clang >= 16

    Summary:
    After llvm/llvm-project@b4257d3bf58c ("[tsan]
    Replace mem intrinsics with calls to interceptors") intrinsic calls to
    memcpy, memmove or memset will directly call sanitizer interceptors,
    e.g. __tsan_memcpy, __tsan_memmove or __tsan_memset.
    
    Building GENERIC-KCSAN with clang >= 16 would thus result in link errors
    similar to:
    
      ld: error: undefined symbol: __tsan_memcpy
      >>> referenced by cam_compat.c:150 (/usr/src/sys/cam/cam_compat.c:150)
      >>>               cam_compat.o:(cam_compat_handle_0x17)
      >>> referenced by cam_compat.c:151 (/usr/src/sys/cam/cam_compat.c:151)
      >>>               cam_compat.o:(cam_compat_handle_0x17)
      >>> referenced by cam_compat.c:152 (/usr/src/sys/cam/cam_compat.c:152)
      >>>               cam_compat.o:(cam_compat_handle_0x17)
      >>> referenced 1692 more times
    
    Similar to subr_msan.c, add aliases from the existing kcsan_* versions
    of these functions to __tsan_* names.
    
    Reviewed by:	markj
    MFC after:	3 days
    Differential Revision: https://reviews.freebsd.org/D39772
    DimitryAndric authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    db1efd4 View commit details
    Browse the repository at this point in the history
  8. Set UPDATE_DEPDFILE=NO for showconfig

    Exporting UPDATE_DEPDFILE=NO from makeman didn't work,
    back to setting it in local.meta.sys.env.mk
    sgerraty authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    a34fbbd View commit details
    Browse the repository at this point in the history
  9. mt76: import mediatek/mt76 driver

    Import ISC-licensed driver parts of mediatek/mt76
    assumed to be based on Linux wireless-testing at
    a02411a5b98612c12be99349836d99f07db12a77 (tag: wt-2022-11-23).
    
    Complement the driver and LinuxKPI with our own (dummy)
    implementations of missing parts (util.h and soc/mediatek/)
    as well as changes to make compile on FreeBSD with changes
    covered by #ifdef (__FreeBSD__) conditions.
    Further select updates were applied since the initial import
    in order to keep compiling along with other LinuxKPI based
    drivers.
    
    For the moment we only target the mt7915 and mt7921 PCI parts.
    More may follow in the future.
    
    Firmware is provided by port net/wifi-firmware-mt76-kmod.
    
    Given the lack of full license texts on non-local files this is
    imported under the draft policy for handling SPDX files (D29226). [1]
    
    Approved by:	core (emaste, 2022-04-08) [1]
    MFC after:	2 months
    Bjoern A. Zeeb authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    8a1c509 View commit details
    Browse the repository at this point in the history
  10. mt76: add module build framework and man pages

    Add framework to build if_mt7915 and if_mt7921 with LinuxKPI
    as well as initial man pages for the two mt76 chipset drivers.
    
    MFC after:	2 months
    Bjoern A. Zeeb authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    453057e View commit details
    Browse the repository at this point in the history
  11. mt76: devd: add support for mt79* wireless drivers to devd.conf

    Add the "mt79" to the regex for wireless drivers in devd.conf so
    that they get handled as expected.
    
    MFC after:	2 months
    Bjoern A. Zeeb authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    e3513d2 View commit details
    Browse the repository at this point in the history
  12. ath10k: ath11k: ammend devd.conf regex

    In order to match these drivers, and in expectiation of ath12k
    happening add ath[0-9]+k to the regex pattern for wlan devices.
    
    MFC after:	2 months
    Bjoern A. Zeeb authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    fcde082 View commit details
    Browse the repository at this point in the history
  13. ath10k: ath11k: add specific LinuxKPI support

    Add files needed by ath1?k drivers to linuxkpi/linuxkpi_wlan.
    This contain (skeleton) implementations of what is needed to
    compile but specifically mhi/qmi/qrtr will need more work for
    ath11k.
    
    MFC after:	2 months
    Bjoern A. Zeeb authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    530fd06 View commit details
    Browse the repository at this point in the history
  14. athk: import common code for ath1?k drivers

    Import common ISC-licensed athk parts assumed to be
    based on Linux kvalo/ath.git master at
    6bae9de622d3ef4805aba40e763eb4b0975c4f6d.
    
    The only modification should be for FreeBSD module
    handling in main.c.
    
    Add the module build framework unconnected to the
    build for now.
    
    These files will be shared by ath1?k drivers.
    
    MFC after:	2 months
    Bjoern A. Zeeb authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    5002fb3 View commit details
    Browse the repository at this point in the history
  15. ath10k: import ath10k driver

    Import ISC-licensed ath10k driver assumed to be
    based on Linux kvalo/ath.git master at
    6bae9de622d3ef4805aba40e763eb4b0975c4f6d.
    
    Import support to redirect fwlogs to kernel messages
    from https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/389075
    
    Complement the driver to make compile on FreeBSD
    using LinuxKPI with changes covered by #ifdef (__FreeBSD__).
    Further select updates were applied since the initial import
    in order to keep compiling along with other LinuxKPI based
    drivers.
    
    Any other native driver using BUS_PROBE_DEFAULT will attach
    ignoring this one by default given bsd_probe_return is set
    to a lower priority.
    
    Add the module build framework.
    
    We only support PCI parts.
    
    The firmware is provided by port net/wifi-firmware-ath10k-kmod.
    
    Given the lack of full license texts on most files this is
    imported under the draft policy for handling SPDX files (D29226). [1]
    
    Approved by:	core (emaste, 2022-04-08) [1]
    MFC after:	2 months
    Bjoern A. Zeeb authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    07d44bc View commit details
    Browse the repository at this point in the history
  16. ath10k: add man page

    Add initial man page for ath10k.4.
    
    MFC after:	2 months
    Bjoern A. Zeeb authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    abd2807 View commit details
    Browse the repository at this point in the history
  17. posixshmcontrol(1): silently ignore inaccessible segments when listing

    PR:	271038
    Reported by:	[email protected]
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    kostikbel authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    e859ce8 View commit details
    Browse the repository at this point in the history
  18. showconfig - ignore options that do not start with A-Z

    When building on various hosts it can be handy to create pseudo
    options like MK_host_egacy - building on a host that needs libegacy.
    
    Such options should be ignored by showconfig
    
    Reviewed by: emaste
    sgerraty authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    f457275 View commit details
    Browse the repository at this point in the history
  19. ext2fs: extract crc16 into sys/crc16.h

    deduplicate this as it might be needed for other drivers (e.g. Apple SPI-HID)
    
    Sponsored by:	https://www.patreon.com/valpackett
    Reviewed by:	chuck, imp
    MFC after:	1 month
    Differential revision:	https://reviews.freebsd.org/D32879
    valpackett authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    a63e7f6 View commit details
    Browse the repository at this point in the history
  20. spibus: extend API: add cs_delay ivar, KEEP_CS and NO_SLEEP flags

    These feature are required for an upcoming Apple MacBook topcase
    (HID over SPI) driver:
    
    A delay after toggling CS is required to avoid anomalies like an extra
    junk byte in front of the message. Keeping CS asserted is required to
    be able to read a status report after writing a command. (The device
    won't return the status if CS was deasserted.)
    
    Sleep is not allowed in the interrupt context where the Apple input
    driver runs its transactions. Use a flag to tell the SPI driver to
    avoid mtx_sleep.
    
    Reviewed by:	manu (ok to SPI part of larger patch)
    MFC afret:	1 month
    Differential revision:	https://reviews.freebsd.org/D29534
    valpackett authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    257a54b View commit details
    Browse the repository at this point in the history
  21. intelspi: add PCI attachment (Lynx/Wildcat/Sunrise Point)

    Also adds fixups and cleanups:
    
    - apply the child's mode/speed
    - implement suspend/resume support
    - use RF_SHAREABLE interrupts
    - use bus_delayed_attach_children since the transfer can use interrupts
    - add support for newly added spibus features (cs_delay and flags)
    
    Operation tested on Broadwell (Wildcat Point) MacBookPro12,1.
    Attachment also tested on Kaby Lake (Sunrise Point) Pixelbook.
    
    Reviewed by:	wulf
    MFC after:	1 month
    Differential revision:	https://reviews.freebsd.org/D29249
    valpackett authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    e11f17b View commit details
    Browse the repository at this point in the history
  22. bcm5974: fix wellspring9 pressure settings to handle force sensitivity

    Reviewed by:	wulf
    MFC after:	1 month
    Differential revision:	https://reviews.freebsd.org/D34435
    valpackett authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    7c5a9aa View commit details
    Browse the repository at this point in the history
  23. hid: fix typo in hid_is_collection

    hid_input is equal to 0. It is leftover from NetBSD code.
    
    Reviewed by:	hselasky, wulf
    MFC after:	1 month
    Differential revision:	https://reviews.freebsd.org/D28149
    Hu Shunchao authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    7ad4486 View commit details
    Browse the repository at this point in the history
  24. Remove unneeded masks from the arm64 KASAN shadow

    When mapping the arm64 KASAN shadow map we use Ln_TABLE_MASK to align
    physical addresses, however these should already be aligned either
    by rounding to a greater alignment, or the VM subsystem is giving us
    a correctly aligned page.
    
    Remove these extra alignment masks.
    
    Reviewed by:	kevans
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D39752
    zxombie authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    0b55a48 View commit details
    Browse the repository at this point in the history
  25. Make arm64 pcb padding explicit

    There is padding between some fields. Mark those I have found so they
    can be reused later if needed.
    
    Sponsored by:	Arm Ltd
    zxombie authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    2bd04d8 View commit details
    Browse the repository at this point in the history
  26. Allow pci_host_generic attachments to manage registers

    To allow for attachments that don't use memory mapped registers add
    a flag they can set when the base driver shouldn't map them.
    
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D39227
    zxombie authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    d1203c5 View commit details
    Browse the repository at this point in the history
  27. Add a PCI driver that follows the Arm DEN0115 spec

    Add a n attachment to the pci_host_generic driver for the Arm DEN0115
    PCI Configuration Space Access Firmware Interface [1]. This can be used
    when PCI controllers need to implement quirks in the PCI root bus.
    To handle this the firmware implements a SMCCC interface the driver can
    use to read and write the configuration register.
    
    This has been tested on a Raspberry Pi 4 booting with EDK2.
    
    [1] https://developer.arm.com/documentation/den0115/latest
    
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D39228
    zxombie authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    738fa0e View commit details
    Browse the repository at this point in the history
  28. Use a uint64_t to store the arm64 mpidr

    Use a single uint64_t to hole the mpidr register as we can break the
    KBI on 14. Keep the macro so code can still be MFCd to 13.
    
    Sponsored by:	Arm Ltd
    zxombie authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    0417c27 View commit details
    Browse the repository at this point in the history
  29. Remove redundant data from pci host generic

    The bus tag and handle fields are already stored in the resource. Use
    this with the bus_read/bus_write helper macros.
    
    Sponsored by:	Arm Ltd
    zxombie authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    e4dbc76 View commit details
    Browse the repository at this point in the history
  30. arm64: Clean up smmu fdt xref handling

    Use the xref from OF_xref_from_node for the smmu xref. We already have
    a valid xref ID, there is no need to convert this to a memory address.
    
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D39181
    zxombie authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    257a705 View commit details
    Browse the repository at this point in the history
  31. Add PCI_ID_OFW_IOMMU to the pci ecam ACPI driver

    Teach the pci host generic ACPI attachment about PCI_ID_OFW_IOMMU. This
    will be used by the arm64 smmu IOMMU driver to read the xref and ID
    this interface provides in a bus-agnostic way.
    
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D39182
    zxombie authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    d15fe4c View commit details
    Browse the repository at this point in the history
  32. Create a common function to get the SMMU sid

    Now the PCI drivers have a common interface to read the IOMMU xref
    and SID create a common function to read it. This fixes an issue where
    we will call into an ACPI specific function when booting with FDT when
    both are enabled.
    
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D39183
    zxombie authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    7fe8453 View commit details
    Browse the repository at this point in the history
  33. Move to a SMMU specific struct for the smmu pmap

    This is not managed through the VM subsystem so only needs to hold the
    data the SMMU driver needs.
    
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D39184
    zxombie authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    d5e0781 View commit details
    Browse the repository at this point in the history
  34. Remove virtual addresses from smmu_pmap_remove_pages

    This function needs to unmap all memory in a given SMMU context. Have
    it iterate over all page table entries to find what has been mapped
    rather than looking at virtual addresses.
    
    While here use SMMU specific macros.
    
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D39185
    zxombie authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    84aba45 View commit details
    Browse the repository at this point in the history
  35. Remove unneeded SMMU macros

    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D39186
    zxombie authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    33e53dc View commit details
    Browse the repository at this point in the history
  36. linuxkpi: Migrate to IfAPI

    Summary:
    Trivial changes for LinuxKPI to use IfAPI.  The 'bsdifp' looks unused,
    so removed it instead of converting it to a pointer.
    
    Bump __FreeBSD_version for change to struct net_device.
    
    Reviewed by:	bz, hselasky
    Sponsored by:	Juniper Networks, Inc.
    Differential Revision: https://reviews.freebsd.org/D39491
    chmeeedalf authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    40f88a7 View commit details
    Browse the repository at this point in the history
  37. IfAPI: Hide the macros that touch ifnet members

    Nothing should be directly touching the ifnet members, which are hidden
    in <net/if_private.h>, so hide them in the same header to avoid errors
    from users.
    
    Sponsored by:	Juniper Networks, Inc.
    chmeeedalf authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    f706d73 View commit details
    Browse the repository at this point in the history
  38. Mechanically convert Xen netfront/netback(4) to IfAPI

    Reviewed by:	zlei
    Sponsored by:	Juniper Networks, Inc.
    Differential Revision: https://reviews.freebsd.org/D37800
    chmeeedalf authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    09ee8d2 View commit details
    Browse the repository at this point in the history
  39. powerpc: syscalls.c is standard

    No need to add it here, much less make it optional on ktr.
    
    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    71afa29 View commit details
    Browse the repository at this point in the history
  40. Clean up PCI DEN0115 driver probing

    Rather than checking for the SMCCC version check if the PCI_VERSION
    call returns a valid version.
    
    Sponsored by:	Arm Ltd
    zxombie authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    de88be0 View commit details
    Browse the repository at this point in the history
  41. zlib: Silence -Wstrict-prototype warnings.

    Presumably upstream will fix this eventually.
    
    Reviewed by:	emaste
    Differential Revision:	https://reviews.freebsd.org/D39724
    bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    0e0a358 View commit details
    Browse the repository at this point in the history
  42. libsmdb: Silence -Wstrict-prototype warnings.

    Presumably upstream will fix this eventually.
    
    Reviewed by:	emaste
    Differential Revision:	https://reviews.freebsd.org/D39725
    bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    c4fb2e8 View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    b761bef View commit details
    Browse the repository at this point in the history
  44. rpc.lockd: Use valid prototypes for function declarations with no arg…

    …uments.
    
    Reviewed by:	emaste
    Differential Revision:	https://reviews.freebsd.org/D39727
    bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    df03207 View commit details
    Browse the repository at this point in the history
  45. rpc.umntall: Use valid prototype for function declaration with no arg…

    …uments.
    
    Reviewed by:	emaste
    Differential Revision:	https://reviews.freebsd.org/D39728
    bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    026c027 View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    dc98a45 View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    29dd81d View commit details
    Browse the repository at this point in the history
  48. netstat: Use valid prototypes for function declarations with no argum…

    …ents.
    
    Reviewed by:	emaste
    Differential Revision:	https://reviews.freebsd.org/D39731
    bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    3b40858 View commit details
    Browse the repository at this point in the history
  49. powerpc: Use valid prototypes for function declarations with no argum…

    …ents.
    
    Reviewed by:	emaste
    Differential Revision:	https://reviews.freebsd.org/D39733
    bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    1532370 View commit details
    Browse the repository at this point in the history
  50. cp: Revert "If copy_file_range(2) fails with EXDEV, use fall-back."

    This reverts commit 6433365.
    
    The error is not valid per api contract, it showed up as a regression
    after 15f0b8c
    
    15f0b8c ("zfs: merge openzfs/zfs@9cd71c860 (master)") and was
    subsequently in d012836 ("zfs: fix up EXDEV handling for
    clone_range").
    
    Sponsored by:	Rubicon Communications, LLC ("Netgate")
    mjguzik authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    41051e8 View commit details
    Browse the repository at this point in the history
  51. Enable building tar for non-FreeBSD host

    For DIRDEPS_BUILD we need Makefile.depend.options to
    force libegacy to be built on older FreeBSD and non-FreeBSD hosts.
    
    Add readpassphrase to libegacy to avoid the need for libbsd on Linux
    
    src.opts.mk disable TESTS for host if MK_host_egacy is yes
    
    Reviewed by:	imp
    Sponsored by:	Juniper Networks, Inc.
    Differential Revision:	https://reviews.freebsd.org/D39766
    sgerraty authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    9c0b3c1 View commit details
    Browse the repository at this point in the history
  52. share/misc/committers-doc.dot: dru: 2020, not 202

    Dru Lavigne's doc commit bit was taken in 2020-05-05
    
    https://cgit.freebsd.org/doc/commit/access?h=refs/internal/admin&id=fb28136a81580786a66ab2494da40b01f4b7a75b
    
    Fixes: 52f5764 committers-doc.dot: bring file up to date
    grahamperrin authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    9860362 View commit details
    Browse the repository at this point in the history
  53. We do not need readpassphrase from openssh

    When building tar for linux, just disable HAVE_READPASSPHRASE
    in config_freebsd.h and libarchive will provide for readpassphrase
    Otherwise the two conflict.
    sgerraty authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    cdcba12 View commit details
    Browse the repository at this point in the history
  54. depend-cleanup.sh: Handle kqueue1() becoming a wrapper around kqueuex().

    For a brief period kqueue1() was a system call and stale dependencies
    cause it to not be re-built.
    bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    b8866a8 View commit details
    Browse the repository at this point in the history
  55. lookup(): ensure that openat("/", "..", O_RESOLVE_BENEATH) fails

    PR:	269780
    Reported by:	Dan Gohman <[email protected]>
    Reviewed by:	emaste, markj
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D39773
    kostikbel authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    d40d6e2 View commit details
    Browse the repository at this point in the history
  56. sys/dirent.h: comment update, 'd_off' is offset of next entry

    This is the historical (and still current) behavior, as well as that of
    NetBSD, OpenBSD, illumos and Linux (getdents()/getdents64()).
    
    Reviewed by:	kib
    MFC after:	3 days
    OlCe2 authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    6ca2e43 View commit details
    Browse the repository at this point in the history
  57. vn_open_vnode(): fix locking around VOP_CLOSE() on advisory lock error

    In the case of a FIFO or if trying to open a file for writing, an
    exclusive lock is necessary.
    
    Reviewed by:	kib
    MFC after:	1 week
    OlCe2 authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    983ea4f View commit details
    Browse the repository at this point in the history
  58. Correct the value of macro TF2_TCP_ACCOUNTING.

    Summary: Make sure the values are in order.
    
    Reviewers: rscheff, tuexen, #transport!
    Approved by: rscheff, tuexen, glebius
    Subscribers: imp, melifaro, glebius
    Differential Revision: https://reviews.freebsd.org/D39716
    ccfbsd authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    3951542 View commit details
    Browse the repository at this point in the history
  59. Remove unused fields in siftr_stats. Thus, update the man page as well.

    Summary: Remove unused fields in siftr_stats. Thus, update the man page as well.
    
    Test Plan: Tested in Emulab testbed.
    
    Reviewers: rscheff, tuexen
    Approved by: rscheff, tuexen
    Subscribers: imp, melifaro, glebius
    Differential Revision: https://reviews.freebsd.org/D39776
    ccfbsd authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    aefa408 View commit details
    Browse the repository at this point in the history
  60. Merge bmake-20230414

    Merge commit '51d8a8b4ac1dd7265e891149e470a803906de2a7'
    sgerraty authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    5aa95b6 View commit details
    Browse the repository at this point in the history
  61. bmake does not need libegacy

    sgerraty authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    4b559a7 View commit details
    Browse the repository at this point in the history
  62. bhyve: add helper struct for qemus acpi table loader

    The hypervisor is aware of all system properties. For the guest bios
    it's hard and complex to detect all system properties. For that reason,
    it would be better if the hypervisor creates acpi tables instead of the
    guest. Therefore, the hypervisor has to send the acpi tables to the
    guest. At the moment, bhyve just copies the acpi tables into the guest
    memory. This approach has some restrictions. You have to keep sure that
    the guest doesn't overwrite them accidentally. Additionally, the size of
    acpi tables is limited.
    
    Providing a plain copy of all acpi tables by fwcfg isn't possible. Acpi
    tables have to point to each other. So, if the guest copies the acpi
    tables into memory by it's own, it has to patch the tables. Due to
    different layouts for different acpi tables, there's no generic way to
    do that.  For that reason, qemu created a table loader interface. It
    contains commands for the guest for loading specific blobs into guest
    memory and patching those blobs.
    
    This commit adds a qemu_loader class which handles the creation of qemu
    loader commands. At the moment, the WRITE_POINTER command isn't
    implement. It won't be required by bhyve's acpi table generation yet.
    
    Reviewed by:		markj
    MFC after:		1 week
    Sponsored by:		Beckhoff Automation GmbH & Co. KG
    Differential Revision:	https://reviews.freebsd.org/D38438
    ckoehne authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    8d6d8b5 View commit details
    Browse the repository at this point in the history
  63. bhyve: make use of qemus acpi table loader

    Add all acpi tables to qemus acpi table loader. This passes the acpi
    tables by fwcfg to the guest.
    
    Reviewed by:		markj
    MFC after:		1 week
    Sponsored by:		Beckhoff Automation GmbH & Co. KG
    Differential Revision:	https://reviews.freebsd.org/D38439
    ckoehne authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    c7bd18f View commit details
    Browse the repository at this point in the history
  64. netipsec: some style

    Sponsored by:	NVidia networking
    kostikbel authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    2b985d8 View commit details
    Browse the repository at this point in the history
  65. netipsec/key.c: use designated initializers for arrays

    Also de-expand nitems() use in related asserts, and fix maxsize array
    name in the assert message.
    
    Sponsored by:	NVidia networking
    kostikbel authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    5f719d9 View commit details
    Browse the repository at this point in the history
  66. Set MK_host_egacy=yes earlier

    If we need to set MK_host_egacy=yes we might need to check it
    in local.toolchain.mk so set it earlier in local.meta.sys.env.mk
    
    Leave the default MK_host_egacy?=no in local.sys.mk so it can
    be tested in Makefiles without concern for build mode.
    sgerraty authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    4c06201 View commit details
    Browse the repository at this point in the history
  67. fs/msdosfs: Fix potential panic and size calculations

    Some combinations of FAT12 file system parameters could cause a kernel
    panic due to an unmapped access if the size of the FAT was larger than
    the CPU page size. The reason is that FAT12 uses 3 bytes to store
    2 FAT pointers, leading to partial FAT pointers at the end of buffers
    of a size that is not a multiple of 3.
    
    With a typical page size of 4 KB, this caused the FAT entry at byte
    offsets 4095 and 4096 to cross the page boundary, with only the first
    page mapped. This was fixed by adjusting the mapping to always cover
    both bytes of each FAT entry.
    
    Testing revealed 2 other inconsistencies that are fixed by this commit:
    
    1) The calculation of the size of the data area did not take into
       account the fact that the first two data block numbers are reserved
       and that the data area starts with block 2. This could cause a
       FAT12 file system created with the maximum supported number of
       blocks to be incorrectly identified as FAT16.
    
    2) The root directory does not take up space in the data area of a
       FAT12 or FAT16 file system, since it is placed into a reserved
       area outside of that data area. This commits makes stat() report
       the logical size of the root directory, but with 0 blocks allocated
       from the data area.
    
    PR:		270587
    Reviewed by:	mckusick
    Differential Revision:	https://reviews.freebsd.org/D39386
    stesser authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    5e4387a View commit details
    Browse the repository at this point in the history
  68. sys/fs: do not report blocks allocated for synthetic file systems

    The pseudo file systems (devfs, fdescfs, procfs, etc.) report total
    and available blocks and inodes despite being synthetic with no
    underlying storage device to which those values could be applied.
    
    The current code of these file systems tends to report a fixed number
    of total blocks but no free blocks, and in the case of procfs,
    libprocfs, linsysfs also no free inodes.
    
    This can be irritating in e.g. the "df" output, since 100% of the
    resources seem to be in use, but it can also create warnings in
    monitoring tools used for capacity management.
    
    This patch makes these file systems return the same value for the
    total and free parameters, leading to 0% in use being displayed by
    "df". Since there is no resource that can be exhausted, this appears
    to be a sensible result.
    
    Reviewed by:	mckusick
    Differential Revision:	https://reviews.freebsd.org/D39442
    stesser authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    854e5c0 View commit details
    Browse the repository at this point in the history
  69. bcm5974(4): add Magic Trackpad 2 (USB only) support

    The MT2 uses a compact report format, but otherwise is similar in many
    ways to the internal trackpads, it even uses the same mode switching
    commands.
    
    Reviewed by:	wulf
    MFC after:	1 month
    Differential revision:	https://reviews.freebsd.org/D34437
    valpackett authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    e397319 View commit details
    Browse the repository at this point in the history
  70. bcm5974(4): Make Magic Trackpad 2 support endian-safe.

    While here make touch orientation event matching with Linux
    
    MFC after:	1 month
    wulf7 authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    1ef1eb1 View commit details
    Browse the repository at this point in the history
  71. Add padding for future use on arm64

    Allow new features to be supported without changing the size of
    existing structures.
    
    Reviewed by:	kib
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D39777
    zxombie authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    3e0ae72 View commit details
    Browse the repository at this point in the history
  72. stress2: Update the exclude list

    phoatfreebsd authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    53074bb View commit details
    Browse the repository at this point in the history
  73. elf.5: Fix conjugation of holds

    MFC after:	1 week
    gmshake authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    6fa4566 View commit details
    Browse the repository at this point in the history
  74. routing: add rt_tables_get_rnh_safe() that doesn't panic when af/fib is

      incorrect.
    
    MFC after:	2 weeks
    AlexanderChernikov authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    1a6b8e4 View commit details
    Browse the repository at this point in the history
  75. routing: add iterator-based nhop traversal KPI.

    MFC after:	2 weeks
    AlexanderChernikov authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    543b2b9 View commit details
    Browse the repository at this point in the history
  76. netlink: add nlattr_get_uint8() function to pack u8 attributes.

    MFC after:	2 weeks
    AlexanderChernikov authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    f3871fe View commit details
    Browse the repository at this point in the history
  77. netlink: fix parameters in snl_attr_get_flag()

    MFC after:	2 weeks
    AlexanderChernikov authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    e73e762 View commit details
    Browse the repository at this point in the history
  78. lltable: properly set expire time to 0 for static IPv4 entries.

    MFC after:	2 weeks
    AlexanderChernikov authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    68bc097 View commit details
    Browse the repository at this point in the history
  79. netlink: allow creation of temporary lle entries.

    MFC after:	2 weeks
    AlexanderChernikov authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    bca6fad View commit details
    Browse the repository at this point in the history
  80. netlink: add support for dumping kernel nexthops.

    MFC after:	2 weeks
    AlexanderChernikov authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    c50e031 View commit details
    Browse the repository at this point in the history
  81. netlink: add snl(3) support for dumping nexthops and neighbors

    MFC after:	2 weeks
    AlexanderChernikov authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    6bfaeab View commit details
    Browse the repository at this point in the history
  82. ipfw.8: improve description for interface matching

    The manual describes "if*" form only while kernel uses fnmatch(3)
    and allows use for more versatile shell-like patterns.
    Note that explicitly and provide an example.
    
    MFC after:	3 days
    Eugene Grosbein authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    e2fffd0 View commit details
    Browse the repository at this point in the history
  83. netlink: enable extended error reporting in snl(3).

    MFC after:	2 weeks
    AlexanderChernikov authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    7c5742c View commit details
    Browse the repository at this point in the history
  84. arp: convert arp(8) to netlink.

    The change is intended to be fully transparent to the users.
    Similarly to route(8) and netstat(8), arp can be build without
     netlink by defining WITHOUT_NETLINK in make.conf.
    
    Differential Revision:	https://reviews.freebsd.org/D39720
    AlexanderChernikov authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    362db7f View commit details
    Browse the repository at this point in the history
  85. netlink: fix neighbour deleting for IPv6.

    MFC after:	2 weeks
    AlexanderChernikov authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    5cac2e5 View commit details
    Browse the repository at this point in the history
  86. netlink: require proper privileges when adding neighbor.

    MFC after:	3 days
    AlexanderChernikov authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    f47cd4a View commit details
    Browse the repository at this point in the history
  87. Configuration menu
    Copy the full SHA
    cd872d0 View commit details
    Browse the repository at this point in the history
  88. ndp: convert ndp(8) to netlink.

    The change is intended to be fully transparent to the users.
    Similarly to route(8) and netstat(8), ndp can be build without
      netlink by defining WITHOUT_NETLINK in make.conf.
    
     Differential Revision:  https://reviews.freebsd.org/D39720
    AlexanderChernikov authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    3494ac6 View commit details
    Browse the repository at this point in the history
  89. netlink: add netlink interfaces to if_clone

    This change adds netlink create/modify/dump interfaces to the `if_clone.c`.
    The previous attempt with storing the logic inside `netlink/route/iface_drivers.c`
     did not quite work, as, for example, dumping interface-specific state
     (like vlan id or vlan parent) required some peeking into the private interfaces.
    
    The new interfaces are added in a compatible way - callers don't have to do anything
    unless they are extended with Netlink.
    
    Reviewed by:	kp
    Differential Revision: https://reviews.freebsd.org/D39032
    MFC after:	1 month
    AlexanderChernikov authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    8fb28bc View commit details
    Browse the repository at this point in the history
  90. ipfw: add [fw]mark implementation for ipfw

    Packet Mark is an analogue to ipfw tags with O(1) lookup from mbuf while
    regular tags require a single-linked list traversal.
    Mark is a 32-bit number that can be looked up in a table
    [with 'number' table-type], matched or compared with a number with optional
    mask applied before comparison.
    Having generic nature, Mark can be used in a variety of needs.
    For example, it could be used as a security group: mark will hold a security
    group id and represent a group of packet flows that shares same access
    control policy.
    
    Reviewed By: pauamma_gundo.com
    Differential Revision: https://reviews.freebsd.org/D39555
    MFC after:	1 month
    lytboris authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    4cee076 View commit details
    Browse the repository at this point in the history
  91. tests: Add ATF_REQUIRE_SYSCTL_BOOL

    Modify a capability mode test to use it for kern.trap_enotcap, to avoid
    false positives.
    
    MFC after:	1 week
    Sponsored by:	The FreeBSD Foundation
    markjdb authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    11a71ba View commit details
    Browse the repository at this point in the history
  92. capsicum: Verify that openat("/", "..") fails with ENOTCAPABLE

    Add a regression test for a718431 ("lookup(): ensure that
    openat("/", "..", O_RESOLVE_BENEATH) fails").
    
    MFC after:	1 week
    Sponsored by:	The FreeBSD Foundation
    markjdb authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    112603a View commit details
    Browse the repository at this point in the history
  93. dtrace: Sync dis_tables.c with illumos

    This brings in the following commits:
    
        commit 584b574a3b16c6772c8204ec1d1c957c56f22a87
        12174 i86pc: variable may be used uninitialized
        Author: Toomas Soome <[email protected]>
        Reviewed by: John Levon <[email protected]>
        Reviewed by: Andrew Stormont <[email protected]>
        Approved by: Dan McDonald <[email protected]>
    
        commit a25e615d76804404e5fc63897a9196d4f92c3f5e
        12371 dis x86 EVEX prefix mishandled
        12372 dis EVEX encoding SIB mishandled
        12373 dis support for EVEX vaes instructions
        12374 dis support for EVEX vpclmulqdq instructions
        12375 dis support for gfni instructions
        Author: Robert Mustacchi <[email protected]>
        Reviewed by: Jerry Jelinek <[email protected]>
        Approved by: Joshua M. Clulow <[email protected]>
    
        commit c1e9bf00765d7ac9cf1986575e4489dd8710d9b1
        12369 dis WBNOINVD support
        Author: Robert Mustacchi <[email protected]>
        Reviewed by: Hans Rosenfeld <[email protected]>
        Reviewed by: Jerry Jelinek <[email protected]>
        Reviewed by: Andy Fiddaman <[email protected]>
        Reviewed by: Toomas Soome <[email protected]>
        Approved by: Dan McDonald <[email protected]>
    
        commit e4f6ce7088a7dd335b9edf4774325f888692e5fb
        10893 Need support for new Cascade Lake Instructions
        Author: Robert Mustacchi <[email protected]>
        Reviewed by: Hans Rosenfeld <[email protected]>
        Reviewed by: Dan McDonald <[email protected]>
        Reviewed by: Richard Lowe <[email protected]>
        Approved by: Gordon Ross <[email protected]>
    
        commit cff040f3ef42d16ae655969398f5a5e6e700b85e
        10226 Need support for new EPYC ISA extensions
        Author: Robert Mustacchi <[email protected]>
        Reviewed by: Hans Rosenfeld <[email protected]>
        Reviewed by: Jason King <[email protected]>
        Reviewed by: Richard Lowe <[email protected]>
        Approved by: Dan McDonald <[email protected]>
    
        commit d242cdf5288b86d9070d88791c8ee696612becdc
        8492 AVX512 dis - legacy logical instructions
        Author: Jerry Jelinek <[email protected]>
        Reviewed by: Robert Mustacchi <[email protected]>
        Reviewed by: Gordon Ross <[email protected]>
        Approved by: Richard Lowe <[email protected]>
    
        commit 81b505b772ab015c588c56bb116239ee549b6eee
        8384 AVX512 dis - EVEX prefix support
        8385 32-bit avx dis test mishandles EVEX prefix
        8386 32-bit bound dis is incorrect
        Author: Jerry Jelinek <[email protected]>
        Reviewed by: Robert Mustacchi <[email protected]>
        Reviewed by: Gordon Ross <[email protected]>
        Approved by: Richard Lowe <[email protected]>
    
        commit 92381362ae635a3bea638d87b7119f1623b6212e
        8319 dis support for new xsave instructions
        Author: Jerry Jelinek <[email protected]>
        Reviewed by: Robert Mustacchi <[email protected]>
        Reviewed by: Gordon Ross <[email protected]>
        Approved by: Richard Lowe <[email protected]>
    
        commit a4e73d5d60e566669c550027fae2b1d87b4be2b4
        8240 AVX512 dis - opmask instruction support
        Author: Jerry Jelinek <[email protected]>
        Reviewed by: Robert Mustacchi <[email protected]>
        Reviewed by: Toomas Soome <[email protected]>
        Approved by: Gordon Ross <[email protected]>
    
        959b2dfd39979fe8a9a315a52741d009eb168822
        7825 want avx dis tests
        7826 PCLMULQDQ psuedo-ops aren't properly described in dis
        7827 dis tests for f16c, movbe, cpuid, msr, tsc, fence instrs
        7828 sysenter and sysexit dis should be allowed in 64-bit x86
        Author: Robert Mustacchi <[email protected]>
        Reviewed by: Jerry Jelinek <[email protected]>
        Approved by: Richard Lowe <[email protected]>
    
    MFC after:	2 weeks
    markjdb authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    89b21f5 View commit details
    Browse the repository at this point in the history
  94. Configuration menu
    Copy the full SHA
    f7fd871 View commit details
    Browse the repository at this point in the history
  95. netlink: fix powerpc build.

    AlexanderChernikov authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    78290c8 View commit details
    Browse the repository at this point in the history
  96. Configuration menu
    Copy the full SHA
    50696d6 View commit details
    Browse the repository at this point in the history
  97. zfs: fix up bogus checksums with blake3 in face of cpu migration

    This is a temporary measure until a better fix is sorted out.
    
    Upstream report: openzfs/zfs#14785
    Reported by:	Evgeniy Khramtsov
    Sponsored by:	Rubicon Communications, LLC ("Netgate")
    mjguzik authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    162e7a7 View commit details
    Browse the repository at this point in the history
  98. ps: Fix synopsis

    In the -L mode, the -L flag is not optional.
    
    MFC after:	3 days
    Sponsored by:	Klara Inc.
    0mp authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    e8250c5 View commit details
    Browse the repository at this point in the history
  99. ps: Add libxo to usage message

    MFC after:	1 week
    Sponsored by:	Klara Inc.
    0mp authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    1b30659 View commit details
    Browse the repository at this point in the history
  100. Add support for zpool user properties

    Usage:
    
        zpool set org.freebsd:comment="this is my pool" poolname
    
    Tests are based on zfs_set's user property tests.
    
    Also stop truncating property values at MAXNAMELEN, use ZFS_MAXPROPLEN.
    
    Reviewed by:	markj
    Approved by:	markj
    Co-authored-by:	Mateusz Piotrowski <[email protected]>
    Obtained from:	OpenZFS 8eae2d2 Add support for zpool user properties
    Sponsored by:	Beckhoff Automation GmbH & Co. KG.
    Sponsored by:	Klara Inc.
    Differential Revision: https://reviews.freebsd.org/D39657
    allanjude authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    4d19654 View commit details
    Browse the repository at this point in the history
  101. zfs: Revert "Fix data race between zil_commit() and zil_suspend()"

    This reverts commit 4c856fb.
    
    To quote a pending upstream PR:
    This reverts commit 4c856fb to resolve a newly introduced deadlock which
    in practice is more disruptive that the issue this commit intended to
    address.
    
    Causes deadlocks described in openzfs/zfs#14775
    
    Sponsored by:	Rubicon Communications, LLC ("Netgate")
    mjguzik authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    d86b77e View commit details
    Browse the repository at this point in the history
  102. Use bool for one-bit wide bit-fields

    A signed one-bit wide bit-field can take only the values 0 and -1. Clang
    16 introduced a warning that "implicit truncation from 'int' to a
    one-bit wide bit-field changes value from 1 to -1". Fix the warnings by
    using C99 bool.
    
    Reported by:	Clang 16
    Reviewed by:	emaste, jhb
    MFC after:	3 days
    Differential Revision: https://reviews.freebsd.org/D39705
    DimitryAndric authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    e38c0c7 View commit details
    Browse the repository at this point in the history
  103. vmm: Expose some more AVX512 CPUID bits to guests

    This is required to announce support for some accelerated AES
    operations.  AVX512BW indicates support for the AVX512-FP16 extension
    and AVX512VL indicates support for the use of AVX512 instructions with
    vector lengths smaller than 512 bits.
    
    VAES and VPCLMULQDQ extensions indicate that VEX-prefixed AES-NI and
    pclmulqdq instructions are supported.
    
    All of these bits are needed for OpenSSL to use VAES to accelerate
    AES-GCM transforms.
    
    Reviewed by:	corvink, kib, jhb
    MFC after:	2 weeks
    Sponsored by:	Stormshield
    Sponsored by:	Klara, Inc.
    Differential Revision:	https://reviews.freebsd.org/D39781
    markjdb authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    03e1467 View commit details
    Browse the repository at this point in the history
  104. zfs: make zfs_vfs_held() definition consistent with declaration

    Noticed while attempting to change boolean_t into an actual bool: in
    include/sys/zfs_ioctl_impl.h, zfs_vfs_held() is declared to return a
    boolean_t, but in module/os/freebsd/zfs/zfs_ioctl_os.c it is defined to
    return an int. Make the definition match the declaration.
    
    Obtained from:	openzfs/zfs@62cc9d4f6
    Reviewed by:	jhb
    MFC after:	1 week
    Differential Revision: https://reviews.freebsd.org/D39753
    DimitryAndric authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    fffb81e View commit details
    Browse the repository at this point in the history
  105. vm: fix a number of functions to match the expected prototypes

    Noticed while attempting to make boolean_t unsigned: some vm-related
    function declarations and defintions were using boolean_t where they
    should have used int, and vice versa.
    
    MFC after:	1 week
    Reviewed by:	jhb
    Differential Revision: https://reviews.freebsd.org/D39753
    DimitryAndric authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    92ef2dc View commit details
    Browse the repository at this point in the history
  106. boolean_t: change to unsigned int to avoid signed bitfield warnings

    This is the final part, which actually makes boolean_t unsigned. Note
    that we do not change its size, nor do we try to change it directly to
    bool, since that results in a lot of regressions.
    
    Converting the remaining instances of boolean_t to plain C99 bool can
    now be done in a piecemeal fashion, after which boolean_t may hopefully
    be retired.
    
    MFC after:	1 week
    Reviewed by:	jhb
    Differential Revision: https://reviews.freebsd.org/D39753
    DimitryAndric authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    29462d4 View commit details
    Browse the repository at this point in the history
  107. cd9660.5: Fix the history section

    MFC after:	7 days
    Sponsored by:	Klara Inc.
    0mp authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    0c46db3 View commit details
    Browse the repository at this point in the history
  108. al_eth: make function definitions consistent with declarations

    The declarations for al_eth_lm_retimer_ds25_signal_detect() and
    al_eth_lm_retimer_ds25_cdr_lock() say that these functions return
    'al_bool', but the definitions actually return 'boolean_t'.
    
    Make the definitions match the declarations.
    
    Reviewed by:	jhb, emaste
    MFC after:	3 days
    Differential Revision: https://reviews.freebsd.org/D39759
    DimitryAndric authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    1a2e797 View commit details
    Browse the repository at this point in the history
  109. x86: whack pmspcv from GENERIC

    The driver is enormous and rarely used.
    
          text      data       bss        dec         hex   filename
      23076646   1870505   4415872   29363023   0x1c00b4f   kernel.before
      20017433   1870305   4416000   26303738   0x1915cfa   kernel.after
    
    People using the driver will need to add pmspcv_load="YES" to
    their loader.conf.
    
    Reviewed by:	jhb
    Relnotes:	yes
    Sponsored by:	Rubicon Communications, LLC ("Netgate")
    Differential Revision:	https://reviews.freebsd.org/D39816
    mjguzik authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    285a97b View commit details
    Browse the repository at this point in the history
  110. irdma: Convert to IfAPI

    Mostly mechanical changes, with some reworking in irdma_cm for iterating
    over interfaces and addresses.  Further rework by Bartosz Sobczak.
    
    Reviewed by:	bartosz.sobczak_intel.com
    Tested by:	mateusz.moga_intel.com
    Sponsored by:	Juniper Networks, Inc.
    Differential Revision: https://reviews.freebsd.org/D38960
    chmeeedalf authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    c3cd372 View commit details
    Browse the repository at this point in the history
  111. al_eth: Finish conversion to IfAPI

    Reviewed by:	zlei
    Sponsored by:	Juniper Networks, Inc.
    Differential Revision: https://reviews.freebsd.org/D38955
    chmeeedalf authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    f5c7e4c View commit details
    Browse the repository at this point in the history
  112. tcp: purge the input queue from tcp_discardcb()

    The purge was intentionally removed in a540cdc.  My assumption
    was that the stacks that use the input queue always call the
    tcp_handle_orphaned_packets() in their tfb_tcp_fb_fini method.
    However, rack will skip doing that if t_fb_ptr is NULL and there are
    scenarios when it is NULL, e.g. close(2) on a socket (but some
    special close(2)).  Instead of working out all possible scenarios
    let's put this safebelt back.
    
    Reviewed by:		rrs
    Differential Revision:	https://reviews.freebsd.org/D39696
    glebius authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    677e174 View commit details
    Browse the repository at this point in the history
  113. tcp_hpts: move HPTS related fields from inpcb to tcpcb

    This makes inpcb lighter and allows future cache line optimizations
    of tcpcb.  The reason why HPTS originally used inpcb is the compressed
    TIME-WAIT state (see 0d74451), that used to free a tcpcb, while the
    associated connection is still on the HPTS ring.
    
    Reviewed by:		rrs
    Differential Revision:	https://reviews.freebsd.org/D39697
    glebius authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    87a2fb2 View commit details
    Browse the repository at this point in the history
  114. tcp: move HPTS/LRO flags out of inpcb to tcpcb

    These flags are TCP specific.  While here, make also several LRO
    internal functions to pass tcpcb pointer instead of inpcb one.
    
    Reviewed by:		rrs
    Differential Revision:	https://reviews.freebsd.org/D39698
    glebius authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    3013d10 View commit details
    Browse the repository at this point in the history
  115. arm64/disassem.c: style and formatting

    Reviewed by:	mhorne
    MFC after:	1 week
    Differential Revision:	https://reviews.freebsd.org/D38899
    toor1245 authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    2e7aab2 View commit details
    Browse the repository at this point in the history
  116. arm64/disassem.c: Fix typo sxts to sxts and amount for TYPE_02

    The current implementation is wrong, since it unconditionally sets the
    amount equal to the <size> field of the instruction. However, when the
    <S> bit (scale) is not set, it must be zero.
    
    Also fix a typo, sxts to sxtx, according to the Arm64 documentation.
    
    Reviewed by:	mhorne
    MFC after:	1 week
    Differential Revision:	https://reviews.freebsd.org/D39334
    toor1245 authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    665d983 View commit details
    Browse the repository at this point in the history
  117. arm64/disassem.c: Add support str/strb/strh instructions

    Added disassembly support for each type of str/strb/strh instruction
    encoding.
    
    Reviewed by:	mhorne
    MFC after:	1 week
    Differential Revision:	https://reviews.freebsd.org/D39336
    toor1245 authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    48457a6 View commit details
    Browse the repository at this point in the history
  118. printf(9): clarify the description of %b

    The bit values are numbers given in octal representation, not decimal,
    as one might assume from the description. Same goes for the base,
    although this has an example.
    
    Reviewed by:	emaste
    MFC after:	3 days
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D39815
    mhorne authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    4ea4c18 View commit details
    Browse the repository at this point in the history
  119. clang: Enable -Wdeprecated-non-prototype by default.

    PR:		270919 (exp-run)
    Reviewed by:	dim, emaste
    Differential Revision:	https://reviews.freebsd.org/D39535
    bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    a5dbd9e View commit details
    Browse the repository at this point in the history
  120. Change the unit of srtt and rto to usec, inspired by these in struct …

    …"tcp_info". Therefore, no need hz and tcp_rtt_scale in the headline of the log. Update the man page as well.
    
    Summary: Simplify srtt and rto values in siftr log.
    
    Test Plan:
    Tested in Emulab testbed:
    cc@s1:~ % sudo sysctl net.inet.siftr
    net.inet.siftr.port_filter: 0
    net.inet.siftr.genhashes: 0
    net.inet.siftr.ppl: 1
    net.inet.siftr.logfile: /var/log/siftr.log
    net.inet.siftr.enabled: 0
    cc@s1:~ % sudo sysctl net.inet.siftr.port_filter=5001
    net.inet.siftr.port_filter: 0 -> 5001
    cc@s1:~ % sudo sysctl net.inet.siftr.enabled=1
    net.inet.siftr.enabled: 0 -> 1
    cc@s1:~ %
    cc@s1:~ % iperf -c r1 -n 1M
    ------------------------------------------------------------
    Client connecting to r1, TCP port 5001
    TCP window size: 32.0 KByte (default)
    ------------------------------------------------------------
    [  1] local 10.1.1.2 port 33817 connected with 10.1.1.3 port 5001
    [ ID] Interval       Transfer     Bandwidth
    [  1] 0.00-0.91 sec  1.00 MBytes  9.22 Mbits/sec
    cc@s1:~ % sudo sysctl net.inet.siftr.enabled=0
    net.inet.siftr.enabled: 1 -> 0
    
    cc@s1:~ % ll /var/log/siftr.log
    -rw-r--r--  1 root  wheel    91K Apr 25 09:38 /var/log/siftr.log
    cc@s1:~ % cat /var/log/siftr.log
    enable_time_secs=1682437111	enable_time_usecs=121115	siftrver=1.3.0	sysname=FreeBSD	sysver=1400088	ipmode=4
    o,0x00000000,1682437125.907343,10.1.1.2,33817,10.1.1.3,5001,1073725440,1073725440,2,0,0,0,0,2,536,0,1,672,1000000,32768,0,65536,0,0,0,0,0
    i,0x00000000,1682437126.106759,10.1.1.2,33817,10.1.1.3,5001,1073725440,1073725440,2,0,0,0,0,2,536,0,1,672,1000000,32768,0,65536,0,1,0,0,0
    o,0x00000000,1682437126.106767,10.1.1.2,33817,10.1.1.3,5001,1073725440,14480,2,65535,65700,9,9,4,1460,201000,1,16778209,803000,33580,0,65700,0,0,0,0,0
    o,0x00000000,1682437126.107141,10.1.1.2,33817,10.1.1.3,5001,1073725440,14480,2,65535,65700,9,9,4,1460,201000,1,16778208,803000,33580,60,65700,0,0,0,0,0
    ...
    i,0x00000000,1682437127.016754,10.1.1.2,33817,10.1.1.3,5001,1073725440,606109,1030,748544,66048,9,9,9,1460,100812,1,1008,303000,475948,0,65700,0,0,0,0,0
    o,0x00000000,1682437127.016759,10.1.1.2,33817,10.1.1.3,5001,1073725440,606109,1030,748544,66048,9,9,10,1460,100812,1,1011,303000,475948,0,65700,0,0,0,0,0
    disable_time_secs=1682437131	disable_time_usecs=767582	num_inbound_tcp_pkts=371	num_outbound_tcp_pkts=186	total_tcp_pkts=557	num_inbound_skipped_pkts_malloc=0	num_outbound_skipped_pkts_malloc=0	num_inbound_skipped_pkts_tcpcb=0	num_outbound_skipped_pkts_tcpcb=0	num_inbound_skipped_pkts_inpcb=0	num_outbound_skipped_pkts_inpcb=0	total_skipped_tcp_pkts=0	flow_list=10.1.1.2;33817-10.1.1.3;5001,
    
    Reviewers: rscheff, tuexen
    Approved by: rscheff, tuexen
    Subscribers: imp, melifaro, glebius
    Differential Revision: https://reviews.freebsd.org/D39803
    ccfbsd authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    196db49 View commit details
    Browse the repository at this point in the history
  121. tcp_hpts: add missing "inline"

    Fixes:	c2a69e8
    glebius authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    6d22e52 View commit details
    Browse the repository at this point in the history
  122. VOP_CLOSE(): MNTK_EXTENDED_SHARED filesystems do not need excl lock

    All in-tree implementations of VOP_CLOSE() for filesystems proclaiming
    MNTK_EXTENDED_SHARED, are fine with the shared lock for the closed
    vnode.  I checked the following implementations:
    	ffs
    	ext2
    	ufs
    	null
    	tmpfs
    	devfs
    	fdescfs
    	cd9660
    	zfs
    It seems that initial addition of FWRITE check was due to necessity of
    handling the VV_TEXT vnode vflag.  Since VOP_ADD_WRITECOUNT() only
    requires shared lock, we can relax the locking requirement there.
    
    Reviewed by:	markj, Olivier Certner <[email protected]>
    Tested by:	Olivier Certner
    Sponsored by:	The FreeBSD Foundation
    Differential revision:	https://reviews.freebsd.org/D39784
    kostikbel authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    6a4aabf View commit details
    Browse the repository at this point in the history
  123. bectl: document the -r flag to bectl

    Independent of all of the commands, bectl itself takes an `-r` flag that
    specifies the BE root to use.  This was originally added to facilitate
    testing, but it was later discovered to be incredibly useful in other
    scenarios; e.g., trying to recover some boot environments in rescue
    media.
    
    The "BE root" described here is the parent dataset that holds boot
    environments, but I've no idea if that's an accepted definition for that
    dataset.
    
    Reviewed by:	gallatin, imp, Pau Amma
    MFC after:	1 week
    Differential Review:	https://reviews.freebsd.org/D39710
    kevans91 authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    8ed390c View commit details
    Browse the repository at this point in the history
  124. gbde: stop rebuilding sha512 bits

    In the early days of gbde, it linked against libmd.  Shortly after
    conception, phk replaced ARC4 with SHA-512, but libmd did not have SHA2
    at the time thus he built a copy of sha2.c for gbde.
    
    Fast forward 3 years, cperciva adds SHA2 to libmd -- this makes gbde's
    build of sha2.c redundant, but it's (understandably) overlooked.  Let's
    simplify the gbde build now and just assume that libmd includes the most
    optimal implementation.
    
    Reported by:	koobs (weird lto errors?)
    Differential Revision:	https://reviews.freebsd.org/D34668
    kevans91 authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    16bc053 View commit details
    Browse the repository at this point in the history
  125. Note that static hints no longer break loader hints

    This commentary was carried over from the x86 version of the same code,
    but has actually been inaccurate for a while now. As of FreeBSD 12.x,
    all environments are used unless they disable each other. See
    39d44f7 ("kern_environment: use any provided environments [...]")
    for details.
    
    Reviewed by:	imp
    Differentiala Revision:	https://reviews.freebsd.org/D35695
    kevans91 authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    d1153c8 View commit details
    Browse the repository at this point in the history
  126. Add a simple-framebuffer vt driver

    This allows us to support this hardware and, in the future, use clocks
    so they are enabled past the initial kernel boot process.
    
    Reviewed by:	ray
    Differential Revision:	https://reviews.freebsd.org/D30103
    zxombie authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    2194ae2 View commit details
    Browse the repository at this point in the history
  127. bhyve: add basic E820 implementation

    There are some use cases where bhyve has to prepare some special memory
    regions. E.g. GPU passthrough for Intel integrated graphic devices needs
    to reserve some memory for the graphic device. So, bhyve has to inform
    the guest about those memory regions. This information can be passed by
    the qemu fwcfg interface. As qemu creates an E820 table, we can reuse
    the existing fwcfg item "etc/e820".
    
    This commit is the first one of a series. It only adds a basic
    implementation for the creation of the E820 table. Some subsequent
    commits will add more items to the E820 table and register it as fwcfg
    item.
    
    Reviewed by:		markj
    MFC after:		1 week
    Sponsored by:		Beckhoff Automation GmbH & Co. KG
    Differential Revision:	https://reviews.freebsd.org/D39545
    ckoehne authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    3069a2c View commit details
    Browse the repository at this point in the history
  128. bhyve: add common memory holes to E820 table

    The VGA and the ROM memory ranges can't be used as system memory. For
    that reason, remove them from the E820 table.
    
    Reviewed by:		markj
    MFC after:		1 week
    Sponsored by:		Beckhoff Automation GmbH & Co. KG
    Differential Revision:	https://reviews.freebsd.org/D39546
    ckoehne authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    0c995b7 View commit details
    Browse the repository at this point in the history
  129. bhyve: add allocation function to E820

    This function makes it easy to allocate new E820 entries. It will be
    used to allocate graphics memory for Intel integrated graphic devices.
    
    Reviewed by:		markj
    MFC after:		1 week
    Sponsored by:		Beckhoff Automation GmbH & Co. KG
    Differential Revision:	https://reviews.freebsd.org/D39547
    ckoehne authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    91bac17 View commit details
    Browse the repository at this point in the history
  130. bhyve: add E820 dump function

    For debugging purposes it is helpful to dump the E820 table.
    
    Reviewed by:		markj
    MFC after:		1 week
    Sponsored by:		Beckhoff Automation GmbH & Co. KG
    Differential Revision:	https://reviews.freebsd.org/D39549
    ckoehne authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    ed069d0 View commit details
    Browse the repository at this point in the history
  131. bhyve: pass E820 table to guest

    E820 table will be used to report valid RAM ranges and reserve special
    memory areas like graphics memory for GPU passthrough.
    
    Reviewed by:		markj
    MFC after:		1 week
    Sponsored by:		Beckhoff Automation GmbH & Co. KG
    Differential Revision:	https://reviews.freebsd.org/D39550
    ckoehne authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    90575ef View commit details
    Browse the repository at this point in the history
  132. prometheus_sysctl_exporter: Replace magic numbers with identifiers.

    Identifiers make it clearer what is going on and makes it easier to
    find consumers of sysctl functionality.
    
    No functional change.
    
    MFC after:	3 days
    Reviewed by:	asomers
    Differential Revision:	https://reviews.freebsd.org/D39797
    Peter Jeremy authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    f763414 View commit details
    Browse the repository at this point in the history
  133. vmm: fix HLT loop while vcpu has requested virtual interrupts

    This fixes the detection of pending interrupts when pirval is 0 and the
    pending bit is set
    
    More information how this situation occurs, can be found here:
    https://github.com/freebsd/freebsd-src/blob/c5b5f2d8086f540fefe4826da013dd31d4e45fe8/sys/amd64/vmm/intel/vmx.c#L4016-L4031
    
    Reviewed by:		corvink, markj
    Fixes:			02cc877 ("Recognize a pending virtual interrupt while emulating the halt instruction.")
    MFC after:		1 week
    Sponsored by:		vStack
    Differential Revision:	https://reviews.freebsd.org/D39620
    gusev-vitaliy authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    3fe6ff1 View commit details
    Browse the repository at this point in the history
  134. pf: introduce ridentifier and labels to ether rules

    Make Ethernet rules more similar to the usual layer 3 rules by also
    allowing ridentifier and labels to be set on them.
    
    Reviewed by:	kp
    Sponsored by:	Rubicon Communications, LLC ("Netgate")
    rcmcdonald91 authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    a72f4c9 View commit details
    Browse the repository at this point in the history
  135. Update tzcode to 2023c.

    MFC after:      3 weeks
    Sponsored by:   Klara, Inc.
    Reviewed by:    philip
    Differential Revision:  https://reviews.freebsd.org/D39712
    dag-erling authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    f3161d4 View commit details
    Browse the repository at this point in the history
  136. tzcode: Clean up the ctime(3) manual page.

    MFC after:	3 weeks
    Sponsored by:	Klara, Inc.
    Reviewed by:	pauamma_gundo.com
    Differential Revision:	https://reviews.freebsd.org/D39714
    dag-erling authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    adfe647 View commit details
    Browse the repository at this point in the history
  137. getconf(1): add DEALLOC_PRESENT

    Allow getconf to query _PC_DEALLOC_PRESENT pathconf(2) variable
    added in 0dc332b.
    
    Reviewed by:	kib
    Differential Revision:	https://reviews.freebsd.org/D39796
    Yuri Pankov authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    c61dac4 View commit details
    Browse the repository at this point in the history
  138. netlink: fix build without NETLINK in the kernel.

    PR:	271066
    AlexanderChernikov authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    2553d90 View commit details
    Browse the repository at this point in the history
  139. tzsetup: fix bootstrapping for github CI jobs

    Move dump_zonetab() under HAVE_BSDDIALOG as the parsing code
    it relies on already is.
    Yuri Pankov authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    fb93424 View commit details
    Browse the repository at this point in the history
  140. Mark simplefb as depending on fdt

    This file is for a FDT specific device, mark it as such.
    
    Reported by:	Zachary Leaf <[email protected]>
    Sponsored by:	Arm Ltd
    zxombie authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    b9ebe1b View commit details
    Browse the repository at this point in the history
  141. Add vt_simplefb to the arm64 NOTES file

    This will be picked up in the LINT-ACPI and LINT-FDT configs to check
    it builds with only one option enabled
    
    Sponsored by:	Arm Ltd
    zxombie authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    82b286e View commit details
    Browse the repository at this point in the history
  142. Configuration menu
    Copy the full SHA
    be2beda View commit details
    Browse the repository at this point in the history
  143. netlink: fix IPv6 proxy ndp deletion.

    * Move LLT_ADDEDPROXY handling into lltable_link_entry() to
     reduct duplication
    * Use standard lltable_delete_addr() for entry deletion
    * Add (forgotten) call to llt_post_resolved handler after
     adding the entry via netlink.
    
    MFC after:	2 weeks
    AlexanderChernikov authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    96dd4bc View commit details
    Browse the repository at this point in the history
  144. pxeboot: bugs in pxe.h

    SEGDESC_t needs to be PACKED
    there is no status in t_PXENV_UNDI_MCAST_ADDRESS
    
    Reviewed by:	imp
    Differential Revision:	https://reviews.freebsd.org/D39799
    Toomas Soome authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    f3a083a View commit details
    Browse the repository at this point in the history
  145. irdma: Silence an unused function warning

    Reviewed by:	erj
    Fixes:	3510590 ("irdma(4): Upgrade the driver to 1.1.11-k")
    Differential Revision:	https://reviews.freebsd.org/D39719
    markjdb authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    9a6bc62 View commit details
    Browse the repository at this point in the history
  146. linux(4): Don't relie on process osreldata when testing features

    The ELF note identifyies the operating-system ABI that the executable
    was created for. The note data of the Glibc executable contains the
    earliest release number of the Linux kernel that supports this ABI.
    As of a current 2.37 version of Glibc, it is 3.2.0 for x86, 3.7.0
    for Aarch64.
    Glibc does not use this release number and the current kernel's
    LINUX_VERSION_CODE to detect kernel features, using fallbacks to known
    previous way in case of ENOSYS or something else instead.
    
    A dynamically linked Glibc reads the current kernel's LINUX_VERSION_CODE
    from the ELF note in the vDSO or fallback to uname syscall if the vDSO
    can't be located and parse the release field in struct utsname. Glibc
    uses the current kernel's LINUX_VERSION_CODE for "kernel too old" check.
    
    While here use inlined LINUX_KERNVER for tests to improve readability,
    as suggested by emaste@.
    
    MFC after:		1 month
    lemul authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    137bce8 View commit details
    Browse the repository at this point in the history
  147. linux(4): Use inlined LINUX_KERNVER for tests to improve readability

    MFC after:		1 month
    lemul authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    d668b12 View commit details
    Browse the repository at this point in the history
  148. vmm: Dynamically allocate a couple of per-CPU state save areas

    This avoids bloating the BSS when MAXCPU is large.
    
    No functional change intended.
    
    PR:		269572
    Reviewed by:	corvink, rew
    Tested by:	rew
    MFC after:	2 weeks
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D39805
    markjdb authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    bc37fed View commit details
    Browse the repository at this point in the history
  149. callout: Move per-CPU callout state into the dpcpu region

    This eliminates some static bloat in amd64 kernels and reduces the
    penalty of increasing MAXCPU.  The structures now also maintain NUMA
    affinity.  No functional change intended.
    
    PR:		269572
    Reviewed by:	mjg, kib
    MFC after:	2 weeks
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D39807
    markjdb authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    219751a View commit details
    Browse the repository at this point in the history
  150. buf: Dynamically allocate per-CPU buffer queues

    To reduce static bloat.  No functional change intended.
    
    PR:		269572
    Reviewed by:	mjg, kib, emaste
    MFC after:	2 weeks
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D39808
    markjdb authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    74170a0 View commit details
    Browse the repository at this point in the history
  151. pfctl: match expand_label_addr() prototype to definition

    Sponsored by:	Rubicon Communications, LLC ("Netgate")
    kprovost authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    5e4469c View commit details
    Browse the repository at this point in the history
  152. pf: clear PF_TAG_ROUTE_TO for dummynet fast path

    Similar to the PF_TAG_DUMMYNET we must also clear the route tag if
    dummynet didn't keep the packet. In that case we'd continue immediately
    and there'd be no need for the route tag. Keeping it could lead to
    unexpected routing of traffic.
    
    See also:	27407a6
    See also:	https://redmine.pfsense.org/issues/14055
    Sponsored by:	Rubicon Communications, LLC ("Netgate")
    kprovost authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    03c70c2 View commit details
    Browse the repository at this point in the history
  153. callout: Remove an unneeded MTX_NEW

    Reported by:	hselasky
    Fixes:		78cfa76 ("callout: Move per-CPU callout state into the dpcpu region")
    markjdb authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    195ec05 View commit details
    Browse the repository at this point in the history
  154. openzfs: arm64: implement kfpu_begin/kfpu_end

    This is part one of a fix for booting with ZFS on arm64 using
    accelerated checksum implementations.  Checksum benchmarking will
    attempt to use the FPU, so we currently panic quickly on boot.  BLAKE3
    is still broken, as it clobbers x18 and we promptly discover that fact
    as soon as we attempt to fetch curthread in kfpu_end().
    
    Note that _STANDALONE is special-cased here, but ideally we wouldn't be
    building the code that uses kfpu_begin()/kfpu_end() at all in the loader
    environment.
    
    Discussed with:	imp (a bit)
    Differential Revision:	https://reviews.freebsd.org/D39448
    kevans91 authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    f3b7e06 View commit details
    Browse the repository at this point in the history
  155. ipv6: disable RFC 4620 nodeinfo by default

    RFC 4620 is an experimental RFC that can be used to request information
    about a host, including:
    
    - the fully-qualified or single-component name
    - some set of the Responder's IPv6 unicast addresses
    - some set of the Responder's IPv4 unicast addresses
    
    This is not something that should be made available by default.
    
    PR:		257709
    Submitted by:	[email protected]
    Reviewed by:	melifaro
    Relnotes:	Yes
    Sponsored by:	The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D39778
    emaste authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    e3bbb9d View commit details
    Browse the repository at this point in the history
  156. zfs: Fix positive ABD size assertion in abd_verify().

    This cherry-picks upstream:
    commit bba7cbf
    Author: Alexander Motin <[email protected]>
    Date:   Wed Apr 26 12:20:43 2023 -0400
    
        Fix positive ABD size assertion in abd_verify().
    
        Gang ABDs without childred are legal, and they do have zero size.
        For other ABD types zero size doesn't have much sense and likely
        not working correctly now.
    
        Reviewed-by: Igor Kozhukhov <[email protected]>
        Reviewed-by: Brian Behlendorf <[email protected]>
        Signed-off-by:  Alexander Motin <[email protected]>
        Sponsored by:   iXsystems, Inc.
        Closes #14795
    
    Sponsored by:	Rubicon Communications, LLC ("Netgate")
    mjguzik authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    ecdf57c View commit details
    Browse the repository at this point in the history
  157. arm: remove interrupt nesting by ipi_preempt()/ipi_hardclock()

    This was needed when intr_ipi_dispatch() was called by hardware-specific
    IPI interrupt routines which didn't save the trap frame.  Now all ARM
    interrupts pass through INTRNG which will have already saved the trap
    frame and disabled preemption.
    
    Remove the conditional trapframe/argument passing to the handlers.
    
    Reviewed by: andrew
    Differential Revision: https://reviews.freebsd.org/D37938
    ehem authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    43c6f04 View commit details
    Browse the repository at this point in the history
  158. arm: remove passing trapframe to intr_ipi_dispatch()

    This was needed before INTRNG was in place and handling the push of
    curthread->td_intr_frame.  Since INTRNG now handles this, there is no
    longer and need for playing around with the frame inside IPI interrupts.
    ehem authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    f4c38ab View commit details
    Browse the repository at this point in the history
  159. Configuration menu
    Copy the full SHA
    eb353d1 View commit details
    Browse the repository at this point in the history
  160. netmap: pkt-gen: sync with upstream

    Keep in sync with the recent upstream changes:
    
    Fix compilation on 32-bit architectures
    Update IP length, UDP length/checksum when size changes
    Man page fixes
    
    Submitted by:	[email protected]
    MFC after:	7 days
    Differential Revision:	https://reviews.freebsd.org/D39760
    Vincenzo Maffione authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    ee71511 View commit details
    Browse the repository at this point in the history
  161. siftr: remove barely used hash generation per record

    Reviewers: rscheff, tuexen
    Approved by: rscheff, tuexen
    Subscribers: imp, melifaro, glebius
    Differential Revision: https://reviews.freebsd.org/D39835
    ccfbsd authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    d957ac5 View commit details
    Browse the repository at this point in the history
  162. Fix BLAKE3 aarch64 assembly for FreeBSD and macOS

    The x18 register isn't useable within FreeBSD kernel space, so we
    have to fix the BLAKE3 aarch64 assembly for not using it.
    
    The source files are here: https://github.com/mcmilk/BLAKE3-tests
    
    Reviewed-by: Kyle Evans <[email protected]>
    Signed-off-by: Tino Reichardt <[email protected]>
    Closes #14728
    mcmilk authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    14f95e3 View commit details
    Browse the repository at this point in the history
  163. openzfs: re-enable FPU usage on aarch64

    The BLAKE3 generated assembly files have now been updated to avoid
    clobbering x18, we can safely re-enable FPU usage on aarch64.
    kevans91 authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    dc70176 View commit details
    Browse the repository at this point in the history
  164. bhyve: Disable bhyve HDA debug by default.

    Adapt hda_print_cmd_ctl_data() to not generate compiler warnings
    when DEBUG_HDA is off.
    
    Reviewed by:		corvink
    Approved by:		corvink
    Differential Revision:	https://reviews.freebsd.org/D39826
    madpilot78 authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    58a5278 View commit details
    Browse the repository at this point in the history
  165. bhyve: Add DEBUG_HDA_FILE define to specify location of debug output

    Reviewed by:		corvink
    Approved by:		corvink
    Differential Revision:	https://reviews.freebsd.org/D39826
    madpilot78 authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    5e8fd21 View commit details
    Browse the repository at this point in the history
  166. cap_net tests: Skip tests if there is no connectivity

    When testing cap_connect() and name/addr lookup functions, skip tests if
    we fail and the error is not ENOTCAPABLE.  This makes the tests amenable
    to running in CI without Internet connectivity.
    
    Reviewed by:	oshogbo
    MFC after:	2 weeks
    Differential Revision:	https://reviews.freebsd.org/D39242
    markjdb authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    a572b5d View commit details
    Browse the repository at this point in the history
  167. logger(1): fix timestamps in case of long run

    An example:
    
    ( echo test; sleep 2; echo test2 ) | logger -h /var/run/log
    
    Before fix, logger assigned same timestamp to both records.
    
    Fixes:		65547fb
    Reported by:	Vadim Goncharov
    MFC after:	1 week
    Eugene Grosbein authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    c330d0c View commit details
    Browse the repository at this point in the history
  168. sockbuf: Add KMSAN checks to sbappend*()

    Otherwise KMSAN only detects uninitialized memory when the contents of
    the buffer are copied out to userspace or transmitted to a network
    interface.  At that point the KMSAN violation will be far removed from
    its origin, so let's try to make debugging such problems a bit easier.
    
    Reviewed by:	glebius
    MFC after:	2 weeks
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D38101
    markjdb authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    8f88cc6 View commit details
    Browse the repository at this point in the history
  169. tzsetup: adopt zone1970.tab changes

    - assumption that single-zone countries do not have description
      is no longer correct; do not try to optimize this case as it's
      only going to make the code more confusing and we now have menus
      with a single zone selection because of this
    - remove the single-country continent short cut, it also only serves
      to confuse users as we now have such a continent
    - instead add a single-zone contry short cut (see above), now all
      single-zone countries fall here
    - use the #@ continent overrides that zone1970.tab introduces (this is
      visible at least fixing Iceland being currently listed under Africa)
    - add Arctic Ocean "continent" coming only from the overrides at the
      moment
    - update baseline with the changes
    
    Reviewed by:	bapt, philip
    Differential Revision:	https://reviews.freebsd.org/D39606
    Yuri Pankov authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    e7c9efc View commit details
    Browse the repository at this point in the history
  170. tzsetup: appease checkstyle9

    Yuri Pankov authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    85089a5 View commit details
    Browse the repository at this point in the history
  171. jobs.mk report JOB_ARGS log and JOB_LOG_START

    At the start of a job include info such as JOB_ARGS the log location
    and anything in JOB_LOG_START (eg TARGET_SPEC=${TARGET_SPEC})
    sgerraty authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    81e4263 View commit details
    Browse the repository at this point in the history
  172. Additions to targets/pseudo/host-tools

    More tools needed to be built for Linux.
    These are the ones that "just work".
    sgerraty authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    9359026 View commit details
    Browse the repository at this point in the history
  173. CONTRIBUTING: add intro describing the ways we accept contributions

    Reviewed by:	imp
    Sponsored by:	The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D39854
    emaste authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    701a646 View commit details
    Browse the repository at this point in the history
  174. vfs: Export get_next_dirent() as vn_dir_next_dirent()

    Move internal-to-'vfs_default.c' get_next_dirent() to 'vfs_vnops.c' and
    export it for use by other parts of the VFS. This is a preparatory
    change for using it in vfs_emptydir().
    
    No functional change.
    
    Reviewed by:	kib
    MFC after:	1 week
    Differential Revision:	https://reviews.freebsd.org/D39755
    OlCe2 authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    5e2e99d View commit details
    Browse the repository at this point in the history
  175. vfs: vn_dir_next_dirent(): Simplify interface and harden

    Simplify the old interface (one less argument, simpler termination test)
    and add documentation about it. Add more sanity checks (mostly under
    INVARIANTS, but also in the general case to prevent infinite
    loops). Drop the explicit test on minimum directory entry size (without
    INVARIANTS).
    
    Deal with the impacts in callers (dirent_exists() and vop_stdvptocnp()).
    dirent_exists() has been simplified a bit, preserving the exact same
    semantics but for the return code whose meaning has been reversed (0 now
    means the entry exists, ENOENT that it doesn't and other values are
    genuine errors). While here, suppress gratuitous casts of malloc return
    values.
    
    vn_dir_next_dirent() has been tested by a 'make -j4 buildkernel' with a
    temporary modification to the VFS cache causing vn_vptocnp() to always
    call VOP_VPTOCNP() and finally vop_stdvptocnp() (observed with temporary
    debug counters).
    
    Export new _GENERIC_MINDIRSIZ and _GENERIC_MAXDIRSIZ on __BSD_VISIBLE,
    and GENERIC_MINDIRSIZ and GENERIC_MAXDIRSIZ on _KERNEL.
    
    Reviewed by:	kib
    MFC after:	1 week
    Differential Revision:	https://reviews.freebsd.org/D39764
    OlCe2 authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    5c4bc79 View commit details
    Browse the repository at this point in the history
  176. vfs: Fix "emptydir" mount option

    Fix vfs_emptydir(). It would consider directories containing directories
    with name of the form 'X.' (X being any authorized byte) as empty. Also,
    it would cause VOP_READDIR() to return an error on directories
    containing enough whiteouts. While here, use a more decently sized
    buffer as done elsewhere.
    
    Remove ad-hoc iteration on the directory's content and instead use the
    newly exported vn_dir_next_dirent() function (this is what fixes the
    second problem mentioned above).
    
    PR:	270988
    Reviewed by:	kib
    MFC after:	1 week
    Differential Revision:	https://reviews.freebsd.org/D39775
    OlCe2 authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    023dc1f View commit details
    Browse the repository at this point in the history
  177. Expose EFI wake time API

    Reviewed by:	kib
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D36714
    bruelltuete authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    481feb8 View commit details
    Browse the repository at this point in the history
  178. Add efiwake tool

    Reviewed by:	kib
    MFC after:	1 week
    Differential revision:	https://reviews.freebsd.org/D36714
    bruelltuete authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    21f0076 View commit details
    Browse the repository at this point in the history
  179. efiwake(8): style

    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    kostikbel authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    936d58b View commit details
    Browse the repository at this point in the history
  180. bhyve: use directory file descriptor for checkpoint

    This is required to enable capsicum for the snapshot code.
    
    Reviewed by:		corvink
    Sponsored by:		vStack
    Differential Revision:	https://reviews.freebsd.org/D38858
    gusev-vitaliy authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    19e73dd View commit details
    Browse the repository at this point in the history
  181. bhyve: enable capsicum for snapshot code

    Reviewed by:		corvink
    Sponsored by:		vStack
    Differential Revision:	https://reviews.freebsd.org/D38860
    gusev-vitaliy authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    63ac42b View commit details
    Browse the repository at this point in the history
  182. linux(4): Sort includes in the linux_stats.c

    lemul authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    c88b52a View commit details
    Browse the repository at this point in the history
  183. Configuration menu
    Copy the full SHA
    089285d View commit details
    Browse the repository at this point in the history
  184. linux(4): Move statx_copyout() close to linux_statx()

    Just for future changes of the conditional Linuxulator build. We need
    a small refactoring of the MI code to help porting Linuxulator to other
    platforms.
    lemul authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    f2f66e7 View commit details
    Browse the repository at this point in the history
  185. Configuration menu
    Copy the full SHA
    db0f3c2 View commit details
    Browse the repository at this point in the history
  186. linux(4): Mark old fstat syscal as unimplemented

    It looks like the old fstat system call never been implemented.
    lemul authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    21d6a43 View commit details
    Browse the repository at this point in the history
  187. Configuration menu
    Copy the full SHA
    53dfcda View commit details
    Browse the repository at this point in the history
  188. Configuration menu
    Copy the full SHA
    c5653d3 View commit details
    Browse the repository at this point in the history
  189. linux(4): Make struct newstat to match actual Linux one

    In the struct stat the st_dev, st_rdev are unsigned long.
    lemul authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    f3118ca View commit details
    Browse the repository at this point in the history
  190. linux(4): Move dev_t type declaration under /compat/linux

    As of version 2.6.0 of the Linux kernel, dev_t is a 32-bit unsigned integer
    on all platforms. Move it into the MI linux.h under /compat/linux.
    lemul authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    efd9130 View commit details
    Browse the repository at this point in the history
  191. linux(4): Use Linux dev_t type for mknod syscalls dev argument

    As of version 2.6.0 of the Linux kernel, dev_t is a 32-bit unsigned integer
    on all platforms. Prior the 2.6 kernel dev_t type was an unsigned short.
    However, since the firs commit of the Linuxulator, mknod syscall get int dev
    argument.
    Also, there is some confusion here, while the kernel declares a dev_t type
    as a 32-bit sized, the user-space dev_t type can be size of 64 bits, e.g.,
    in the Glibc library.
    To avoid confusion and to help porting of the Linuxulator to other platforms
    use explicit l_dev_t for dev argument of mknod syscalls.
    lemul authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    7e1327b View commit details
    Browse the repository at this point in the history
  192. linux(4): Regen for mknod syscall changes

    lemul authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    db6e80d View commit details
    Browse the repository at this point in the history
  193. Configuration menu
    Copy the full SHA
    0ec60b8 View commit details
    Browse the repository at this point in the history
  194. linux(4): Add a dedicated statat() implementation

    Get rid of calling Linux stat translation hook and specific to Linux
    handling of non-vnode dirfd from kern_statat(),
    
    Reviewed by:		kib, mjg
    Differential revision:	https://reviews.freebsd.org/D35474
    lemul authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    1e97478 View commit details
    Browse the repository at this point in the history
  195. linux(4): Add a dedicated fstat() implementation

    In between kern_fstat() and translate_fd_major_minor(), another process
    having the same filedesc could modify or close fd.
    
    Reviewed by:		kib
    Differential Revision:	https://reviews.freebsd.org/D39763
    lemul authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    0303bc7 View commit details
    Browse the repository at this point in the history
  196. linux(4): Uniformly dev_t arguments translation

    The two main uses of dev_t are in struct stat and as a parameter of the
    mknod system calls.
    As of version 2.6.0 of the Linux kernel, dev_t is a 32-bit quantity
    with 12 bits set asaid for the major number and 20 for the minor number.
    The in-kernel dev_t encoded as MMMmmmmm, where M is a hex digit of the
    major number and m is a hex digit of the minor number.
    The user-space dev_t encoded as mmmM MMmm, where M and m is the major
    and minor numbers accordingly. This is downward compatible with legacy
    systems where dev_t is 16 bits wide, encoded as MMmm.
    In glibc dev_t is a 64-bit quantity, with 32-bit major and minor numbers,
    encoded as MMMM Mmmm mmmM MMmm. This is downward compatible with the Linux
    kernel and with legacy systems where dev_t is 16 bits wide.
    In the FreeBSD dev_t is a 64-bit quantity. The major and minor numbers
    are encoded as MMMmmmMm, therefore conversion of the device numbers between
    Linux user-space and FreeBSD kernel required.
    lemul authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    4c857d7 View commit details
    Browse the repository at this point in the history
  197. ixgbe: Fix typos in source code comments

    - s/feilds/fields/
    
    Reviewed by:	zlei
    MFC after:	3 days
    Pull Request:	freebsd/freebsd-src#707
    Ian Moffett authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    ac6c03e View commit details
    Browse the repository at this point in the history
  198. mps: Fix a typo in a source code comment

    - s/feild/field/
    
    MFC after:	3 days
    gmshake authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    ba121b4 View commit details
    Browse the repository at this point in the history
  199. mrsas: Fix a typo in a source code comment

    - s/feild/field/
    
    MFC after:	3 days
    gmshake authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    0b6bde4 View commit details
    Browse the repository at this point in the history
  200. Split out pmap_map_delete on arm64

    This will be used when supporting some extensions, e.g. Branch Target
    Identification (BTI).
    
    Sponsored by:	Arm Ltd
    zxombie authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    4528c30 View commit details
    Browse the repository at this point in the history
  201. libifconfig: fix incorrect carp output

    If one interface has a carp address configured on it ifconfig would show
    this information on all interfaces.
    
    That's because the kernel does (as one would expect) not return any carp
    data for interface without carp configuration. However, this wound up
    not overwriting the data passed in by the caller, and leaving the (now
    stale) information in pace. As a result the caller thought carp was
    configured on the interface.
    
    Zero out the input structure before making the call to the kernel, so
    that we correctly return 0 if there is no carp configuration on the
    queried interface.
    
    Sponsored by:	Rubicon Communications, LLC ("Netgate")
    kprovost authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    755ba6e View commit details
    Browse the repository at this point in the history
  202. netlink: enable NETLINK_SUPPORT by default on all architectures.

    Reviewed by:	emaste
    Differential Revision: https://reviews.freebsd.org/D39849
    AlexanderChernikov authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    bf07b1b View commit details
    Browse the repository at this point in the history
  203. netlink: fix netlink interface operations when netlink is loaded as a…

    … module.
    
    This change completes 089104e.
    
    MFC after:	2 weeks
    AlexanderChernikov authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    f7fe8cf View commit details
    Browse the repository at this point in the history
  204. route: show originator PID in netlink monitor

    Replacing rtsock with netlink also means providing similar tracing facilities,
    rtsock provides `route -n monitor` interface, where each message can be traced
    to the originating PID.
    This diff closes the feature gap between rtsock and netlink in that regard.
    
    Netlink works slightly differently from rtsock, as it is a generic message
    "broker". It calls some kernel KPIs and returns the result to the caller.
    Other Netlink consumers gets notified on the changed kernel state using the
    relevant subsystem callbacks. Typically, it is close to impossible to pass
    some data through these KPIs to enhance the notification.
    
    This diff approaches the problem by using osd(9) to assign the relevant
    socket pointer (`'nlp`) to the per-socket taskqueue execution thread.
    This change allows to recover the pointer in the aforementioned notification
    callbacks and extract some additional data.
    Using `osd(9)` (and adding additional metadata) to the notification receiver
    comes with some additional cost attached, so this interface needs to be
    enabled explicitly by using a newly-created `NETLINK_MSG_INFO` `SOL_NETLINK`
    socket option.
    
    The actual medatadata (which includes the originator PID) is provided via
    control messages. To enable extensibility, the control message data is
    encoded in the standard netlink(TLV-based) fashion. The list of the
    currently-provided properties can be found in `nlmsginfo_attrs`.
    snl(3) is extended to enable decoding of netlink messages with metadata
    (`snl_read_message_dbg()` stores the parsed structure in the provided buffer).
    
    Differential Revision: https://reviews.freebsd.org/D39391
    AlexanderChernikov authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    757f6c2 View commit details
    Browse the repository at this point in the history
  205. netlink: properly zero all fields in the ndmsg header.

    MFC after:	3 days
    AlexanderChernikov authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    506fa1c View commit details
    Browse the repository at this point in the history
  206. Apply clang fix for assertion building emulators/rpcs3

    Merge commit a5e1a93ea10f from llvm-project (by Mariya Podchishchaeva):
    
      [clang] Fix crash when handling nested immediate invocations
    
      Before this patch it was expected that if there was several immediate
      invocations they all belong to the same expression evaluation context.
      During parsing of non local variable initializer a new evaluation context is
      pushed, so code like this
      ```
      namespace scope {
      struct channel {
          consteval channel(const char* name) noexcept { }
      };
      consteval const char* make_channel_name(const char* name) { return name;}
    
      channel rsx_log(make_channel_name("rsx_log"));
      }
      ```
      produced a nested immediate invocation whose subexpressions are attached
      to different expression evaluation contexts. The constructor call
      belongs to TU context and `make_channel_name` call to context of
      variable initializer.
    
      This patch removes this assumption and adds tracking of previously
      failed immediate invocations, so it is possible when handling an
      immediate invocation th check that its subexpressions from possibly another
      evaluation context contains errors and not produce duplicate
      diagnostics.
    
      Fixes llvm/llvm-project#58207
    
      Reviewed By: aaron.ballman, shafik
    
      Differential Revision: https://reviews.llvm.org/D146234
    
    PR:		269489
    MFC after:	3 days
    DimitryAndric authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    fa68d30 View commit details
    Browse the repository at this point in the history
  207. busdma: Update KMSAN shadow maps later in bounce_bus_dmamap_sync()

    Otherwise POSTREAD syncs may re-invalidate the shadow of the data buffer
    when copying from bounce pages, resulting in false-positive KMSAN
    reports.
    
    MFC after:	2 weeks
    Sponsored by:	The FreeBSD Foundation
    markjdb authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    5c19b0d View commit details
    Browse the repository at this point in the history
  208. kinst: do not use DPCPU_ID_GET if we already have the trampoline

    No functional change intended.
    
    Reviewed by:	markj
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D39870
    christosmarg authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    2cc4644 View commit details
    Browse the repository at this point in the history
  209. Configuration menu
    Copy the full SHA
    e71155e View commit details
    Browse the repository at this point in the history
  210. Configuration menu
    Copy the full SHA
    985e580 View commit details
    Browse the repository at this point in the history
  211. Add the mfi(4) ioctl support to mrsas(4)

    The hardware supported by mfi(4) and mrsas(4) use the same dcmd's.
    mfiutil(8) in theory could run on controlled attached to mrsas(4).
    It can't since mrsas(4) doesn't have support for the FreeBSD mfi(4)
    ioctl.  Porting the ioctl from mfi(4) to mrsas(4) would be the first
    step in making mrsasutil(8) which is an additional name for mfiutil(8)
    but opens /dev/mrsasX instead of /dev/mfiX
    
    PR:			https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265794
    Reviewed by:		jhb
    Differential revision:	https://reviews.freebsd.org/D36342
    Tested by:		Dan Mahoney <[email protected]>
    Doug Ambrisko authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    588ff85 View commit details
    Browse the repository at this point in the history
  212. jedec_dimm(4): Add manufacturing year and week.

    DDR3 and DDR4 encode the week and year that the DIMM was manufactured,
    as a pair of two-digit binary-coded decimal values. Read the values, and
    report them as (uint8_t)s.
    
    Reviewed by:	imp, jhb
    MFC after:	1 week
    Sponsored by:	Panasas
    Differential Revision:	https://reviews.freebsd.org/D39795
    rpokala-freebsd authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    9a6eb59 View commit details
    Browse the repository at this point in the history
  213. jedec_dimm(4): Refactor offset adjustment and page0 reset

    Offsets greater than 255 bytes reside on page1 of the SPD device.
    Accessing them requires switching to page1, and adjusting the absolute
    offset to be relative to the start of page1. After the access, the page
    must be set back to page0. These operations are performed in several
    places, so break them out into their own functions.
    
    Also, replace a pair of default cases, which should be impossible due to
    earlier checks, with __assert_unreachable().
    
    Reviewed by:	imp
    MFC after:	1 week
    Sponsored by:	Panasas
    Differential Revision:	https://reviews.freebsd.org/D39842
    rpokala-freebsd authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    be64bb6 View commit details
    Browse the repository at this point in the history
  214. src.conf.5: regen after 4f6a5e1, NETLINK_SUPPORT default change

    Sponsored by:	The FreeBSD Foundation
    emaste authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    45cfa27 View commit details
    Browse the repository at this point in the history
  215. vfs: vn_dir_next_dirent(): Adapt comments to style(9)

    No functional change.
    
    Reviewed by:    kib
    MFC after:	1 week
    OlCe2 authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    a991d34 View commit details
    Browse the repository at this point in the history
  216. vfs: Rename vfs_emptydir() to vn_dir_check_empty()

    No functional change.  While here, adapt comments to style(9).
    
    Reviewed by:    kib
    MFC after:      1 week
    OlCe2 authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    67cf342 View commit details
    Browse the repository at this point in the history
  217. armv7: Fix BeagleBone Black panic on system start

    There is now assertion which requires all memory allocations of positive size.
    Negative and zero-sized allocations lead to panic, so plug them off.
    
    Reviewed by:	imp, emaste
    Differential Revision:	https://reviews.freebsd.org/D39846
    kjopek authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    95a9397 View commit details
    Browse the repository at this point in the history
  218. mrsas(4) fix build on targets that don't define PTRIN.

    Doug Ambrisko authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    3d8519a View commit details
    Browse the repository at this point in the history
  219. mrsas(4) switch from PTRIN define to include sys/abi_compat.h

    Suggested by:	dchagin
    Doug Ambrisko authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    37559fb View commit details
    Browse the repository at this point in the history
  220. cross-build: Add common compatibility headers after OS-specific ones

    The current order is rather counter-intuitive and it appears to work fine
    if we swap the order.
    
    Pull Request:	freebsd/freebsd-src#725
    Reviewed by:	imp
    arichardson authored and bsdjhb committed Jun 21, 2023
    Configuration menu
    Copy the full SHA
    633d139 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2023

  1. mrsas: Use mrsas_sge64 instead of iovec for the S/G list for passthru.

    The DMA scatter/gather list for mrsas passthrough ioctl commands is
    stored in a SGL at the end of the DCMD frame.  Given the SGL member at
    the end of the DCMD frame it seems likely this S/G list is formatted
    as a fixed-width structure such the type mrsas_sge64 and not as a
    iovec which contains a kernel pointer and length that vary with the
    native architecture size.
    bsdjhb committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    d371a11 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    70ecdd0 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2023

  1. Configuration menu
    Copy the full SHA
    0913a38 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2023

  1. Disable fatal linker warnings for more programs using netlink.

    These are all due to the empty object used with nla_p_donemsg.
    bsdjhb committed Jun 24, 2023
    Configuration menu
    Copy the full SHA
    3301b01 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2023

  1. Merged through April 28, 2023

    bsdjhb committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    e8c4b98 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fe6add9 View commit details
    Browse the repository at this point in the history
  3. Enable common PMAP macros on all platforms.

    This fixes the build on i386 and other architectures which didn't
    have a definition of PHYS_TO_DMAP_PAGE but which do have a stub
    for PHYS_TO_DMAP.
    
    Also, one can't use #if PMAP_HAS_DMAP, PMAP_HAS_DMAP is a runtime-only
    macro as it maps to a variable (not a constant) on powerpc.
    
    Use uintmax_t casts to print PAs while here to pacify the build on
    32-bit platforms as well as i386 which has 64-bit PAs.
    bsdjhb committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    b2094a7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a297ba5 View commit details
    Browse the repository at this point in the history
  5. proc_cheri_cap_page: Use PHYS_TO_DMAP_PAGE.

    This was a lost race due to PIOD_WRITE_CHERI_CAP landing before the
    introduction of PHYS_TO_DMAP_PAGE.
    bsdjhb committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    624b061 View commit details
    Browse the repository at this point in the history
  6. OFED: Fix a few places that use get_user_pages.

    The first argument needs to be a void * now rather than an integer.
    
    cheribuild doesn't notice this for amd64 since it disables OFED even
    for non-cheri platforms.
    bsdjhb committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    d703635 View commit details
    Browse the repository at this point in the history
  7. Fix DMAP capability bounds in pmap_zero_page_area.

    Always use a capability with full page bounds when zeroing a subpage region.
    qwattash authored and bsdjhb committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    6c21012 View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2023

  1. Makefile.libcompat: Handle MK_FOO varying for native and compat arches

    Currently Makefile.libcompat queries a few MK_FOO variables to determine
    what is being built. However, it is plausible (and indeed, downstream
    in CheriBSD, this is the case) that these may vary between the native
    and the compat architecture. In order to correctly determine their
    values for the compat architecture, we need to defer their evaluation
    until we are in the compat sub-make where src.opts.mk will give us the
    right value for the compat MACHINE_ARCH.
    
    Reviewed by:	brooks, jhb, imp
    Obtained from:	CheriBSD
    Differential Revision:	https://reviews.freebsd.org/D40570
    
    (cherry picked from commit 10afc5e)
    jrtc27 authored and bsdjhb committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    0ed4599 View commit details
    Browse the repository at this point in the history
  2. Generalise libcompat to be a list rather than a single option

    Whilst the kernel can support any number of COMPAT_FOO, world can only
    build a single libfoo. Upstream this isn't such an issue, since the only
    option is lib32 anyway, but downstreams, such as CheriBSD, may wish to
    support multiple at the same time. Thus, adjust the top-level Makefiles
    to turn _LIBCOMPAT into a _LIBCOMPATS list that gets iterated over, and
    adjust bsd.compat.mk to support this use-case.
    
    For the normal NEED_COMPAT/WANT_COMPAT case, LIBCOMPATFOO remain set and
    refer to the requested compat's, preserving the current interface. For
    the top-level Makefiles those variables are no longer set (since there
    is no longer "the" compat) and only the per-compat ones are available.
    
    Reviewed by:	brooks, jhb, imp
    Differential Revision:	https://reviews.freebsd.org/D40571
    
    (cherry picked from commit 91d7edd)
    jrtc27 authored and bsdjhb committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    cb783c2 View commit details
    Browse the repository at this point in the history
  3. Makefile.inc1: Sort _LIBCOMPATS

    jrtc27 authored and bsdjhb committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    3a4451b View commit details
    Browse the repository at this point in the history
  4. src.opts.mk: Stop marking LIB32 broken on CHERI architectures

    Makefile.libcompat now supports building multiple sets of compat
    libraries so this is no longer needed. It is, however, rather academic
    for now given CHERI-MIPS was removed (the only CHERI architecture whose
    base architecture has LIB32 support in FreeBSD), at least until upstream
    gains LIB32 for arm64.aarch64.
    jrtc27 authored and bsdjhb committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    a1e9a86 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2023

  1. Configuration menu
    Copy the full SHA
    2a6700f View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2023

  1. arm64: Include machine/pcb.h in freebsd64_machdep.c

    get_arm64_tls pokes at the PCB for TPIDR_EL0 so needs the relevant
    definitions. Currently we have a downstream diff to sys/systm.h that
    pulls in machine/pcb.h, but that was only needed for CHERI-MIPS and so
    should go away, which exposes this missing include.
    jrtc27 committed Jul 1, 2023
    Configuration menu
    Copy the full SHA
    aff6332 View commit details
    Browse the repository at this point in the history
  2. sys/sys/systm.h: Drop downstream-only include of machine/pcb.h

    Upstream doesn't pull it in here; this diff dates back to CHERI-MIPS,
    which stored DDC in the PCB and thus __USER_CAP needed its definition.
    However, neither Morello nor CHERI-RISC-V get it from the PCB and so do
    not need this include (nor is it a generic thing that's needed), so we
    should not have this as a downstream diff any more.
    
    This fixes building lib32 libprocstat on amd64. Currently it dies
    building zfs_defs.c, since it transitively includes machine/fpu.h via
    sys/systm.h and, because it hackily defines _KERNEL, gets kernel
    prototypes for things like fpu_save_area_free which reference struct
    savefpu, but x86/fpu.h will give the i386 definition, which is a union
    not a struct, giving a tag mismatch error. This issue once again
    highlights how awful this approach is, and how fragile the whole thing
    is when you start modifying system headers. We should probaby invest
    efforts in fixing this mess upstream given the continued friction seen
    around libprocstat/zfs downstream.
    jrtc27 committed Jul 1, 2023
    Configuration menu
    Copy the full SHA
    68cc84d View commit details
    Browse the repository at this point in the history
  3. libzfs: Fix 32-bit build

    jrtc27 committed Jul 1, 2023
    Configuration menu
    Copy the full SHA
    7181e33 View commit details
    Browse the repository at this point in the history
  4. Makefile.libcompat: Work around local bsd.compat.mk workaround

    The situation for cleandir is a bit of a mess. The top-level build runs
    cleandir normally and re-runs it per-libcompat under LIBCOMPATWMAKE.
    This includes all programs, not just libraries, and so we end up in
    nonsense situations. As a result, bsd.compat.mk is stubbed out for
    cleandir, which in turn means it won't define libcompats, yet the top
    level has defined _LIBCOMPATS, and so we end up trying to index it and
    error out. Thus, skip this code in that instance, since cleandir isn't
    referencing any of these targets. Note that, prior to multi-libcompat
    support, we'd just reference the undefined libcompat and it would expand
    to the empty string (which isn't an error in the contexts it was done,
    other than the one removed in 86ddc08), but now we have to be more
    careful.
    
    This should all be reworked upstream so cleandir doesn't do stupid
    things and these hacks can go (including reverting the .warn that
    otherwise gets hit in bsd.compat.mk back to an .error).
    
    Fixes:	cb783c2 ("Generalise libcompat to be a list rather than a single option")
    Fixes:	#1729
    jrtc27 committed Jul 1, 2023
    Configuration menu
    Copy the full SHA
    90aacc1 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2023

  1. rtld-elf: Fix whitespace regression

    Fixes:	c5c2d3d ("c18n: Insert trampolines for PLT function calls")
    jrtc27 committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    f4caadd View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2023

  1. Jenkinsfile: Enable building lib32 in CI

    These add a bit to the build time, but we want to check that we're not
    regressing the lib32 build as has happened in the past. We may wish to
    flip the default in cheribuild (or remove the option entirely) at some
    point in the future once we don't need to support versions where the
    build is broken.
    jrtc27 committed Jul 6, 2023
    Configuration menu
    Copy the full SHA
    561829f View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2023

  1. Configuration menu
    Copy the full SHA
    f60bf6b View commit details
    Browse the repository at this point in the history
  2. arm64: Don't define Morello-specific register fields for non-CHERI

    It's plausible these could mean something else in the Arm architecture
    outside of the Morello architecture fork, so we shouldn't go defining
    (and using) them unless we know we're targeting Morello.
    jrtc27 committed Jul 7, 2023
    Configuration menu
    Copy the full SHA
    926917a View commit details
    Browse the repository at this point in the history
  3. arm64: Inherit C64 in child across fork

    Because Morello awkwardly puts the encoding mode in SPSR rather than
    CELR, we need to explicitly copy it over to the child's trapframe
    otherwise we'll lose the state and end up back in A64. In practice, this
    currently doesn't matter, since the success path doesn't have any
    mode-dependent instructions and terminates in a ret, which will get the
    right mode from c30, and the error path (which does have mode-dependent
    instructions behind a direct branch to cerror) can never be reached in
    the child, only the parent. However, this is still wrong, and will
    matter in the Morello benchmark ABI, where fork will return with an
    integer ret x30 and thus stay in A64.
    jrtc27 committed Jul 7, 2023
    Configuration menu
    Copy the full SHA
    aeec55c View commit details
    Browse the repository at this point in the history
  4. cheribsdtest: Improve reason if child unexpectedly dies with a signal

    Currently we just use "Child exited abnormally" for when the child
    process doesn't exit cleanly, which is unhelpful when debugging, so
    print the signal number instead if it was due to a signal.
    
    Note that tests which deliberately provoke signals still exit cleanly,
    since the child's test harness will catch the signal, save various parts
    of the given siginfo_t and exit. This code is only for more catastrophic
    situations (e.g. signal delivery itself is broken or the child received
    a fatal signal before even setting up the handler).
    jrtc27 committed Jul 7, 2023
    Configuration menu
    Copy the full SHA
    a81c683 View commit details
    Browse the repository at this point in the history
  5. examples: Add a new /usr/share/examples/cheribsdtest/run-many

    This lets you easily run multiple cheribsdtest variants in sequence,
    filtering out the verbose logging for each test, printing just the
    summary lines at the end, as a useful tool for local testing. It is only
    intended for humans and should not be extended for use in automated
    environments; those should be using cheribuild or another similar tool
    to do things properly.
    jrtc27 committed Jul 7, 2023
    Configuration menu
    Copy the full SHA
    7fbfc70 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a776b4c View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6b7fb2e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f430a5b View commit details
    Browse the repository at this point in the history