]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
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()

MFC after: 3 days

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

2 years agopw.8: Fix synopsis of NIS flags
Mateusz Piotrowski [Sun, 3 Apr 2022 11:42:49 +0000 (13:42 +0200)]
pw.8: Fix synopsis of NIS flags

MFC after: 1 week

2 years agopw.8: Sorty synopsis flag
Mateusz Piotrowski [Sun, 3 Apr 2022 11:38:05 +0000 (13:38 +0200)]
pw.8: Sorty synopsis flag

MFC after: 1 week

2 years agopw.8: Improve argument names
Mateusz Piotrowski [Sun, 3 Apr 2022 11:08:58 +0000 (13:08 +0200)]
pw.8: Improve argument names

Arguments passed to flags like -d and -k had ambiguous names like "dir".
Change that to more descriptive names like "homedir".

Also, clarify that -u min,max is for UIDs and -i min,max for GIDs.

MFC after: 1 week

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
MFC after: 1 week

2 years agoUpdate vendor/libarchive to libarchive/libarchive@db7145537
Martin Matuska [Sun, 3 Apr 2022 11:44:32 +0000 (13:44 +0200)]
Update vendor/libarchive to libarchive/libarchive@db7145537

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

Obtained from: libarchive
Libarchive commit: db714553712debbc447383f735e022031dc13127

2 years agostress2: Added a test to the exclude file
Peter Holm [Sun, 3 Apr 2022 09:12:24 +0000 (11:12 +0200)]
stress2: Added a test to the exclude file

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>
Reviewed by: rew, jwmaag_gmail.com (earlier version)
Differential Revision: https://reviews.freebsd.org/D34605

2 years agobsdinstall netconfig: Replace dialog(1) with bsddialog(1)
Alfonso S. Siciliano [Sat, 2 Apr 2022 19:29:37 +0000 (21:29 +0200)]
bsdinstall netconfig: Replace dialog(1) with bsddialog(1)

Replace (LGPL) dialog(1) with (BSD-2-Clause) bsddialog(1).

Approved by: bapt (mentor)
Differential Revision: https://reviews.freebsd.org/D34682

2 years agosctp: don't refer to a potentially outdated stream
Michael Tuexen [Sat, 2 Apr 2022 21:26:27 +0000 (23:26 +0200)]
sctp: don't refer to a potentially outdated stream

Reported by: syzbot+1593381019112e5bb35c@syzkaller.appspotmail.com
MFC after: 3 days

2 years agosctp: cleanup, no functional change
Michael Tuexen [Sat, 2 Apr 2022 21:02:16 +0000 (23:02 +0200)]
sctp: cleanup, no functional change

MFC after: 3 days

2 years agovfs: fixup WANTIOCTLCAPS on open
Mateusz Guzik [Sat, 2 Apr 2022 18:35:58 +0000 (20:35 +0200)]
vfs: fixup WANTIOCTLCAPS on open

In some cases vn_open_cred overwrites cn_flags, effectively nullifying
initialisation done in NDINIT. This will have to be fixed.

In the meantime make sure the flag is passed.

Reported by: jenkins
Noted by: Mathieu <sigsys@gmail.com>

2 years agosctp: remove a test, which isn't safe
Michael Tuexen [Sat, 2 Apr 2022 13:09:50 +0000 (15:09 +0200)]
sctp: remove a test, which isn't safe

 We can't ensure the stcb is still around. This issue was found
 by syzkaller.

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

2 years agoRevert "sctp: remove a test, which isn't safe"
Michael Tuexen [Sat, 2 Apr 2022 12:49:14 +0000 (14:49 +0200)]
Revert "sctp: remove a test, which isn't safe"

It included unrelated changes still under review.
This reverts commit b1fe92b28ba2e77395598db1c2ff1976b55c86ab.

2 years agosctp: remove a test, which isn't safe
Michael Tuexen [Sat, 2 Apr 2022 12:44:06 +0000 (14:44 +0200)]
sctp: remove a test, which isn't safe

We can't ensure the stcb is still around. This issue was found
by syzkaller.

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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.

