-
Notifications
You must be signed in to change notification settings - Fork 60
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
Merge FreeBSD 2024-05-24 #2212
Commits on May 22, 2024
-
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 committedMay 22, 2024 Configuration menu - View commit details
-
Copy full SHA for d1af434 - Browse repository at this point
Copy the full SHA d1af434View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 0115ad6 - Browse repository at this point
Copy the full SHA 0115ad6View commit details -
ioclt -> ioctl. <blush> Fixes: 08b4520 Noticed by: Thomas Mueller and John W. De Boskey Pointy hat to: imp Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for 58e44aa - Browse repository at this point
Copy the full SHA 58e44aaView commit details -
Also remove not needed inclusion of sys/cdefs.h. Sponsored by: The FreeBSD Foundation MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 63f18b3 - Browse repository at this point
Copy the full SHA 63f18b3View commit details -
mqueuefs: uma_zfree() can be postponed until mqfs sx mi_lock is dropped
Sponsored by: The FreeBSD Foundation MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for b6f4a3f - Browse repository at this point
Copy the full SHA b6f4a3fView commit details -
mqueuefs: mark newly allocated vnode as constructed, under the lock
Sponsored by: The FreeBSD Foundation MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for f0a4dd6 - Browse repository at this point
Copy the full SHA f0a4dd6View commit details -
snd_hda: Add patch for Asus UX331UAL
PR: 242802 MFC after: 1 day Differential Revision: https://reviews.freebsd.org/D45238
Configuration menu - View commit details
-
Copy full SHA for 93ad59a - Browse repository at this point
Copy the full SHA 93ad59aView commit details -
These files don't need sysctl.h, so remove it. Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for 1e84b85 - Browse repository at this point
Copy the full SHA 1e84b85View commit details
Commits on May 23, 2024
-
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
Configuration menu - View commit details
-
Copy full SHA for e07f917 - Browse repository at this point
Copy the full SHA e07f917View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 5d980fa - Browse repository at this point
Copy the full SHA 5d980faView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 0e80798 - Browse repository at this point
Copy the full SHA 0e80798View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 67c89b2 - Browse repository at this point
Copy the full SHA 67c89b2View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for e3b94b3 - Browse repository at this point
Copy the full SHA e3b94b3View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 1ab62c8 - Browse repository at this point
Copy the full SHA 1ab62c8View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 425a7bc - Browse repository at this point
Copy the full SHA 425a7bcView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 9fc5e3f - Browse repository at this point
Copy the full SHA 9fc5e3fView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for d76ef58 - Browse repository at this point
Copy the full SHA d76ef58View commit details -
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 committedMay 23, 2024 Configuration menu - View commit details
-
Copy full SHA for 56a8aca - Browse repository at this point
Copy the full SHA 56a8acaView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 61b07f8 - Browse repository at this point
Copy the full SHA 61b07f8View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for fb9013f - Browse repository at this point
Copy the full SHA fb9013fView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 49086aa - Browse repository at this point
Copy the full SHA 49086aaView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 6729e8a - Browse repository at this point
Copy the full SHA 6729e8aView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for fcc5fa0 - Browse repository at this point
Copy the full SHA fcc5fa0View commit details -
Fix "version introduced" in two manual pages
Signed-off-by: Tom Hukins <[email protected]> Reviewed by: imp Pull Request: freebsd/freebsd-src#1252
Configuration menu - View commit details
-
Copy full SHA for 2ce32ab - Browse repository at this point
Copy the full SHA 2ce32abView commit details -
etherswitch.4: Remove non-existent manual pages
Signed-off-by: Tom Hukins <[email protected]> Reviewed by: imp Pull Request: freebsd/freebsd-src#1253
Configuration menu - View commit details
-
Copy full SHA for 2c9f851 - Browse repository at this point
Copy the full SHA 2c9f851View commit details -
etherswitch.4: List manual pages alphabetically
Signed-off-by: Tom Hukins <[email protected]> Reviewed by: imp Pull Request: freebsd/freebsd-src#1253
Configuration menu - View commit details
-
Copy full SHA for 083d149 - Browse repository at this point
Copy the full SHA 083d149View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for be3631b - Browse repository at this point
Copy the full SHA be3631bView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for a5f0341 - Browse repository at this point
Copy the full SHA a5f0341View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 3d7c8f0 - Browse repository at this point
Copy the full SHA 3d7c8f0View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 0d37895 - Browse repository at this point
Copy the full SHA 0d37895View commit details -
mqueue: Add sysctl for default_maxmsg & default_msgsize and fix descr…
…iptions Reviewed by: imp, kib Pull Request: freebsd/freebsd-src#1248
Configuration menu - View commit details
-
Copy full SHA for acb7a4d - Browse repository at this point
Copy the full SHA acb7a4dView commit details -
linprocfs: Add support for proc/sys/fs/mqueue/*
Reviewed by: imp, kib Pull Request: freebsd/freebsd-src#1248
Configuration menu - View commit details
-
Copy full SHA for 04d3f8e - Browse repository at this point
Copy the full SHA 04d3f8eView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for ddbfb54 - Browse repository at this point
Copy the full SHA ddbfb54View commit details -
linux: Fix linux_mq_notify_args & linux_timer_create_args
Reviewed by: imp, kib Pull Request: freebsd/freebsd-src#1248
Configuration menu - View commit details
-
Copy full SHA for 427db2c - Browse repository at this point
Copy the full SHA 427db2cView commit details -
linux: Export linux_common_openflags()
Reviewed by: imp, kib Pull Request: freebsd/freebsd-src#1248
Configuration menu - View commit details
-
Copy full SHA for 9c7b1bf - Browse repository at this point
Copy the full SHA 9c7b1bfView commit details -
linux: Export linux_convert_l_sigevent
Reviewed by: imp, kib Pull Request: freebsd/freebsd-src#1248
Configuration menu - View commit details
-
Copy full SHA for 86e43b5 - Browse repository at this point
Copy the full SHA 86e43b5View commit details -
mqueue: Export some functions to be used by Linuxulator
Reviewed by: imp, kib Pull Request: freebsd/freebsd-src#1248
Configuration menu - View commit details
-
Copy full SHA for 289b2d6 - Browse repository at this point
Copy the full SHA 289b2d6View commit details -
mqueue: Introduce kern_kmq_timedreceive & kern_kmq_timedsend
Reviewed by: imp, kib Pull Request: freebsd/freebsd-src#1248
Configuration menu - View commit details
-
Copy full SHA for e30621d - Browse repository at this point
Copy the full SHA e30621dView commit details -
linux: Support POSIX message queues
Reviewed by: imp, kib Pull Request: freebsd/freebsd-src#1248
Configuration menu - View commit details
-
Copy full SHA for 97add68 - Browse repository at this point
Copy the full SHA 97add68View commit details -
linux: Update linux manpage to mention mqueuefs
Reviewed by: imp, kib Pull Request: freebsd/freebsd-src#1248
Configuration menu - View commit details
-
Copy full SHA for 9a9677e - Browse repository at this point
Copy the full SHA 9a9677eView commit details -
Configuration menu - View commit details
-
Copy full SHA for bedbaee - Browse repository at this point
Copy the full SHA bedbaeeView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 2356b60 - Browse repository at this point
Copy the full SHA 2356b60View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 29efb3d - Browse repository at this point
Copy the full SHA 29efb3dView commit details -
Merge commit '29efb3dcaedd9cbabc6f96f35545baf2c8b28501'
Configuration menu - View commit details
-
Copy full SHA for 9d3df31 - Browse repository at this point
Copy the full SHA 9d3df31View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for fe136ae - Browse repository at this point
Copy the full SHA fe136aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for c6bcacc - Browse repository at this point
Copy the full SHA c6bcaccView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 87bf0aa - Browse repository at this point
Copy the full SHA 87bf0aaView commit details -
netinet/icmp6: add PREF64 definitions (RFC 8781)
Reviewed by: imp, glebius (prior suggetions done) Pull Request: freebsd/freebsd-src#1206
Configuration menu - View commit details
-
Copy full SHA for 1e8eb41 - Browse repository at this point
Copy the full SHA 1e8eb41View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 77f06c4 - Browse repository at this point
Copy the full SHA 77f06c4View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 4b75afe - Browse repository at this point
Copy the full SHA 4b75afeView commit details -
sys/netinet/icmp6.h: Fix build
Fix stdint.h file not found. Fixes: 4b75afe
Configuration menu - View commit details
-
Copy full SHA for 380ee9b - Browse repository at this point
Copy the full SHA 380ee9bView commit details -
sys/netinet/cc: Switch from deprecated random() to prng32()
Related: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277655 Signed-off-by: [email protected] Reviewed by: imp, mav Pull Request: freebsd/freebsd-src#1162
Configuration menu - View commit details
-
Copy full SHA for 674956e - Browse repository at this point
Copy the full SHA 674956eView commit details -
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 committedMay 23, 2024 Configuration menu - View commit details
-
Copy full SHA for d33f5a0 - Browse repository at this point
Copy the full SHA d33f5a0View commit details -
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 committedMay 23, 2024 Configuration menu - View commit details
-
Copy full SHA for 45bce6f - Browse repository at this point
Copy the full SHA 45bce6fView commit details
Commits on May 24, 2024
-
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
Configuration menu - View commit details
-
Copy full SHA for d31ed58 - Browse repository at this point
Copy the full SHA d31ed58View commit details -
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.)
Configuration menu - View commit details
-
Copy full SHA for f81c090 - Browse repository at this point
Copy the full SHA f81c090View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 59aa649 - Browse repository at this point
Copy the full SHA 59aa649View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 02d1521 - Browse repository at this point
Copy the full SHA 02d1521View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for b5e1784 - Browse repository at this point
Copy the full SHA b5e1784View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 1d3c236 - Browse repository at this point
Copy the full SHA 1d3c236View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 32f40fc - Browse repository at this point
Copy the full SHA 32f40fcView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 6d83b38 - Browse repository at this point
Copy the full SHA 6d83b38View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 99c14fb - Browse repository at this point
Copy the full SHA 99c14fbView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for d09ee08 - Browse repository at this point
Copy the full SHA d09ee08View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for a216e31 - Browse repository at this point
Copy the full SHA a216e31View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 3a07933 - Browse repository at this point
Copy the full SHA 3a07933View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 61639bb - Browse repository at this point
Copy the full SHA 61639bbView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for f52481f - Browse repository at this point
Copy the full SHA f52481fView commit details
Commits on May 25, 2024
-
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
Configuration menu - View commit details
-
Copy full SHA for 0cc8506 - Browse repository at this point
Copy the full SHA 0cc8506View commit details -
ipfw: don't build the module if INET not in kernel
Reviewed by: imp Pull Request: freebsd/freebsd-src#1255
Configuration menu - View commit details
-
Copy full SHA for 0e2ce86 - Browse repository at this point
Copy the full SHA 0e2ce86View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for bfd248f - Browse repository at this point
Copy the full SHA bfd248fView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for ff92493 - Browse repository at this point
Copy the full SHA ff92493View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 40d951b - Browse repository at this point
Copy the full SHA 40d951bView commit details
Commits on Aug 30, 2024
-
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
Configuration menu - View commit details
-
Copy full SHA for 498891c - Browse repository at this point
Copy the full SHA 498891cView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for cdaf81c - Browse repository at this point
Copy the full SHA cdaf81cView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 72ef093 - Browse repository at this point
Copy the full SHA 72ef093View commit details -
Sponsored by: The FreeBSD Foundation MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 3637413 - Browse repository at this point
Copy the full SHA 3637413View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 83cfc1c - Browse repository at this point
Copy the full SHA 83cfc1cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a4cdbf6 - Browse repository at this point
Copy the full SHA a4cdbf6View commit details -
[skip ci] Reported by: Claudiu <[email protected]> MFC after: 2 weeks
Configuration menu - View commit details
-
Copy full SHA for a38d583 - Browse repository at this point
Copy the full SHA a38d583View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for e587345 - Browse repository at this point
Copy the full SHA e587345View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 4d601d8 - Browse repository at this point
Copy the full SHA 4d601d8View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for f8bee4d - Browse repository at this point
Copy the full SHA f8bee4dView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for dc89d97 - Browse repository at this point
Copy the full SHA dc89d97View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 978cfa7 - Browse repository at this point
Copy the full SHA 978cfa7View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 204f421 - Browse repository at this point
Copy the full SHA 204f421View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for f4d9e17 - Browse repository at this point
Copy the full SHA f4d9e17View commit details -
kboot: Use C99 initialiers for hostconsole.
Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for c15ca2f - Browse repository at this point
Copy the full SHA c15ca2fView commit details -
boot/i386: Use C99 initializer for textvidc
Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for f260d7c - Browse repository at this point
Copy the full SHA f260d7cView commit details -
i386/spinconsole: Use C99 initializers
Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for 8f7d94b - Browse repository at this point
Copy the full SHA 8f7d94bView commit details -
i386/nullconsole: Use C99 initializers
Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for 7402dfb - Browse repository at this point
Copy the full SHA 7402dfbView commit details -
efi_console: Use c99 initializers
Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for e9ed9ff - Browse repository at this point
Copy the full SHA e9ed9ffView commit details -
uboot: Use c99 initializers for the console struct
Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for d0acae2 - Browse repository at this point
Copy the full SHA d0acae2View commit details -
ofw: Use C99 initializers for the console struct
Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for 036af32 - Browse repository at this point
Copy the full SHA 036af32View commit details -
userboot: Use C99 Initializers for each of the consoles here
Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for e7897ba - Browse repository at this point
Copy the full SHA e7897baView commit details -
c_init returns 0 (success) or 1 (failure). Don't return other values. Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for f1c83de - Browse repository at this point
Copy the full SHA f1c83deView commit details -
loader: stlye(9) nit: Space between return and the value
Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for 0e3628e - Browse repository at this point
Copy the full SHA 0e3628eView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for bda7cb3 - Browse repository at this point
Copy the full SHA bda7cb3View commit details -
Since this is now 'new code' go ahead and reindent for modern project preferences. Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for 1cca615 - Browse repository at this point
Copy the full SHA 1cca615View commit details -
Configuration menu - View commit details
-
Copy full SHA for daff601 - Browse repository at this point
Copy the full SHA daff601View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 0ae229d - Browse repository at this point
Copy the full SHA 0ae229dView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 26e6fce - Browse repository at this point
Copy the full SHA 26e6fceView commit details -
libdiff: Add a test for the truncation issue.
Sponsored by: Klara, Inc. Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D45218
Configuration menu - View commit details
-
Copy full SHA for 3a106e3 - Browse repository at this point
Copy the full SHA 3a106e3View commit details -
diff: Warn if the atomizer detected truncation.
Sponsored by: Klara, Inc. Reviewed by: allanjude, markj Differential Revision: https://reviews.freebsd.org/D45219
Configuration menu - View commit details
-
Copy full SHA for c1b7bd5 - Browse repository at this point
Copy the full SHA c1b7bd5View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for c4a9b18 - Browse repository at this point
Copy the full SHA c4a9b18View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for a6081b2 - Browse repository at this point
Copy the full SHA a6081b2View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 43fddf4 - Browse repository at this point
Copy the full SHA 43fddf4View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 5e77bd3 - Browse repository at this point
Copy the full SHA 5e77bd3View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 87c8163 - Browse repository at this point
Copy the full SHA 87c8163View commit details -
Sponsored by: Klara, Inc.
Configuration menu - View commit details
-
Copy full SHA for ddb9f5a - Browse repository at this point
Copy the full SHA ddb9f5aView commit details
Commits on Sep 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 705c8b0 - Browse repository at this point
Copy the full SHA 705c8b0View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 8f5192e - Browse repository at this point
Copy the full SHA 8f5192eView commit details -
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)
Configuration menu - View commit details
-
Copy full SHA for 2237b4d - Browse repository at this point
Copy the full SHA 2237b4dView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for d227104 - Browse repository at this point
Copy the full SHA d227104View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 49bbcff - Browse repository at this point
Copy the full SHA 49bbcffView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for c1c8b21 - Browse repository at this point
Copy the full SHA c1c8b21View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 7be5c3d - Browse repository at this point
Copy the full SHA 7be5c3dView commit details -
uipc_shm: Fix double check for shmfd->shm_path
Reviewed by: emaste, zlei Pull Request: freebsd/freebsd-src#1250
Configuration menu - View commit details
-
Copy full SHA for d9eac49 - Browse repository at this point
Copy the full SHA d9eac49View commit details -
Configuration menu - View commit details
-
Copy full SHA for d3e92ec - Browse repository at this point
Copy the full SHA d3e92ecView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for b84a001 - Browse repository at this point
Copy the full SHA b84a001View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for e54ffa0 - Browse repository at this point
Copy the full SHA e54ffa0View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 2318c36 - Browse repository at this point
Copy the full SHA 2318c36View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 55ae71e - Browse repository at this point
Copy the full SHA 55ae71eView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 218157a - Browse repository at this point
Copy the full SHA 218157aView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 49fb5f8 - Browse repository at this point
Copy the full SHA 49fb5f8View commit details -
capsicum: allow rfork(2) in capability mode
Reviewed by: brooks, rwatson MFC after: 4 days Differential Revision: https://reviews.freebsd.org/D45040
Configuration menu - View commit details
-
Copy full SHA for 684fd9f - Browse repository at this point
Copy the full SHA 684fd9fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 253f664 - Browse repository at this point
Copy the full SHA 253f664View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for a1d1ed9 - Browse repository at this point
Copy the full SHA a1d1ed9View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 84c17ac - Browse repository at this point
Copy the full SHA 84c17acView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 1de54c8 - Browse repository at this point
Copy the full SHA 1de54c8View commit details -
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.")
Configuration menu - View commit details
-
Copy full SHA for 69e3822 - Browse repository at this point
Copy the full SHA 69e3822View commit details -
MFC after: 3 days Reviewed by: erj Differential Revision: https://reviews.freebsd.org/D43093
Configuration menu - View commit details
-
Copy full SHA for d5563ab - Browse repository at this point
Copy the full SHA d5563abView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 00845f3 - Browse repository at this point
Copy the full SHA 00845f3View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for c5a3a92 - Browse repository at this point
Copy the full SHA c5a3a92View commit details -
unionfs.4: describe better, tag SPDX
Reviewed by: imp,jhb Pull Request: freebsd/freebsd-src#1242
Configuration menu - View commit details
-
Copy full SHA for a9d2d98 - Browse repository at this point
Copy the full SHA a9d2d98View commit details -
smb.4/smbfs.4: distinguishable descriptions, +SPDX
Reviewed by: imp,jhb Pull Request: freebsd/freebsd-src#1241
Configuration menu - View commit details
-
Copy full SHA for 2105d7a - Browse repository at this point
Copy the full SHA 2105d7aView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for b3ef1df - Browse repository at this point
Copy the full SHA b3ef1dfView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for a424dd2 - Browse repository at this point
Copy the full SHA a424dd2View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 1fdd3ed - Browse repository at this point
Copy the full SHA 1fdd3edView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for fac5569 - Browse repository at this point
Copy the full SHA fac5569View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for e6219f2 - Browse repository at this point
Copy the full SHA e6219f2View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 1d117be - Browse repository at this point
Copy the full SHA 1d117beView commit details -
linprocfs: Add support for proc/sysvipc/{msg,sem,shm}
Reviewed by: imp,kib Pull Request: freebsd/freebsd-src#1232
Configuration menu - View commit details
-
Copy full SHA for 2bc0ffc - Browse repository at this point
Copy the full SHA 2bc0ffcView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 3d23c88 - Browse repository at this point
Copy the full SHA 3d23c88View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 19239bc - Browse repository at this point
Copy the full SHA 19239bcView commit details -
Obtained from: Fudo Security Reviewed by: asomers, imp Approved by: oshogbo (mentor) Differential Revision: https://reviews.freebsd.org/D45247
Configuration menu - View commit details
-
Copy full SHA for f92cd63 - Browse repository at this point
Copy the full SHA f92cd63View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2adc1e2 - Browse repository at this point
Copy the full SHA 2adc1e2View commit details -
capsicum: SIGTRAP is delivered also on ECAPMODE error.
Approved by: oshogbo (mentor)
Configuration menu - View commit details
-
Copy full SHA for d763d5f - Browse repository at this point
Copy the full SHA d763d5fView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for c94e14c - Browse repository at this point
Copy the full SHA c94e14cView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 962259d - Browse repository at this point
Copy the full SHA 962259dView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 8870de8 - Browse repository at this point
Copy the full SHA 8870de8View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for cb4706d - Browse repository at this point
Copy the full SHA cb4706dView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 9be7904 - Browse repository at this point
Copy the full SHA 9be7904View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for e6aec3f - Browse repository at this point
Copy the full SHA e6aec3fView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for b9677da - Browse repository at this point
Copy the full SHA b9677daView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for efc642d - Browse repository at this point
Copy the full SHA efc642dView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for b71e632 - Browse repository at this point
Copy the full SHA b71e632View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for fd882a2 - Browse repository at this point
Copy the full SHA fd882a2View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 3029951 - Browse repository at this point
Copy the full SHA 3029951View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for b229332 - Browse repository at this point
Copy the full SHA b229332View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for bdc91fd - Browse repository at this point
Copy the full SHA bdc91fdView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for c2b6c58 - Browse repository at this point
Copy the full SHA c2b6c58View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 15bc373 - Browse repository at this point
Copy the full SHA 15bc373View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 52d4963 - Browse repository at this point
Copy the full SHA 52d4963View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2af6d72 - Browse repository at this point
Copy the full SHA 2af6d72View commit details -
arm64: Return newline at the end of NOTES back
It fixes LINT kernel build after ac4ddc4. MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for b0fea10 - Browse repository at this point
Copy the full SHA b0fea10View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 7e1d818 - Browse repository at this point
Copy the full SHA 7e1d818View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 20f0011 - Browse repository at this point
Copy the full SHA 20f0011View commit details -
Reported by: Gary Jennejohn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 14fe6bb - Browse repository at this point
Copy the full SHA 14fe6bbView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for a603295 - Browse repository at this point
Copy the full SHA a603295View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for cd1ce81 - Browse repository at this point
Copy the full SHA cd1ce81View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 8c1d0e5 - Browse repository at this point
Copy the full SHA 8c1d0e5View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 51a4fba - Browse repository at this point
Copy the full SHA 51a4fbaView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 8591fea - Browse repository at this point
Copy the full SHA 8591feaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 47cf762 - Browse repository at this point
Copy the full SHA 47cf762View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 9a7e81e - Browse repository at this point
Copy the full SHA 9a7e81eView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 4025932 - Browse repository at this point
Copy the full SHA 4025932View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 3b44ebd - Browse repository at this point
Copy the full SHA 3b44ebdView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 5d5bf91 - Browse repository at this point
Copy the full SHA 5d5bf91View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for ea5a1a5 - Browse repository at this point
Copy the full SHA ea5a1a5View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 515cafb - Browse repository at this point
Copy the full SHA 515cafbView commit details -
ioclt -> ioctl. <blush> Fixes: 08b4520 Noticed by: Thomas Mueller and John W. De Boskey Pointy hat to: imp Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for 34e9248 - Browse repository at this point
Copy the full SHA 34e9248View commit details -
Also remove not needed inclusion of sys/cdefs.h. Sponsored by: The FreeBSD Foundation MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 4a8894e - Browse repository at this point
Copy the full SHA 4a8894eView commit details -
mqueuefs: uma_zfree() can be postponed until mqfs sx mi_lock is dropped
Sponsored by: The FreeBSD Foundation MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 9c59d2e - Browse repository at this point
Copy the full SHA 9c59d2eView commit details -
mqueuefs: mark newly allocated vnode as constructed, under the lock
Sponsored by: The FreeBSD Foundation MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for d54a5a0 - Browse repository at this point
Copy the full SHA d54a5a0View commit details -
snd_hda: Add patch for Asus UX331UAL
PR: 242802 MFC after: 1 day Differential Revision: https://reviews.freebsd.org/D45238
Configuration menu - View commit details
-
Copy full SHA for 9a809a8 - Browse repository at this point
Copy the full SHA 9a809a8View commit details -
These files don't need sysctl.h, so remove it. Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for c326176 - Browse repository at this point
Copy the full SHA c326176View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 9a01816 - Browse repository at this point
Copy the full SHA 9a01816View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 415f36c - Browse repository at this point
Copy the full SHA 415f36cView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 528806d - Browse repository at this point
Copy the full SHA 528806dView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 7ceb55e - Browse repository at this point
Copy the full SHA 7ceb55eView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for e349ce7 - Browse repository at this point
Copy the full SHA e349ce7View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for b015080 - Browse repository at this point
Copy the full SHA b015080View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for caf4329 - Browse repository at this point
Copy the full SHA caf4329View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 0dadd62 - Browse repository at this point
Copy the full SHA 0dadd62View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 319d963 - Browse repository at this point
Copy the full SHA 319d963View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for da55136 - Browse repository at this point
Copy the full SHA da55136View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 79167f5 - Browse repository at this point
Copy the full SHA 79167f5View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for f397d7a - Browse repository at this point
Copy the full SHA f397d7aView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for d683b17 - Browse repository at this point
Copy the full SHA d683b17View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for d9f24e7 - Browse repository at this point
Copy the full SHA d9f24e7View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 9170e3b - Browse repository at this point
Copy the full SHA 9170e3bView commit details -
Fix "version introduced" in two manual pages
Signed-off-by: Tom Hukins <[email protected]> Reviewed by: imp Pull Request: freebsd/freebsd-src#1252
Configuration menu - View commit details
-
Copy full SHA for 29a08d9 - Browse repository at this point
Copy the full SHA 29a08d9View commit details -
etherswitch.4: Remove non-existent manual pages
Signed-off-by: Tom Hukins <[email protected]> Reviewed by: imp Pull Request: freebsd/freebsd-src#1253
Configuration menu - View commit details
-
Copy full SHA for 39550b1 - Browse repository at this point
Copy the full SHA 39550b1View commit details -
etherswitch.4: List manual pages alphabetically
Signed-off-by: Tom Hukins <[email protected]> Reviewed by: imp Pull Request: freebsd/freebsd-src#1253
Configuration menu - View commit details
-
Copy full SHA for 4f38351 - Browse repository at this point
Copy the full SHA 4f38351View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for c0c0c84 - Browse repository at this point
Copy the full SHA c0c0c84View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 501c327 - Browse repository at this point
Copy the full SHA 501c327View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 924b892 - Browse repository at this point
Copy the full SHA 924b892View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for b456058 - Browse repository at this point
Copy the full SHA b456058View commit details -
mqueue: Add sysctl for default_maxmsg & default_msgsize and fix descr…
…iptions Reviewed by: imp, kib Pull Request: freebsd/freebsd-src#1248
Configuration menu - View commit details
-
Copy full SHA for dbce960 - Browse repository at this point
Copy the full SHA dbce960View commit details -
linprocfs: Add support for proc/sys/fs/mqueue/*
Reviewed by: imp, kib Pull Request: freebsd/freebsd-src#1248
Configuration menu - View commit details
-
Copy full SHA for cead830 - Browse repository at this point
Copy the full SHA cead830View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for a4c379a - Browse repository at this point
Copy the full SHA a4c379aView commit details -
linux: Fix linux_mq_notify_args & linux_timer_create_args
Reviewed by: imp, kib Pull Request: freebsd/freebsd-src#1248
Configuration menu - View commit details
-
Copy full SHA for 9d1611a - Browse repository at this point
Copy the full SHA 9d1611aView commit details -
linux: Export linux_common_openflags()
Reviewed by: imp, kib Pull Request: freebsd/freebsd-src#1248
Configuration menu - View commit details
-
Copy full SHA for 650128c - Browse repository at this point
Copy the full SHA 650128cView commit details -
linux: Export linux_convert_l_sigevent
Reviewed by: imp, kib Pull Request: freebsd/freebsd-src#1248
Configuration menu - View commit details
-
Copy full SHA for 1f1d6f9 - Browse repository at this point
Copy the full SHA 1f1d6f9View commit details -
mqueue: Export some functions to be used by Linuxulator
Reviewed by: imp, kib Pull Request: freebsd/freebsd-src#1248
Configuration menu - View commit details
-
Copy full SHA for d872b2d - Browse repository at this point
Copy the full SHA d872b2dView commit details -
mqueue: Introduce kern_kmq_timedreceive & kern_kmq_timedsend
Reviewed by: imp, kib Pull Request: freebsd/freebsd-src#1248
Configuration menu - View commit details
-
Copy full SHA for eb6c739 - Browse repository at this point
Copy the full SHA eb6c739View commit details -
linux: Support POSIX message queues
Reviewed by: imp, kib Pull Request: freebsd/freebsd-src#1248
Configuration menu - View commit details
-
Copy full SHA for 4f5f9d2 - Browse repository at this point
Copy the full SHA 4f5f9d2View commit details -
linux: Update linux manpage to mention mqueuefs
Reviewed by: imp, kib Pull Request: freebsd/freebsd-src#1248
Configuration menu - View commit details
-
Copy full SHA for d1facae - Browse repository at this point
Copy the full SHA d1facaeView commit details -
Configuration menu - View commit details
-
Copy full SHA for f57cd77 - Browse repository at this point
Copy the full SHA f57cd77View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for f68962b - Browse repository at this point
Copy the full SHA f68962bView commit details -
Merge commit '29efb3dcaedd9cbabc6f96f35545baf2c8b28501'
Configuration menu - View commit details
-
Copy full SHA for c3726d4 - Browse repository at this point
Copy the full SHA c3726d4View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 34c8dcc - Browse repository at this point
Copy the full SHA 34c8dccView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 5f1cc1b - Browse repository at this point
Copy the full SHA 5f1cc1bView commit details -
netinet/icmp6: add PREF64 definitions (RFC 8781)
Reviewed by: imp, glebius (prior suggetions done) Pull Request: freebsd/freebsd-src#1206
Configuration menu - View commit details
-
Copy full SHA for 33d3f35 - Browse repository at this point
Copy the full SHA 33d3f35View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 4e1af7f - Browse repository at this point
Copy the full SHA 4e1af7fView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 88a2268 - Browse repository at this point
Copy the full SHA 88a2268View commit details -
sys/netinet/icmp6.h: Fix build
Fix stdint.h file not found. Fixes: 4b75afe
Configuration menu - View commit details
-
Copy full SHA for 1b99fea - Browse repository at this point
Copy the full SHA 1b99feaView commit details -
sys/netinet/cc: Switch from deprecated random() to prng32()
Related: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277655 Signed-off-by: [email protected] Reviewed by: imp, mav Pull Request: freebsd/freebsd-src#1162
Configuration menu - View commit details
-
Copy full SHA for 2512344 - Browse repository at this point
Copy the full SHA 2512344View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for b34ec53 - Browse repository at this point
Copy the full SHA b34ec53View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 2ccd47d - Browse repository at this point
Copy the full SHA 2ccd47dView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for aea55eb - Browse repository at this point
Copy the full SHA aea55ebView commit details -
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.)
Configuration menu - View commit details
-
Copy full SHA for ccd8997 - Browse repository at this point
Copy the full SHA ccd8997View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for b2442b8 - Browse repository at this point
Copy the full SHA b2442b8View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for eedf15a - Browse repository at this point
Copy the full SHA eedf15aView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 37a55e8 - Browse repository at this point
Copy the full SHA 37a55e8View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for ff41826 - Browse repository at this point
Copy the full SHA ff41826View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 71c6ce4 - Browse repository at this point
Copy the full SHA 71c6ce4View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 729af54 - Browse repository at this point
Copy the full SHA 729af54View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 25e6981 - Browse repository at this point
Copy the full SHA 25e6981View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 09b89f6 - Browse repository at this point
Copy the full SHA 09b89f6View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for a3f4227 - Browse repository at this point
Copy the full SHA a3f4227View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 42c2719 - Browse repository at this point
Copy the full SHA 42c2719View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 685c1f6 - Browse repository at this point
Copy the full SHA 685c1f6View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for a0ed6c8 - Browse repository at this point
Copy the full SHA a0ed6c8View commit details -
ipfw: don't build the module if INET not in kernel
Reviewed by: imp Pull Request: freebsd/freebsd-src#1255
Configuration menu - View commit details
-
Copy full SHA for 28fcfae - Browse repository at this point
Copy the full SHA 28fcfaeView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for a557796 - Browse repository at this point
Copy the full SHA a557796View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 0a3df92 - Browse repository at this point
Copy the full SHA 0a3df92View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 1670a9f - Browse repository at this point
Copy the full SHA 1670a9fView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 04ac01d - Browse repository at this point
Copy the full SHA 04ac01dView commit details