1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-18 02:19:39 +00:00
Commit Graph

265643 Commits

Author SHA1 Message Date
Gordon Bergling
a6bc738260 Fix a few typos in source code comments
- s/posbile/possible/

(cherry picked from commit 34f620f1d0)
2021-08-19 09:29:25 +02:00
Gordon Bergling
df82424970 md5(1): Fix a typo in the manual page
- s/compatibilty/compatibility/

(cherry picked from commit 0d71cea832)
2021-08-19 09:29:01 +02:00
Gordon Bergling
7aa0f29045 Fix a common typo in source code comments
- s/definitons/definitions/

(cherry picked from commit 1da11b8ac3)
2021-08-19 09:28:34 +02:00
Gordon Bergling
ab4864fba2 Fix some common typos in source code comments
- s/struture/structure/
- s/structre/structure/

(cherry picked from commit 17db4b52fb)
2021-08-19 09:28:06 +02:00
Gordon Bergling
ac7cf0c636 Fix a few typos in source code comments
- s/procesing/processing/

(cherry picked from commit 288e553623)
2021-08-19 09:27:34 +02:00
Gordon Bergling
ca2e359c02 Fix a common typo in a comment
- s/enrty/entry/

(cherry picked from commit 86b74b7368)
2021-08-19 09:26:58 +02:00
Gordon Bergling
f296898fb7 Fix a common typo in source code comments
- s/aligment/alignment/

(cherry picked from commit a1581cd735)
2021-08-19 09:18:35 +02:00
Emmanuel Vadot
c432a00752 pkgbase: Fix cherry-pick conflict
17fe7de111 was supposed to remove the option from src.opts.mk
2021-08-19 09:09:39 +02:00
Jung-uk Kim
17fe7de111 pkgbase: Fix building out-of-tree manual pages
c7e6cb9e08 introduced MK_MANSPLITPKG but it was not available for
building out-of-tree manual pages.  For example, x11/nvidia-driver fails
with the following error:

===> doc (all)
make[3]: "/usr/share/mk/bsd.man.mk" line 53: Malformed conditional (${MK_MANSPLITPKG} == "no")
make[3]: Fatal errors encountered -- cannot continue

Move the definition from src.opts.mk to bsd.opts.mk to make it visible.

(cherry picked from commit 6827435548)
2021-08-19 09:08:06 +02:00
Alexander Motin
09d4fe40e0 Fix race between first rand(3) calls with _once().
Before this patch there was a chance for thread that called rand(3)
slightly later to see rand3_state already allocated, but not yet
initialized.  While this API is not expected to be thread-safe, it
is not expected to crash.  ztest on 64-thread system reproduced it
reliably for me.

Submitted by:	avg@
MFC after:	1 month

(cherry picked from commit 3a57f08b50)
2021-08-18 21:11:51 -04:00
Ed Maste
60833696c2 ipfilter: remove doubled semicolons
Local commit; ipfilter upstream is inactive.

Discussed with:	cy
MFC after:	3 days
2021-08-18 20:23:50 -04:00
Mateusz Guzik
86a96281df frag6: do less work in frag6_slowtimo if possible
frag6_slowtimo avoidably uses CPU on otherwise idle boxes

Reviewed by:	kp
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D31528

(cherry picked from commit 8afe9481cf)
2021-08-18 09:44:45 +00:00
Mateusz Guzik
d368dc0b42 frag6: drop the volatile keyword from frag6_nfrags and mark with __exclusive_cache_line
The keyword adds nothing as all operations on the var are performed
through atomic_*

Reviewed by:	kp
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D31528

(cherry picked from commit c17ae18080)
2021-08-18 09:44:44 +00:00
Mateusz Guzik
990e592dae ip_reass: do less work in ipreass_slowtimo if possible
ipreass_slowtimo avoidably uses CPU on otherwise idle boxes

Reviewed by:	kp
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D31526