MFC after: 3 days

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/

MFC after: 3 days

2 years agopfsync: Add CTLFLAG_VNET to carp_demotion_factor sysctl
Luiz Amaral [Sat, 2 Apr 2022 10:09:06 +0000 (12:09 +0200)]
pfsync: Add CTLFLAG_VNET to carp_demotion_factor sysctl

When trying to avoid a CARP demotion during a pfsync service restart, I
noticed that a non-default value for the net.pfsync.carp_demotion_factor
sysctl was not being applied during the demotion. The CARP was always
demoted by 240.

After investigating, I realized that the sysctl was using VNET_NAME()
without the CTLFLAG_VNET.

PR: 262983
Reviewed by: kp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D34737

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/

MFC after: 3 days

2 years agovfs: fix memory leak on lookup with fds with ioctl caps
Mateusz Guzik [Thu, 24 Mar 2022 20:51:03 +0000 (21:51 +0100)]
vfs: fix memory leak on lookup with fds with ioctl caps

Reviewed by: markj
PR: 262515
Noted by: firk@cantconnect.ru
Differential Revision: https://reviews.freebsd.org/D34667

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

2 years agoenetc(4): Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 12:02:46 +0000 (14:02 +0200)]
enetc(4): Fix a typo in a source code comment

- s/multple/multiple/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

2 years agoiwm(4): Remove a whitespace
Gordon Bergling [Sat, 2 Apr 2022 11:09:26 +0000 (13:09 +0200)]
iwm(4): Remove a whitespace

In 9f4dc7fd97de I accidentally added a whitespace at the
end of the line. Remove it.

Reported by: Jose Luis Duran (via github)
MFC with: 9f4dc7fd97de

2 years agopowerpc: implement __clear_cache
Piotr Kubaj [Fri, 1 Apr 2022 19:13:13 +0000 (21:13 +0200)]
powerpc: implement __clear_cache

Merge LLVM commit 81f5c6270cdfcdf80e6296df216b696a7a37c8b5.

This fixes runtime of most notably pcre libraries (currently patched in ports),
and probably also other ports since currently __clear_cache() just calls
SIGABRT on powerpc.

MFC after: 3 days
Reviewed by: dim
Differential Revision: https://reviews.freebsd.org/D34736

2 years agokern: Fix typo in kassert message.
Peter Jeremy [Sat, 2 Apr 2022 10:36:17 +0000 (21:36 +1100)]
kern: Fix typo in kassert message.

- s/unepxected/unexpected/
MFC after: 3 days

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/

MFC after: 3 days

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
MFC after: 3 days

2 years agopowerpc64: Fix a typo in a source code comment
Gordon Bergling [Sat, 2 Apr 2022 08:56:45 +0000 (10:56 +0200)]
powerpc64: Fix a typo in a source code comment

- s/converion/conversion/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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

MFC after: 3 days

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

MFC after: 5 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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
MFC after: 3 days

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
MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

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/

MFC after: 3 days

2 years agoulpt(4): Add support for Epson TM-U220B.
Hans Petter Selasky [Sat, 2 Apr 2022 00:27:48 +0000 (02:27 +0200)]
ulpt(4): Add support for Epson TM-U220B.

Submitted by: Archimedes Gaviola <archimedes.gaviola@gmail.com>
MFC after: 1 week
Sponsored by: NVIDIA Networking

2 years agosctp: clear pointer to stack when returning from function.
Michael Tuexen [Fri, 1 Apr 2022 22:54:49 +0000 (00:54 +0200)]
sctp: clear pointer to stack when returning from function.

Reported by:    syzbot+04cee5d8805dfbb63c06@syzkaller.appspotmail.com
Reported by:    syzbot+71e7e33dfc3cc39a6bd0@syzkaller.appspotmail.com
Reported by:    syzbot+6c36fc3c1bd03ed96107@syzkaller.appspotmail.com
Reported by:    syzbot+198b3751c158181c47de@syzkaller.appspotmail.com

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

