]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
2 years agong_btsocket(4): Fix a typo in an error message
Gordon Bergling [Wed, 6 Apr 2022 16:27:29 +0000 (18:27 +0200)]
ng_btsocket(4): Fix a typo in an error message

- s/mulitplexor/multiplexor/

(cherry picked from commit f64919bbd9b7d84f61a99264c33187fc63aca2a4)

2 years agowpa_supplicant.conf.5: add note about scan_ssid=1 eavesdropping
Ed Maste [Wed, 16 Mar 2022 02:18:01 +0000 (22:18 -0400)]
wpa_supplicant.conf.5: add note about scan_ssid=1 eavesdropping

When scan_ssid=1 the list of configured SSIDs is available to
eavesdroppers.  Note this in the man page.

PR: 194122
Reviewed by: debdrup, Pau Amma
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34576

(cherry picked from commit 4f75af31a86ff71780f48a5b99cf814f61d77eae)

2 years agompr: add \n in diagnostic printf
Ed Maste [Mon, 28 Mar 2022 17:24:06 +0000 (13:24 -0400)]
mpr: add \n in diagnostic printf

Diff reduction between mpr and mps.

Fixes: e2997a03b7f7 ("Diagnostic buffer fixes for the mps(4)...")
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 27ac4281fddd81e1352cd05bb9f50ed303f12e89)

2 years agodumpon: proceed without compression if the kernel lacks support
Ed Maste [Thu, 10 Mar 2022 18:04:34 +0000 (13:04 -0500)]
dumpon: proceed without compression if the kernel lacks support

PR: 252554
Reviewed by: markj
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34520

(cherry picked from commit 2b20327ec9394754c0bac2d83567b972a08e3930)

2 years agolibarchive: fix zstd compression support
Martin Matuska [Fri, 8 Apr 2022 08:09:32 +0000 (10:09 +0200)]
libarchive: fix zstd compression support

The commit 833a452e9 introduced a change that detached
the zstd compression (not decompression) support from base build.

Reported by: kevans

(cherry picked from commit 7f815d4f128f063c1bac361c8f26b52ab7df1e6c)

2 years agoisci(4): Remove a double word in an error message
Gordon Bergling [Sun, 3 Apr 2022 14:07:20 +0000 (16:07 +0200)]
isci(4): Remove a double word in an error message

- s/is is/is/

(cherry picked from commit 756220b5152526a5a89ca16df31d8acf0a7795bb)

2 years agotty(4): Add a HISTORY section to the manual page
Gordon Bergling [Sun, 3 Apr 2022 13:12:41 +0000 (15:12 +0200)]
tty(4): Add a HISTORY section to the manual page

Note that a console typewriter device /dev/tty
and asynchronous communication interfaces /dev/tty[0-5]
first appeared in VersionĀ 1 AT&T UNIX.

Obtained from: OpenBSD

(cherry picked from commit b988af5b439220f37159ed18318e8e4baeedc6a7)

2 years agoif_indextoname(3): Correct the RFC in a comment
Gordon Bergling [Sun, 3 Apr 2022 11:50:15 +0000 (13:50 +0200)]
if_indextoname(3): Correct the RFC in a comment

RFC 2533 refers to 'A Syntax for Describing Media Feature Sets',
which is wrong since the correct reference should be
RFC 2553 'Basic Socket Interface Extensions for IPv6'.

Obtained from: OpenBSD

(cherry picked from commit fa556e83be84c588704ce0d652803eb7187bcd30)

2 years agokern: Fix two typos in source code comments
Gordon Bergling [Sat, 2 Apr 2022 12:52:49 +0000 (14:52 +0200)]
kern: Fix two typos in source code comments

- s/accomodate/accommodate/

(cherry picked from commit c9b04ee4f8a85ba4f6645de25c17180c752d1b04)

2 years agoneta: Fix a few common typos in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 08:29:23 +0000 (10:29 +0200)]
neta: Fix a few common typos in a source code comment

- s/hander/handler/

(cherry picked from commit 6efd2e3e513f53cb0cab8c852d1b88bbcbd13c7d)

2 years agodevd(8): Fix a typo in a configuration file
Gordon Bergling [Sat, 2 Apr 2022 09:52:26 +0000 (11:52 +0200)]
devd(8): Fix a typo in a configuration file

- s/coresponding/corresponding/

(cherry picked from commit e09d161bd99bbbd5b5e35eb987cf53f5f3d50515)

2 years agosafe(4): Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 12:03:17 +0000 (14:03 +0200)]
safe(4): Fix a typo in a source code comment

- s/multple/multiple/

(cherry picked from commit 81d4309f9bc1a651066b19d02b766f1386d558df)

2 years agotsec: Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 08:48:37 +0000 (10:48 +0200)]
tsec: Fix a typo in a source code comment

- s/immediatly/immediately/