(cherry picked from commit 3be3cbe06d)
2021-08-18 09:44:44 +00:00
Mateusz Guzik
ad9671955a ip_reass: drop the volatile keyword from nfrags and mark with __exclusive_cache_line
The keyword adds nothing as all operations on the var are performed
through atomic_*

Reviewed by:	kp
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D31526

(cherry picked from commit d2b95af1c2)
2021-08-18 09:44:43 +00:00
Alex Richardson
64f6c8d616 Mark LLDB/CLANG_BOOTSTRAP/LLD_BOOTSTRAP as broken on non-FreeBSD for now
I enabled these options again in 31ba4ce889,
but unfortunately only my specific build configuration worked whereas the
build with default options is still broken.

(cherry picked from commit d9f25575a2)
2021-08-18 09:34:19 +01:00
Alex Richardson
ba91a76793 Add missing lex/yacc dependency for mkesdb/mkcsmapper bootstrap
This causes build failures on macOS where the build can end up invoking
an incompatible m4 binary.

Fxies:		2de949cf85 ("Remove mkcsmapper_static and mkesdb_static from build-tools")
(cherry picked from commit cc1345056b)
2021-08-18 09:34:11 +01:00
Ed Maste
d1d9ee6f78 ar: remove invalid extra param in bsdar_warnc calls
A number of warnings passed an exit status code to bsdar_warnc, but it
does not take exit status (as a warning, it does not exit).

MFC after:	1 week
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 09319f7d3f)
2021-08-17 21:27:41 -04:00
Alexander V. Chernikov
406a4b37a2 [multipath][nhops] Fix random crashes with high route churn rate.
When certain multipath route begins flapping really fast, it may
 result in creating multiple identical nexthop groups. The code
 responsible for unlinking unused nexthop groups had an implicit
 assumption that there could be only one nexthop group for the
 same combination of nexthops with weights. This assumption resulted
 in always unlinking the first "identical" group, instead of the
 desired one. Such action, in turn, produced a used-but-unlinked
 nhg along with freed-and-linked nhg, ending up in random crashes.

Similarly, it is possible that multiple identical nexthops gets
 created in the case of high route churn, resulting in the same
 problem when deleting one of such nexthops.

Fix by matching the nexthop/nexhop group pointer when deleting the item.

Reported by:	avg
(cherry picked from commit 054948bd81)
2021-08-17 21:14:42 +00:00
Mark Johnston
72a8cdd322 build.7: Describe the default value for LOCAL_MODULES
Suggested by:	jhb

(cherry picked from commit 805c3af898)
2021-08-17 09:56:15 -04:00
Mark Johnston
1ee912e80e build.7: Document LOCAL_MODULES and LOCAL_MODULES_DIR
Reviewed by:	0mp, imp
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit e7a13643b1)
2021-08-17 09:56:13 -04:00
Kevin Bowling
15b57cbfde e1000: rctl/srrctl buffer size init, rfctl fix
Simplify the setup of srrctl.BSIZEPKT on igb class NICs.
Improve the setup of rctl.BSIZE on lem and em class NICs.
Don't try to touch rfctl on lem class NICs.
Manipulate rctl.BSEX correctly on lem and em class NICs.

Approved by:	markj
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D31457

(cherry picked from commit 12e8addd32)
2021-08-16 18:35:04 -07:00
Marius Strobl
5dd1d72e5b e1000: fix build after b761f26492 (orig c1655b0f)
(cherry picked from commit c262e8e87e)
2021-08-16 18:31:43 -07:00
Marius Strobl
b761f26492 e1000: consistently use the hw variables
It's rather confusing when adapter->hw and hw are mixed and matched
within a particular function.
Some of this was missed in cd1cf2fc1d
and r353778 respectively.

(cherry picked from commit c1655b0f89)
2021-08-16 18:29:19 -07:00
Emmanuel Vadot
e6a32ddf3f pkgbase: Add nfsiod to the FreeBSD-nfs package
Missed in 081fb64492

