Commit Graph

21667 Commits

Author SHA1 Message Date
Brooks Davis
0c8ff61ee1 src.libnames.mk: NEED/WANT_COMPAT+static support
Look in _LIB_OBJTOP for all static libraries not just INTERNALLIBs. In
normal operation this is a no-op, but improves the consistency of this
file.

Reviewed by:	imp, jhb
Obtained from:	CheriBSD
Differential Revision:	https://reviews.freebsd.org/D35822
2022-07-28 18:55:01 +01:00
Warner Losh
e2fa10e676 style: Tighten up one use of 'may'
Declarations of variables must be placed before the statements of a
block, by convention. Use 'must' instead of 'may' here and clarify
langauge.

Sponsored by:		Netflix
Reviewed by:		pstef, rpokala, hselasky
Differential Revision:	https://reviews.freebsd.org/D35959
2022-07-28 08:01:54 -06:00
Warner Losh
0cf5abd758 style: Use oxford comma in one place.
Suggested by:		pauamma
Sponsored by:		Netflix
2022-07-28 08:01:54 -06:00
Warner Losh
ea86fed519 Style(9): Strengthen statements about not using K&R function definitions
K&R function definitions will soon be obsolete. Work has been underway
to remove all K&R function definitions from the tree for a while now. A
future C version will remove this construct from the language. So
strengthen existing statements about K&R function definitions and
declarations.

While here, remove __P macro reference. It's not been in active use for
almost two decades apart from legacy contrib code.

Sponsored by:		Netflix
Reviewed by:		pauamma, rpokala, hselasky, kp, brooks, markm, emaste
Differential Revision:	https://reviews.freebsd.org/D35945
2022-07-28 08:01:54 -06:00
Julian Grajkowski
78ee8d1c4c qat: Import a new Intel (R) QAT driver
QAT in-tree driver ported from out-of-tree release available
from 01.org.

The driver exposes complete cryptography and data compression
API in the kernel and integrates with Open Crypto Framework.
Details of supported operations, devices and usage can be found
in man and on 01.org.

Patch co-authored by: Krzysztof Zdziarski <krzysztofx.zdziarski@intel.com>
Patch co-authored by: Michal Jaraczewski <michalx.jaraczewski@intel.com>
Patch co-authored by: Michal Gulbicki <michalx.gulbicki@intel.com>
Patch co-authored by: Julian Grajkowski <julianx.grajkowski@intel.com>
Patch co-authored by: Piotr Kasierski <piotrx.kasierski@intel.com>
Patch co-authored by: Adam Czupryna <adamx.czupryna@intel.com>
Patch co-authored by: Konrad Zelazny <konradx.zelazny@intel.com>
Patch co-authored by: Katarzyna Rucinska <katarzynax.kargol@intel.com>
Patch co-authored by: Lukasz Kolodzinski <lukaszx.kolodzinski@intel.com>
Patch co-authored by: Zbigniew Jedlinski <zbigniewx.jedlinski@intel.com>

Reviewed by:	markj, jhb (OCF integration)
Reviewed by:	debdrup, pauamma (docs)
Sponsored by:	Intel Corporation
Differential Revision: https://reviews.freebsd.org/D34632
2022-07-27 11:12:35 -04:00
Mark Johnston
f4f56ff43d qat: Rename to qat_c2xxx and remove support for modern chipsets
A replacement QAT driver will be imported, but this replacement does not
support Atom C2xxx hardware.  So, the existing driver will be kept
around to provide opencrypto offload support for those chipsets.

Reviewed by:	pauamma, emaste
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D35817
2022-07-27 11:10:52 -04:00
Ed Maste
05b6744c44 Add ELFCOMPRESS_ZSTD ELF compression constant
ELFCOMPRESS_ZSTD indicates that an ELF section is compressed with zstd.
It is the second compression type, after the existing ELFCOMPRESS_ZLIB.
Zstd generally provides a compelling tradeoff of speed and compression
(other algorithms may compress slightly better but take a lot longer,
or run faster but do not compress nearly as well).