(cherry picked from commit 5c0b62dcfc38671c51399bda14ed3d8202c80872)

2 years agopnfsserver(4): Fix a typo in the manual page
Gordon Bergling [Sat, 2 Apr 2022 13:12:51 +0000 (15:12 +0200)]
pnfsserver(4): Fix a typo in the manual page

- s/commmand/command/

(cherry picked from commit a16977209bc261239022fac2cab6956a8e9676b5)

2 years agosmartpqi(4): Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 13:21:45 +0000 (15:21 +0200)]
smartpqi(4): Fix a typo in a source code comment

- s/commmand/command/

(cherry picked from commit 882d3b24fe055b777efb7de575f8126ab965085b)

2 years agorpc(3): Fix two typos in source code comments
Gordon Bergling [Sat, 2 Apr 2022 07:33:24 +0000 (09:33 +0200)]
rpc(3): Fix two typos in source code comments

- s/alloctaed/allocated/

Obtained from: NetBSD

(cherry picked from commit 5c49e1cbea1beef4d3c5c4096ed48664c3c218df)

2 years agoetherswitch(4): Fix a few common typos in source code comments
Gordon Bergling [Sat, 2 Apr 2022 12:51:57 +0000 (14:51 +0200)]
etherswitch(4): Fix a few common typos in source code comments

- s/accomodate/accommodate/

(cherry picked from commit 9097d2f5d10f2cf051eac81e0d3626554633d9f8)

2 years agomrsas(4): Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 11:59:11 +0000 (13:59 +0200)]
mrsas(4): Fix a typo in a source code comment

- s/alloction/allocation/

(cherry picked from commit 32c601b6cfbcd6d99722faaacb8d246cd27116bd)

2 years agocc_vegas(4): Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 12:07:44 +0000 (14:07 +0200)]
cc_vegas(4): Fix a typo in a source code comment

- s/measurment/measurement/

(cherry picked from commit 17628f1b7927cefe2c28c6cb786cc51890589cf9)

2 years agonet(4): Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 12:57:06 +0000 (14:57 +0200)]
net(4): Fix a typo in a source code comment

- s/accomodate/accommodate/

(cherry picked from commit d792dc7ebb2caba22980428c801f0392a73cc15a)

2 years agotop(1): Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 12:53:20 +0000 (14:53 +0200)]
top(1): Fix a typo in a source code comment

- s/accomodate/accommodate/

(cherry picked from commit 2fc0894023bf4220ae559d9eeff8aa5c51b18cff)

2 years agolibnetbsd: Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 12:53:56 +0000 (14:53 +0200)]
libnetbsd: Fix a typo in a source code comment

- s/accomodate/accommodate/

(cherry picked from commit 49f2bb36769f04b6720e8bb2c6db2a94e517e19a)

2 years agobce(4): Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 12:40:34 +0000 (14:40 +0200)]
bce(4): Fix a typo in a source code comment

- s/exisitng/existing/

(cherry picked from commit 24926c487b59c7d80637ea77b13ffb6eb797b7f6)

2 years agoloader.4th(8): Fix a typo in the manual page
Gordon Bergling [Sat, 2 Apr 2022 13:11:59 +0000 (15:11 +0200)]
loader.4th(8): Fix a typo in the manual page

- s/commmand/command/

(cherry picked from commit ad49d7c54cca4906179369e2196c1edbcf509342)

2 years agoiscsi(4): Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 13:20:59 +0000 (15:20 +0200)]
iscsi(4): Fix a typo in a source code comment

- s/commmand/command/

(cherry picked from commit 01d74e5c7a35195160984d2c015862f08aeda081)

2 years agocxgbe(4): Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 13:19:59 +0000 (15:19 +0200)]
cxgbe(4): Fix a typo in a source code comment

- s/commmand/command/

(cherry picked from commit 5ee87525a853ebf50d834e69f814b9055996b964)

2 years agomlx4en(4): Fix two in source code comments
Gordon Bergling [Sat, 2 Apr 2022 11:33:05 +0000 (13:33 +0200)]
mlx4en(4): Fix two in source code comments

- s/differnt/different/
- s/differntly/differently/

(cherry picked from commit 6039e38f93819050ef7627f16554c97830b98a32)

2 years agokhelp(9): Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 12:09:08 +0000 (14:09 +0200)]
khelp(9): Fix a typo in a source code comment

- s/measurment/measurement/

(cherry picked from commit 8d30ef92d59567d47a1fee9dc71baf17a555234d)

2 years agokern: Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 08:15:02 +0000 (10:15 +0200)]
kern: Fix a typo in a source code comment

- s/paniced/panicked/

(cherry picked from commit 669d5ea4e3a5824520d3da7fc0beb9bf3d8d1a8f)

2 years agoneta: Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 08:46:13 +0000 (10:46 +0200)]
neta: Fix a typo in a source code comment

- s/immediatly/immediately/

