aboutsummaryrefslogtreecommitdiff
path: root/share
Commit message (Collapse)AuthorAgeFilesLines
* loader: Add two new build knobs for x86 BIOS loadersWarner Losh2026-07-102-1/+9
| | | | | | | | | | | | We have two sets of BIOS loaders: One that lives in stand/i386 and one that lives in stand/userboot. Add knows to turn these on/off, with the default being on. These often aren't needed when creating a minimal UEFI system, so add knobs to turn them off. Given light-weight VMs have created a new use cases for these loaders, there's no plans at all to eliminate them. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D58072
* hrfkill: Add driver to report RFKILL button pressAymeric Wibo2026-07-093-0/+84
| | | | | | | | | | | | | | This driver only reports the RFKILL button presses. This is needed for the "airplane" key on some Framework laptops. Reviewed by: wulf, ziaee Event: Halifax Hackathon 202606 Location: vishwin@'s car Co-authored-by: Daniel Shaefer Sponsored by: Framework Computer Inc Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57838
* fwisound: add Apple FireWire audio driverAbdelkader Boudih2026-07-092-0/+97
| | | | | | | | | | | Expose audio capture from Apple FireWire devices as a standard pcm(4)/dsp(4) device via the newpcm framework. (adrian: I've tested this on an isight camera and looped it back to USB speakers via "sox -t oss /dev/dsp3 -t oss /dev/dsp4") Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D58109
* acpi_einj: Support for ACPI error injectionJohn Baldwin2026-07-072-0/+59
| | | | | | | | | | | | This driver parses the ACPI EINJ table and builds a list of instructions associated with known actions. It then exports ioctls to fetch the set of supported errors and inject system errors by executing specific sequences of actions. This can be used to test error reporting facilities for events such as ECC errors. Reviewed by: gallatin Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D58025
* Retire the GNU subtreeDag-Erling Smørgrav2026-07-071-1/+0
| | | | | | | With GNU diff and cdialog gone, this is now an empty shell. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D55425
* Retire dialogDag-Erling Smørgrav2026-07-075-24/+2
| | | | | | | | | | This is the last remaining piece of GPL software in the base system. The installer transitioned to bsddialog four years ago, and the last remaining dialog consumer, dpv, was turned off more than two years ago. Retire dpv, libdpv, libfigpar (used only by dpv), and dialog itself. Reviewed by: dteske Differential Revision: https://reviews.freebsd.org/D55424
* libc/resolv: Add no-debug and no-rotate optionsDag-Erling Smørgrav2026-07-061-0/+12
| | | | | | | These are simply the reverse of the debug and rotate options. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D57926
* libc/resolv: Reimplement the sortlist parserDag-Erling Smørgrav2026-07-061-13/+23
| | | | | | | | | | | | | | | | | When we switched from the BIND4 resolver to the BIND9 resolver, the sortlist parser was inadvertently disabled due to a missing #define, and nobody seemed to notice. The sorting code remained enabled in the resolver, but there was no way to set a sort order. Reimplement the sortlist parser, but correctly, and update the manual accordingly. The new parser accepts IPv4 and IPv6 addresses with or without a mask or prefix length, just like the old one, except IPv6 support was a bit wonky in the original code. Fixes: 5342d17f09a8 ("Update the resolver in libc to BIND9's one.") Relnotes: yes Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D57925
* resolver(5): OverhaulDag-Erling Smørgrav2026-07-061-111/+116
| | | | | | | | | | | | | | | | | | | | | | | * Modernize the markup * Describe the comment syntax * Drop obsolete advice * Capitalize sentences * Improve the language * Replace no_tld_query with no-tld-query; both are supported, but all the other multi-word options use hyphens rather than underscores. * Add missing ENVIRONMENT section * Redo the example MFC after: 1 week Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D57921
* Add myself as ports committer, update mentor/menteeMartin Cracauer2026-07-031-0/+3
| | | | | | | This completes step 5 from Committer's Guide. Approved by: jbo (mentor) Differential Revision: https://reviews.freebsd.org/D57934
* src.conf(5): Suggest using ccache4Dag-Erling Smørgrav2026-07-021-11/+8
| | | | | | | | | | We have separate ports for Ccache 3 and 4. Suggest both, rather than only the Ccache 3 port. Rearrange the text somewhat to avoid an excessively ragged edge on a standard 80-column terminal. MFC after: 1 week Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D58005
* fetch.9: fix a typoBrooks Davis2026-07-011-1/+1
| | | | | | Fixes: a1c52e05f571 ("CHERI: declare fueptr and suptr") Effort: CHERI upstreaming Sponsored by: Innovate UK
* CHERI: add sooptcopyinptr to preserve pointer provenanceBrooks Davis2026-07-011-1/+12
| | | | | | | | | | Most socket options don't involve pointers so make the default sooptcopyin discard provenance and add a sooptcopyinptr that preserves. Reviewed by: markj, emaste Effort: CHERI upstreaming Sponsored by: DARPA, AFRL, Innovate UK Differential Revision: https://reviews.freebsd.org/D57665
* CHERI: declare mem{cpy,move}_dataBrooks Davis2026-07-014-14/+53
| | | | | | | | | | | | | | | | Declare kernel-only, provenance-discarding memcpy_data, and memmove_data APIs intended to copy raw data which does not contain pointers (e.g., buffers on their way to or from network or storage devices). On CHERI architectures, they will explicitly remove tags from capabilities, removing any provenance. This reduces the risk of accidental spread of pointers on CHERI systems. Document that bcopy preserves pointer provenance. Reviewed by: ziaee, kib, adrian, markj Effort: CHERI upstreaming Sponsored by: DARPA, AFRL, Innovate UK Differential Revision: https://reviews.freebsd.org/D57662
* ktls: Add a tunable to disable TLS receiveAndrew Gallatin2026-07-011-1/+3
| | | | | | | | | | | | | | TLS receive offload is really only beneficial for in-kernel use cases (such as NFS over TLS) or when using a hardware offload. In addition, several recent SAs have involved the TLS receive path, but the only current mitigation for those is to disable TLS offload entirely. Reviewed by: ziaee, gallatin, markj Relnotes: yes Sponsored by: Netflix Sponsored by: Chelsio Communications Co-authored-by: John Baldwin <jhb@FreeBSD.org> Differential Revision: https://reviews.freebsd.org/D57974
* Revert "resolver(5): Overhaul"Dag-Erling Smørgrav2026-06-291-100/+97
| | | | This reverts commit 066bef580b21bed9100c727045e1dbfdeb9bf1a9.
* Revert "libc/resolv: Reimplement the sortlist parser"Dag-Erling Smørgrav2026-06-291-20/+13
| | | | This reverts commit 507ab02d751b4aaa7f35f30882299e9908448e53.
* Revert "libc/resolv: Add no-debug and no-rotate options"Dag-Erling Smørgrav2026-06-291-12/+0
| | | | This reverts commit 61697e9cd5cccc367a38f9851efebad4d7c2bb65.
* Revert "Retire dialog"Dag-Erling Smørgrav2026-06-295-1/+23
| | | | This reverts commit 5b2bdadeb6c25c10dac9722fd66a668e14d3b384.
* Revert "Retire the GNU subtree"Dag-Erling Smørgrav2026-06-291-0/+1
| | | | This reverts commit 9cc87ca23d9ccae814bea514aa4bdc791f2d6e46.
* Retire the GNU subtreeDag-Erling Smørgrav2026-06-291-1/+0
| | | | | | With GNU diff and cdialog gone, this is now an empty shell. (cherry picked from commit 151dd62e005119dda24b8ff9b14aa5beaaa681ac)
* Retire dialogDag-Erling Smørgrav2026-06-295-23/+1
| | | | | | | | | This is the last remaining piece of GPL software in the base system. The installer transitioned to bsddialog four years ago, and the last remaining dialog consumer, dpv, was turned off more than two years ago. Retire dpv, libdpv, libfigpar (used only by dpv), and dialog itself. (cherry picked from commit 73bb4a92985d747462d866248c1e7623f7ff1a7f)
* libc/resolv: Add no-debug and no-rotate optionsDag-Erling Smørgrav2026-06-291-0/+12
| | | | These are simply the reverse of the debug and rotate options.
* libc/resolv: Reimplement the sortlist parserDag-Erling Smørgrav2026-06-291-13/+20
| | | | | | | | | | | | | | When we switched from the BIND4 resolver to the BIND9 resolver, the sortlist parser was inadvertently disabled, and nobody noticed. The sorting code remained enabled in the resolver, but there was no way to set a sort order. Reimplement the sortlist parser, but correctly, and update the documentation accordingly. The new parser accepts IPv4 and IPv6 addresses with or without a prefix length. Fixes: 5342d17f09a8 ("Update the resolver in libc to BIND9's one.") Relnotes: yes
* resolver(5): OverhaulDag-Erling Smørgrav2026-06-291-97/+100
| | | | | | | | | | | | | | | | | | | | | * Modernize the markup * Describe the comment syntax * Drop obsolete advice * Capitalize sentences * Improve the language * Replace no_tld_query with no-tld-query; both are supported, but all the other multi-word options use hyphens rather than underscores. * Add missing ENVIRONMENT section * Redo the example MFC after: 1 week
* CHERI: declare fueptr and suptrBrooks Davis2026-06-293-2/+24
| | | | | | | | | | | These should replace fueword and suword when manipulating pointers in memory. On CHERI targets they will be implemented using capability aware instructions and otherwise they are defined to fueword and suword. Reviewed by: kib, markj Effort: CHERI upstreaming Sponsored by: Innovate UK Differential Revision: https://reviews.freebsd.org/D57664
* CHERI: declare copy{in,out}ptr{,_nofault}Brooks Davis2026-06-291-5/+44
| | | | | | | | | | | | | | | | | | | These provenance-preserving functions are to be used when copying objects that are expected to contain pointers. Data buffers which do not contain pointers should be copied by the traditional copyin/copyout functions which *do not* preserve pointer provenance (on CHERI they clear validity tags). NOTE: Going forward, this requires changes when adding new syscalls or ioctl that take pointers to objects containing pointers. Fortunately, the vast majority (>90%) of copyin and copyout statements do not copy pointers and require no change. Failure to make the chance will have no effect on non-CHERI architectures. Reviewed by: kib, markj Effort: CHERI upstreaming Sponsored by: DARPA, AFRL, Innovate UK Differential Revision: https://reviews.freebsd.org/D57663
* pf.conf.5: Fix typoOleksandr Kryvulia2026-06-291-1/+1
| | | | | | | | Fix small typo in pf.conf(5) MFC after: 3 days Reviewed by: ziaee Differential Revision: https://reviews.freebsd.org/D57938
* ntsync.4: be explicit about the effect of automatic vs manual event on waitersKonstantin Belousov2026-06-291-1/+7
| | | | | Sponsored by: The FreeBSD Foundation MFC after: 3 days
* iwlwifi.4, rtw88.4, rtw89.4: Fix xref typosArtem Bunichev2026-06-293-6/+6
| | | | | | | MFC after: 3 days Reviewed by: bz, ziaee Fixes: 0a2f7683bf0c ("man: iwlwifi/rtw88/rtw89: update man pages for Linux v7.0 based updates") Differential Revision: https://reviews.freebsd.org/D57720
* locale: make install Unicode 17.0.0/CLDR 48.2Jose Luis Duran2026-06-285-5/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Data changes: 48.1: - Update RSD (Serbian Dinar) to use 2-digits for non-cash and 0-digits for cash. - Fix issue with tippi and bindi in Punjabi exemplars. - Fix parsing issue in numeric date+time patterns for zh_Hant and yue. - Fix issues with hour cycle display names for several languages. https://cldr.unicode.org/downloads/cldr-48#481-changes 48.2: - Group separator for number formatting was updated to ' in fr-CH consistent with other Swiss locales. - Some fixes to date formats including: Hv available formats were updated to match behavior in CLDR 47 due to web compatibility issues related to current JS capabilities. - Emoji annotations fixes including collisions between emoji short names. - Updated AM/PM for ko & ps to be consistent with how the wide forms are localized. https://cldr.unicode.org/downloads/cldr-48#482-changes MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D57627
* padlock.4: Update slightly for 64-bit hardwareAlexander Ziaee2026-06-281-2/+13
| | | | | | | | | | | | | | - Change the document description to "Via and Zhaoxin CPU crypto driver" - Add a HARDWARE section mentioning these in the hardware release note This manual still needs desperate help, but just this little bit could have saved a lot of confusion. I'd write more if I had information. PR: 295517 Fixes: 14b8531c4ccb8 (Restore padlock_rng the the amd64 build) MFC after: 3 days (to 15 only) Reviewed by: bcr, asomers Differential Revision: https://reviews.freebsd.org/D57920
* pflog: create bpf tapping points without ifnet(9)Kristof Provost2026-06-281-14/+12
| | | | | | | | | | | | | | | | | | | | Just as was done for ipfw's log device stop creating entire struct ifnet's for pflog devices. Create only a bpf_t. This does mean we lose the create/destroy infrastructure provided by the clone interface. Rather than implement this ourselves we allow users to configure the number of pflog interfaces using the net.pflog.if_count sysctl. We default to 8 devices, but allow up to 256. The /etc/rc.d/pflog script will create extra devices as required. While it was possible to rename pflog devices pfctl expected the pflogX name, so it's safe to assume users never did this. Requested by: glebius Reviewed by: glebius Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D57851
* loopback: improve checksum offloadingTimo Völker2026-06-281-13/+10
| | | | | | | | | | | | | | | * Allow disabling IFCAP_RXCSUM_IPV6 or IFCAP_TXCSUM_IPV6. * Do not pretend the checksum is correct by setting the LO_CSUM_SET flags if IFCAP_RXCSUM_IPV6 or IFCAP_RXCSUM is enabled. Instead, remove the LO_CSUM_SET flags (in case they have been set somehow) if IFCAP_RXCSUM_IPV6 or IFCAP_RXCSUM is disabled. * Do not unset the transmit checksum offload flags LO_CSUM_FEATURES or LO_CSUM_FEATURES6 since they now have a meaning for the receive path. Reviewed by: glebius, pouria, tuexen Okayed by: bz MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D57518
* netlink.4: Document missing socket optionsZishun Yi2026-06-261-0/+6
| | | | | | | Add descriptions for NETLINK_GET_STRICT_CHK, NETLINK_MSG_INFO. Reviewed by: ziaee, obiwac Differential Revision: https://reviews.freebsd.org/D57520
* cdefs(9): encourage __nodiscard over __result_use_checkBrooks Davis2026-06-261-1/+7
| | | | | | | | | | | | | | | __nodiscard is closer to (and sometimes expands to) [[nodiscard]] from C23 and C++17 so prefer it to the homegrown __result_use_check. When __nodiscard does expand to [[nodiscard]] it must appear entierly before the function declaration (or between the function name and argument list) so relocate as appropriate. This differs from __attribute__((__warn_unused_result__)) used by __result_use_check which is more flexible. Reviewed by: imp, markj, emaste Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D57881
* memory_model.7: Correct typoEd Maste2026-06-261-1/+1
| | | | | | | | perserving -> preserving Reviewed by: jrm Event: Halifax Hackathon 202606 Fixes: 1366a87c9cb5 ("memory_model(7): create and document pointer provenance")
* memory_model(7): create and document pointer provenanceBrooks Davis2026-06-262-0/+122
| | | | | | | | | | | | | | | Add a skeleton manpage intended to describe the FreeBSD memory model. To start out, add documentation of pointer provenance and a cross link to atomic(9). Provide some advice on preserving provenance in CHERI and reference more detailed discussions elsewere. Effort: CHERI upstreaming Reviewed by: kib, adrian, markj, emaste Sponsored by: Innovate UK Differential Revision: https://reviews.freebsd.org/D57812
* build.7: explain how to build KBI-compatible standalone moduleKonstantin Belousov2026-06-261-0/+40
| | | | | | | Reviewed by: imp, kevans Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential revision: https://reviews.freebsd.org/D57859
* arch.7: used title case for .Ss headingsBrooks Davis2026-06-251-3/+3
| | | | | | | | | Do capitalize "size". Don't gratutiously capitalize "char" any more than we do "make" further down. Reviewed by: emaste Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D57820
* Add kernel manpages for bcopy, memcpy, and memmoveBrooks Davis2026-06-254-0/+245
| | | | | | | | | | | | We will add variants of memcpy and memmove to support CHERI so bootstrap the manpages from section 3. Mark bcopy as deprecated. Reviewed by: imp, kib, emaste Effort: CHERI upstreaming Sponsored by: Innovate UK Differential Revision: https://reviews.freebsd.org/D57661
* fwcam: add IIDC 1394 FireWire camera driverAbdelkader Boudih2026-06-252-0/+117
| | | | | | | | | | | | Add fwcam(4), a driver for IIDC v1.30 (TA Document 1999023) digital cameras over IEEE 1394. Supports Format_0 (VGA) video modes with isochronous receive DMA, feature control (brightness, exposure, gain, shutter, white balance, focus, etc.), poll/kqueue, and hot-plug via bus reset handling. Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D57685
* hwpstate_intel: Use 8bit scale instead of percentage scaleShengYi Hung2026-06-241-3/+3
| | | | | | | | Reviewed by: olce Relnotes: yes Event: Halifax Hackathon 202606 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D55629
* acpi_ibm: Report mic mute key evdev eventsAymeric Wibo2026-06-241-1/+5
| | | | | | | | | | | | While here, make the naming of micmute_led more consistent. PR: 296140 Event: Halifax Hackathon 202606 Reported by: David Lundqvist Reviewed by: olce Tested by: David Lundqvist, Oleksandr Kryvulia Co-authored-by: David Lundqvist Sponsored by: The FreeBSD Foundation
* ntsync.4: add the man pageKonstantin Belousov2026-06-242-0/+309
| | | | | | | | Reviewed by: ziaee Discussed with: Alex S <iwtcex@gmail.com> Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential revision: https://reviews.freebsd.org/D57659
* vgrind: Tear down vgrind supportWarner Losh2026-06-221-1/+0
| | | | | | | | | vgrind has been disconnected from the build for a while. Remove from the build, and gc vgrid support in the few remaining places. Reviewed by: jhb Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D57648
* kern: add a security knob to disable unprivileged access to kenvKyle Evans2026-06-221-1/+3
| | | | | | | | | | | | | | | | | We sometimes store sensitive things in the kenv that get zapped, but we really shouldn't rely on that zapping to actually happen. Most unprivileged processes don't really need to read from the kernel environment in the first place, so add a knob that allows it to be disabled. Note that we consider jailed root to be unprivileged from this perspective; they have their own meta/env concepts and we should encourage users to take advantage of those for passing information to jails. "Hey we should do something about that": dch Reviewed by: imp, ziaee, zlei (all slightly previous version) Differential Revision: https://reviews.freebsd.org/D57697
* acpi_ibm.4: Remove extraneous .TnAymeric Wibo2026-06-221-3/+1
| | | | | | | As flagged by mandoc linter. Event: Halifax Hackathon 202606 Sponsored by: The FreeBSD Foundation
* acpi_ibm(4): Refer to "mic *mute* led" instead of "mic led"Aymeric Wibo2026-06-221-1/+1
| | | | | Event: Halifax Hackathon 202606 Sponsored by: The FreeBSD Foundation
* acpi_ibm.4: Fix mic_led sysctl nameAymeric Wibo2026-06-221-1/+1
| | | | | | Fixes: 707347f88649 ("Add missing documentation for dev.acpi_ibm.0.mic_led added in r335304") Event: Halifax Hackathon 202606 Sponsored by: The FreeBSD Foundation