See https://groups.google.com/g/generic-abi/c/satyPkuMisk for details.
ELFCOMPRESS_ZSTD will be supported in a future Clang/LLVM update.  ELF
Tool Chain tools also need updating.

Reviewed by:	Fangrui Song
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
2022-07-25 10:01:54 -04:00
Baptiste Daroussin
94778fc738 hier(7): document libdata/pkgconfig 2022-07-25 11:14:50 +02:00
Mateusz Piotrowski
abfa92dee6 development.7: Remove CVS and SVN cross-references
Instead, point to the homepages of the projects.

MFC after:	1 week
2022-07-21 20:35:32 +02:00
Mateusz Piotrowski
d3d6092795 release.7: Remove Subversion references
MFC after:	1 week
2022-07-21 20:25:58 +02:00
Mateusz Piotrowski
6542fd4b95 release.7: Update EMDEDDEDPORTS documentation
EMDEDDEDPORTS does not contain devel/subversion anymore.

Fixes:	a03128832c In extra_chroot_setup(), use 'uname -U' to determine OSVERSION.
MFC after:	1 week
2022-07-21 20:21:44 +02:00
Mateusz Piotrowski
7c2ec6cdf5 tmpfs.5: Add fstab line example
MFC after:	3 days
2022-07-21 20:08:06 +02:00
Mateusz Piotrowski
2b693e4829 tmpfs.5: Fix typos and linter warnings
MFC after:	3 days
2022-07-21 20:08:06 +02:00
Ed Maste
f39f827222 vt.4: Provide a hint about Fn + K Scroll Lock combination
Many laptops do not have Scroll Lock and use a function key sequence
to access it.

MFC after:	1 week

Sponsored by:	The FreeBSD Foundation
2022-07-21 09:57:26 -04:00
Pau Amma
e5d24f634e Update share/misc/committers-*.dot comments for git.
Approved by: gjb (mentor), lwhsu, imp, eadler

Reviewed by: approvers above, carlavilla and jhb (earlier version)

Differential Revision: https://reviews.freebsd.org/D35803
2022-07-21 00:52:39 +02:00
Mike Karels
a795c6e934 tcp.4: Sort sysctl variables
In preparation for updates including missing variables, sort the
sysctl variables in the MIB variables section alphabetically.
Add a new "hostcache" entry for the hostcache node, containing the
intro text that was previously in hostcache.enable.  Also cleanups
per review comments.

Reviewed by:	transport(tuexen), manpages(bcr)
Differential Revision: https://reviews.freebsd.org/D35844
MFC after:	1 week

(cherry picked from commit 5cf709ce72c0b6eb4b4d57db015a65f8a84166d5)
2022-07-20 08:09:09 -05:00
Mike Karels
ace68b1f36 icmp.4 inet.4 udp.4: sort sysctl variables
Sort the sysctl(3)/sysctl(8) variables in the MIB Variables section
alphabetically.  This is in preparation for adding missing variables
(at least in inet.4 and icmp.4).  A few other touchups suggested in
review.

Reviewed by:	bcr
Differential Revision: https://reviews.freebsd.org/D35843
MFC after:	1 week

(cherry picked from commit 3b656d465127de066511b6ffd02fb9fef85c7a53)
2022-07-20 08:07:20 -05:00
Pau Amma
102f31bf36 New committer (doc): Pau Amma
Approved by:	gjb

Differential Revision: https://reviews.freebsd.org/D35768
2022-07-20 04:01:34 +02:00
Mitchell Horne
287d467c5d mac: add new mac_ddb(4) policy
Generally, access to the kernel debugger is considered to be unsafe from
a security perspective since it presents an unrestricted interface to
inspect or modify the system state, including sensitive data such as
signing keys.

However, having some access to debugger functionality on production
systems may be useful in determining the cause of a panic or hang.
Therefore, it is desirable to have an optional policy which allows
limited use of ddb(4) while disabling the functionality which could
reveal system secrets.