(cherry picked from commit 592fcf6c455508b39342dbbf5725c85af9623245)

2 years agonet(3): Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 07:24:48 +0000 (09:24 +0200)]
net(3): Fix a typo in a source code comment

- s/paramenters/parameters/

(cherry picked from commit 23677398ca6b2b66a5ba9c5302ea81f52d14d986)

2 years agoisci(4): Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 11:35:30 +0000 (13:35 +0200)]
isci(4): Fix a typo in a source code comment

- s/differnt/different/

(cherry picked from commit 011e6016d0225e757a4475b082d1017804d259e9)

2 years agocam: Fix typos in source code comments
Gordon Bergling [Sat, 2 Apr 2022 08:13:35 +0000 (10:13 +0200)]
cam: Fix typos in source code comments

- s/paniced/panicked/

(cherry picked from commit 49dace1d465dd99b72a73a9d373137be7816e2f0)

2 years agokern: Fix two typos in source code comments
Gordon Bergling [Sat, 2 Apr 2022 12:14:31 +0000 (14:14 +0200)]
kern: Fix two typos in source code comments

- s/measurment/measurement/

(cherry picked from commit 7181887e8220879b0d7fd7dc16e455a7e5e22f7d)

2 years agoocs_fc(4): Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 12:28:30 +0000 (14:28 +0200)]
ocs_fc(4): Fix a typo in a source code comment

- s/initialzied/initialized/

(cherry picked from commit cededdff9bf00914bc7109c38ee778b894e7dd6f)

2 years agofusefs(5): Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 12:56:21 +0000 (14:56 +0200)]
fusefs(5): Fix a typo in a source code comment

- s/accomodate/accommodate/

(cherry picked from commit ef1534cad8a085946105e135d2d75e275011ec4b)

2 years agocrypto(9): Fix a typo in the manual page
Gordon Bergling [Sat, 2 Apr 2022 12:35:55 +0000 (14:35 +0200)]
crypto(9): Fix a typo in the manual page

- s/faciliate/facilitate/

(cherry picked from commit 8e8d2a722e82eaaaab7a63704285a23166775904)

2 years agosnd_csa(4): Fix a few common typos in source code comments
Gordon Bergling [Sat, 2 Apr 2022 08:30:52 +0000 (10:30 +0200)]
snd_csa(4): Fix a few common typos in source code comments

- s/hander/handler/

(cherry picked from commit dc8d33b3682b624789210c4776a0fca9525151e1)

2 years agoipf(5): Fix a typo in the manual page
Gordon Bergling [Sat, 2 Apr 2022 12:50:45 +0000 (14:50 +0200)]
ipf(5): Fix a typo in the manual page

- s/accomodate/accommodate/

(cherry picked from commit 8a3568b584cb9e1abab94c047172fc99421e99a9)

2 years agonet(3): Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 07:41:10 +0000 (09:41 +0200)]
net(3): Fix a typo in a source code comment

- s/Multilik/Multilink/

Obtained from: NetBSD

(cherry picked from commit f8d292b6656de9e78ae63981e2c8d8662a85dc8c)

2 years agonetinet: Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 12:39:32 +0000 (14:39 +0200)]
netinet: Fix a typo in a source code comment

- s/exisitng/existing/

(cherry picked from commit 942e8cab8c6f8a6a5dabdc7b87269ee39f657535)

2 years agousd: Fix two typos
Gordon Bergling [Sat, 2 Apr 2022 13:16:02 +0000 (15:16 +0200)]
usd: Fix two typos

- s/commmand/command/

(cherry picked from commit f223450b5df921bb602c089b097f7d2b9a860ed9)

2 years agohtu21(4): Correct a typo in the manual page
Gordon Bergling [Sat, 2 Apr 2022 12:06:14 +0000 (14:06 +0200)]
htu21(4): Correct a typo in the manual page

- s/measurment/measurement/

(cherry picked from commit 0d40cd15240503931f493c0c97d8db0914bfbfbd)

2 years agonet(3): Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 08:53:40 +0000 (10:53 +0200)]
net(3): Fix a typo in a source code comment

- s/verion/version/

(cherry picked from commit cba46da538b8ff0937c3a67554ada363da96ce66)

2 years agorisc-v: Fix two typos in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 06:58:45 +0000 (08:58 +0200)]
risc-v: Fix two typos in a source code comment

- s/interger/integer/
- s/manupilate/manipulate/

(cherry picked from commit c748efcd9408480cb11d09a1ef4348dc7fd088b6)

2 years agonetpfil: Fix two typo in source code comments
Gordon Bergling [Sat, 2 Apr 2022 12:18:11 +0000 (14:18 +0200)]
netpfil: Fix two typo in source code comments

- s/measurment/measurement/

While here, also fix some whitespace issues.

(cherry picked from commit f70fc4377f26f66ff3c125dbf7b6fa8b4698ed8d)