(cherry picked from commit e06b8f1128)
2021-08-16 18:15:47 +02:00
Mina Igalic
1516cd8735 pkgbase: make only vital packages vital, not their sub-packages
make "vital" a replaceable, which defaults to "false" and only set it for
the main clib, utilities and runtime packages, not their sub-packages

PR: 254174
Differential Revision:	https://reviews.freebsd.org/D29224

(cherry picked from commit 1c1ff79795)
2021-08-16 18:15:46 +02:00
Emmanuel Vadot
e99783747e pkgbase: Add an src.conf option for splitting man pages
Man pages can be big in total, add an options to split man pages
in -man packages so we produce smaller packages.
This is useful for small jails or mfsroot produced of pkgbase.
The option is off by default.

Reviewed by:	bapt, Mina Galić <me@igalic.co>
Differential Revision:	https://reviews.freebsd.org/D29169
MFC after:      2 weeks

(cherry picked from commit c7e6cb9e08)
2021-08-16 18:13:51 +02:00
Emmanuel Vadot
920a66c0a3 arm64: Only check for freebsd,dts-version if we are booted in FDT mode.
Reported by:	  andrew

(cherry picked from commit 6bcba8dac9)
2021-08-16 18:07:54 +02:00
Emmanuel Vadot
5c010b3aa7 arm64: Check dtb version against the one we're expecting to find
Do for arm64 what was done for armv7 in e63faa9ba8

(cherry picked from commit 63f344024a)
2021-08-16 18:07:53 +02:00
Mark Johnston
29d2556181 vfs: Avoid a comparison with an uninitialized field in setutimes()
Some filesystems, e.g., devfs, do not populate va_birthtime in their
GETATTR implementations.  To handle this, make sure that va_birthtime is
initialized to the quasi-standard value of { VNOVAL, 0 } before calling
VOP_GETATTR.

Reported by:	KMSAN
Reviewed by:	kib
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit eca9ac5a32)
2021-08-16 09:01:49 -04:00
Mark Johnston
3c785b12e0 in6: Enter the net epoch in in6_tmpaddrtimer()
We need to do so to safely traverse the ifnet list.

Reviewed by:	bz
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 8ee0826f75)
2021-08-16 09:01:39 -04:00
Mark Johnston
ed03d05824 amd64: Fix output operand specs for the stmxcsr and vmread intrinsics
This does not appear to affect code generation, at least with the
default toolchain.

Noticed because incorrect output specifications lead to false positives
from KMSAN, as the instrumentation uses them to update shadow state for
output operands.

Reviewed by:	kib
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit e54ae8258d)
2021-08-16 09:01:29 -04:00
Mark Johnston
034eea1ee5 vmm: Make iommu ops tables const
While here, use designated initializers and rename some AMD iommu method
implementations to match the corresponding op names.  No functional
change intended.

Reviewed by:	grehan
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 41335c6b7f)
2021-08-16 09:01:20 -04:00
Mark Johnston
75c0e1a8e0 nd6: Mark several callouts as MPSAFE
The use of Giant here is vestigal and does not provide any useful
synchronization.  Furthermore, non-MPSAFE callouts can cause the
softclock threads to block waiting for long-running newbus operations to
complete.

Reported by:	mav
Reviewed by:	bz
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 663428ea17)
2021-08-16 09:01:11 -04:00
Konstantin Belousov
f8cb596152 nfs_write(): do not call ncl_pager_setsize() after clearing TDP2_SBPAGES
(cherry picked from commit bd01a69f48)
2021-08-16 12:23:12 +03:00
Konstantin Belousov
e6ff640738 nfs client: block vnode_pager_setsize() calls from nfscl_loadattrcache in nfs_write
(cherry picked from commit aa8c1f8d84)
2021-08-16 12:23:12 +03:00
Mateusz Piotrowski
f1297ee645 bhyve.8: Fix mandoc -Tlint issues
While here, keep network backends section consistent with other
sections.

MFC after:	2 weeks