This loadable MAC module allows for the use of some ddb(4) commands
while preventing the execution of others. The commands have been broadly
grouped into three categories:
 - Those which are 'safe' and will not emit sensitive data (e.g. trace).
   Generally, these commands are deterministic and don't accept
   arguments.
 - Those which are definitively unsafe (e.g. examine <addr>, search
   <addr> <value>)
 - Commands which may be safe to execute depending on the arguments
   provided (e.g. show thread <addr>).

Safe commands have been flagged as such with the DB_CMD_MEMSAFE flag.

Commands requiring extra validation can provide a function to do so.
For example, 'show thread <addr>' can be used as long as addr can be
checked against the system's list of process structures.

The policy also prevents debugger backends other than ddb(4) from
executing, for example gdb(4).

Reviewed by:	markj, pauamma_gundo.com (manpages)
Sponsored by:	Juniper Networks, Inc.
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D35371
2022-07-18 22:06:15 +00:00
Graham Perrin
1e68080310 committers-doc.dot: add grahamperrin (Graham Perrin)
Reviewed by:           gjb
Approved by:           gjb
Differential revision: https://reviews.freebsd.org/D35746
2022-07-16 12:45:47 +01:00
Jessica Clarke
fcf1208158 Makefile.inc1 release bsd.own.mk: Introduce and use TAR_CMD
Our uses of tar rely on BSDisms, and so do not work in environments
where GNU tar is the default tar. Providing a TAR_CMD variable like
some other commands allows it to be overridden to use bsdtar in such
cases.

Reviewed by:	brooks, delphij, gjb
Obtained from:	CheriBSD
Differential Revision:	https://reviews.freebsd.org/D35813
2022-07-15 23:04:34 +01:00
Mike Karels
60052a11db inet.4 tcp.4 udp.4: update date, fix typo
Update .Dd for man pages pushed yesterday; fix typo in inet.4.
2022-07-14 16:31:28 -05:00
Mike Karels
b691e485bd inet.4 tcp.4 udp.4: Replace *CTL_* OID macro names with sysctl names
Older sysctls with constant OID macros were identified with those
in inet.4, tcp.4, and udp.4; newer sysctls with automatic numbering
were identified by sysctl names.  No one remembers the OID macros,
or knows what they are; sysctls are always done by name now, usually
via sysctl(8).

Replace the OID macro names with sysctl names so that there is one
uniform identifier type; sysctl names were previously in parens.
Make the formatting a little more consistent in this area.  In inet.4
and udp.4, move the "ip." or "udp." prefix from each entry into the
top-level name at the start of the section, as they are all the same.

Reviewed by:	rpokala
Differential Revision: https://reviews.freebsd.org/D35806
2022-07-14 08:50:13 -05:00
Mike Karels
efe58855f3 IPv4: experimental changes to allow net 0/8, 240/4, part of 127/8
Combined changes to allow experimentation with net 0/8 (network 0),
240/4 (Experimental/"Class E"), and part of the loopback net 127/8
(all but 127.0/16).  All changes are disabled by default, and can be
enabled by the following sysctls:

    net.inet.ip.allow_net0=1
    net.inet.ip.allow_net240=1
    net.inet.ip.loopback_prefixlen=16

When enabled, the corresponding addresses can be used as normal
unicast IP addresses, both as endpoints and when forwarding.

Add descriptions of the new sysctls to inet.4.

Add <machine/param.h> to vnet.h, as CACHE_LINE_SIZE is undefined in
various C files when in.h includes vnet.h.

The proposals motivating this experimentation can be found in

    https://datatracker.ietf.org/doc/draft-schoen-intarea-unicast-0
    https://datatracker.ietf.org/doc/draft-schoen-intarea-unicast-240
    https://datatracker.ietf.org/doc/draft-schoen-intarea-unicast-127

