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

2 years agonvme: Save cap_lo and cap_hi
Warner Losh [Tue, 29 Mar 2022 22:59:05 +0000 (16:59 -0600)]
nvme: Save cap_lo and cap_hi

Save the capabilities for the drive.

Sponsored by: Netflix

2 years agonvme: MPS is a power of two, not a size / 8k
Warner Losh [Tue, 29 Mar 2022 19:21:55 +0000 (13:21 -0600)]
nvme: MPS is a power of two, not a size / 8k

Setting MPS in the CC should be a power of 2 number (it specifies the
page size of the host is 2^(12+MPS)), so adjust the calcuation. There is
no functional change because we do not support any architecutres != 4k
pages (yet). Other changes are needed for architectures with 16k or 64k
pages, especially when the underlying NVMe drive doesn't support that
page size (Most drives support a range that's small, and many only
support 4k), but let's at least do this calculation correctly. 12 - 12
is just as much 0 as 4096 >> 13 is :)

Sponsored by: Netflix
Reviewed by: mav
Differential Revision: https://reviews.freebsd.org/D34707

2 years agoacpica: Import ACPICA 20220331
Jung-uk Kim [Thu, 31 Mar 2022 22:06:25 +0000 (18:06 -0400)]
acpica: Import ACPICA 20220331

(cherry picked from commit ca1c95cc699a25d891e62ef863c8268c93b35cf8)

2 years agoApply some style(9) to pthread tests
Ed Maste [Fri, 1 Apr 2022 01:36:55 +0000 (21:36 -0400)]
Apply some style(9) to pthread tests

Reported by: kib
Fixes: ef135466f81b ("Clean up warnings in pthread tests")
Sponsored by: The FreeBSD Foundation

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

Before, preloaded objects, if not listed as needed for any normally
linked objects, were silently ignored.

Preloaded objects are printed with the `[preloaded]` herald. The list
includes the objects not listed explicitly as recursive dependencies of
the main object, effectively dsos loaded by LD_PRELOAD mechanism.
vdso is listed as well, since it is not needed by anything.

Since there is no DT_NEEDED entry for LD_PRELOADed objects, they are
usually printed using LD_TRACE_LOADED_OBJECTS_FTM2 format due to the
failure of the heuristic based on the presence of the 'lib' prefix.

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D34716

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

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D34716

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()

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D34716

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

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D34716

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

Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D34716

2 years agortw88: add man pages and hook up to build
Bjoern A. Zeeb [Wed, 30 Mar 2022 22:36:03 +0000 (22:36 +0000)]
rtw88: add man pages and hook up to build

Add man pages for rtw88 and rtw88fw.  Install a copy of the firmware
license file and hook up the driver and firmware modules to the build.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Relnotes: yes

2 years agortw88: import firmware for Realtek's rtw88 supported chipsets.
Bjoern A. Zeeb [Wed, 30 Mar 2022 22:06:14 +0000 (22:06 +0000)]
rtw88: import firmware for Realtek's rtw88 supported chipsets.

Import the most recent versions of the firmware images for the
rtw88 driver.

This is based on linux-firmware at 681281e49fb6778831370e5d94e6e1d97f0752d6.

The license of the firmware matches the previous rtwnfw(4) firmware
files (modulo a Copyright year) and you can find a copy in
sys/contrib/dev/rtw88fw/LICENCE.rtlwifi_firmware.txt.

Add build infrastructure to create the .ko files but do not yet hook
it up to the build until all parts are in the tree.

Approved by: core (imp)
MFC after: 2 weeks

2 years agortw88: import Realtek's rtw88 driver
Bjoern A. Zeeb [Wed, 30 Mar 2022 21:54:04 +0000 (21:54 +0000)]
rtw88: import Realtek's rtw88 driver

Import rtw88 based on wireless-testing at
5d5d68bcff1f7ff27ba0b938a4df5849849b47e3 with adjustments for FreeBSD.

While our version of the driver has knowledge about the incapablity
of DMA above 4GB we do see errors if people have more than that
often already showing when laoding firmware.
The problem for that is currently believed to be outside this driver
so importing it anyway for now.

Given the lack of full license texts on non-local files this is
imported under the draft policy for handling SPDX files (D29226). [1]

Approved by: core (imp) [1]
MFC after: 2 weeks

2 years agouart(4): Add a concept of "unique" serial devices
Colin Percival [Tue, 29 Mar 2022 07:41:37 +0000 (00:41 -0700)]
uart(4): Add a concept of "unique" serial devices

FreeBSD detects serial ports twice: First, very early in the boot
process, in order to obtain a usable console; and second, during
the device probe/attach process.  When a UART is discovered during
device probing, FreeBSD attempts to determine whether it is a
device which was already being used as a console; without this,
the console doesn't work in userland.

Unfortunately it's possible for a UART to be mapped to a different
location in memory when it is discovered on a bus than it has when
it is announced via the ACPI SPCR table; this breaks the matching
process, which relies on comparing bus addresses.

To address this, we introduce a concept of "unique" serial devices,
i.e. devices which are guaranteed to be present *only once* on any
system.  If we discover one of these during device probing, we can
match it to a same-PCI-vendor-and-device-numbers console which was
announced via the ACPI SPCR table, regardless of the differing bus
addresses.

At present, the only unique serial device is the "Amazon PCI serial
device" (vendor 0x1d0f, device 0x8250) found in some EC2 instances.
This unbreaks the serial console on those systems.

Reviewed by: imp
MFC after: 3 days
Sponsored by: https://www.patreon.com/cperciva
Differential Revision: https://reviews.freebsd.org/D34703

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.

Reviewed by: pauamma_gundo.com, rew
Differential Revision: https://reviews.freebsd.org/D34538

2 years agoMFV 7b495a2a7abf (zlib): Correct incorrect inputs provided to the CRC
Xin LI [Thu, 31 Mar 2022 22:35:58 +0000 (15:35 -0700)]
MFV 7b495a2a7abf (zlib): Correct incorrect inputs provided to the CRC
functions.

MFC after: 3 days

2 years agoCorrect incorrect inputs provided to the CRC functions.
Mark Adler [Wed, 30 Mar 2022 18:14:53 +0000 (11:14 -0700)]
Correct incorrect inputs provided to the CRC functions.

The previous releases of zlib were not sensitive to incorrect CRC
inputs with bits set above the low 32. This commit restores that
behavior, so that applications with such bugs will continue to
operate as before.

(cherry picked from commit ec3df00224d4b396e2ac6586ab5d25f673caa4c2)

2 years agovm_phys: check small blocks to finish allocation
Doug Moore [Thu, 31 Mar 2022 21:19:55 +0000 (16:19 -0500)]
vm_phys: check small blocks to finish allocation

In vm_phys_alloc_queues_contig, in the case that a sequence of
max-order blocks are sought to fulfill an allocation, a sequence is
ruled out if it does not have enough max-order blocks to satisfy the
allocation. However, there may be smaller blocks of free memory that
follow the last max-order block in the sequence, and they may be big
enough to complete the allocation request, so check for that
possibility before giving up on that block sequence.

Reviewed by: markj
Tested by: pho
Differential Revision: https://reviews.freebsd.org/D34724

2 years agolinsysfs: plug set-but-not-used vars.
Dmitry Chagin [Thu, 31 Mar 2022 20:49:26 +0000 (23:49 +0300)]
linsysfs: plug set-but-not-used vars.

MFC after: 2 weeks

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
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D34629

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