(cherry picked from commit 8d9fefe643)
2021-08-16 11:00:54 +02:00
Mateusz Piotrowski
a3dcec67d1 bhyve: Document the format for HD audio backends
- This change is done for consistency with other backend definitions.

MFC after:	2 weeks

(cherry picked from commit 061f37d280)
2021-08-16 11:00:38 +02:00
Mateusz Piotrowski
fe7ce1f3b8 bhyve.8: Improve AHCI backends documentation
- Document the backend format.

MFC after:	2 weeks

(cherry picked from commit d5fcc4b606)
2021-08-16 11:00:27 +02:00
Mateusz Piotrowski
a157ddbcca bhyve.8: Improve documentation of NVME backend
- Document the configuration format.
- Document two additional configuration options: eui64 and dsm.

MFC after:	2 weeks

(cherry picked from commit 6eff58acc7)
2021-08-16 11:00:20 +02:00
Mateusz Piotrowski
5f8dd688e0 bhyve.8: Improve framebuffer backends description
- Use appropriate mdoc macros
- Document that tcp= is a synonym to rfb= (tcp is used in the examples,
  but never mentioned)
- Clarify the IP address specification

MFC after:	2 weeks

(cherry picked from commit 8b97e97548)
2021-08-16 11:00:02 +02:00
Mateusz Piotrowski
34b945ccf6 bhyve.8: Clean up virtio console device backends description
MFC after:	2 weeks

(cherry picked from commit 3f4c771f64)
2021-08-16 10:59:48 +02:00
Mateusz Piotrowski
689d66d30a bhyve.8: Clean up TTY, boot ROM, and pass-through descriptions
MFC after:	2 weeks

(cherry picked from commit 2fda01a1b7)
2021-08-16 10:59:33 +02:00
Mateusz Piotrowski
5789e28b21 bhyve.8: Clean up 9P device backends section
MFC after:	2 weeks

(cherry picked from commit 2d00b57022)
2021-08-16 10:59:10 +02:00
Mateusz Piotrowski
78863cd50b bhyve.8: Clean up SCSI device backends section
MFC after:	2 weeks

(cherry picked from commit 7c5829c942)
2021-08-16 10:58:41 +02:00
Mateusz Piotrowski
c66d332730 bhyve.8: Clean up block storage device backends description
MFC after:	2 weeks

(cherry picked from commit 5232a35f1e)
2021-08-16 10:58:26 +02:00
Mateusz Piotrowski
63b55e8312 bhyve.8: Clean up network backends section
- Reformat the format lists, use appropriate mdoc macros for
  readability.
- Add a missing Oxford comma.

MFC after:	2 weeks

(cherry picked from commit 7fb2272981)
2021-08-16 10:57:50 +02:00
Mateusz Piotrowski
d314e35475 bhyve.8: Improve emulation description of the -s flag
- Set width of the list to the longest key word for readability.
- Separate descriptions of amd_hostbridge and hostbridge emulations.
  Also, wordsmith their descriptions for consistency with other entries.
- Use Cm instead of Li for command modifiers.
- Do not stylize AMD with Li, there's no need to do it.
- Mention COM3 and COM4 in the definition of lpc.
- Fix a typo in the definition of ahci-hd ("hard drive" instead of
  "hard-drive").

MFC after:	2 weeks

(cherry picked from commit 7014cb2393)
2021-08-16 10:57:12 +02:00
Mateusz Piotrowski
7dcc31c9b7 bhyve.8: Clean up the slot description of -s
Also, remove the macros of the nested list which contained slot,
emulation and conf. This decreases the indention of the -s description.
It was necessary to clean up the slot description.

MFC after:	2 weeks

(cherry picked from commit 234d8c470b)
2021-08-16 10:56:50 +02:00
Mateusz Piotrowski
f5329137c9 bhyve.8: Clean-up synopsis of -s
- Document "-s help" separately for readability.
- Use appropriate mdoc macros.

MFC after:	2 weeks

(cherry picked from commit 449f0e48e9)
2021-08-16 10:56:25 +02:00