Reviewed by:	rgrimes, pauamma_gundo.com; previous versions melifaro, glebius
Differential Revision: https://reviews.freebsd.org/D35741
2022-07-13 09:46:05 -05:00
Xin LI
0bbf270296 libproc: replace home grown crc32 with zlib implementation.
MFC after:	2 weeks
Reviewed by:	markj
Differential Revision: https://reviews.freebsd.org/D35766
2022-07-10 16:31:35 -07:00
Mateusz Piotrowski
a6e734d779 rc.conf.5: Add /etc/rc.conf.d/ to FILES
While here, fix the -width argument.

MFC after:	3 days
2022-07-07 20:09:17 +02:00
Mateusz Piotrowski
df1817a81e rc.conf.5: Improve documentation of <name>_oomprotect
Apart from improving readability, this commit mentions that
<name>_oomprotect is ignored in a jail environment. Also, replace
${name}_cmd with the correct ${argument}_cmd and point the reader to
rc.subr(8).

MFC after:	1 week
2022-07-07 20:09:17 +02:00
Brooks Davis
3bf6636512 cddl/*: add a WITH(OUT)_DTRACE option
Add an option to enable/disable DTrace without disabling ZFS.  New
architectures such as CHERI may support ZFS before they support DTrace
and the old model of WITHOUT_CDDL disabling both wasn't helpful.

For compatiblity, the CDDL option remains and WITHOUT_CDDL implies
WITHOUT_DTRACE.  WITHOUT_DTRACE also implies WITHOUT_CTF.

As part of this change, largely convert cddl/*/Makefile to using the
more compact SUBDIR.${MK_<FOO>}+= form rather than using intermediate
variables.

Reviewed by:	markj
Obtained from:	CheriBSD
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D35718
2022-07-06 14:03:48 +01:00
Mitchell Horne
62bca9c4df DB_COMMAND(9): fix a typo
Fixes:	b83d53cb68
2022-07-05 12:15:30 -03:00
Mitchell Horne
b83d53cb68 DB_COMMAND(9): update to mention additional macros
Document the existing alias definitions, and augment the example with
one of these. Also, describe the purpose of the newly added _FLAGS
variations of these command definitions.

Make some small style improvements to appease mandoc -Tlint.

Reviewed by:	markj
MFC after:	3 days
Sponsored by:	Juniper Networks, Inc.
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D35664
2022-07-05 11:56:55 -03:00
Mateusz Piotrowski
604bc078a5 rc.8: Reference the article about rc scripting
MFC after:	3 days
2022-07-05 16:39:00 +02:00
Bjoern A. Zeeb
17732dd8f0 Revert "rtw88: split driver up into a core and pci part"
After some discussion, for now, simply revert the change to split
the driver up into if_rtw88_core.ko and if_rtw88_pci.ko as we do
not have an if_rtw88.ko anymore.  We do have code trying to
auto-load modules, e.g. ifconfig, based on if_xxx.ko.

We could, based on Makefile magic or further code, generate a
if_rtw88.ko module with proper dependencies and keep this but for
simplicity stay with the one slightly larger module for now.
Should code appear to do this "properly" we can revisit this once
USB support has landed.

Slightly update the module Makefile to keep the separation of files
between core and pci bits visible and maintainable for the future.

This reverts commit 0f7b9777f8.
2022-07-01 13:06:31 +00:00
Dag-Erling Smørgrav
42db2dbbc5 Catch up with 2004 and improve markup.
Sponsored by:	Juniper Networks, Inc.
Sponsored by:	Klara, Inc.
MFC after:	1 week
Differential Revision: https://reviews.freebsd.org/D35676
2022-07-01 12:29:04 +00:00
Mateusz Piotrowski
9e337d53de tslog.4: Document what TSLOG excels at
Based on an email mhorne@ sent to arch@.