2 years agosystat.1: Fix lists
Mateusz Piotrowski [Fri, 1 Apr 2022 13:41:04 +0000 (15:41 +0200)]
systat.1: Fix lists

Some of the lists were not displaying correctly. Fix that.

Also, address linters errors.

Fixes: 22054f88914b Report I/O stats from the CAM_IOSCHED_DYNAMIC extension
MFC after: 1 week

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

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

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

2 years agoLinuxKPI: 802.11: fix RSSI (and NF)
Bjoern A. Zeeb [Fri, 1 Apr 2022 22:31:23 +0000 (22:31 +0000)]
LinuxKPI: 802.11: fix RSSI (and NF)

As in 4a22cd6c4e5f4fc4a38aa7400742d4005c5ae3de nf and rss should be
signed and not unsigned.  Change the types in the header and while
here change a magic number to a define as done elsewhere (value does
not change).

When calculating c_rssi we need to make it relative so subtract nf.
And while here improve the debug output.

This will hopefully fix ifconfig wlanN list scan S:N output which
tools use to chose a BSSID and help net80211 internal calculations.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

2 years agonet80211: correct types for nf and rssi
Bjoern A. Zeeb [Fri, 1 Apr 2022 22:30:02 +0000 (22:30 +0000)]
net80211: correct types for nf and rssi

NF and RSSI should be signed and not unsigned to avoid problems.
Change the type accordingly.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

2 years agocxgbe/iw_cxgbe: Initialize the vma correctly in c4iw_mmap.
Navdeep Parhar [Fri, 1 Apr 2022 19:58:14 +0000 (12:58 -0700)]
cxgbe/iw_cxgbe: Initialize the vma correctly in c4iw_mmap.

This fixes userspace RDMA applications that would fail due to mmap
failure.  The driver's mmap routine would succeed but later the
linux_compat.c mmap routine would fail because vma->vm_private_data
wasn't set properly.

This is catch-up with b633e08c705fe43180567eae26923d6f6f98c8d9.

Reported by: Veeresh @ Chelsio
Sponsored by: Chelsio Communications

2 years agopf: handle duplicate rules gracefully
Mateusz Guzik [Fri, 1 Apr 2022 15:04:03 +0000 (15:04 +0000)]
pf: handle duplicate rules gracefully

Reviewed by: kp
Reported by: dch
PR: 262971
Sponsored by: Rubicon Communications, LLC ("Netgate")

2 years agoinstallworld: handle ldd including preloaded objects
Ed Maste [Fri, 1 Apr 2022 13:58:47 +0000 (09:58 -0400)]
installworld: handle ldd including preloaded objects

The installworld target makes a temporary copy of binaries to be used
during the install.  Libraries that they depend on are also included,
found by using `ldd`.

After commit 0913953c9ed0 ldd started listing preloaded objects,
including [vdso], under a [preloaded] header.  Skip ldd output that is
enclosed in square brackets.

Reviewed by: cy, kib [earlier version]
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34734

2 years agobsd-family-tree: Update various URLs in file
Elliott Mitchell [Fri, 1 Apr 2022 14:28:28 +0000 (08:28 -0600)]
bsd-family-tree: Update various URLs in file

Been some time since 364fe18b8c8 when the URL was first in this file.
Update from svnweb to cgit for the URL listed at the end of this file.
In addition, update all URLs to HTTPS. Replace two URLs with links to
archive.org as the original URLs are no longer valid.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D34730

2 years agoOpps sorry, typo in the cc_cubic fix when morphing it from nreno.
Randall Stewart [Fri, 1 Apr 2022 12:37:04 +0000 (08:37 -0400)]
Opps sorry, typo in the cc_cubic fix when morphing it from nreno.

2 years agohystart++ may not properly exit CSS back to slowstart.
Randall Stewart [Fri, 1 Apr 2022 12:33:44 +0000 (08:33 -0400)]
hystart++ may not properly exit CSS back to slowstart.

In the changes to get hystart++ into cubic an inadvertent line
was removed in the conditional to figure out if you need to exit
hystart++ back to slowstart. The line of course is the most crucial
one (the others are valid but not critical) i.e. is the new rtt
less than the point where we entered hystart++. Without the line
we end up bouncing in and out of CSS.