2 years agousb(3): Fix a few typos in source code comments
Gordon Bergling [Sat, 2 Apr 2022 08:14:32 +0000 (10:14 +0200)]
usb(3): Fix a few typos in source code comments

- s/paniced/panicked/

(cherry picked from commit 9094c3a71bc1f2893c64479ba42016ed1507792c)

2 years agomemguard(9): Fix two typos in source code comments
Gordon Bergling [Sat, 2 Apr 2022 11:51:27 +0000 (13:51 +0200)]
memguard(9): Fix two typos in source code comments

- s/comparsion/comparison/

(cherry picked from commit f167c46e7965ae08255313c4a624be19b4873442)

2 years agocron(8): Fix a typo in the documentation
Gordon Bergling [Sat, 2 Apr 2022 13:16:33 +0000 (15:16 +0200)]
cron(8): Fix a typo in the documentation

- s/commmand/command/

(cherry picked from commit 3b31bf26b47b45323d25e32591690737906020d3)

2 years agojme(4): Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 08:22:28 +0000 (10:22 +0200)]
jme(4): Fix a typo in a source code comment

- s/watchog/watchdog

(cherry picked from commit be83eecf5a81612675a679111b14486b31c9df05)

2 years agoisci(4): Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 12:29:34 +0000 (14:29 +0200)]
isci(4): Fix a typo in a source code comment

- s/initialzied/initialized/

(cherry picked from commit b61c7c2dfb644a3950f17cfb8ba92d6c09d6649c)

2 years agobxe(4): Fix a typo in an error message
Gordon Bergling [Sat, 2 Apr 2022 06:56:06 +0000 (08:56 +0200)]
bxe(4): Fix a typo in an error message

- s/intergers/integers/

(cherry picked from commit e443f2102eb596f9e0bd9a8bc084755229bd7e5f)

2 years agosound(4): Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 08:50:03 +0000 (10:50 +0200)]
sound(4): Fix a typo in a source code comment

- s/immediatly/immediately/

(cherry picked from commit 24498b53eff4f770e06d1dc1a1cba549b7cbaac6)

2 years agoNOTES: Fix a typo in a comments
Gordon Bergling [Sat, 2 Apr 2022 12:50:04 +0000 (14:50 +0200)]
NOTES: Fix a typo in a comments

- s/accomodate/accommodate/

(cherry picked from commit b34f7568d180df8b13f4877a48bea4930d453f18)

2 years agong_pppoe(4): Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 11:54:36 +0000 (13:54 +0200)]
ng_pppoe(4): Fix a typo in a source code comment

- s/asychronous/asynchronous/

(cherry picked from commit 7fc0ffda35641bb31ed50a5c2f548c40d3da4bc4)

2 years agojme(4): Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 08:54:43 +0000 (10:54 +0200)]
jme(4): Fix a typo in a source code comment

- s/verion/version/

(cherry picked from commit 13bf578c251e74e1114a73c28d8d5d60d1efdd39)

2 years agoefivar(8): Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 11:34:46 +0000 (13:34 +0200)]
efivar(8): Fix a typo in a source code comment

- s/differnt/different/

(cherry picked from commit cf226430bb1a6086106fb63669b526cfc33a2544)

2 years agoiwm(4): Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 09:50:38 +0000 (11:50 +0200)]
iwm(4): Fix a typo in a source code comment

- s/coresponding/corresponding/

Obtained from: NetBSD

(cherry picked from commit 9f4dc7fd97de953744caa6a7cfc4e291871f1224)

2 years agoown(9): Fix a typo in a function name in the manual page
Gordon Bergling [Sat, 2 Apr 2022 13:26:40 +0000 (15:26 +0200)]
own(9): Fix a typo in a function name in the manual page

- s/own_commmand_wait/own_command_wait/

(cherry picked from commit a95850f10af4fb4102f4c4f7c16775dbcd6568e6)

2 years agosound(4): Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 12:40:10 +0000 (14:40 +0200)]
sound(4): Fix a typo in a source code comment

- s/exisitng/existing/

(cherry picked from commit 0ce9617620987bd9d4ddd408c892af6aae19f78c)

2 years agomt(3): Fix a typo in the manual page
Gordon Bergling [Wed, 6 Apr 2022 16:41:08 +0000 (18:41 +0200)]
mt(3): Fix a typo in the manual page

- s/mulitple/multiple/

(cherry picked from commit 656d68a711952ac2b92ed258502978c5ba1dbc73)

2 years agopass(4): Fix a typo in the manual page
Gordon Bergling [Wed, 6 Apr 2022 16:46:26 +0000 (18:46 +0200)]
pass(4): Fix a typo in the manual page

- s/modfied/modified/

(cherry picked from commit 3dcfd6c266d492075e8f8481a60170b22866db56)