Reviewed by:	debdrup, pauamma_gundo.com
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D34565
2022-07-01 11:17:12 +02:00
Mateusz Piotrowski
86e3fb4038 boottrace.4: Document that boottrace is good at tracing one-shot events
Based on an email mhorne@ sent to arch@.

Reviewed by:	debdrup
Differential Revision:	https://reviews.freebsd.org/D34566
2022-07-01 11:09:46 +02:00
Brooks Davis
724123b9f4 libcompat: Use WORLDTMP sysroot
Now that -m32 is fixed, just install libs in ${WORLDTMP}/lib/lib32
and use the installed headers.

Reviewed by:	imp, jhb
Obtained from:	CheriBSD
Differential Revision:	https://reviews.freebsd.org/D34697
2022-07-01 08:33:16 +01:00
Kornel Dulęba
ab453714fc Add myself(kd) as src commiter and mw/emaste as my co-mentors
Approved by: mw(mentor)
Differential Revision: https://reviews.freebsd.org/D35658
2022-07-01 08:12:08 +02:00
Mateusz Piotrowski
87f49967d3 Link pwd.db.5 and spwd.db.5 to passwd.5
Let's make it easier to find documentation for those databases.

MFC after:	3 days
2022-06-30 23:10:28 +02:00
Mateusz Piotrowski
606cdb2ef3 hier.7: Document /nonexistent
MFC after:	1 week
2022-06-30 23:10:28 +02:00
Mateusz Piotrowski
523477f8c5 devfs.5: Replace Nm with Xr devfs 8 where appropriate
MFC after:	3 days
2022-06-30 23:10:28 +02:00
Jessica Clarke
4ca6ecf100 Really fix cross-builds from macOS
LINKER_TYPE is set to mac not macos on macOS.

Fixes:	7927452ac4 ("Add RELRO build knob, default to enabled")
2022-06-30 22:08:31 +01:00
Michal Krawczyk
f65d7660b5 ena: Remove TSO refs from the documentation
The Hardware currently doesn't support TSO feature and it can be
misleading to mention that in the docs.

All references to the docs were removed from the man pages.

Obtained from: Semihalf
MFC after: 2 weeks
Sponsored by: Amazon, Inc.
2022-06-30 17:31:57 +02:00
Ed Maste
7fde0187cc Remove "All Rights Reserved" from Foundation copyrights
on man pages.

MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
2022-06-30 10:54:30 -04:00
Mateusz Piotrowski
d5a381f8c7 hier.7: Remove a.out lib directories
Fixes:		76b4234537 BSD.usr.dist: remove aout
MFC after:	1 week
2022-06-30 16:22:02 +02:00
Mateusz Piotrowski
0438e9beb5 sysctl.8: Reference sysctl(9)
MFC after:	1 week
2022-06-30 16:22:01 +02:00
Mateusz Piotrowski
383ccaa405 sysctl.conf.5: Document rc.d/sysctl and rc.d/sysctl_lastload
Also, update the BUGS section. The example describes an issue, which is
not true anymore thanks to sysctl_lastload. Point readers to rcorder(8)
instead.

MFC after:	2 weeks
2022-06-30 16:22:01 +02:00
Mateusz Piotrowski
7963c02c9b rescure.8: Do not recommend release artifact disc2
The FreeBSD project does not publish disc2 image anymore.

MFC after:	2 weeks
2022-06-30 13:30:02 +02:00
Mateusz Piotrowski
454adf0fa4 rc.conf.5: Fix example of how rc.conf.d works
While here, fix a typo.

MFC after:	1 week
2022-06-29 00:42:49 +02:00
Mateusz Piotrowski
c618ee7277 hier.7: Add some missing Xr's
MFC after:	3 days
2022-06-28 15:20:06 +02:00
Mateusz Piotrowski
bad2f716f4 ftp: Use /var/spool/ftp as ftp's home consistently
The home directory of the ftp user is /var/spool/ftp according to
hier(7). Update the manual page of ftpd(8) to reflect that.

MFC after:	2 weeks
2022-06-28 15:20:05 +02:00