Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Merge FreeBSD 2024-05-24 #2212

Merged
merged 355 commits into from
Sep 3, 2024
Merged
This pull request is big! We’re only showing the most recent 250 commits.

Commits on May 22, 2024

  1. LinuxKPI: 802.11: rename chanctx_conf for consistency

    We used to call the struct ieee80211_chanctx_conf variable "conf"
    in some places but that becomes confusing with bss_conf and other
    "conf" bits.  On the vif it is already called chanctx_conf thus also
    rename it on the internal struct lkpi_chanctx and for our variables
    in the implementation.
    
    This should not have any external visibility.
    No functional changes intended.
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	3 days
    Differential Revision: https://reviews.freebsd.org/D45185
    Bjoern A. Zeeb authored and Bjoern A. Zeeb committed May 22, 2024
    Configuration menu
    Copy the full SHA
    d1af434 View commit details
    Browse the repository at this point in the history
  2. autofs: Fix cross-threading on file to delete

    We want to delete the new file, which is installed in man4 not man5.
    
    Noticed by:	Gary Jennejohn
    Fixes:		a03e8a4
    Sponsored by:	Netflix
    bsdimp committed May 22, 2024
    Configuration menu
    Copy the full SHA
    0115ad6 View commit details
    Browse the repository at this point in the history
  3. Fix typo

    ioclt -> ioctl. <blush>
    
    Fixes:		08b4520
    Noticed by:	Thomas Mueller and John W. De Boskey
    Pointy hat to:	imp
    Sponsored by:	Netflix
    bsdimp committed May 22, 2024
    Configuration menu
    Copy the full SHA
    58e44aa View commit details
    Browse the repository at this point in the history
  4. mqueuefs: minor style pass

    Also remove not needed inclusion of sys/cdefs.h.
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    kostikbel committed May 22, 2024
    Configuration menu
    Copy the full SHA
    63f18b3 View commit details
    Browse the repository at this point in the history
  5. mqueuefs: uma_zfree() can be postponed until mqfs sx mi_lock is dropped

    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    kostikbel committed May 22, 2024
    Configuration menu
    Copy the full SHA
    b6f4a3f View commit details
    Browse the repository at this point in the history
  6. mqueuefs: mark newly allocated vnode as constructed, under the lock

    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    kostikbel committed May 22, 2024
    Configuration menu
    Copy the full SHA
    f0a4dd6 View commit details
    Browse the repository at this point in the history
  7. snd_hda: Add patch for Asus UX331UAL

    PR:		242802
    MFC after:	1 day
    Differential Revision:	https://reviews.freebsd.org/D45238
    lutzbichler authored and christosmarg committed May 22, 2024
    Configuration menu
    Copy the full SHA
    93ad59a View commit details
    Browse the repository at this point in the history
  8. geom: Remove sysctl.h

    These files don't need sysctl.h, so remove it.
    
    Sponsored by:		Netflix
    bsdimp committed May 22, 2024
    Configuration menu
    Copy the full SHA
    1e84b85 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2024

  1. sound: Separate implementations for SNDCTL_AUDIOINFO[_EX] and SNDCTL_…

    …ENGINEINFO
    
    FreeBSD's implementation of SNDCTL_AUDIOINFO[_EX] and SNDCTL_ENGINEINFO
    does not exactly work as intended. The problem is essentially that both
    IOCTLs return the same information, while in fact the information
    returned currently by dsp_oss_audioinfo() is what _only_
    SNDCTL_ENGINEINFO is meant to return.
    
    This behavior is also noted in the OSS manual [1] (see bold paragraph in
    "Audio engines and device files" section), but since e8c0d15
    ("sound: Get rid of snd_clone and use DEVFS_CDEVPRIV(9)") we can
    actually fix this, because we now expose only a single device for each
    soundcard, and create the engines (channels) internally.
    SNDCTL_ENGINEINFO will now report info about all channels in a given
    device, and SNDCTL_AUDIOINFO[_EX] will only report information about
    /dev/dspX.
    
    To make this work, we also have to modify the SNDCTL_SYSINFO IOCTL to
    report the number of audio devices and audio engines correctly.
    
    While here, modernize the minimum and maximum channel counting in both
    SNDCTL_AUDIOINFO[_EX] and SNDCTL_ENGINEINFO. Currently these IOCTLs will
    report only up to 2 channels, which is no longer the case.
    
    [1] http://manuals.opensound.com/developer/SNDCTL_AUDIOINFO.html
    
    PR:		246231, 252761
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 day
    Reviewed by:	dev_submerge.ch
    Differential Revision:	https://reviews.freebsd.org/D45164
    christosmarg committed May 23, 2024
    Configuration menu
    Copy the full SHA
    e07f917 View commit details
    Browse the repository at this point in the history
  2. sound: Handle unavailable devices in various OSS IOCTLs

    mixer(8)'s -a option is used to print information about all mixer
    devices in the system. To do this, it loops from 0 to
    mixer_get_nmixers(), and tries to open "/dev/mixer%d". However, this
    approach doesn't work when there are disabled/unregistered mixers in the
    system, or when an audio device simply doesn't have a mixer.
    
    mixer_get_nmixers() calls SNDCTL_SYSINFO and returns
    oss_sysinfo->nummixers, whose value is the number of currently _enabled_
    mixers only. Taking the bug report mentioned below (277615) as an
    example, suppose a system with 8 mixer devices total, but 3 of them are
    either disabled or non-existent, which means they will not show up under
    /dev, meaning we have 5 enabled mixer devices, which is also what the
    value of oss_sysinfo->nummixers will be. What mixer(8) will do is loop
    from 0 to 5 (instead of 8), and start calling mixer_open() on
    /dev/mixer0, up to /dev/mixer4, and as is expected, the first call will
    fail right away, hence the error shown in the bug report.
    
    To fix this, modify oss_sysinfo->nummixers to hold the value of the
    maximum unit in the system, which, although not necessarily "correct",
    is more intuitive for applications that will want to use this value to
    loop through all mixer devices.
    
    Additionally, notify applications that a device is
    unavailable/unregistered instead of skipping it. The current
    implementations of SNDCTL_AUDIOINFO, SNDCTL_MIXERINFO and
    SNDCTL_CARDINFO break applications that expect to get information about
    a device that is skipped. Related discussion can be found here:
    https://reviews.freebsd.org/D45135#1029526
    
    It has to be noted, that other applications, apart from mixer(8), suffer
    from this.
    
    PR:		277615
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 day
    Reviewed by:	dev_submerge.ch
    Differential Revision:	https://reviews.freebsd.org/D45256
    christosmarg committed May 23, 2024
    Configuration menu
    Copy the full SHA
    5d980fa View commit details
    Browse the repository at this point in the history
  3. mixer(8): Ignore mixer_open() failures for the -a option

    The most likely reason mixer_open() will fail is because either the
    device doesn't exist, or because it is disabled, so there is not reason
    to kill the application. Instead, continue and print the rest of the
    enabled mixers.
    
    PR:		277615
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 day
    Reviewed by:	dev_submerge.ch
    Differential Revision:	https://reviews.freebsd.org/D45151
    christosmarg committed May 23, 2024
    Configuration menu
    Copy the full SHA
    0e80798 View commit details
    Browse the repository at this point in the history
  4. mixer(3): Implement mixer_get_path() function

    This is better than hardcoding device paths in mixer applications.
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 day
    Reviewed by:	dev_submerge.ch
    Differential Revision:	https://reviews.freebsd.org/D45275
    christosmarg committed May 23, 2024
    Configuration menu
    Copy the full SHA
    67c89b2 View commit details
    Browse the repository at this point in the history
  5. mixer(8): Use mixer_get_path()

    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 day
    Reviewed by:	dev_submerge.ch
    Differential Revision:	https://reviews.freebsd.org/D45276
    christosmarg committed May 23, 2024
    Configuration menu
    Copy the full SHA
    e3b94b3 View commit details
    Browse the repository at this point in the history
  6. mixer.3: Fix mandoc -Tlint warnings

    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 day
    Reviewed by:	emaste
    Differential Revision:	https://reviews.freebsd.org/D45290
    christosmarg committed May 23, 2024
    Configuration menu
    Copy the full SHA
    1ab62c8 View commit details
    Browse the repository at this point in the history
  7. sound: Fix minchn, maxchn and fmts in sndstat_get_caps()

    The current implementation (incorrectly) passes the channel encoding
    value to AFMT_CHANNEL(), which will always return 0, since the channel
    number bits are masked out by AFMT_ENCODING().
    
    Also add missing fmts initialization and aggregate encoding formats into
    it directly.
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 day
    Reviewed by:	dev_submerge.ch
    Differential Revision:	https://reviews.freebsd.org/D45312
    christosmarg committed May 23, 2024
    Configuration menu
    Copy the full SHA
    425a7bc View commit details
    Browse the repository at this point in the history
  8. arm64: set ATTR_CONTIGUOUS on the DMAP's L2 blocks

    On systems configured with 16KB pages, this change creates 1GB page
    mappings in the direct map where possible.  Previously, the largest page
    size that was used to implement the direct map was 32MB.  Similarly, on
    systems configured with 4KB pages, this change creates 32MB page
    mappings, instead of 2MB, in the direct map where 1GB is too large.
    
    Implement demotion on L2C (32MB/1GB) page mappings within the DMAP.
    
    Update sysctl vm.pmap.kernel_maps to report on L2C page mappings.
    
    Reviewed by:	markj
    Tested by:	gallatin, Eliot Solomon <[email protected]>
    Differential Revision:	https://reviews.freebsd.org/D45224
    alcriceedu committed May 23, 2024
    Configuration menu
    Copy the full SHA
    9fc5e3f View commit details
    Browse the repository at this point in the history
  9. freebsd-update: Correctly check if pkg(8) is present

    On systems without pkg(8) installed, `command -v pkg` will return
    success and falsely report that pkg(8) is present. Fix that by checking
    via the `pkg -N` form.
    
    This is missing from the final revision of D39695.
    
    Reported by:	delphij
    Reviewed by:	fernape, delphij
    Fixes:		bc0c6c9 freebsd-update: Add check for kernel modules
    Differential Revision:	https://reviews.freebsd.org/D45292
    gmshake committed May 23, 2024
    Configuration menu
    Copy the full SHA
    d76ef58 View commit details
    Browse the repository at this point in the history
  10. Stop treating size 0 as unknown size in vnode_create_vobject().

    Whenever file is created, the vnode_create_vobject() function will
    try to determine its size by calling vn_getsize_locked() as size 0
    is ambigious: it means either the file size is 0 or the file size
    is unknown.
    
    Introduce special value for the size argument: VNODE_NO_SIZE.
    Only when it is given, the vnode_create_vobject() will try to obtain
    file's size on its own.
    
    Introduce dedicated vnode_disk_create_vobject() for use by
    g_vfs_open(), so we don't have to call vn_isdisk() in the common case
    (for regular files).
    
    Handle the case of mediasize==0 in g_vfs_open().
    
    Reviewed by: alc, kib, markj, olce
    Approved by: oshogbo (mentor), allanjude (mentor)
    Differential Revision: https://reviews.freebsd.org/D45244
    Pawel Jakub Dawidek authored and Pawel Jakub Dawidek committed May 23, 2024
    Configuration menu
    Copy the full SHA
    56a8aca View commit details
    Browse the repository at this point in the history
  11. MAC/do: allow to call setuid if real user id is 0

    This fixed sshd not able to call restore_uid when MAC/do policy is
    loaded
    bapt committed May 23, 2024
    Configuration menu
    Copy the full SHA
    61b07f8 View commit details
    Browse the repository at this point in the history
  12. pcm: centralize 32-bit ioctl compat

    Move all handlng of struct sndstioc_nv_arg(32) to sndstat_ioctl() and
    make the functions that actually do the work take a buffer and size or
    size pointer.  The 32-bit compat work is minimal so just inline it.
    
    Remove checks that we've got a 32-bit process for 32-bit ioctls.  We
    don't check that default ioctls are from 64-bit processes on 64-bit
    systems.
    
    Reviewed by:	christos
    Differential Revision:	https://reviews.freebsd.org/D45307
    brooksdavis committed May 23, 2024
    Configuration menu
    Copy the full SHA
    fb9013f View commit details
    Browse the repository at this point in the history
  13. Fix scn_queue races on very old pools

    Code for pools before version 11 uses dmu_objset_find_dp() to scan
    for children datasets/clones.  It calls enqueue_clones_cb() and
    enqueue_cb() callbacks in parallel from multiple taskq threads.
    It ends up bad for scan_ds_queue_insert(), corrupting scn_queue
    AVL-tree.  Fix it by introducing a mutex to protect those two
    scan_ds_queue_insert() calls.  All other calls are done from the
    sync thread and so serialized.
    
    Reviewed-by:	Brian Behlendorf <[email protected]>
    Reviewed-by:	Brian Atkinson <[email protected]>
    Signed-off-by:	Alexander Motin <[email protected]>
    Sponsored by:	iXsystems, Inc.
    Closes	#16162
    PR:	278414
    amotin committed May 23, 2024
    Configuration menu
    Copy the full SHA
    49086aa View commit details
    Browse the repository at this point in the history
  14. libpmc: remove tautological assert

    gcc13 whines about this assert than an unsigned integer is >= 0.
    
    Reviewed by:	luporl
    Fixes:		b48a277 powerpc64: add Power8 and Power9 PMCs
    Differential Revision:	https://reviews.freebsd.org/D45232
    brooksdavis committed May 23, 2024
    Configuration menu
    Copy the full SHA
    6729e8a View commit details
    Browse the repository at this point in the history
  15. libcompiler_rt: gcc13 doesn't support _Float16 on arm

    Don't set CRT_COMMON_F16_ARCH for arm as it's not supported by gcc13.
    
    Differential Revision:	https://reviews.freebsd.org/D45234
    brooksdavis committed May 23, 2024
    Configuration menu
    Copy the full SHA
    fcc5fa0 View commit details
    Browse the repository at this point in the history
  16. Fix "version introduced" in two manual pages

    Signed-off-by: Tom Hukins <[email protected]>
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1252
    tomhukins authored and bsdimp committed May 23, 2024
    Configuration menu
    Copy the full SHA
    2ce32ab View commit details
    Browse the repository at this point in the history
  17. etherswitch.4: Remove non-existent manual pages

    Signed-off-by: Tom Hukins <[email protected]>
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1253
    tomhukins authored and bsdimp committed May 23, 2024
    Configuration menu
    Copy the full SHA
    2c9f851 View commit details
    Browse the repository at this point in the history
  18. etherswitch.4: List manual pages alphabetically

    Signed-off-by: Tom Hukins <[email protected]>
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1253
    tomhukins authored and bsdimp committed May 23, 2024
    Configuration menu
    Copy the full SHA
    083d149 View commit details
    Browse the repository at this point in the history
  19. option_survey.sh: Bump size to 5GB

    Increase image size from 4G to 5G to accommodate growth in OS.
    
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1251
    michaeldexter authored and bsdimp committed May 23, 2024
    Configuration menu
    Copy the full SHA
    be3631b View commit details
    Browse the repository at this point in the history
  20. ci: Redirect output for builds.

    This target is far too noisy to be at all useful. Save the output ala
    make universe in _. files. Also report where to find errors.
    
    Sponsored by:		Netflix
    bsdimp committed May 23, 2024
    Configuration menu
    Copy the full SHA
    a5f0341 View commit details
    Browse the repository at this point in the history
  21. cp: avoid a resource leak

    In copy_file(), make sure the from_fd file descriptor is closed even
    when the operation failed early.
    
    Reported by:	Coverity Scan
    CID:		1545036
    Sponsored by:	The FreeBSD Foundation
    
    Reviewed by: imp, emaste
    Pull Request: freebsd/freebsd-src#1238
    khorben authored and bsdimp committed May 23, 2024
    Configuration menu
    Copy the full SHA
    3d7c8f0 View commit details
    Browse the repository at this point in the history
  22. ctl: use socket buffer mutexes in struct socket directly

    A mechanical change performed with sed(1) script:
    
    s/SOCKBUF_LOCK\(&so->so_rcv\)/SOCK_RECVBUF_LOCK(so)/
    s/SOCKBUF_UNLOCK\(&so->so_rcv\)/SOCK_RECVBUF_UNLOCK(so)/
    s/SOCKBUF_MTX\(&so->so_rcv\)/SOCK_RECVBUF_MTX(so)/
    s/SOCKBUF_LOCK\(&so->so_snd\)/SOCK_SENDBUF_LOCK(so)/
    s/SOCKBUF_UNLOCK\(&so->so_snd\)/SOCK_SENDBUF_UNLOCK(so)/
    s/SOCKBUF_MTX\(&so->so_snd\)/SOCK_SENDBUF_MTX(so)/
    
    Reviewed by:		mav
    Differential Revision:	https://reviews.freebsd.org/D45190
    glebius committed May 23, 2024
    Configuration menu
    Copy the full SHA
    0d37895 View commit details
    Browse the repository at this point in the history
  23. mqueue: Add sysctl for default_maxmsg & default_msgsize and fix descr…

    …iptions
    
    Reviewed by: imp, kib
    Pull Request: freebsd/freebsd-src#1248
    ricardobranco777 authored and bsdimp committed May 23, 2024
    Configuration menu
    Copy the full SHA
    acb7a4d View commit details
    Browse the repository at this point in the history
  24. linprocfs: Add support for proc/sys/fs/mqueue/*

    Reviewed by: imp, kib
    Pull Request: freebsd/freebsd-src#1248
    ricardobranco777 authored and bsdimp committed May 23, 2024
    Configuration menu
    Copy the full SHA
    04d3f8e View commit details
    Browse the repository at this point in the history
  25. mqueuefs: Relax restriction that path must begin with a slash

    This is needed to support Linux implementation which discards the leading slash when calling mq_open(2)
    
    Reviewed by: imp, kib
    Pull Request: freebsd/freebsd-src#1248
    ricardobranco777 authored and bsdimp committed May 23, 2024
    Configuration menu
    Copy the full SHA
    ddbfb54 View commit details
    Browse the repository at this point in the history
  26. linux: Fix linux_mq_notify_args & linux_timer_create_args

    Reviewed by: imp, kib
    Pull Request: freebsd/freebsd-src#1248
    ricardobranco777 authored and bsdimp committed May 23, 2024
    Configuration menu
    Copy the full SHA
    427db2c View commit details
    Browse the repository at this point in the history
  27. linux: Export linux_common_openflags()

    Reviewed by: imp, kib
    Pull Request: freebsd/freebsd-src#1248
    ricardobranco777 authored and bsdimp committed May 23, 2024
    Configuration menu
    Copy the full SHA
    9c7b1bf View commit details
    Browse the repository at this point in the history
  28. linux: Export linux_convert_l_sigevent

    Reviewed by: imp, kib
    Pull Request: freebsd/freebsd-src#1248
    ricardobranco777 authored and bsdimp committed May 23, 2024
    Configuration menu
    Copy the full SHA
    86e43b5 View commit details
    Browse the repository at this point in the history
  29. mqueue: Export some functions to be used by Linuxulator

    Reviewed by: imp, kib
    Pull Request: freebsd/freebsd-src#1248
    ricardobranco777 authored and bsdimp committed May 23, 2024
    Configuration menu
    Copy the full SHA
    289b2d6 View commit details
    Browse the repository at this point in the history
  30. mqueue: Introduce kern_kmq_timedreceive & kern_kmq_timedsend

    Reviewed by: imp, kib
    Pull Request: freebsd/freebsd-src#1248
    ricardobranco777 authored and bsdimp committed May 23, 2024
    Configuration menu
    Copy the full SHA
    e30621d View commit details
    Browse the repository at this point in the history
  31. linux: Support POSIX message queues

    Reviewed by: imp, kib
    Pull Request: freebsd/freebsd-src#1248
    ricardobranco777 authored and bsdimp committed May 23, 2024
    Configuration menu
    Copy the full SHA
    97add68 View commit details
    Browse the repository at this point in the history
  32. linux: Update linux manpage to mention mqueuefs

    Reviewed by: imp, kib
    Pull Request: freebsd/freebsd-src#1248
    ricardobranco777 authored and bsdimp committed May 23, 2024
    Configuration menu
    Copy the full SHA
    9a9677e View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    bedbaee View commit details
    Browse the repository at this point in the history
  34. arp(8): allow -i with -s

    arp(8) usually disallows adding a static ARP entry for an IP address
    which is not configured on a local interface.
    
    Change this to allow such ARP entries to be added if '-i' is provided to
    specify the interface the ARP entry relates to.
    
    Due to limitations in the kernel lltable, this still requires that a
    host route exists for the target address, but allows static ARP entries
    to be configured to proxy ARP for, e.g., local jails which use an IPv4
    address with a /32 route.
    
    Reviewed by: imp, zlei
    Pull Request: freebsd/freebsd-src#1220
    llfw authored and bsdimp committed May 23, 2024
    Configuration menu
    Copy the full SHA
    2356b60 View commit details
    Browse the repository at this point in the history
  35. Import bmake-20240520

    Intersting/relevant changes since bmake-20240508
    
    ChangeLog since bmake-20240508
    
    2024-05-20  Simon J Gerraty  <[email protected]>
    
    	* VERSION (_MAKE_VERSION):
    	Merge with NetBSD make, pick up
    	o dir.c: in FindFile restore last search of .CURDIR even for
    	includes, as a number of existing makefiles are broken otherwise.
    
    2024-05-19  Simon J Gerraty  <[email protected]>
    
    	* VERSION (_MAKE_VERSION): 20240519
    	Merge with NetBSD make, pick up
    	o dir.c: Add Dir_FindInclude, FindFile without looking in .CURDIR.
    	Also fix Dir_SetSYSPATH to use defSysIncPath if sysIncPath is empty.
    	o main.c: no need to set .DOTLAST in sysIncPath
    sgerraty committed May 23, 2024
    Configuration menu
    Copy the full SHA
    29efb3d View commit details
    Browse the repository at this point in the history
  36. Merge bmake-20240520

    Merge commit '29efb3dcaedd9cbabc6f96f35545baf2c8b28501'
    sgerraty committed May 23, 2024
    Configuration menu
    Copy the full SHA
    9d3df31 View commit details
    Browse the repository at this point in the history
  37. tcp: improve inp locking in setsockopt

    Ensure that the inp is not dropped when starting a stack switch.
    While there, clean-up the code by using INP_WLOCK_RECHECK, which
    also re-assigns tp.
    
    Reviewed by:		glebius
    MFC after:		3 days
    Sponsored by:		Netflix, Inc.
    Differential Revision:	https://reviews.freebsd.org/D45241
    tuexen committed May 23, 2024
    Configuration menu
    Copy the full SHA
    fe136ae View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    c6bcacc View commit details
    Browse the repository at this point in the history
  39. Remove COMPAT_FREEBSD4/5/6/7/9 from MINIMAL and FIRECRACKER kernel co…

    …nfigurations
    
    FIRECRACKER is not a legacy config, so remove the really old FreeBSD
    versions from it. MINIMAL has a similar history, and limited target
    audience which has little to no overlap with really old binaries. Either
    of these is really easy to get additional binary compat with the include
    directive, so balance things better. Leave GENERIC alone.
    
    PR: 231768
    Signed-off-by: Henrich Hartzer <[email protected]>
    Reviewed by: imp (MINIMAL), cperciva (FIRECRACKER)
    Pull Request: freebsd/freebsd-src#1228
    hhartzer authored and bsdimp committed May 23, 2024
    Configuration menu
    Copy the full SHA
    87bf0aa View commit details
    Browse the repository at this point in the history
  40. netinet/icmp6: add PREF64 definitions (RFC 8781)

    Reviewed by: imp, glebius (prior suggetions done)
    Pull Request: freebsd/freebsd-src#1206
    llfw authored and bsdimp committed May 23, 2024
    Configuration menu
    Copy the full SHA
    1e8eb41 View commit details
    Browse the repository at this point in the history
  41. rtadvd(8): support PREF64 (RFC 8781)

    PREF64 allows a router to advertise the network's NAT64 prefix, allowing
    clients to auto-configure CLAT.  This makes it possible to deploy
    IPv6-only or IPv6-mostly client access networks without the need for
    DNS64.
    
    Reviewed by: imp, glebius (prior suggetions done)
    Pull Request: freebsd/freebsd-src#1206
    llfw authored and bsdimp committed May 23, 2024
    Configuration menu
    Copy the full SHA
    77f06c4 View commit details
    Browse the repository at this point in the history
  42. sys/netinet/icmp6.h: use C99 uintX_t constants for new PREF64 struct

    Reviewed by: imp, glebius (prior suggetions done)
    Pull Request: freebsd/freebsd-src#1206
    llfw authored and bsdimp committed May 23, 2024
    Configuration menu
    Copy the full SHA
    4b75afe View commit details
    Browse the repository at this point in the history
  43. sys/netinet/icmp6.h: Fix build

    Fix stdint.h file not found.
    
    Fixes: 		4b75afe
    cschuber committed May 23, 2024
    Configuration menu
    Copy the full SHA
    380ee9b View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    674956e View commit details
    Browse the repository at this point in the history
  45. fwget: update wireless IDs for rtw88/89, ath1xk, mt76 and add iwlwifi

    Update and add (new) PCI IDs for Realtek rtw88/89, Mediatek 7996/7925,
    QCA ath1xk, and add Intel iwlwifi IDs.
    
    Rather than using a package per driver add fine(r) grained flavors
    even though it is a lot more likely to break in certain cases.
    
    For Intel we need a great level of detail to match PCI IDs so also pass
    the full pciconf -l line to into the pci_* files as "$2" to have access
    to these.
    
    This lines up with ports commit 80f50c9eb66d.
    
    Sponsored by:	The FreeBSD Foundation
    Reviewed by:	manu (earlier version)
    MFC after:	3 days
    Differential Revision: https://reviews.freebsd.org/D44918
    Bjoern A. Zeeb authored and Bjoern A. Zeeb committed May 23, 2024
    Configuration menu
    Copy the full SHA
    d33f5a0 View commit details
    Browse the repository at this point in the history
  46. LinuxKPI: 802.11: lock MO tx/wake_tx_queue() downcalls

    Lock the two TX MO downcalls into driver/firmware in
    lkpi_80211_txq_tx_one() to make sure they cannot happen in the
    middle of other (net80211 triggered) updates calling down into
    the driver/firmware.
    
    Sponsored by:	The FreeBSD Foundation (commit)
    MFC after:	3 days
    Reviewed by:	cc
    Differential Revision: https://reviews.freebsd.org/D43966
    Bjoern A. Zeeb authored and Bjoern A. Zeeb committed May 23, 2024
    Configuration menu
    Copy the full SHA
    45bce6f View commit details
    Browse the repository at this point in the history

Commits on May 24, 2024

  1. Modernize DVD package set in preparation for 14.1

    Remove archivers/unzip (now in base) and emulators/linux_base-c7 (old
    and unlikely to be useful without other linux packages being installed),
    ports-mgmt/portmaster (now largely obsolete and discouraged in favour
    of using pkg and binary packages) and x11-drivers/xf86-video-vmware
    (questionably useful).
    
    Replace devel/git with devel/git@lite (sufficient for most purposes),
    and adjust the "ensure the ports exist to sanitize the list" code to
    ignore the @lite part when checking that /usr/ports/devel/git exists.
    
    Add sysutils/seatd and x11-wm/sway for wayland support.
    
    MFC after:	1 minute
    Differential Revision:	https://reviews.freebsd.org/D45278
    cperciva committed May 24, 2024
    Configuration menu
    Copy the full SHA
    d31ed58 View commit details
    Browse the repository at this point in the history
  2. Add rtw88 firmware to DVD package set

    Add net/wifi-firmware-rtw88-kmod since it is no longer included in
    the base system on 15.x.  (It is present in 14.x, so this change will
    not be MFCed.)
    cperciva committed May 24, 2024
    Configuration menu
    Copy the full SHA
    f81c090 View commit details
    Browse the repository at this point in the history
  3. cross: Move Solaris API64 defines to common

    off64_t is needed for both Linux (musl) and MacOS, so move them to the
    common area. Somehow glibc provides the definition, but defining it
    doesn't hurt and hels in the musl case.
    
    Reviewed by: allanjude, jrtc27
    Pull Request: freebsd/freebsd-src#1066
    valpackett authored and bsdimp committed May 24, 2024
    Configuration menu
    Copy the full SHA
    59aa649 View commit details
    Browse the repository at this point in the history
  4. tcp: improve blackhole support

    There are two improvements to the TCP blackhole support:
    (1) If net.inet.tcp.blackhole is set to 2, also sent no RST whenever
        a segment is received on an existing closed socket or if there is
        a port mismatch when using UDP encapsulation.
    (2) If net.inet.tcp.blackhole is set to 3, no RST segment is sent in
        response to incoming segments on closed sockets or in response to
        unexpected segments on listening sockets.
    Thanks to gallatin@ for suggesting such an improvement.
    
    Reviewed by:		gallatin
    MFC after:		1 week
    Sponsored by:		Netflix, Inc.
    Differential Revision:	https://reviews.freebsd.org/D45304
    tuexen committed May 24, 2024
    Configuration menu
    Copy the full SHA
    02d1521 View commit details
    Browse the repository at this point in the history
  5. arm64, riscv: removed unused struct pv_addr

    No functional change.
    
    Reviewed by:	markj
    MFC after:	3 days
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D45322
    mhorne committed May 24, 2024
    Configuration menu
    Copy the full SHA
    b5e1784 View commit details
    Browse the repository at this point in the history
  6. arm64, riscv: remove unused declaration

    It is inherited from arm, where the global exists and is used. No
    functional change.
    
    Reviewed by:	markj
    MFC after:	3 days
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D45323
    mhorne committed May 24, 2024
    Configuration menu
    Copy the full SHA
    1d3c236 View commit details
    Browse the repository at this point in the history
  7. geom: Add counts for enomem and pausing

    Add counts for the number of requests that complete with the ENOMEM as
    kern.geom.nomem_count and the number of times we pause the g_down thread
    to let the system recover as kern.geom.pause_count.
    
    Sponsored by:		Netflix
    Reviewed by:		kib
    Differential Revision:	https://reviews.freebsd.org/D45309
    bsdimp committed May 24, 2024
    Configuration menu
    Copy the full SHA
    32f40fc View commit details
    Browse the repository at this point in the history
  8. geom_io: Shift to pause_sbt to eliminate bogus min and update comment.

    Update to eliminate bogus min to ensure 0 was never passed to
    pause. Instead, requrest 1ms with an 'infinite' precision, which
    defaults to whatever the underlying time counter can do. This should
    ensure we run fairly quickly to start processing done events, while
    still giving a small pause for the system to catch its breath. This rate
    limiter still is less than ideal, and this commit doesn't change
    that. It should really have no functional change: it just uses a better
    interface to express the desired sleep.
    
    Sponsored by:		Netflix
    Reviewed by:		kib
    Differential Revision:	https://reviews.freebsd.org/D45316
    bsdimp committed May 24, 2024
    Configuration menu
    Copy the full SHA
    6d83b38 View commit details
    Browse the repository at this point in the history
  9. cam: Drop periph lock when completing I/O with ENOMEM status

    When biofinish calls g_io_deliver with an error of ENOMEM, that kicks
    off the slowdown protocol, forcing I/O to go through g_down rather than
    be directly dispatch. One of the side effects is that the I/O is
    resubmitted, so the start routines get called recursively, leading to a
    recursive lock panic. Rather than make the periph lock recursive, drop
    and reacquire the lock around such calls to biofinish.
    
    For nda, this happens only when we can't allocate space to construct a
    TRIM. For ada and da, this is only for certain ZONE operations.
    
    Sponsored by:		Netflix
    Reviewed by:		gallatin
    Differential Revision:	https://reviews.freebsd.org/D45310
    bsdimp committed May 24, 2024
    Configuration menu
    Copy the full SHA
    99c14fb View commit details
    Browse the repository at this point in the history
  10. nvme: Count number of alginment splits

    When possible, we split up I/Os to NVMe drives that advertise a
    preferred alignment. Add a counter for this.
    
    Sponsored by:		Netflix
    Reviewed by:		chuck, mav
    Differential Revision:	https://reviews.freebsd.org/D45311
    bsdimp committed May 24, 2024
    Configuration menu
    Copy the full SHA
    d09ee08 View commit details
    Browse the repository at this point in the history
  11. vm_pageout_scan_inactive: take a lock break

    In vm_pageout_scan_inactive, release the object lock when we go to
    refill the scan batch queue so that someone else has a chance to acquire
    it.  This improves access latency to the object when the pagedaemon is
    processing many consecutive pages from a single object, and also in any
    case avoids a hiccup during refill for the last touched object.
    
    Reviewed by:	alc, markj (previous version)
    Sponsored by:	Dell EMC Isilon
    Differential Revision:	https://reviews.freebsd.org/D45288
    rlibby committed May 24, 2024
    Configuration menu
    Copy the full SHA
    a216e31 View commit details
    Browse the repository at this point in the history
  12. Merge llvm-project release/18.x llvmorg-18.1.6-0-g1118c2e05e67

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18.1.6-0-g1118c2e05e67.
    
    PR:		276104
    MFC after:	3 days
    DimitryAndric committed May 24, 2024
    Configuration menu
    Copy the full SHA
    3a07933 View commit details
    Browse the repository at this point in the history
  13. libc: move NIS xdr_* symbols from rpc's to yp's Symbol.map

    To fix WITHOUT_NIS build.  Building yp_xdr.c is gated by MK_NIS.
    
    PR:		279270
    Reported by:	peterj
    Reported by:	matteo
    Reported by:	Michael Dexter's Build Option Survey run
    Reviewed by:	brooks
    Sponsored by:	The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D45347
    emaste committed May 24, 2024
    Configuration menu
    Copy the full SHA
    61639bb View commit details
    Browse the repository at this point in the history
  14. vt(4): add note about sc/UEFI incompatibility

    syscons is not compatible with UEFI boot.  This is noted in syscons(4),
    but not mentioned in vt(4) where the kern.vty tunable (used to select vt
    or sc) is documented.  Add a note so that if someone reads vt(4) but not
    sc(4) they are not surprised by having no usable console.
    
    PR:		276206
    Reviewed by:	brooks
    Sponsored by:	The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D45357
    emaste committed May 24, 2024
    Configuration menu
    Copy the full SHA
    f52481f View commit details
    Browse the repository at this point in the history

Commits on May 25, 2024

  1. dhclient: remove unused primary_address

    Its last use was removed in 396c7521364.
    
    Reviewed by:		imp
    Pull Request:		freebsd/freebsd-src#1257
    Differential Revsiion:	https://reviews.freebsd.org/D42717
    fichtner authored and bsdimp committed May 25, 2024
    Configuration menu
    Copy the full SHA
    0cc8506 View commit details
    Browse the repository at this point in the history
  2. ipfw: don't build the module if INET not in kernel

    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1255
    llfw authored and bsdimp committed May 25, 2024
    Configuration menu
    Copy the full SHA
    0e2ce86 View commit details
    Browse the repository at this point in the history
  3. sys/amd64/conf/LINT-NOINET{6,}: don't set WITHOUT_INET{6,}_SUPPORT

    Previously, it was necessary to set WITHOUT_INET_SUPPORT when building
    the kernel without INET, and WITHOUT_INET6_SUPPORT when building the
    kernel without INET6, or else the modules build would fail.  The
    LINT-NOINET and LINT-NOINET6 configs did this using makeoptions.
    
    After recent changes, this is no longer required, so remove these
    makeoptions.  This avoids masking potential future build issues when
    these aren't set.
    
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1255
    llfw authored and bsdimp committed May 25, 2024
    Configuration menu
    Copy the full SHA
    bfd248f View commit details
    Browse the repository at this point in the history
  4. netlink: Fix C++ compile errors

    Allow these files to be included in C++ programs with careful casting to
    the proper type, like C++ wants (and in a way that also works for C).
    
    MFC After: 1 week
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1245
    cnbatch authored and bsdimp committed May 25, 2024
    Configuration menu
    Copy the full SHA
    ff92493 View commit details
    Browse the repository at this point in the history
  5. x86/iommu: extract useful utilities into x86_iommu.c

    related to the page tables page allocation and mapping.
    
    Sponsored by:	The FreeBSD Foundation
    Sponsored by:	Advanced Micro Devices (AMD)
    MFC after:	1 week
    kostikbel committed May 25, 2024
    Configuration menu
    Copy the full SHA
    40d951b View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2024

  1. devctl: Disable the boottime optimization of suppressing NOMATCH

    The usb bus code (uhub) doens't present the same information to devctl
    as it does to the NOMATCH events it generats. As such, devmatch fails to
    find USB devices on boot when NOMATCH events are optimized out. Since
    the savings of boot time is relatively trivial for all but the most
    demanding boot environments, disable it by default until this issue is
    fixed.
    
    Fixes: 6437872
    MFC After: 1 minute
    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    498891c View commit details
    Browse the repository at this point in the history
  2. Remove TCP_SAD optional code now that the sack filter performs this f…

    …unction.
    
    With the commit of D44903 we no longer need the SAD option. Instead all stacks that
    use the sack filter inherit its protection against sack-attack.
    
    Reviewed by: tuexen@
     Differential Revision:https://reviews.freebsd.org/D45216
    Randall Stewart authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    cdaf81c View commit details
    Browse the repository at this point in the history
  3. rc.conf.5: remove obsolete advice about kld_list

    Loading modules via kld_list is no longer substantially faster than via
    loader.conf.
    
    [skip ci]
    
    MFC after:	2 weeks
    Reviewed by:	imp
    Differential Revision: https://reviews.freebsd.org/D45242
    asomers authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    72ef093 View commit details
    Browse the repository at this point in the history
  4. nfs client comment typo fix

    Sponsored by:	The FreeBSD Foundation
    MFC after:	3 days
    kostikbel authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    3637413 View commit details
    Browse the repository at this point in the history
  5. geli: allocate a UMA pool earlier

    The functions g_eli_init_uma and g_eli_fini_uma are used to trace
    the number of devices in GELI. There is an issue where the g_eli_create
    function may fail before g_eli_init_uma is called, however
    g_eli_fini_uma is still executed in the fail path. This can
    incorrectly decrease the device count to zero, potentially leading to
    the UMA pool being freed. Accessing the device after the pool has been
    freed causes a system panic.
    
    This commit resolves the issue by ensuring devices count is increassed
    eariler.
    
    PR:		278828
    Reported by:	Andre Albsmeier <[email protected]>
    Reviewed by:	asomers
    MFC after:	3 days
    Differential Revision:	https://reviews.freebsd.org/D45225
    oshogbo authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    83cfc1c View commit details
    Browse the repository at this point in the history
  6. geli: fix indentation

    no functional changes
    oshogbo authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    a4cdbf6 View commit details
    Browse the repository at this point in the history
  7. vfs_getopt(9): fix typo

    [skip ci]
    
    Reported by:	Claudiu <[email protected]>
    MFC after:	2 weeks
    asomers authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    a38d583 View commit details
    Browse the repository at this point in the history
  8. arm64 pmap: eliminate a redundant variable

    Moreover, if we attempt an L2 promotion on the kernel pmap from
    pmap_enter_quick_locked(), this change eliminates the recomputation of
    the L2 entry's address.
    
    MFC after:	1 week
    alcriceedu authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    e587345 View commit details
    Browse the repository at this point in the history
  9. acpidump IVRS table format: change 'IOMMUId' into 'IOMMU DeviceId'

    and apply the consistent format for device ids used in other IVRS
    elements.  The field seems to be the PCI Device ID of the IOMMU itself,
    instead of an abstract unit ID.
    
    Sponsored by:	Advanced Micro Devices (AMD)
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    kostikbel authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    4d601d8 View commit details
    Browse the repository at this point in the history
  10. compat_freebsd4: Add const qualifier to the local variable s inside f…

    …unction freebsd4_uname()
    
    This local variable s is for iterating characters of global variable
    `version`. The content of `version` is not going to be altered by
    function freebsd4_uname().
    
    MFC after:	1 week
    gmshake authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    f8bee4d View commit details
    Browse the repository at this point in the history
  11. linux(4): Add const qualifier to the value parameter of function hand…

    …le_string()
    
    The content that `value` point to is not going to be altered by function
    handle_string().
    
    MFC after:	1 week
    gmshake authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    dc89d97 View commit details
    Browse the repository at this point in the history
  12. kboot: Move console, acpi and smbios init

    Move the console probing to as early as possible. There's no real
    support for anything but hostcons, and setting it up early will show
    other error messages.
    
    ACPI and SMBIOS probing can be done just after we have the console, so
    move it there. This allows other parts of the early code to use info
    from that, as well as overriding and env vars set by these things on the
    command line (smbios data may be wrong during initial development phases
    as the automated way to populate per-board data may not be established,
    etc).
    
    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    978cfa7 View commit details
    Browse the repository at this point in the history
  13. loader: separate lang init from scripting init

    Create interp_preinit() to initialize the scripting language to run
    scripts. Make sure you can call it multiple times, but only the first
    one has effect, After it's call, you can run scripts in the scripting
    language. At the moment, no functional change.
    
    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    204f421 View commit details
    Browse the repository at this point in the history
  14. kboot: Initialize hostfs_root sooner (and remove kboot.conf)

    Move the initialization of hostfs_root to be a bit sooner. While it
    doesn't matter for the default case, we may want to use hostfs files
    sooner.
    
    Also, while we're here, remove kboot.conf. It duplicates the command
    line and has proven difficult to use. It will be replaced by an early
    script that can influence the state of the boot loader before we select
    a device to boot from (including strongly suggesting which one to boot
    from).
    
    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    f4d9e17 View commit details
    Browse the repository at this point in the history
  15. kboot: Use C99 initialiers for hostconsole.

    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    c15ca2f View commit details
    Browse the repository at this point in the history
  16. boot/i386: Use C99 initializer for textvidc

    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    f260d7c View commit details
    Browse the repository at this point in the history
  17. i386/spinconsole: Use C99 initializers

    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    8f7d94b View commit details
    Browse the repository at this point in the history
  18. i386/nullconsole: Use C99 initializers

    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    7402dfb View commit details
    Browse the repository at this point in the history
  19. efi_console: Use c99 initializers

    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    e9ed9ff View commit details
    Browse the repository at this point in the history
  20. uboot: Use c99 initializers for the console struct

    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    d0acae2 View commit details
    Browse the repository at this point in the history
  21. ofw: Use C99 initializers for the console struct

    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    036af32 View commit details
    Browse the repository at this point in the history
  22. userboot: Use C99 Initializers for each of the consoles here

    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    e7897ba View commit details
    Browse the repository at this point in the history
  23. loader: c_init returns 0 or 1

    c_init returns 0 (success) or 1 (failure). Don't return other values.
    
    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    f1c83de View commit details
    Browse the repository at this point in the history
  24. loader: stlye(9) nit: Space between return and the value

    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    0e3628e View commit details
    Browse the repository at this point in the history
  25. loader/ofw: Style(9) pass over return statements

    Make these consistent. Some files weren't even consistent with
    themselves. Make them all either return <space> ( <value> ); or
    return;
    
    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    bda7cb3 View commit details
    Browse the repository at this point in the history
  26. textvidc: Reindent

    Since this is now 'new code' go ahead and reindent for modern project
    preferences.
    
    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    1cca615 View commit details
    Browse the repository at this point in the history
  27. loader: fix stupid typos

    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    daff601 View commit details
    Browse the repository at this point in the history
  28. if_vxlan(4): Add checking for loops and nesting of tunnels

    User misconfiguration, either tunnel loops, or a large number of
    different nested tunnels, can overflow the kernel stack. Prevent that
    by using if_tunnel_check_nesting().
    
    PR:		278394
    Diagnosed by:	markj
    Reviewed by:	kp
    MFC after:	1 week
    Differential Revision:	https://reviews.freebsd.org/D45197
    gmshake authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    0ae229d View commit details
    Browse the repository at this point in the history
  29. libdiff: Detect and recover from file truncation.

    If a memory-mapped file is truncated before we get to the end, the
    atomizer may catch SIGBUS.  Detect that, reduce the input length to
    what we were actually able to read, and set a flag so the caller can
    take further action (e.g. warn the user and / or start over).
    
    Sponsored by:	Klara, Inc.
    Reviewed by:	markj
    Differential Revision:	https://reviews.freebsd.org/D45217
    dag-erling authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    26e6fce View commit details
    Browse the repository at this point in the history
  30. libdiff: Add a test for the truncation issue.

    Sponsored by:	Klara, Inc.
    Reviewed by:	allanjude
    Differential Revision:	https://reviews.freebsd.org/D45218
    dag-erling authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    3a106e3 View commit details
    Browse the repository at this point in the history
  31. diff: Warn if the atomizer detected truncation.

    Sponsored by:	Klara, Inc.
    Reviewed by:	allanjude, markj
    Differential Revision:	https://reviews.freebsd.org/D45219
    dag-erling authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    c1b7bd5 View commit details
    Browse the repository at this point in the history
  32. adduser: create dataset only if home is directly within dataset

    Currently, if the prefix of the new home directory is a subdirectory
    of a ZFS dataset, adduser will create a new dataset up one or more
    levels from the intended destination.  "pw useradd" will then create
    a normal directory in the desired location, leaving an unused dataset.
    Check for this situation when determining whether to create a dataset,
    and let pw create the directory.
    
    Reviewed by:	des
    Differential Revision:	https://reviews.freebsd.org/D45229
    MFC after:	3 days
    Mike Karels authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    c4a9b18 View commit details
    Browse the repository at this point in the history
  33. sound: Get rid of redundant assignments in chn_init()

    c is allocated with M_ZERO.
    
    Reported by:	markj
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 day
    Reviewed by:	markj
    Differential Revision:	https://reviews.freebsd.org/D45273
    christosmarg authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    a6081b2 View commit details
    Browse the repository at this point in the history
  34. sound: Prevent uninitialized variable destruction in chn_init()

    If dsp_unit2name() fails, we'll get to out2 with b, bs and devinfo
    uninitialized, which will result in a panic.
    
    Reported by:	Pierre Pronchery <[email protected]>
    Reported by:	Coverity Scan
    CID:		1545029, 1545025
    Pull-request:	freebsd/freebsd-src#1240
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 day
    Reviewed by:	markj
    Differential Revision:	https://reviews.freebsd.org/D45272
    christosmarg authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    43fddf4 View commit details
    Browse the repository at this point in the history
  35. sound: Check user-supplied size passed to SNDSTIOC_ADD_USER_DEVS*

    SNDSTIOC_ADD_USER_DEVS* expects a user-supplied sndstioc_nv_arg->nbytes,
    however we currently do not check whether this size is actually valid,
    which results in a panic when SNDSTIOC_ADD_USER_DEVS* is called with an
    invalid size. sndstat_add_user_devs() calls
    sndstat_unpack_user_nvlbuf(), which then calls malloc() with that size.
    
    PR:		266142
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 day
    Reviewed by:	brooks
    Differential Revision:	https://reviews.freebsd.org/D45236
    christosmarg authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    5e77bd3 View commit details
    Browse the repository at this point in the history
  36. sound: Correctly check nvlist_unpack() error

    The current check is never false and if nvlist_unpack() fails, we might
    panic later down the road.
    
    PR:		266144
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 day
    Reviewed by:	dev_submerge.ch, emaste
    Differential Revision:	https://reviews.freebsd.org/D45237
    christosmarg authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    87c8163 View commit details
    Browse the repository at this point in the history
  37. diff: Nits in tests.

    Sponsored by:	Klara, Inc.
    dag-erling authored and bsdjhb committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    ddb9f5a View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2024

  1. Configuration menu
    Copy the full SHA
    705c8b0 View commit details
    Browse the repository at this point in the history
  2. Make WITHOUT_UNDEFINED_VERSION the default

    Link with --no-undefined-version by default.  Will detect and prevent
    the accidental removal of symbols from versioned libraries.
    
    (cherry picked from commit 4510f2c)
    This reverts commit b25ceb9.
    
    Reviewed by:	arichardson, kib, dim, emaste
    Differential Revision:	https://reviews.freebsd.org/D44216
    brooksdavis authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    8f5192e View commit details
    Browse the repository at this point in the history
  3. man: the exists function needs to validate the first parameter

    This fixes an issue with the ".so " macro for FreeBSD
    ports manual pages.
    
    PR: 275978
    Reported by:	Jamie Landeg-Jones <[email protected]>
    MFC after:	1 week
    
    Differential Revision:	https://reviews.freebsd.org/D45231 (discussion)
    wosch authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    2237b4d View commit details
    Browse the repository at this point in the history
  4. bsdinstall: Fix wifi network selection size

    Use correct variable while creating dialog used to select among
    available wireless networks
    
    Approved by:	asiciliano
    Sponsored by:	Rubicon Communications, LLC ("Netgate")
    Differential Revision:	https://reviews.freebsd.org/D45271
    rbgarga authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    d227104 View commit details
    Browse the repository at this point in the history
  5. lock.9: LK_TIMELOCK is a lockmgr flag, not lockinit

    Reviewed by:	imp, markj
    Sponsored by:	Dell EMC Isilon
    Differential Revision:	https://reviews.freebsd.org/D45246
    rlibby authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    49bbcff View commit details
    Browse the repository at this point in the history
  6. sound: Make SNDST_UNVLBUF_MAX a power of two

    Fixes:		074d337 ("sound: Check user-supplied size passed to SNDSTIOC_ADD_USER_DEVS*")
    Reported by:	markj
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 day
    Reviewed by:	markj
    Differential Revision:	https://reviews.freebsd.org/D45277
    christosmarg authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    c1c8b21 View commit details
    Browse the repository at this point in the history
  7. Add man page for the ice network driver.

    PR:		262892
    MFC after:	3 days
    Reviewed by:	[email protected], erj
    Differential Revision:	https://reviews.freebsd.org/D45270
    Mathieu Simon authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    7be5c3d View commit details
    Browse the repository at this point in the history
  8. uipc_shm: Fix double check for shmfd->shm_path

    Reviewed by:	emaste, zlei
    Pull Request:	freebsd/freebsd-src#1250
    ricardobranco777 authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    d9eac49 View commit details
    Browse the repository at this point in the history
  9. fix (nuageinit): SSH keys are not handled in metadata but in userdata

    MFC After: 1 day
    ashmonger authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    d3e92ec View commit details
    Browse the repository at this point in the history
  10. ifconfig: Redo fix vlan/vlanproto reconfiguration

    When the if_vlan(4) interface has not been fully configured, i.e., a
    bare interface without a physical interface associated with it,
    retrieving the current settings of it and unconditionally overwriting
    `params` will result in losing vlandev settings in `params`. That will
    lead to failing to associate the if_vlan(4) interface with the requested
    physical interface and the false report 'both vlan and vlandev must be
    specified'.
    
    Fix that by checking if the vlan interface has been fully configured.
    
    The basic VLAN test is slightly modified to cover this case.
    
    PR:		279181
    Reviewed by:	kp
    Tested by:	Mike Tancsa <[email protected]>
    Fixes:		b82b805 ifconfig: fix vlan/vlanproto reconfiguration
    MFC after:	3 days
    Differential Revision:	https://reviews.freebsd.org/D45283
    gmshake authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    b84a001 View commit details
    Browse the repository at this point in the history
  11. cryptocheck: Don't test Chacha20-Poly1305 with an IV size of 8

    OpenSSL 3.0+ doesn't support an IV size of 8 either for the Chacha20
    stream cipher or the AEAD combination with Poly1305.  This did work
    previously with OpenSSL 1.1.
    
    Reviewed by:	markj
    Sponsored by:	AFRL, DARPA
    Differential Revision:	https://reviews.freebsd.org/D45280
    bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    e54ffa0 View commit details
    Browse the repository at this point in the history
  12. lockmgr: make lockmgr_disowned public and use it

    Reviewed by:	mckusick, kib, markj
    Sponsored by:	Dell EMC Isilon
    Differential Revision:	https://reviews.freebsd.org/D45248
    rlibby authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    2318c36 View commit details
    Browse the repository at this point in the history
  13. buf: define and use BUF_DISOWNED

    Implement an API where previously code was directly reaching into the
    buf's internal lock.
    
    Reviewed by:	mckusick, imp, kib, markj
    Sponsored by:	Dell EMC Isilon
    Differential Revision:	https://reviews.freebsd.org/D45249
    rlibby authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    55ae71e View commit details
    Browse the repository at this point in the history
  14. getblk: fail faster with GB_LOCK_NOWAIT

    If we asked not to wait on a lock, and then we failed to get a buf lock
    because we would have had to wait, then just return the error.  This
    avoids taking the bufobj lock and a second trip to lockmgr.
    
    Reviewed by:	mckusick, kib, markj
    Sponsored by:	Dell EMC Isilon
    Differential Revision:	https://reviews.freebsd.org/D45245
    rlibby authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    218157a View commit details
    Browse the repository at this point in the history
  15. glabel.8: Describe cases related to permissions / existing mounts

    Specially, note some requirements for label changes:
    
    - glabel requires write permission on device
    - filesystems first need to be unmounted for new labels to persist
      across reboots
    - if the affected device node holds the filesystem root, single-user
      mode with r/o mount will be required.
    
    Also, while here, apply some formatting tweaks.
    
    PR:		276724
    Reported by:	Alex Matei <[email protected]>
    Reviewed by:	gbe, jrm, Alexander Ziaee <[email protected]>
    Differential Revision:	https://reviews.freebsd.org/D44394
    Chris Moerz authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    49fb5f8 View commit details
    Browse the repository at this point in the history
  16. capsicum: allow rfork(2) in capability mode

    Reviewed by:	brooks, rwatson
    MFC after:	4 days
    Differential Revision:	https://reviews.freebsd.org/D45040
    trasz authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    684fd9f View commit details
    Browse the repository at this point in the history
  17. Regen

    oshogbo authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    253f664 View commit details
    Browse the repository at this point in the history
  18. LinuxKPI: 802.11: fix for_each_sta_active_link()

    Likely a c&p error from for_each_vif_active_link() to
    for_each_sta_active_link().
    We are checking the nitems on the vif instead of the sta in this macro.
    Function wise there is no difference as the arrays are the same size
    but for correctness fix this.
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	3 days
    Bjoern A. Zeeb authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    a1d1ed9 View commit details
    Browse the repository at this point in the history
  19. LinuxKPI: add kvmemdup()

    Add kvmemdup() as a variant of kmemdup().  While currently it could
    just call kmemdup() we duplicate the code and use kvmalloc() in case
    someone will change the implementation of kvmalloc/kvfree in slab.h.
    This is used by an updated wireless driver.
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	3 days
    Reviewed by:	emaste
    Differential Revision: https://reviews.freebsd.org/D45181
    Bjoern A. Zeeb authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    84c17ac View commit details
    Browse the repository at this point in the history
  20. access(2): Discourage use of these system calls.

    Fixes:		421025a
    PR:		262895
    MFC after:	3 days
    Reviewed by:	emaste
    Differential Revision:	https://reviews.freebsd.org/D45240
    dag-erling authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    1de54c8 View commit details
    Browse the repository at this point in the history
  21. ftpd: stop using -g flag for /bin/ls

    In 3bfbb52 the behaviour of ls was changed such that -g was no longer
    a noop for compatibility with BSD 4.3, but instead changed the output
    of long mode to exclude the owner of the file and display only the
    group.
    
    Update how FTPd invokes ls to restore the previous behaviour
    
    Reported-by:	Andrew Fengler <[email protected]>
    Reviewed-by:	jrtc27, des, imp
    MFC after:	3 days
    Sponsored-by:	ScaleEngine Inc.
    Fixes:		3bfbb52 ("ls: Improve POSIX compatibility for -g and -n.")
    allanjude authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    69e3822 View commit details
    Browse the repository at this point in the history
  22. iavf(4): Improve man page

    MFC after:	3 days
    Reviewed by:	erj
    Differential Revision:	https://reviews.freebsd.org/D43093
    ricera authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    d5563ab View commit details
    Browse the repository at this point in the history
  23. LinuxKPI: add FIELD_PREP_CONST()

    Add FIELD_PREP_CONST() like FIELD_PREP() without any extra checks likely
    expected on this version in Linux.  This is called by an updated wireless
    driver.
    
    Sposnored by:	The FreeBSD Foundation
    MFC after:	3 days
    Reviewed by:	emaste
    Differential Revision: https://reviews.freebsd.org/D45180
    Bjoern A. Zeeb authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    00845f3 View commit details
    Browse the repository at this point in the history
  24. autofs manuals: align lists, tag SPDX

    MFC after: 3 days
    Fixes: 286c490 (add -noauto), 3914ddf (import autofs)
    Pull Request: freebsd/freebsd-src#1243
    
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1243
    concussious authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    c5a3a92 View commit details
    Browse the repository at this point in the history
  25. unionfs.4: describe better, tag SPDX

    Reviewed by: imp,jhb
    Pull Request: freebsd/freebsd-src#1242
    concussious authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    a9d2d98 View commit details
    Browse the repository at this point in the history
  26. smb.4/smbfs.4: distinguishable descriptions, +SPDX

    Reviewed by: imp,jhb
    Pull Request: freebsd/freebsd-src#1241
    concussious authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    2105d7a View commit details
    Browse the repository at this point in the history
  27. libnvmf: avoid resource leak

    In nvmf_host_fetch_discovery_log_page(), the log variable may have been
    allocated on the heap during the first loop cycle, and should be
    free()'d before exiting upon errors.
    
    Reported by:	Coverity
    CID:		1545034
    Sponsored by:	The FreeBSD Foundation
    
    Reviewed by: imp,jhb
    Pull Request: freebsd/freebsd-src#1239
    khorben authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    b3ef1df View commit details
    Browse the repository at this point in the history
  28. kern/rman: update DPRINTF() macro, avoid semicolon swallowing match f…

    …unction
    
    Using a variadic macro allows passing everything properly to printf().
    Using the do { } while(0) construct ensures the macro acts like any
    other single statement.  This shows just how long some of this has
    existed.
    
    Reviewed by: imp,jhb
    Pull Request: freebsd/freebsd-src#1224
    ehem authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    a424dd2 View commit details
    Browse the repository at this point in the history
  29. kern/rman: update debugging lines in subr_rman.c

    Rather than hard-code the function name, use __func__ instead.  Apply
    some style and adjust indentation as appropriate.  Remove the no longer
    required braces.
    
    Reviewed by: imp,jhb
    Pull Request: freebsd/freebsd-src#1224
    ehem authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    1fdd3ed View commit details
    Browse the repository at this point in the history
  30. kern/rman: remove rman_reserve_resource_bound(), partially revert 13f…

    …b665
    
    Not once has rman_reserve_resource_bound() ever been used.  There are
    though several uses of RF_ALIGNMENT.  In light of this remove this
    extra and leave the actually used portion in place.
    
    This partially reverts commit 13fb665.
    
    Reviewed by: imp,jhb
    Pull Request: freebsd/freebsd-src#1224
    ehem authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    fac5569 View commit details
    Browse the repository at this point in the history
  31. kern/rman: update rman_make_alignment_flags()

    The flsl() function makes use of hardware functionality to compute the
    value faster than this loop.  The only deviation from flsl() is at 0.
    
    Reviewed by: imp,jhb
    Pull Request: freebsd/freebsd-src#1224
    ehem authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    e6219f2 View commit details
    Browse the repository at this point in the history
  32. kern/rman: mark rman get functions as taking constants

    The arguments are left completely unchanged by these functions.  This
    allows passing constant pointers for verifying ownership, but not
    modifying the contents.
    
    Reviewed by: imp,jhb
    Pull Request: freebsd/freebsd-src#1224
    ehem authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    1d117be View commit details
    Browse the repository at this point in the history
  33. linprocfs: Add support for proc/sysvipc/{msg,sem,shm}

    Reviewed by: imp,kib
    Pull Request: freebsd/freebsd-src#1232
    ricardobranco777 authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    2bc0ffc View commit details
    Browse the repository at this point in the history
  34. linprocfs: use %z for size_t arguments

    64-bit doesn't care or give a warning, but i386 compile complains
    (rightly) that these are size_t and need a %z modifier.
    
    Fixes: 25a0452
    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    3d23c88 View commit details
    Browse the repository at this point in the history
  35. Allow DEBUG_SH=rc:all to debug all rc.d

    Usually a bad idea but there are exceptions to every rule.
    Allso debugging all rc.d scripts or all with a given arg.
    sgerraty authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    19239bc View commit details
    Browse the repository at this point in the history
  36. Simplify the code.

    Obtained from: Fudo Security
    Reviewed by: asomers, imp
    Approved by: oshogbo (mentor)
    Differential Revision: https://reviews.freebsd.org/D45247
    Pawel Jakub Dawidek authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    f92cd63 View commit details
    Browse the repository at this point in the history
  37. Fix build.

    Pawel Jakub Dawidek authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    2adc1e2 View commit details
    Browse the repository at this point in the history
  38. capsicum: SIGTRAP is delivered also on ECAPMODE error.

    Approved by: oshogbo (mentor)
    Pawel Jakub Dawidek authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    d763d5f View commit details
    Browse the repository at this point in the history
  39. time: siginfo_recvd needs to be marked volatile

    sig_atomic_t does not imply volatility, we must do it ourselves to avoid
    caching of siginfo_recvd loads.
    
    Sponsored by:	Klara, Inc.
    kevans91 authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    c94e14c View commit details
    Browse the repository at this point in the history
  40. if_vlan: handle VID conflicts

    If we fail to change the vlan id we have to undo the removal (and vlan id
    change) in the error path. Otherwise we'll have removed the vlan object from the
    hash table, and have the wrong vlan id as well. Subsequent modification attempts
    will then try to remove an entry which doesn't exist, and panic.
    
    Undo the vlan id modification if the insertion in the hash table fails, and
    re-insert it under the original vlan id.
    
    PR:		279195
    Reviewed by:	zlei
    MFC atfer:	1 week
    Sponsored by:	Rubicon Communications, LLC ("Netgate")
    Differential Revision:	https://reviews.freebsd.org/D45285
    kprovost authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    962259d View commit details
    Browse the repository at this point in the history
  41. daemon: Add -C (--restart-count) option

    Add a new option (-C, --restart-count) to specify the maximum
    number of times that the controlled process is restarted if
    restart (-r) is restarted.
    
    Reviewed by: kevans
    Differential Revision: https://reviews.freebsd.org/D44944
    jurajlutter authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    8870de8 View commit details
    Browse the repository at this point in the history
  42. stand/efi: Fix for binutils when targeting arm64

    When linking with ld.bfd it complain with the following:
    
    /usr/local/bin/aarch64-unknown-freebsd14.0-ld: start.o: relocation
     R_AARCH64_ABS32 against `__data_size' can not be used when making a
     shared object
    
    Fix this by marking the __data_size with ABSOLUTE. This returns a
    non-relocatable value which appears to be the same behaviour of lld.
    
    Reviewed by:	imp
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D45257
    zxombie authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    cb4706d View commit details
    Browse the repository at this point in the history
  43. stand/kboot: Fix the linker script OUTPUT_FORMAT

    ld.bfd doesn't understand elf64-aarch64 but does have
    elf64-littleaarch64. Switch to this so we can link kboot with it.
    
    While here switch to the single format version. We are unlikely to
    support booting from a big-endian Linux.
    
    Reviewed by:	imp, emaste
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D45258
    zxombie authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    9be7904 View commit details
    Browse the repository at this point in the history
  44. csu: Find the main pointer through the GOT

    Use the Global Offset Table to find the location of main in crt1. With
    lld the old code would point to main@plt, however ld.bfd fails to link
    when main is in a shared library.
    
    Fix this by using the GOT address to find main as it works with both
    lld and bfd.
    
    Reviewed by:	jrtc27
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D45259
    zxombie authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    e6aec3f View commit details
    Browse the repository at this point in the history
  45. sys/sys: Fix __builtin_is_aligned fallback

    When the compiler doesn't provide __builtin_is_aligned we use
    macro as a fallback. The macro was missing brackets around one
    argument. This could lead to incorrect results when the argument is
    more complex than a single stagement.
    
    Fix this by adding the needed brackets.
    
    Reviewed by:	brooks, imp, jhb
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D45260
    zxombie authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    b9677da View commit details
    Browse the repository at this point in the history
  46. arm64: Use the UL macro in TCR_EL1 defines

    While clang can handle numbers with a UL suffix in assembly files
    gcc/gas is unable to. Switch to use the UL macro for TCR_EL1 defines as
    some are used in locore.S
    
    Reviewed by:	brooks, jhb
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D45261
    zxombie authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    efc642d View commit details
    Browse the repository at this point in the history
  47. arm64: Add the pointer auth registers to armreg.h

    Add the pointer authentication registers to armreg.h. These will be
    used to support pointer authentication in a kernel built with GCC.
    
    Reviewed by:	jhb
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D45262
    zxombie authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    b71e632 View commit details
    Browse the repository at this point in the history
  48. arm64: Use the pointer auth register defines

    When building with gcc it complains the pointer authentication
    registers aren't valid with the architecture level we are targeting.
    Fix this by using the alternative spelling of these registers accesses
    through MRS_REG_ALT_NAME.
    
    Reviewed by:	jhb
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D45263
    zxombie authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    fd882a2 View commit details
    Browse the repository at this point in the history
  49. arm64/rockchip: Fix the build with GCC

    We were missing brackets in GPIO_FLAGS_PINCTRL. Without them GCC
    complains a use is ambiguous. Fix by adding the needed brackets.
    
    Reviewed by:	manu, brooks, imp, jhb, emaste
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D45264
    zxombie authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    3029951 View commit details
    Browse the repository at this point in the history
  50. pci: Fix pci_host_generic_acpi with gcc

    In pci_host_generic_acpi.c we loop over pci_acpi_quirks to check if
    we need to handle any quirks. GCC doesn't like the terminatin as it
    sets a fixed width string to 0.
    
    As this the array is only ever used in this file change to use nitems
    to find when to stop the loop.
    
    Reviewed by:	brooks, imp, jhb, emaste
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D45265
    zxombie authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    b229332 View commit details
    Browse the repository at this point in the history
  51. dev/hwpmc: Fix the dmc620 MD4 macro

    Add braces to the dmc620 MD4 macro to fix the GCC build.
    
    Reviewed by:	brooks, imp, jhb
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D45266
    zxombie authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    bdc91fd View commit details
    Browse the repository at this point in the history
  52. sys: Build arm64 per-thread SSP with GCC

    It has been supported since GCC 9. It is unlikely anything older than
    that will build the kernel so mark it as supported by GCC.
    
    Reviewed by:	brooks, jhb
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D45267
    zxombie authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    c2b6c58 View commit details
    Browse the repository at this point in the history
  53. arm64: Fixed IOMMU compilation errors

    These are missing changes after 1228b93 when ref_count was
    removed from bus_dma_tag_common and 1e3f42b, when the address
    arguments were switched to pointers.
    
    Reviewed by:		jhb
    MFC after:		3 days
    Differential Revision:	https://reviews.freebsd.org/D45289
    Dmitry Salychev authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    15bc373 View commit details
    Browse the repository at this point in the history
  54. mac_do: add a new MAC/do policy and mdo(1) utility

    This policy enables a user to become another user without having to be
    root (hence no setuid binary). it is configured via rules using sysctl
    security.mac.do.rules
    
    For example:
    security.mac.do.rules=uid=1001:80,gid=0:any
    
    The above rule means the user identifier by the uid 1001 is able to
    become user 80
    Any user of the group 0 are allowed to become any user on the system.
    
    The mdo(1) utility expects the MAC/do policy to be installed and its
    rules defined.
    
    Reviewed by:	des
    Differential Revision:	https://reviews.freebsd.org/D45145
    bapt authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    52d4963 View commit details
    Browse the repository at this point in the history
  55. RELNOTES: document MAC/do

    bapt authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    2af6d72 View commit details
    Browse the repository at this point in the history
  56. arm64: Return newline at the end of NOTES back

    It fixes LINT kernel build after ac4ddc4.
    
    MFC after:	3 days
    Dmitry Salychev authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    b0fea10 View commit details
    Browse the repository at this point in the history
  57. rc: add service jails framework

    This takes a rc.d-service and starts it in a jail which shares the same
    root-path as the host (or parent jail) and may inherit the network from
    the host (or parent jail). Per service there is the possibility to
    specify some arguments which give more permissions (e.g. netv4, netv6,
    sysvipc...).
    Reviewed by:	bcr (man page)
    Relnotes:	yes
    Differential Revision:	https://reviews.freebsd.org/D40370
    netchild authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    7e1d818 View commit details
    Browse the repository at this point in the history
  58. rc.d: add a service jails config to all base system services

    This gives more permissions to services (e.g. network access to
    services which require this) when they are started as an automatic
    service jail.
    
    The sshd patch is important for the sshd-related functionality as
    described in the man-page in the service jails part.
    
    The location of the added env vars is supposed to allow overriding them
    in rc.conf, and to hard-disable the use of svcj for some parts where it
    doesn't make sense or will not work.
    
    Only a subset of all of the services are fully tested (I'm running this
    since more than a year with various services started as service jails).
    The untested parts should be most of the time ok, in some edge-cases
    more permissions are needed inside the service jail.
    Differential Revision:	https://reviews.freebsd.org/D40371
    netchild authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    20f0011 View commit details
    Browse the repository at this point in the history
  59. mac_do(4): fix typo

    Reported by:	Gary Jennejohn <[email protected]>
    bapt authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    14fe6bb View commit details
    Browse the repository at this point in the history
  60. usr.bin/top: fix displaying load average for loads of at least 100

    After top registers load average of at least 100 which then gets reduced to
    below 100, there are left stray digits.
    Supporting load over 100 requires increasing the width only to 6, but since
    we support over 1000 CPU's now, let's increase it to 7.
    
    Reviewed by:	kib
    Differential Revision: https://reviews.freebsd.org/D45284
    pkubaj authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    a603295 View commit details
    Browse the repository at this point in the history
  61. tpm_if.m: declare bus addresses as bus_size_t not bus_addr_t

    Do like bus_space(9) does.  This fixes the build on platforms where
    bus_addr_t and bus_size_t are different (like i386 PAE).
    
    Reviewed by:	jhibbits
    Fixes:		c2e9c5b tpm: Refactor TIS and add a SPI attachment
    Differential Revision:	https://reviews.freebsd.org/D45287
    rlibby authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    cd1ce81 View commit details
    Browse the repository at this point in the history
  62. riscv: Fix SSTC extension support

    From the SSTC spec:
    "If the stimecmp (supervisor-mode timer compare) register is implemented,
    then STIP is read-only in mip and reflects the supervisor-level timer
    interrupt signal resulting from stimecmp. This timer interrupt signal
    is cleared by writing stimecmp with a value greater than the current time
    value."
    
    This fixes operation in Spike with sstc extension enabled.
    Example:
      spike --isa RV64IMAFDCH_zicntr_zihpm_sstc
    
    Reviewed by:	mhorne
    Differential Revision:	https://reviews.freebsd.org/D45226
    bukinr authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    8c1d0e5 View commit details
    Browse the repository at this point in the history
  63. riscv: Implement atomic operations

    Implement atomic_load_acq_16, atomic_store_rel_16.
    
    These are needed by bhyve(8) PCIe bus emulation code.
    
    Group 16-bit atomic functions similarly to 32 and 64-bit.
    
    Reviewed by:	mhorne
    Differential Revision:	https://reviews.freebsd.org/D45228
    bukinr authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    51a4fba View commit details
    Browse the repository at this point in the history
  64. arm64: Allow userspace to be built with PAC and BTI

    Add the WITH/WITHOUT_BRANCH_PROTECTION build flags. This can be used
    to enable the use of pointer authentication (FEAT_PAuth) and branch
    target identification (FEAT_BTI) in userspace.
    
    The kernel already handles both of these is userspace, we just need
    to enable it.
    
    Leave disabled for a short period for this to settle before enabling.
    
    Reviewed by:	emaste
    Sponsored by:	Arm Ltd
    Differential Revision:	https://reviews.freebsd.org/D42596
    zxombie authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    8591fea View commit details
    Browse the repository at this point in the history
  65. src.conf.5: Regen

    zxombie authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    47cf762 View commit details
    Browse the repository at this point in the history
  66. blackhole.4: improve man page

    Not the connection is dropped, but the incoming SYN segment.
    Reviewed by:		concussious.bugzilla_runbox.com
    MFC after:		3 days
    Sponsored by:		Netflix, Inc.
    Differential Revision:	https://reviews.freebsd.org/D45296
    tuexen authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    9a7e81e View commit details
    Browse the repository at this point in the history
  67. Add function to OSD to get values without taking the lock.

    There are some cases of OSD use where the value is only initialized once
    at a point where successive access of the value can be done so safely
    without the need to take the lock.
    
    Reviewed by:	markj
    Obtained from:	Juniper Networks, Inc.
    Differential Revision:	https://reviews.freebsd.org/D44631
    Stephen J. Kiernan authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    4025932 View commit details
    Browse the repository at this point in the history
  68. zzz: Fix output formatting when suspend state not supported

    Reviewed by: imp (who also simplified things a little)
    Differenetial Revision: https://reviews.freebsd.org/D45299
    ssh911 authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    3b44ebd View commit details
    Browse the repository at this point in the history
  69. LinuxKPI: 802.11: change teardown order to avoid iwlwifi firmware cra…

    …shes
    
    While the previous order worked well for iwlwifi 22000 and later chipsets
    (AXxxx, BE200), earlier chipsets had trouble and ran into firmware crashes.
    Change the teardown order to avoid these problems.  The inline comments
    in lkpi_sta_run_to_init() (and lkpi_disassoc()) try to document the new
    order and also the old problems we were seeing (too early sta removal or
    silent non-removal) leading to follow-up problems.
    
    There is a possible further problem still lingering but a lot harder to
    trigger (see comment in review) and likely related to some other doings
    so we'll track it separately.
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	3 days
    PR:		275255
    Tested with:	AX210, 8265 (bz); 9260 (Bakul Shah)
    Differential Revision: https://reviews.freebsd.org/D45293
    Bjoern A. Zeeb authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    5d5bf91 View commit details
    Browse the repository at this point in the history
  70. LinuxKPI: 802.11: rename chanctx_conf for consistency

    We used to call the struct ieee80211_chanctx_conf variable "conf"
    in some places but that becomes confusing with bss_conf and other
    "conf" bits.  On the vif it is already called chanctx_conf thus also
    rename it on the internal struct lkpi_chanctx and for our variables
    in the implementation.
    
    This should not have any external visibility.
    No functional changes intended.
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	3 days
    Differential Revision: https://reviews.freebsd.org/D45185
    Bjoern A. Zeeb authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    ea5a1a5 View commit details
    Browse the repository at this point in the history
  71. autofs: Fix cross-threading on file to delete

    We want to delete the new file, which is installed in man4 not man5.
    
    Noticed by:	Gary Jennejohn
    Fixes:		a03e8a4
    Sponsored by:	Netflix
    bsdimp authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    515cafb View commit details
    Browse the repository at this point in the history
  72. Fix typo

    ioclt -> ioctl. <blush>
    
    Fixes:		08b4520
    Noticed by:	Thomas Mueller and John W. De Boskey
    Pointy hat to:	imp
    Sponsored by:	Netflix
    bsdimp authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    34e9248 View commit details
    Browse the repository at this point in the history
  73. mqueuefs: minor style pass

    Also remove not needed inclusion of sys/cdefs.h.
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    kostikbel authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    4a8894e View commit details
    Browse the repository at this point in the history
  74. mqueuefs: uma_zfree() can be postponed until mqfs sx mi_lock is dropped

    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    kostikbel authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    9c59d2e View commit details
    Browse the repository at this point in the history
  75. mqueuefs: mark newly allocated vnode as constructed, under the lock

    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 week
    kostikbel authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    d54a5a0 View commit details
    Browse the repository at this point in the history
  76. snd_hda: Add patch for Asus UX331UAL

    PR:		242802
    MFC after:	1 day
    Differential Revision:	https://reviews.freebsd.org/D45238
    lutzbichler authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    9a809a8 View commit details
    Browse the repository at this point in the history
  77. geom: Remove sysctl.h

    These files don't need sysctl.h, so remove it.
    
    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    c326176 View commit details
    Browse the repository at this point in the history
  78. sound: Separate implementations for SNDCTL_AUDIOINFO[_EX] and SNDCTL_…

    …ENGINEINFO
    
    FreeBSD's implementation of SNDCTL_AUDIOINFO[_EX] and SNDCTL_ENGINEINFO
    does not exactly work as intended. The problem is essentially that both
    IOCTLs return the same information, while in fact the information
    returned currently by dsp_oss_audioinfo() is what _only_
    SNDCTL_ENGINEINFO is meant to return.
    
    This behavior is also noted in the OSS manual [1] (see bold paragraph in
    "Audio engines and device files" section), but since e8c0d15
    ("sound: Get rid of snd_clone and use DEVFS_CDEVPRIV(9)") we can
    actually fix this, because we now expose only a single device for each
    soundcard, and create the engines (channels) internally.
    SNDCTL_ENGINEINFO will now report info about all channels in a given
    device, and SNDCTL_AUDIOINFO[_EX] will only report information about
    /dev/dspX.
    
    To make this work, we also have to modify the SNDCTL_SYSINFO IOCTL to
    report the number of audio devices and audio engines correctly.
    
    While here, modernize the minimum and maximum channel counting in both
    SNDCTL_AUDIOINFO[_EX] and SNDCTL_ENGINEINFO. Currently these IOCTLs will
    report only up to 2 channels, which is no longer the case.
    
    [1] http://manuals.opensound.com/developer/SNDCTL_AUDIOINFO.html
    
    PR:		246231, 252761
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 day
    Reviewed by:	dev_submerge.ch
    Differential Revision:	https://reviews.freebsd.org/D45164
    christosmarg authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    9a01816 View commit details
    Browse the repository at this point in the history
  79. sound: Handle unavailable devices in various OSS IOCTLs

    mixer(8)'s -a option is used to print information about all mixer
    devices in the system. To do this, it loops from 0 to
    mixer_get_nmixers(), and tries to open "/dev/mixer%d". However, this
    approach doesn't work when there are disabled/unregistered mixers in the
    system, or when an audio device simply doesn't have a mixer.
    
    mixer_get_nmixers() calls SNDCTL_SYSINFO and returns
    oss_sysinfo->nummixers, whose value is the number of currently _enabled_
    mixers only. Taking the bug report mentioned below (277615) as an
    example, suppose a system with 8 mixer devices total, but 3 of them are
    either disabled or non-existent, which means they will not show up under
    /dev, meaning we have 5 enabled mixer devices, which is also what the
    value of oss_sysinfo->nummixers will be. What mixer(8) will do is loop
    from 0 to 5 (instead of 8), and start calling mixer_open() on
    /dev/mixer0, up to /dev/mixer4, and as is expected, the first call will
    fail right away, hence the error shown in the bug report.
    
    To fix this, modify oss_sysinfo->nummixers to hold the value of the
    maximum unit in the system, which, although not necessarily "correct",
    is more intuitive for applications that will want to use this value to
    loop through all mixer devices.
    
    Additionally, notify applications that a device is
    unavailable/unregistered instead of skipping it. The current
    implementations of SNDCTL_AUDIOINFO, SNDCTL_MIXERINFO and
    SNDCTL_CARDINFO break applications that expect to get information about
    a device that is skipped. Related discussion can be found here:
    https://reviews.freebsd.org/D45135#1029526
    
    It has to be noted, that other applications, apart from mixer(8), suffer
    from this.
    
    PR:		277615
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 day
    Reviewed by:	dev_submerge.ch
    Differential Revision:	https://reviews.freebsd.org/D45256
    christosmarg authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    415f36c View commit details
    Browse the repository at this point in the history
  80. mixer(8): Ignore mixer_open() failures for the -a option

    The most likely reason mixer_open() will fail is because either the
    device doesn't exist, or because it is disabled, so there is not reason
    to kill the application. Instead, continue and print the rest of the
    enabled mixers.
    
    PR:		277615
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 day
    Reviewed by:	dev_submerge.ch
    Differential Revision:	https://reviews.freebsd.org/D45151
    christosmarg authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    528806d View commit details
    Browse the repository at this point in the history
  81. mixer(3): Implement mixer_get_path() function

    This is better than hardcoding device paths in mixer applications.
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 day
    Reviewed by:	dev_submerge.ch
    Differential Revision:	https://reviews.freebsd.org/D45275
    christosmarg authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    7ceb55e View commit details
    Browse the repository at this point in the history
  82. mixer(8): Use mixer_get_path()

    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 day
    Reviewed by:	dev_submerge.ch
    Differential Revision:	https://reviews.freebsd.org/D45276
    christosmarg authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    e349ce7 View commit details
    Browse the repository at this point in the history
  83. mixer.3: Fix mandoc -Tlint warnings

    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 day
    Reviewed by:	emaste
    Differential Revision:	https://reviews.freebsd.org/D45290
    christosmarg authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    b015080 View commit details
    Browse the repository at this point in the history
  84. sound: Fix minchn, maxchn and fmts in sndstat_get_caps()

    The current implementation (incorrectly) passes the channel encoding
    value to AFMT_CHANNEL(), which will always return 0, since the channel
    number bits are masked out by AFMT_ENCODING().
    
    Also add missing fmts initialization and aggregate encoding formats into
    it directly.
    
    Sponsored by:	The FreeBSD Foundation
    MFC after:	1 day
    Reviewed by:	dev_submerge.ch
    Differential Revision:	https://reviews.freebsd.org/D45312
    christosmarg authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    caf4329 View commit details
    Browse the repository at this point in the history
  85. arm64: set ATTR_CONTIGUOUS on the DMAP's L2 blocks

    On systems configured with 16KB pages, this change creates 1GB page
    mappings in the direct map where possible.  Previously, the largest page
    size that was used to implement the direct map was 32MB.  Similarly, on
    systems configured with 4KB pages, this change creates 32MB page
    mappings, instead of 2MB, in the direct map where 1GB is too large.
    
    Implement demotion on L2C (32MB/1GB) page mappings within the DMAP.
    
    Update sysctl vm.pmap.kernel_maps to report on L2C page mappings.
    
    Reviewed by:	markj
    Tested by:	gallatin, Eliot Solomon <[email protected]>
    Differential Revision:	https://reviews.freebsd.org/D45224
    alcriceedu authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    0dadd62 View commit details
    Browse the repository at this point in the history
  86. freebsd-update: Correctly check if pkg(8) is present

    On systems without pkg(8) installed, `command -v pkg` will return
    success and falsely report that pkg(8) is present. Fix that by checking
    via the `pkg -N` form.
    
    This is missing from the final revision of D39695.
    
    Reported by:	delphij
    Reviewed by:	fernape, delphij
    Fixes:		bc0c6c9 freebsd-update: Add check for kernel modules
    Differential Revision:	https://reviews.freebsd.org/D45292
    gmshake authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    319d963 View commit details
    Browse the repository at this point in the history
  87. Stop treating size 0 as unknown size in vnode_create_vobject().

    Whenever file is created, the vnode_create_vobject() function will
    try to determine its size by calling vn_getsize_locked() as size 0
    is ambigious: it means either the file size is 0 or the file size
    is unknown.
    
    Introduce special value for the size argument: VNODE_NO_SIZE.
    Only when it is given, the vnode_create_vobject() will try to obtain
    file's size on its own.
    
    Introduce dedicated vnode_disk_create_vobject() for use by
    g_vfs_open(), so we don't have to call vn_isdisk() in the common case
    (for regular files).
    
    Handle the case of mediasize==0 in g_vfs_open().
    
    Reviewed by: alc, kib, markj, olce
    Approved by: oshogbo (mentor), allanjude (mentor)
    Differential Revision: https://reviews.freebsd.org/D45244
    Pawel Jakub Dawidek authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    da55136 View commit details
    Browse the repository at this point in the history
  88. MAC/do: allow to call setuid if real user id is 0

    This fixed sshd not able to call restore_uid when MAC/do policy is
    loaded
    bapt authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    79167f5 View commit details
    Browse the repository at this point in the history
  89. pcm: centralize 32-bit ioctl compat

    Move all handlng of struct sndstioc_nv_arg(32) to sndstat_ioctl() and
    make the functions that actually do the work take a buffer and size or
    size pointer.  The 32-bit compat work is minimal so just inline it.
    
    Remove checks that we've got a 32-bit process for 32-bit ioctls.  We
    don't check that default ioctls are from 64-bit processes on 64-bit
    systems.
    
    Reviewed by:	christos
    Differential Revision:	https://reviews.freebsd.org/D45307
    brooksdavis authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    f397d7a View commit details
    Browse the repository at this point in the history
  90. Fix scn_queue races on very old pools

    Code for pools before version 11 uses dmu_objset_find_dp() to scan
    for children datasets/clones.  It calls enqueue_clones_cb() and
    enqueue_cb() callbacks in parallel from multiple taskq threads.
    It ends up bad for scan_ds_queue_insert(), corrupting scn_queue
    AVL-tree.  Fix it by introducing a mutex to protect those two
    scan_ds_queue_insert() calls.  All other calls are done from the
    sync thread and so serialized.
    
    Reviewed-by:	Brian Behlendorf <[email protected]>
    Reviewed-by:	Brian Atkinson <[email protected]>
    Signed-off-by:	Alexander Motin <[email protected]>
    Sponsored by:	iXsystems, Inc.
    Closes	#16162
    PR:	278414
    amotin authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    d683b17 View commit details
    Browse the repository at this point in the history
  91. libpmc: remove tautological assert

    gcc13 whines about this assert than an unsigned integer is >= 0.
    
    Reviewed by:	luporl
    Fixes:		b48a277 powerpc64: add Power8 and Power9 PMCs
    Differential Revision:	https://reviews.freebsd.org/D45232
    brooksdavis authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    d9f24e7 View commit details
    Browse the repository at this point in the history
  92. libcompiler_rt: gcc13 doesn't support _Float16 on arm

    Don't set CRT_COMMON_F16_ARCH for arm as it's not supported by gcc13.
    
    Differential Revision:	https://reviews.freebsd.org/D45234
    brooksdavis authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    9170e3b View commit details
    Browse the repository at this point in the history
  93. Fix "version introduced" in two manual pages

    Signed-off-by: Tom Hukins <[email protected]>
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1252
    tomhukins authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    29a08d9 View commit details
    Browse the repository at this point in the history
  94. etherswitch.4: Remove non-existent manual pages

    Signed-off-by: Tom Hukins <[email protected]>
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1253
    tomhukins authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    39550b1 View commit details
    Browse the repository at this point in the history
  95. etherswitch.4: List manual pages alphabetically

    Signed-off-by: Tom Hukins <[email protected]>
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1253
    tomhukins authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    4f38351 View commit details
    Browse the repository at this point in the history
  96. option_survey.sh: Bump size to 5GB

    Increase image size from 4G to 5G to accommodate growth in OS.
    
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1251
    michaeldexter authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    c0c0c84 View commit details
    Browse the repository at this point in the history
  97. ci: Redirect output for builds.

    This target is far too noisy to be at all useful. Save the output ala
    make universe in _. files. Also report where to find errors.
    
    Sponsored by:		Netflix
    bsdimp authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    501c327 View commit details
    Browse the repository at this point in the history
  98. cp: avoid a resource leak

    In copy_file(), make sure the from_fd file descriptor is closed even
    when the operation failed early.
    
    Reported by:	Coverity Scan
    CID:		1545036
    Sponsored by:	The FreeBSD Foundation
    
    Reviewed by: imp, emaste
    Pull Request: freebsd/freebsd-src#1238
    khorben authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    924b892 View commit details
    Browse the repository at this point in the history
  99. ctl: use socket buffer mutexes in struct socket directly

    A mechanical change performed with sed(1) script:
    
    s/SOCKBUF_LOCK\(&so->so_rcv\)/SOCK_RECVBUF_LOCK(so)/
    s/SOCKBUF_UNLOCK\(&so->so_rcv\)/SOCK_RECVBUF_UNLOCK(so)/
    s/SOCKBUF_MTX\(&so->so_rcv\)/SOCK_RECVBUF_MTX(so)/
    s/SOCKBUF_LOCK\(&so->so_snd\)/SOCK_SENDBUF_LOCK(so)/
    s/SOCKBUF_UNLOCK\(&so->so_snd\)/SOCK_SENDBUF_UNLOCK(so)/
    s/SOCKBUF_MTX\(&so->so_snd\)/SOCK_SENDBUF_MTX(so)/
    
    Reviewed by:		mav
    Differential Revision:	https://reviews.freebsd.org/D45190
    glebius authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    b456058 View commit details
    Browse the repository at this point in the history
  100. mqueue: Add sysctl for default_maxmsg & default_msgsize and fix descr…

    …iptions
    
    Reviewed by: imp, kib
    Pull Request: freebsd/freebsd-src#1248
    ricardobranco777 authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    dbce960 View commit details
    Browse the repository at this point in the history
  101. linprocfs: Add support for proc/sys/fs/mqueue/*

    Reviewed by: imp, kib
    Pull Request: freebsd/freebsd-src#1248
    ricardobranco777 authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    cead830 View commit details
    Browse the repository at this point in the history
  102. mqueuefs: Relax restriction that path must begin with a slash

    This is needed to support Linux implementation which discards the leading slash when calling mq_open(2)
    
    Reviewed by: imp, kib
    Pull Request: freebsd/freebsd-src#1248
    ricardobranco777 authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    a4c379a View commit details
    Browse the repository at this point in the history
  103. linux: Fix linux_mq_notify_args & linux_timer_create_args

    Reviewed by: imp, kib
    Pull Request: freebsd/freebsd-src#1248
    ricardobranco777 authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    9d1611a View commit details
    Browse the repository at this point in the history
  104. linux: Export linux_common_openflags()

    Reviewed by: imp, kib
    Pull Request: freebsd/freebsd-src#1248
    ricardobranco777 authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    650128c View commit details
    Browse the repository at this point in the history
  105. linux: Export linux_convert_l_sigevent

    Reviewed by: imp, kib
    Pull Request: freebsd/freebsd-src#1248
    ricardobranco777 authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    1f1d6f9 View commit details
    Browse the repository at this point in the history
  106. mqueue: Export some functions to be used by Linuxulator

    Reviewed by: imp, kib
    Pull Request: freebsd/freebsd-src#1248
    ricardobranco777 authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    d872b2d View commit details
    Browse the repository at this point in the history
  107. mqueue: Introduce kern_kmq_timedreceive & kern_kmq_timedsend

    Reviewed by: imp, kib
    Pull Request: freebsd/freebsd-src#1248
    ricardobranco777 authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    eb6c739 View commit details
    Browse the repository at this point in the history
  108. linux: Support POSIX message queues

    Reviewed by: imp, kib
    Pull Request: freebsd/freebsd-src#1248
    ricardobranco777 authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    4f5f9d2 View commit details
    Browse the repository at this point in the history
  109. linux: Update linux manpage to mention mqueuefs

    Reviewed by: imp, kib
    Pull Request: freebsd/freebsd-src#1248
    ricardobranco777 authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    d1facae View commit details
    Browse the repository at this point in the history
  110. Configuration menu
    Copy the full SHA
    f57cd77 View commit details
    Browse the repository at this point in the history
  111. arp(8): allow -i with -s

    arp(8) usually disallows adding a static ARP entry for an IP address
    which is not configured on a local interface.
    
    Change this to allow such ARP entries to be added if '-i' is provided to
    specify the interface the ARP entry relates to.
    
    Due to limitations in the kernel lltable, this still requires that a
    host route exists for the target address, but allows static ARP entries
    to be configured to proxy ARP for, e.g., local jails which use an IPv4
    address with a /32 route.
    
    Reviewed by: imp, zlei
    Pull Request: freebsd/freebsd-src#1220
    llfw authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    f68962b View commit details
    Browse the repository at this point in the history
  112. Merge bmake-20240520

    Merge commit '29efb3dcaedd9cbabc6f96f35545baf2c8b28501'
    sgerraty authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    c3726d4 View commit details
    Browse the repository at this point in the history
  113. tcp: improve inp locking in setsockopt

    Ensure that the inp is not dropped when starting a stack switch.
    While there, clean-up the code by using INP_WLOCK_RECHECK, which
    also re-assigns tp.
    
    Reviewed by:		glebius
    MFC after:		3 days
    Sponsored by:		Netflix, Inc.
    Differential Revision:	https://reviews.freebsd.org/D45241
    tuexen authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    34c8dcc View commit details
    Browse the repository at this point in the history
  114. Remove COMPAT_FREEBSD4/5/6/7/9 from MINIMAL and FIRECRACKER kernel co…

    …nfigurations
    
    FIRECRACKER is not a legacy config, so remove the really old FreeBSD
    versions from it. MINIMAL has a similar history, and limited target
    audience which has little to no overlap with really old binaries. Either
    of these is really easy to get additional binary compat with the include
    directive, so balance things better. Leave GENERIC alone.
    
    PR: 231768
    Signed-off-by: Henrich Hartzer <[email protected]>
    Reviewed by: imp (MINIMAL), cperciva (FIRECRACKER)
    Pull Request: freebsd/freebsd-src#1228
    hhartzer authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    5f1cc1b View commit details
    Browse the repository at this point in the history
  115. netinet/icmp6: add PREF64 definitions (RFC 8781)

    Reviewed by: imp, glebius (prior suggetions done)
    Pull Request: freebsd/freebsd-src#1206
    llfw authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    33d3f35 View commit details
    Browse the repository at this point in the history
  116. rtadvd(8): support PREF64 (RFC 8781)

    PREF64 allows a router to advertise the network's NAT64 prefix, allowing
    clients to auto-configure CLAT.  This makes it possible to deploy
    IPv6-only or IPv6-mostly client access networks without the need for
    DNS64.
    
    Reviewed by: imp, glebius (prior suggetions done)
    Pull Request: freebsd/freebsd-src#1206
    llfw authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    4e1af7f View commit details
    Browse the repository at this point in the history
  117. sys/netinet/icmp6.h: use C99 uintX_t constants for new PREF64 struct

    Reviewed by: imp, glebius (prior suggetions done)
    Pull Request: freebsd/freebsd-src#1206
    llfw authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    88a2268 View commit details
    Browse the repository at this point in the history
  118. sys/netinet/icmp6.h: Fix build

    Fix stdint.h file not found.
    
    Fixes: 		4b75afe
    cschuber authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    1b99fea View commit details
    Browse the repository at this point in the history
  119. Configuration menu
    Copy the full SHA
    2512344 View commit details
    Browse the repository at this point in the history
  120. fwget: update wireless IDs for rtw88/89, ath1xk, mt76 and add iwlwifi

    Update and add (new) PCI IDs for Realtek rtw88/89, Mediatek 7996/7925,
    QCA ath1xk, and add Intel iwlwifi IDs.
    
    Rather than using a package per driver add fine(r) grained flavors
    even though it is a lot more likely to break in certain cases.
    
    For Intel we need a great level of detail to match PCI IDs so also pass
    the full pciconf -l line to into the pci_* files as "$2" to have access
    to these.
    
    This lines up with ports commit 80f50c9eb66d.
    
    Sponsored by:	The FreeBSD Foundation
    Reviewed by:	manu (earlier version)
    MFC after:	3 days
    Differential Revision: https://reviews.freebsd.org/D44918
    Bjoern A. Zeeb authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    b34ec53 View commit details
    Browse the repository at this point in the history
  121. LinuxKPI: 802.11: lock MO tx/wake_tx_queue() downcalls

    Lock the two TX MO downcalls into driver/firmware in
    lkpi_80211_txq_tx_one() to make sure they cannot happen in the
    middle of other (net80211 triggered) updates calling down into
    the driver/firmware.
    
    Sponsored by:	The FreeBSD Foundation (commit)
    MFC after:	3 days
    Reviewed by:	cc
    Differential Revision: https://reviews.freebsd.org/D43966
    Bjoern A. Zeeb authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    2ccd47d View commit details
    Browse the repository at this point in the history
  122. Modernize DVD package set in preparation for 14.1

    Remove archivers/unzip (now in base) and emulators/linux_base-c7 (old
    and unlikely to be useful without other linux packages being installed),
    ports-mgmt/portmaster (now largely obsolete and discouraged in favour
    of using pkg and binary packages) and x11-drivers/xf86-video-vmware
    (questionably useful).
    
    Replace devel/git with devel/git@lite (sufficient for most purposes),
    and adjust the "ensure the ports exist to sanitize the list" code to
    ignore the @lite part when checking that /usr/ports/devel/git exists.
    
    Add sysutils/seatd and x11-wm/sway for wayland support.
    
    MFC after:	1 minute
    Differential Revision:	https://reviews.freebsd.org/D45278
    cperciva authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    aea55eb View commit details
    Browse the repository at this point in the history
  123. Add rtw88 firmware to DVD package set

    Add net/wifi-firmware-rtw88-kmod since it is no longer included in
    the base system on 15.x.  (It is present in 14.x, so this change will
    not be MFCed.)
    cperciva authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    ccd8997 View commit details
    Browse the repository at this point in the history
  124. cross: Move Solaris API64 defines to common

    off64_t is needed for both Linux (musl) and MacOS, so move them to the
    common area. Somehow glibc provides the definition, but defining it
    doesn't hurt and hels in the musl case.
    
    Reviewed by: allanjude, jrtc27
    Pull Request: freebsd/freebsd-src#1066
    valpackett authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    b2442b8 View commit details
    Browse the repository at this point in the history
  125. arm64, riscv: removed unused struct pv_addr

    No functional change.
    
    Reviewed by:	markj
    MFC after:	3 days
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D45322
    mhorne authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    eedf15a View commit details
    Browse the repository at this point in the history
  126. arm64, riscv: remove unused declaration

    It is inherited from arm, where the global exists and is used. No
    functional change.
    
    Reviewed by:	markj
    MFC after:	3 days
    Sponsored by:	The FreeBSD Foundation
    Differential Revision:	https://reviews.freebsd.org/D45323
    mhorne authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    37a55e8 View commit details
    Browse the repository at this point in the history
  127. geom: Add counts for enomem and pausing

    Add counts for the number of requests that complete with the ENOMEM as
    kern.geom.nomem_count and the number of times we pause the g_down thread
    to let the system recover as kern.geom.pause_count.
    
    Sponsored by:		Netflix
    Reviewed by:		kib
    Differential Revision:	https://reviews.freebsd.org/D45309
    bsdimp authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    ff41826 View commit details
    Browse the repository at this point in the history
  128. geom_io: Shift to pause_sbt to eliminate bogus min and update comment.

    Update to eliminate bogus min to ensure 0 was never passed to
    pause. Instead, requrest 1ms with an 'infinite' precision, which
    defaults to whatever the underlying time counter can do. This should
    ensure we run fairly quickly to start processing done events, while
    still giving a small pause for the system to catch its breath. This rate
    limiter still is less than ideal, and this commit doesn't change
    that. It should really have no functional change: it just uses a better
    interface to express the desired sleep.
    
    Sponsored by:		Netflix
    Reviewed by:		kib
    Differential Revision:	https://reviews.freebsd.org/D45316
    bsdimp authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    71c6ce4 View commit details
    Browse the repository at this point in the history
  129. cam: Drop periph lock when completing I/O with ENOMEM status

    When biofinish calls g_io_deliver with an error of ENOMEM, that kicks
    off the slowdown protocol, forcing I/O to go through g_down rather than
    be directly dispatch. One of the side effects is that the I/O is
    resubmitted, so the start routines get called recursively, leading to a
    recursive lock panic. Rather than make the periph lock recursive, drop
    and reacquire the lock around such calls to biofinish.
    
    For nda, this happens only when we can't allocate space to construct a
    TRIM. For ada and da, this is only for certain ZONE operations.
    
    Sponsored by:		Netflix
    Reviewed by:		gallatin
    Differential Revision:	https://reviews.freebsd.org/D45310
    bsdimp authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    729af54 View commit details
    Browse the repository at this point in the history
  130. nvme: Count number of alginment splits

    When possible, we split up I/Os to NVMe drives that advertise a
    preferred alignment. Add a counter for this.
    
    Sponsored by:		Netflix
    Reviewed by:		chuck, mav
    Differential Revision:	https://reviews.freebsd.org/D45311
    bsdimp authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    25e6981 View commit details
    Browse the repository at this point in the history
  131. vm_pageout_scan_inactive: take a lock break

    In vm_pageout_scan_inactive, release the object lock when we go to
    refill the scan batch queue so that someone else has a chance to acquire
    it.  This improves access latency to the object when the pagedaemon is
    processing many consecutive pages from a single object, and also in any
    case avoids a hiccup during refill for the last touched object.
    
    Reviewed by:	alc, markj (previous version)
    Sponsored by:	Dell EMC Isilon
    Differential Revision:	https://reviews.freebsd.org/D45288
    rlibby authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    09b89f6 View commit details
    Browse the repository at this point in the history
  132. Merge llvm-project release/18.x llvmorg-18.1.6-0-g1118c2e05e67

    This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
    openmp to llvm-project release/18.x llvmorg-18.1.6-0-g1118c2e05e67.
    
    PR:		276104
    MFC after:	3 days
    DimitryAndric authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    a3f4227 View commit details
    Browse the repository at this point in the history
  133. libc: move NIS xdr_* symbols from rpc's to yp's Symbol.map

    To fix WITHOUT_NIS build.  Building yp_xdr.c is gated by MK_NIS.
    
    PR:		279270
    Reported by:	peterj
    Reported by:	matteo
    Reported by:	Michael Dexter's Build Option Survey run
    Reviewed by:	brooks
    Sponsored by:	The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D45347
    emaste authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    42c2719 View commit details
    Browse the repository at this point in the history
  134. vt(4): add note about sc/UEFI incompatibility

    syscons is not compatible with UEFI boot.  This is noted in syscons(4),
    but not mentioned in vt(4) where the kern.vty tunable (used to select vt
    or sc) is documented.  Add a note so that if someone reads vt(4) but not
    sc(4) they are not surprised by having no usable console.
    
    PR:		276206
    Reviewed by:	brooks
    Sponsored by:	The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D45357
    emaste authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    685c1f6 View commit details
    Browse the repository at this point in the history
  135. dhclient: remove unused primary_address

    Its last use was removed in 396c7521364.
    
    Reviewed by:		imp
    Pull Request:		freebsd/freebsd-src#1257
    Differential Revsiion:	https://reviews.freebsd.org/D42717
    fichtner authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    a0ed6c8 View commit details
    Browse the repository at this point in the history
  136. ipfw: don't build the module if INET not in kernel

    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1255
    llfw authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    28fcfae View commit details
    Browse the repository at this point in the history
  137. sys/amd64/conf/LINT-NOINET{6,}: don't set WITHOUT_INET{6,}_SUPPORT

    Previously, it was necessary to set WITHOUT_INET_SUPPORT when building
    the kernel without INET, and WITHOUT_INET6_SUPPORT when building the
    kernel without INET6, or else the modules build would fail.  The
    LINT-NOINET and LINT-NOINET6 configs did this using makeoptions.
    
    After recent changes, this is no longer required, so remove these
    makeoptions.  This avoids masking potential future build issues when
    these aren't set.
    
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1255
    llfw authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    a557796 View commit details
    Browse the repository at this point in the history
  138. netlink: Fix C++ compile errors

    Allow these files to be included in C++ programs with careful casting to
    the proper type, like C++ wants (and in a way that also works for C).
    
    MFC After: 1 week
    Reviewed by: imp
    Pull Request: freebsd/freebsd-src#1245
    cnbatch authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    0a3df92 View commit details
    Browse the repository at this point in the history
  139. x86/iommu: extract useful utilities into x86_iommu.c

    related to the page tables page allocation and mapping.
    
    Sponsored by:	The FreeBSD Foundation
    Sponsored by:	Advanced Micro Devices (AMD)
    MFC after:	1 week
    kostikbel authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    1670a9f View commit details
    Browse the repository at this point in the history
  140. tcp: improve blackhole support

    There are two improvements to the TCP blackhole support:
    (1) If net.inet.tcp.blackhole is set to 2, also sent no RST whenever
        a segment is received on an existing closed socket or if there is
        a port mismatch when using UDP encapsulation.
    (2) If net.inet.tcp.blackhole is set to 3, no RST segment is sent in
        response to incoming segments on closed sockets or in response to
        unexpected segments on listening sockets.
    Thanks to gallatin@ for suggesting such an improvement.
    
    Reviewed by:		gallatin
    MFC after:		1 week
    Sponsored by:		Netflix, Inc.
    Differential Revision:	https://reviews.freebsd.org/D45304
    tuexen authored and bsdjhb committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    04ac01d View commit details
    Browse the repository at this point in the history