2 years agosmbfs: caution against use in the manpage
Ed Maste [Wed, 6 Apr 2022 18:25:37 +0000 (14:25 -0400)]
smbfs: caution against use in the manpage

It supports only the obsolete SMBv1 protocol, is known to be buggy, and
likely has security vulnerabilities.  It will either be updated or
removed in the future, but for now at least describe the current state
in the man page.

PR: 263043
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 7c140ef034c33ab0b16b535f3d5f945dc8f71cb4)

2 years agopw.8: Sort flags in synopsis
Mateusz Piotrowski [Fri, 1 Apr 2022 22:49:10 +0000 (00:49 +0200)]
pw.8: Sort flags in synopsis

MFC after: 1 week

(cherry picked from commit 39245a7d45ccdda961ae19bfa2b7dcb3d24ae86c)

2 years agopw.8: Use more appropriate mdoc macros
Mateusz Piotrowski [Fri, 1 Apr 2022 11:52:39 +0000 (13:52 +0200)]
pw.8: Use more appropriate mdoc macros

MFC after: 1 week

(cherry picked from commit 77fd0356efa8a956a616ca8d7a51701cec426c88)

2 years agopw.8: Improve use of mdoc macros in description section
Mateusz Piotrowski [Fri, 1 Apr 2022 10:58:52 +0000 (12:58 +0200)]
pw.8: Improve use of mdoc macros in description section

MFC after: 1 week

(cherry picked from commit 61e11ed9bd183aacc684b56d96177a194053f622)

2 years agopw.8: Use Cm and Ar correctly in synopsis
Mateusz Piotrowski [Fri, 1 Apr 2022 10:43:22 +0000 (12:43 +0200)]
pw.8: Use Cm and Ar correctly in synopsis

MFC after: 1 week

(cherry picked from commit 5392b4fbb7ba879d5b6822e30a2bff90ec9dfcba)

2 years agortld: trace preloaded objects
Konstantin Belousov [Wed, 30 Mar 2022 21:01:54 +0000 (00:01 +0300)]
rtld: trace preloaded objects

(cherry picked from commit 0913953c9ed0f6ac3dd57aa06e1d7c8a1a6c5530)

2 years agortld trace_loaded_objects(): use bool for the list_containers variable
Konstantin Belousov [Wed, 30 Mar 2022 22:17:59 +0000 (01:17 +0300)]
rtld trace_loaded_objects(): use bool for the list_containers variable

(cherry picked from commit db0372808ad7575bd467049daa25a4415c6b2bab)

2 years agortld: use style(9) for trace_loaded_objects()
Konstantin Belousov [Wed, 30 Mar 2022 20:48:43 +0000 (23:48 +0300)]
rtld: use style(9) for trace_loaded_objects()

(cherry picked from commit b0bc8cc70518e1c02c5f68ccf7ab1760fd442310)

2 years agortld: extract printer for a single traced object into a helper
Konstantin Belousov [Wed, 30 Mar 2022 20:46:21 +0000 (23:46 +0300)]
rtld: extract printer for a single traced object into a helper

(cherry picked from commit 24d0c9c1f565bab6e97ec629f223e85b18bc700a)

2 years agortld: extract calculation of the format strings for trace into a helper
Konstantin Belousov [Wed, 30 Mar 2022 20:35:37 +0000 (23:35 +0300)]
rtld: extract calculation of the format strings for trace into a helper

(cherry picked from commit c25f36f630fce4b7af39d4bd0a3e23a2dc3396ff)

2 years agowpa/hostapd: Fix 100% CPU when USB wlan NIC removed
Cy Schubert [Sun, 3 Apr 2022 03:54:50 +0000 (20:54 -0700)]
wpa/hostapd: Fix 100% CPU when USB wlan NIC removed

hostapd calls pcap_next(3) to read the next packet off the wlan interface.
pcap_next() returns a pointer to the packet header but does not indicate
success or failure. Unfortunately this results in an infinite loop (100%
CPU) when the wlan device disappears, i.e. when a USB wlan device is
manually removed or a USB error results in the device removal. However
pcap_next_ex(3) does return success or failure. To resolve this we use
pcap_next_ex(), forcing hostapd to exit when the error is encountered.

An error message is printed to syslog or stderr when debugging (-d flag)
is enabled. Unfortunately wpa_printf() only works when debugging is enabled.

PR: 253608
Reported by: Damjan Jovanovic <damjan.jov@gmail.com>,
bz (privately)

(cherry picked from commit 6e5d01124fd4dd57899ddd9260c76dbb43543aa7)

2 years agoshare/mk heimdal: Remove unnecessary trailing backslash
Cy Schubert [Sat, 2 Apr 2022 03:41:34 +0000 (20:41 -0700)]
share/mk heimdal: Remove unnecessary trailing backslash

Remove the trailing backslash from the last list item. This is a NOP and
never bothered anything because the next line was a blank line. Remove
it for correctness sake.