Reported By: Reese Enghardt
Sponsored By: Netflix Inc.

2 years agorack may end up with a stuck connectin fi the rwnd is colapsed on sent data.
Randall Stewart [Fri, 1 Apr 2022 12:29:27 +0000 (08:29 -0400)]
rack may end up with a stuck connectin fi the rwnd is colapsed on sent data.

There is a case where rack will get stuck when it has outstanding data and
the peer collapses the rwnd down to 0. This leaves the session hung if
the rwnd update is not received. You can test this with the packet drill script
below. Without this fix it will be stuck and hang. With it we retransmit everything.
This also fixes the mtu retransmit case so we don't go into recovery when
the mtu is changed to a smaller value.

Reviewed by: tuexen
Sponsored by: Netflix Inc.
Differential Revision: https://reviews.freebsd.org/D34573

2 years agobhyve: avoid an empty passthru config value
Corvin Köhne [Fri, 1 Apr 2022 08:20:55 +0000 (10:20 +0200)]
bhyve: avoid an empty passthru config value

pci_parse_legacy_config splits the options string by comma characters.
strchr returns a pointer to the first occurence of a character. In that
case, it's a comma. So, pci_parse_legacy_config will stop at the first
character and creates a new config node with a name of NULL.

Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D34600

2 years agobhyve: avoid uninitialized variable
Corvin Köhne [Fri, 1 Apr 2022 08:19:53 +0000 (10:19 +0200)]
bhyve: avoid uninitialized variable

Reviewed by: markj
Signed-off-by: Corvin Köhne <c.koehne@beckhoff.com>
Reported-by: Andy Fiddaman <andy@omniosce.org>
Differential Revision: https://reviews.freebsd.org/D34688

2 years agobhyve: avoid overflow of BAR index
Corvin Köhne [Fri, 1 Apr 2022 08:18:52 +0000 (10:18 +0200)]
bhyve: avoid overflow of BAR index

At the moment, writes to BAR registers that aren't 4 byte aligned are
ignored. So, there's no overflow yet. Nevertheless, if this behaviour
changes in the future, it could unintentionally, introduce a buffer
overflow. Additionally, some compiler or tools will detect this
potential overflow and complain about it.

Reviewed by: markj
Signed-off-by: Corvin Köhne <c.koehne@beckhoff.com>
Reported-by: Andy Fiddaman <andy@omniosce.org>
Differential Revision: https://reviews.freebsd.org/D34689

2 years agobsd-family-tree: macOS 11 and macOS 12
Warner Losh [Fri, 1 Apr 2022 04:24:16 +0000 (22:24 -0600)]
bsd-family-tree: macOS 11 and macOS 12

Sponsored by: Netflix

2 years agobsd-family-tree: Dragonfly 6.2.1 release
Warner Losh [Fri, 1 Apr 2022 04:14:56 +0000 (22:14 -0600)]
bsd-family-tree: Dragonfly 6.2.1 release

Sponsored by: Netflix

2 years agobsd-family-tree: Add OpenBSD 7.0
Warner Losh [Fri, 1 Apr 2022 04:09:56 +0000 (22:09 -0600)]
bsd-family-tree: Add OpenBSD 7.0

Sponsored by: Netflix

2 years agobsd-family-tree: Add FreeBSD 12.3
Warner Losh [Fri, 1 Apr 2022 03:11:20 +0000 (21:11 -0600)]
bsd-family-tree: Add FreeBSD 12.3

FreeBSD 12.3 wasn't added when it was released. Add it now.

Sponsored by: Netflix

2 years agonvme: Publish the drive's capabilities
Warner Losh [Tue, 29 Mar 2022 23:03:47 +0000 (17:03 -0600)]
nvme: Publish the drive's capabilities

Add cap_lo and cap_hi sysctl to each nvme drive. This publishes the raw
capabilities of the drive. Now we can only discover these with
bootverbose.

Sponsored by: Netflix