aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* lib: Automated cleanup of cdefs and other formattingWarner Losh2023-11-27239-248/+6
| | | | | | | | | | | | | | | | Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
* include: Automated cleanup of cdefs and other formattingWarner Losh2023-11-276-7/+1
| | | | | | | | | | | | | | | | Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
* bin: Automated cleanup of cdefs and other formattingWarner Losh2023-11-2769-180/+0
| | | | | | | | | | | | | | | | Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
* Remove copyright strings ifdef'd outWarner Losh2023-11-27227-2003/+0
| | | | | | | | | | | We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals. These copyright strings are present in the comments and are largely from CSRG's attempt at adding their copyright to every binary file (which modern interpretations of the license doesn't require). Sponsored by: Netflix
* sccs: Manual changesWarner Losh2023-11-2764-342/+9
| | | | | | | | | | | | | | | For the uncommon items: Go through the tree and remove sccs tags that didn't fit any nice pattern. If in the neighborhood, other SCM tags were removed when they were detritis of long-ago CVS somehow in the early mists of the project. Some adjacent copyrights stringswere removed (they duplicated the copyright notices in the file). This also removed non-standard formations of omission of SCCS tags (usually by adding an extra #if 0 somewhere. After this commit, a number of strings tagged with the 'what' @(#) prefix remain, but they are primarily copyright notices. Sponsored by: Netflix
* usr.sbin: Remove ancient SCCS tags.Warner Losh2023-11-27174-357/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* usr.bin: Remove ancient SCCS tags.Warner Losh2023-11-27631-1424/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* tests: Remove ancient SCCS tags.Warner Losh2023-11-271115-3328/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* sys: Remove ancient SCCS tags.Warner Losh2023-11-27628-1332/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* stand: Remove ancient SCCS tags.Warner Losh2023-11-2733-71/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* share: Remove ancient SCCS tags.Warner Losh2023-11-27420-759/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* secure: Remove ancient SCCS tags.Warner Losh2023-11-27792-1584/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* sbin: Remove ancient SCCS tags.Warner Losh2023-11-27181-449/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* libexec: Remove ancient SCCS tags.Warner Losh2023-11-2757-144/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* lib: Remove ancient SCCS tags.Warner Losh2023-11-271004-2251/+2
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* include: Remove ancient SCCS tags.Warner Losh2023-11-2783-173/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* bin: Remove ancient SCCS tags.Warner Losh2023-11-27191-432/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* misc: Remove ancient SCCS tags.Warner Losh2023-11-279-14/+0
| | | | | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. This is for the misfits that have only a few: COPYRIGHT, gnu, tools, rescue, and etc. Sponsored by: Netflix
* dirdeps: Update/fix Makefile.depend* for toolchainKa Ho Ng2023-11-2732-26/+60
| | | | This fixes make pseudo/toolchain.
* dirdeps: Remove $FreeBSD$Ka Ho Ng2023-11-261-1/+0
| | | | | | There was a $FreeBSD$ line in lib/liblua/Makefile.depend. MFC after: 3 days
* iostat.8: Better wording for some use casesGordon Bergling2023-11-261-18/+46
| | | | | | | | | | The iostat(8) manual page should be more specific when using options. Also extented the BUGS section. PR: 153012 Reviewed by: bcr MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D42633
* lockf: switch to strtonum() for parsing timeoutKyle Evans2023-11-261-5/+7
| | | | | | | | | | Convert waitsec to a long long to be able to hold the full domain of alarm(3) timeout on all platforms, and let strtonum(3) handle the input validation. strtonum(3) also happens to provide a neater interface for error handling, and it already includes our pre-existing empty input check. Sponsored by: Klara, Inc.
* lockf: allow locking file descriptorsKyle Evans2023-11-263-16/+266
| | | | | | | | | | | | This is most useful inside a shell script, allowing one to lock just portions of a script rather than having to wrap the entire script in a lock. PR: 262738 Reviewed by: 0mp, allanjude (both previous versions) Co-authored-by: Daniel O'Connor <darius@dons.net.au> Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D42718
* lockf: add some testsKyle Evans2023-11-264-0/+161
| | | | | | | | | | Provide basic coverage for the existing options, nothing deeper (e.g., pipe closing behavior) is tested in this set. Reviewed by: allanjude Feedback from: des Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D42714
* lockf: don't hold stdin/stdout/stderr openAlexander Melkov2023-11-261-2/+5
| | | | | | | | | | | | | | | | | | | None of these are essential in the lockf monitor (parent post-fork), so close them to maintain the illusion that lockf hasn't been inserted into the pipeline. This ensures that the correct effects happen on other programs in the pipeline if the locked command closes or redirects these elsewhere. The original patch used -s to close stdout/stderr rather than closing them unconditionally, but it's not clear that we really care that much. kevans dropped that part when taking the patch, patch is otherwise by listed author. PR: 112379 Reviewed by: 0mp, allanjude (both earlier version), kevans Feedback from: des Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D42713
* lockf: correct omission in the usage statementKyle Evans2023-11-261-2/+2
| | | | | | | | | | | The -w flag was added without being noted in the usage statement; fix that now. While we're here, re-sort the getopt() string. Reviewed by: 0mp, allanjude, des Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D42712
* lockf: hide unavailable error with -n -sKyle Evans2023-11-261-7/+11
| | | | | | | | | | | The error message is expected, allow -s to suppress just that one since it would loosely fall under the definition of "failure to acquire the lock" described in the manpage for the -s option. Reviewed by: 0mp, allanjude Feedback from: des Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D42711
* Update leap-seconds to leap-seconds.3676924800Xin LI2023-11-261-4/+4
| | | | | Obtained from: ftp://ftp.boulder.nist.gov/pub/time/leap-seconds.3676924800 MFC after: 3 days
* MFV: xz 5.4.5Xin LI2023-11-2636-174/+1298
|\ | | | | | | MFC after: 2 weeks
| * Vendor import of xz 5.4.5 (trimmed)vendor/xz/5.4.5Xin LI2023-11-2633-168/+1295
| |
* | Do not install kernel and modules with executable access bit setKonstantin Belousov2023-11-251-1/+1
| | | | | | | | | | | | | | | | | | They are not executables and cannot be activated by kernel. Reviewed by: emaste, imp Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D42768
* | Set installed kernel and driver files access modes using KMODMODE varKonstantin Belousov2023-11-251-5/+5
| | | | | | | | | | | | | | Reviewed by: emaste, imp Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D42768
* | new-bus: Disable assertions for rman mismatches for activate/deactivateJohn Baldwin2023-11-251-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bus drivers which use an rman to sub-divide a resource allocated from a parent bus should handle mapping requests (and activate/deactivate requests) for those sub-allocated resources by doing a subset mapping of the resource allocated from the parent (and then using this to handle activate/deactivate requests). However, not all bus drivers which use internal rmans (such as acpi(4) and pci_pci(4)) do that since not all nexus drivers support bus_map/unmap. Eventually bus drivers should be updated to do this properly at which point these assertions can be reenabled. Reported by: delphij, kib
* | stress2: Do not make assumptions about the value of UFS_LINK_MAXPeter Holm2023-11-253-4/+7
| |
* | etcupdate: temporarily comment out one tzsetup testEd Maste2023-11-241-2/+3
| | | | | | | | | | This test fails after tzsetup was changed to symlink rather than copy the zoneinfo file (5e16809c953f).
* | aarch64 nexus: Fix a mismerge in nexus_activate_resourceJohn Baldwin2023-11-241-3/+1
| | | | | | | | Fixes: 658501d25930 aarch64 nexus: Use bus_generic_rman_*_resource
* | rc.d/ldconfig: Remove stray ;;Cy Schubert2023-11-241-1/+0
| | | | | | | | | | | | Stray ";;" causes the ldconfig rc script to fail at boot. Remove it. Fixes: 73902ed85ab7
* | new-bus: Add comments for resource_*_map_request*John Baldwin2023-11-241-0/+21
| | | | | | | | Requested by: mhorne
* | new-bus: Add a comment for bus_generic_get_domainJohn Baldwin2023-11-241-0/+7
| |
* | stand: Retire setting hw.ata.wc: it doesn't exist.Warner Losh2023-11-243-5/+0
| | | | | | | | | | | | | | hw.ata.wc was disconnected as part ot the 2013 cam-ification of ata. No need to continue setting it. It's been unused in FreeBSD 10.x and newer. Sponsored by: Netflix
* | ata: Retire unused variable / externsWarner Losh2023-11-242-6/+1
| | | | | | | | | | | | | | When looking for something else, I noticed these are no longer used anywhere. Sponsored by: Netflix
* | stand: Retire setting hw.eisa_slots.Warner Losh2023-11-243-5/+0
| | | | | | | | | | | | | | | | | | When the eisa code was removed in 2017, prior to the stable/12 branch, setting hw.eisa_slots became a nop. The oldest supported branch doesn't have eisa at all. The need to set it manually on boot disappeared largely by 2000... Sponsored by: Netflix
* | vt(4): Always call vt_window_switch() in vtterm_cnungrab()Jean-Sébastien Pédron2023-11-241-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | [Why] This ensures that vtterm_cnungrab() is the mirror of vtterm_cngrab(). And the latter always call vt_window_switch() and thus the backend's vd_postswitch(). This makes sure that whatever the backend did during vtterm_cngrab(), it can undo it during vtterm_cnungrab(). Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D42752
* | vt(4): Call vd_postswitch callback regardless of the current windowJean-Sébastien Pédron2023-11-241-2/+0
| | | | | | | | | | | | | | | | | | | | [Why] We want the same behavior at the backend level, regardless if we need to switch the current window or not. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D42751
* | vt(4): New bitblt_text variant making a copy before unlocking vt_bufJean-Sébastien Pédron2023-11-242-14/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [Why] In the DRM drivers and the integration with vt(4), we need to execute DRM code outside of the vtbuf_lock. The reason is that this DRM code acquires locks which can't be acquired when vtbuf_lock, an MTX_SPIN mutex, is already held. [How] A vt(4) backend can now set the `vd_bitblt_after_vtbuf_unlock` flag to true if it wants to be called outside of vt_buf_lock. In this case, vt(4) uses an internal version of bitblt_text that uses the `vd_drawn` arrays, plus a new `vd_pos_to_flush` array, to track characters to draw/refresh. This internal version then uses the backend's bitblt_bmp callback to draw the characters after vt_buf has been unlocked. Drawing borders and CPU logos is also deferred after the vt_buf lock is released for the same reason. We introduce another lock (a default mutex), only used when the `vd_bitblt_after_vtbuf_unlock` flag is set, to replace part the role of the vt_buf lock and manage concurrent calls to vt_flush(). The `SC_NO_CONSDRAWN` define is dropped because we now always need the `vd_drawn` arrays. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D42057
* | vt(4): Skip vt_window_switch() for nested panicsJean-Sébastien Pédron2023-11-241-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | [Why] The same protection was added to vt_flush() in the previous commit. We want the same one in vt_window_switch(): if e.g. the DRM driver panics while handling a call to vt_window_switch(), we don't want to recursively call vt_window_switch() again and trigger another panic. Reviewed by: imp, manu Approved by: imp, manu Differential Revision: https://reviews.freebsd.org/D42750
* | vt(4): Skip vt_flush() for nested panicsJean-Sébastien Pédron2023-11-241-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [Why] If there is a problem with DRM drivers or in their integration with vt(4) and displaying something on the console triggers a panic, there is a high chance that displaying that panic will trigger another one, recursively. [How] If vt_flush() is called and it detects is is called resursively from another panic, it return immediately, doing nothing, to avoid the risk of triggering another panic. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D42056
* | linuxkpi: `GFP_KERNEL` equals `M_NOWAIT` nowJean-Sébastien Pédron2023-11-246-11/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... instead of `M_WAITOK`. [Why] The reason is that in some places in the DRM drivers (in particular, the framebuffer management code), kmalloc() is called from a non-sleepable context, such as after a call to mtx_lock(8) with an MTX_DEF mutex. If `GFP_KERNEL` is defined as `M_WAITOK`, we hit an assertion from witness(4). [How] The definition of `GFP_KERNEL` is changed to `M_NOWAIT`. This means that callers should verify the return value of kmalloc(). Fortunately, this is always the case in Linux. Reviewed by: bz, emaste, manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D42054
* | riscv nexus: Sort bus_set_resource in DEVMETHOD tableJohn Baldwin2023-11-241-1/+1
| |
* | riscv nexus: Use bus_generic_rman_*_resourceJohn Baldwin2023-11-241-107/+51
| | | | | | | | | | | | | | | | Custom activate/deactivate_resource methods are still needed to handle IRQ resources. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D42742