(cherry picked from commit db2d56ca01e8526ff077a7ecbfcaf9b3130f65b1)

2 years agokern_linker.c: sort includes
Mitchell Horne [Sun, 20 Feb 2022 16:59:57 +0000 (12:59 -0400)]
kern_linker.c: sort includes

This is preferred by style(9). Do this ahead of adding another include.

Reviewed by: imp, kevans
MFC after: 3 days
Sponsored by: NetApp, Inc.
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D30185

(cherry picked from commit 877eea429ba5bbe7d28aca26d31fe15e8e14f8e2)

2 years agoinit_main.c: sort includes
Mitchell Horne [Mon, 10 May 2021 14:37:41 +0000 (11:37 -0300)]
init_main.c: sort includes

This is preferred by style(9). Do this ahead of adding another include.

Reviewed by: imp, kevans, allanjude
MFC after: 3 days
Sponsored by: NetApp, Inc.
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D30186

(cherry picked from commit 0aa9ffcd9c3ab174aeece3e8af611e796911a5d1)

2 years agoviawd(4): Fix a typo in a kernel message
Gordon Bergling [Sat, 2 Apr 2022 08:21:37 +0000 (10:21 +0200)]
viawd(4): Fix a typo in a kernel message

- s/watchog/watchdog

(cherry picked from commit 1cba6077beafdf29297854b8f6ab0a11e06d2782)

2 years agoAddress issue pointed out in CVE-2020-25705
George V. Neville-Neil [Sat, 19 Mar 2022 16:48:16 +0000 (17:48 +0100)]
Address issue pointed out in CVE-2020-25705

Add jitter to the ICMP bandwidth limit to deny a side-channel port scan.

Reviewed by: kp, philip, cy, emaste
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D27354

(cherry picked from commit ca4cd20c4afeb68ae30c4cc1103280590a099fe7)

2 years agoFix typo (interrups -> interrupts) in a sysctl description in tcp_lro.c.
Navdeep Parhar [Mon, 4 Apr 2022 20:48:32 +0000 (13:48 -0700)]
Fix typo (interrups -> interrupts) in a sysctl description in tcp_lro.c.

(cherry picked from commit 08c7f1b6d4880104a18bab2a642025c2e2fa9fad)

2 years agostge: fix null pointer dereference
Tong Zhang [Thu, 31 Mar 2022 18:16:55 +0000 (14:16 -0400)]
stge: fix null pointer dereference

stge_attach() could fail at line 464, sc->sc_spec remains NULL when
calling stge_detach(), thus bus_release_resources() at line 704 will
trigger null pointer dereference. We need to check the nulliness before
calling bus_release_resources().

PR: 258420
Reviewed by: markj

(cherry picked from commit 2108cc72906f274f30306570268434c4f8d23636)

2 years agouma: Use the correct type for a return value
Mark Johnston [Wed, 30 Mar 2022 19:42:05 +0000 (15:42 -0400)]
uma: Use the correct type for a return value

zone_alloc_bucket() returns a pointer, not a bool.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 54361f9020bf4d57fd700033476561f9c88942de)

2 years agoctf: Avoid passing a caddr_t to roundup2()
Mark Johnston [Mon, 7 Mar 2022 16:18:40 +0000 (11:18 -0500)]
ctf: Avoid passing a caddr_t to roundup2()

For some reason I can't reproduce this locally, but Jenkins complains.

Reported by: Jenkins
Fixes: bdf290cd3e1a ("ctf: Add v3 support to CTF tools, ctf{convert,dump,merge}")

(cherry picked from commit 3fe1f21fb364e38f2bf7e7100dad59b067b27080)

2 years agoctf: Fix a -Wunused-but-set-variable warning
Mark Johnston [Mon, 7 Mar 2022 15:34:11 +0000 (10:34 -0500)]
ctf: Fix a -Wunused-but-set-variable warning

Sponsored by: The FreeBSD Foundation

(cherry picked from commit cb6f7225629301d3179f6e9f6d3be4d80f57a31f)

2 years agoctf: Add v3 support to CTF tools, ctf{convert,dump,merge}
Mark Johnston [Mon, 7 Mar 2022 13:54:18 +0000 (08:54 -0500)]
ctf: Add v3 support to CTF tools, ctf{convert,dump,merge}

ctfdump handles v2 and v3.  ctfconvert now emits only CTFv3, whereas
ctfmerge can merge v2 and v3 containers into v3 containers.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit bdf290cd3e1a69d41c2f8bb60bd415cfa78adba2)

2 years agolibctf: Handle CTFv3 containers
Mark Johnston [Mon, 7 Mar 2022 13:53:27 +0000 (08:53 -0500)]
libctf: Handle CTFv3 containers

In general, the patch adds indirection to minimize the amount of code
that needs to know about differences between v2 and v3.  Specifically,
some new ctf_get_ctt_* functions are added, and new LCTF_* macros are
added to use the underlying container's version to do the right thing.

CTF containers can have parent/child relationships, wherein a type ID in
one container refers to a type in the parent.  It is permitted for the
parent and child to have different versions.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit a6fb86917362e3f6d24e95e940e80845c2cfde8a)

2 years agolinker: Permit CTFv3 containers
Mark Johnston [Mon, 7 Mar 2022 13:53:05 +0000 (08:53 -0500)]
linker: Permit CTFv3 containers

Reviewed by: Domagoj Stolfa
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 8dbae4ce32bde42daee050ccfceee5eb2d306786)

2 years agofbt: Add support for CTFv3 containers
Mark Johnston [Mon, 7 Mar 2022 13:45:53 +0000 (08:45 -0500)]
fbt: Add support for CTFv3 containers

The general aim in this and subsequent patches is to minimize the
amount of code that directly references CTF types such as ctf_type_t,
ctf_array_t, etc.  To that end, introduce some routines similar to the
existing fbt_get_ctt_size() (which exists to deal with differences
between v1 and v2) and change ctf_lookup_by_id() to return a void
pointer.

Support for v2 containers is preserved.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit d9175438c0e77ef2b400601aa8cf8098c82a77a7)

2 years agoctf: Add definitions for CTFv3
Mark Johnston [Mon, 7 Mar 2022 13:44:02 +0000 (08:44 -0500)]
ctf: Add definitions for CTFv3

These are based on definitions added to binutils' libctf.  Specifically:
- Type IDs are now encoded in 32 bits rather than 16, changing the
  layout of ctf_type_t, ctf_array_t, ctf_member_t and ctf_lmember_t.
- Type info is encoded in 32 bits rather than 16.  The type "kind" is
  extended from 5 bits to 6, and the type "vlen" is extended from 10
  bits to 25.

The main upside is that we remove the current limit, imposed by CTFv2,
of 2^{15} distinct types in the main kernel executable.  Other limits,
such as that on the number of elements in an enum, imposed by the vlen
limit, are also raised.

This change adds v2 and v3 flavours of macros and type definitions which
differ between the two versions.  Compatibility is preserved for now by
having generic names refer to the v2 definitions, so, e.g., ctf_type_t
is still a v2 type.

No functional change intended.

Reviewed by: Domagoj Stolfa
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 994297b01b98816bea1abf45ae4bac1bc69ee7a0)

2 years agolinker: Simplify CTF container handling
Mark Johnston [Mon, 7 Mar 2022 13:43:42 +0000 (08:43 -0500)]
linker: Simplify CTF container handling

Use sys/ctf.h to provide various definitions required to parse the CTF
header.  No functional change intended.

Reviewed by: Domagoj Stolfa, emaste
Sponsored by: The FreeBSD Foundation

(cherry picked from commit cab9382a2cdf88b3027370cbdf73b095598eb7c1)

2 years agoctf: Import ctf.h from OpenBSD
Mark Johnston [Mon, 7 Mar 2022 13:42:57 +0000 (08:42 -0500)]
ctf: Import ctf.h from OpenBSD

Use it instead of the existing ctf.h from OpenSolaris.  This makes it
easier to use CTF in the core kernel, and to extend the CTF format to
support wider type IDs.

The imported ctf.h is modified to depend only on _types.h, and also to
provide macros which use the "parent" bit of a type ID to refer to types
in a parent CTF container.

No functional change intended.

Reviewed by: Domagoj Stolfa, emaste
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 2d5d2a986ce1a93b8567dbdf3f80bc2b545d6998)

2 years agomrsas: if controller reset is in progress, refrain from firing DCMDs to
Chandrakanth Patil [Fri, 21 Jan 2022 09:24:37 +0000 (14:54 +0530)]
mrsas: if controller reset is in progress, refrain from firing DCMDs to
firmware in shutdown

If controller reset is in progress, at same time if system shutdown is
issued then corresponding shutdown function in driver will be invoked
where driver is waiting 15 seconds to complete the controller reset.

If the reset is not complteted within that time frame driver will go
ahead and fire cache flush and shutdown DCMDs which will end up
accessing the the queues which are not initialized due to undergoing
reset leads to FMU error in firmware.

Fix:
In shutdown function, if controller reset is not finished within 15
seconds than driver will return to the OS without firing any DCMDs.

Reviewed by: imp
PR: 261375

(cherry picked from commit 79c4c4be9618470711480f46ef2cd3a15c00cdd2)

2 years agomrsas: remove additional MPT command allocation for R1 FP command
Chandrakanth Patil [Fri, 21 Jan 2022 12:11:49 +0000 (17:41 +0530)]
mrsas: remove additional MPT command allocation for R1 FP command

There is an additional MPT command allocation for R1 fp command which
will lead to MPT command unavailablity in case of rigorous R1 FP IOs.

Remove additional MPT command allocation for R1 FP.

Reviewed by: imp
PR: 261377

(cherry picked from commit 241bb95552a39d440519162b544c776adcb7cf57)

2 years agofix integer overflow bugs in *stosbt
Warner Losh [Wed, 6 Apr 2022 03:35:27 +0000 (21:35 -0600)]
fix integer overflow bugs in *stosbt

68f57679d660 Fixed another class of integer overflows, but introduced a
boundary condition for 2-4s in ns conversion, 2-~4000s in us conversions
and 2-~4,000,000s in ms conversions. This was because we bogusly used
SBT_1S for the notion of 1 second, instead of the appropriate power of
10. To fix, just use the appropriate power of 10, which avoids these
overflows.

This caused some sleeps in ZFS to be on the order of an hour.

MFC: 1 day
PR: 263073
Sponsored by: Netflix
Reviewed by: asomers
Differential Revision: https://reviews.freebsd.org/D34790

(cherry picked from commit 4c30b9ecd47a2d92565731082a6a4f2bd1e6e051)

2 years agolibarchive: merge vendor bugfixes
Martin Matuska [Sun, 3 Apr 2022 12:21:28 +0000 (14:21 +0200)]
libarchive: merge vendor bugfixes

Bugfixes:
  IS #1685 and OSS-Fuzz #38764 (security):
    (ISO reader) fix possible heap buffer overflow in read_children()
  IS #1715 and OSS-Fuzz #46279 (security):
    (RARv4 reader) fix heap-use-after-free in run_filters()

(cherry picked from commit 9f690fcfdc050f566466ac10cca29ff43bf4fe92)

2 years agosysrc.8: Mention it requires chroot(8)
Jose Luis Duran [Sun, 3 Apr 2022 11:53:09 +0000 (13:53 +0200)]
sysrc.8: Mention it requires chroot(8)

Option -R uses chroot(8). Mention it in the corresponding section.

MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D34630

(cherry picked from commit 1a0bd2665a4be12c857adccc13661985b7259301)

2 years agobectl: push space-in-name check down into libbe
Kyle Evans [Sun, 3 Apr 2022 02:04:31 +0000 (21:04 -0500)]
bectl: push space-in-name check down into libbe

This check was previously in `create` only, not applying to renames.  It
should really be applied at the libbe level, so that we can avoid
writing about this restriction over and over again.

While we're here: `bectl rename` always succeeds, even when it doesn't.
Start returning the error.

Reported By: Christian McDonald <cmcdonald netgate com>

(cherry picked from commit dadb9c70938c4ae2c260f6af65752c67ac752284)

2 years agobectl: add some discussion about boot environment layouts
Kyle Evans [Thu, 31 Mar 2022 22:41:53 +0000 (17:41 -0500)]
bectl: add some discussion about boot environment layouts

Discuss the standard type of layout, as well as the "deep" BE layout,
and some of the properties of both.  Point the various -r flags at this
new section, to help users understand which they're working with and
what the -r flag is actually doing. Note that we may just deprecate the
-r flag in future versions, but the flag will be recognized as a NOP at
that point.

(cherry picked from commit c0f846ff235296249271b1235ff6a52b7d23cefb)

2 years agolibbe: fix be_mounted_at() with props after bootonce
Kyle Evans [Thu, 31 Mar 2022 19:18:14 +0000 (14:18 -0500)]
libbe: fix be_mounted_at() with props after bootonce

propinfo.bootonce was filled with garbage, leading to a segfault later
during prop building.  Initialize it to NULL.

(cherry picked from commit d155d8e138563c0b39c658684e6a4fe6e2e36f8a)

2 years agolibbe: pull props for the correct dataset in be_mounted_at()
Kyle Evans [Thu, 31 Mar 2022 19:19:52 +0000 (14:19 -0500)]
libbe: pull props for the correct dataset in be_mounted_at()

The props feature to this API was added as a "just in case", with no
planned consumer.  It turns out that it was implemented incorrectly,
tapping out props for the BE root (BE's parent) rather than the BE
itself in all cases.

Fetch properties for the dataset that's actually mounted at the queried
path.

Reported by: Christian McDonald <cmcdonald netgate com>

(cherry picked from commit 31190aa02eef05b1b58ba89212dc8c8738770e37)

2 years agogpart: Avoid geom_gettree() call in "bootcode -b".
Alexander Motin [Tue, 8 Mar 2022 18:44:22 +0000 (13:44 -0500)]
gpart: Avoid geom_gettree() call in "bootcode -b".

geom_gettree() may be pretty expensive on large systems, and it is
not needed if only -b flag specified, that is processed by kernel.

MFC after: 1 month

(cherry picked from commit 5c20bfc78706d2fe6e262ddb55af0a8b928d3835)