]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
2 years agotests: vnet tests started failing in CI, disable temporarily
Marko Zec [Wed, 4 May 2022 04:19:46 +0000 (06:19 +0200)]
tests: vnet tests started failing in CI, disable temporarily

As a fallout of backing out 91f44749c6fe, vnet tests started
failing in CI.  Temporarily broadly disable vnet tests until
specific cases can be resolved, and file a bug.

PR: 263767
Differential Revision: https://reviews.freebsd.org/D35119
Submitted by: kbowling

2 years agoOpenSSL: Merge OpenSSL 1.1.1o
Jung-uk Kim [Tue, 3 May 2022 19:12:42 +0000 (15:12 -0400)]
OpenSSL: Merge OpenSSL 1.1.1o

2 years agoOpenSSL: Merge OpenSSL 1.1.1o
Jung-uk Kim [Tue, 3 May 2022 19:07:06 +0000 (15:07 -0400)]
OpenSSL: Merge OpenSSL 1.1.1o

Merge commit 'cf0ffd7607ed8f39829c6951a65a55fa1eb3aafe'

2 years agoVNET: Revert "ifnet: make if_index global"
Marko Zec [Tue, 3 May 2022 14:57:55 +0000 (16:57 +0200)]
VNET: Revert "ifnet: make if_index global"

This reverts commit 91f44749c6feb50f39af8805dd803e860f0418f1.

Devirtualization of V_if_index and V_ifindex_table was rushed into
the tree lacking proper context, discussion, and declaration of intent,
so I'm backing it out as harmful to VNET on the following grounds:

1) The change repurposed the decades-old and stable if_index KBI for
new, unclear goals which were omitted from the commit note.

2) The change opened up a new resource exhaustion vector where any vnet
could starve the system of ifnet indices, including vnet0.

3) To circumvent the newly introduced problem of separating ifnets
belonging to different vnets from the globalized ifindex_table, the
author introduced sysctl_ifcount() which does a linear traversal over
the (potentially huge) global ifnet list just to return a simple upper
bound on existing ifnet indices.

4) The change effectively led to nonuniform ifnet index allocation
among vnets.

5) The commit note clearly stated that the patch changed the implicit
if_index ABI contract where ifnet indices were assumed to be starting
from one.  The commit note also included a correct observation that
holes in interface indices were always allowed, but failed to declare
that the userland-observable ifindex tables could now include huge
empty spans even under modest operating conditions.

6) The author had an earlier proposal in the works which did not
affect per-vnet ifnet lists (D33265) but which he abandoned without
providing the rationale behind his decision to do so, at the expense
of sacrificing the vnet isolation contract and if_index ABI / KBI.

Furthermore, the author agreed to back out his changes himself and
to follow up with a proposal for a less intrusive alternative, but
later silently declined to act.  Therefore, I decided to resolve the
status-quo by backing this out myself.  This in no way precludes a
future proposal aiming to mitigate ifnet-removal related system
crashes or panics to be accepted, provided it would not unnecessarily
compromise the goal of as strict as possible isolation between vnets.

Obtained from: github.com/glebius/FreeBSD/commits/backout-ifindex

2 years agoRevert "mbuf: do not restore dying interfaces"
Marko Zec [Tue, 3 May 2022 14:56:57 +0000 (16:56 +0200)]
Revert "mbuf: do not restore dying interfaces"

This reverts commit 703e533da5e2e4743d38bbf4605fec041bc69976.

Revert "ifnet/mbuf: provide KPI to serialize/restore m->m_pkthdr.rcvif"

This reverts commit e1882428dcbbafd2814d7e17b977a8f686784b39.

Obtained from: github.com/glebius/FreeBSD/commits/backout-ifindex

2 years agoRevert "dummynet: use m_rcvif_serialize/restore when queueing packets"
Marko Zec [Tue, 3 May 2022 14:55:56 +0000 (16:55 +0200)]
Revert "dummynet: use m_rcvif_serialize/restore when queueing packets"

This reverts commit 165746f4e4bf54c5902a103c2d4a3455e651c58f.

Obtained from: github.com/glebius/FreeBSD/commits/backout-ifindex

2 years agoRevert "netisr: serialize/restore m_pkthdr.rcvif when queueing mbufs"
Marko Zec [Tue, 3 May 2022 14:54:50 +0000 (16:54 +0200)]
Revert "netisr: serialize/restore m_pkthdr.rcvif when queueing mbufs"

This reverts commit 6871de9363e559fef6765f0e49acc47f77544999.

Obtained from: github.com/glebius/FreeBSD/commits/backout-ifindex

2 years agotests/dummynet: disable since mbuf pointer serialization KPI to be backed out
Marko Zec [Tue, 3 May 2022 14:47:44 +0000 (16:47 +0200)]
tests/dummynet: disable since mbuf pointer serialization KPI to be backed out

Obtained from: github.com/glebius/FreeBSD/commits/backout-ifindex

2 years agopkgbase: move devd's hyperv.conf to hyperv-tools package
Mina Galić [Mon, 2 May 2022 14:49:43 +0000 (15:49 +0100)]
pkgbase: move devd's hyperv.conf to hyperv-tools package

This devd config file is useless without hyperv-tools, so we're moving
it into the hyperv-tools package. pr#263691

PR: 263691
MFC after: 3 days

2 years agoxhci(4): Always add and evaluate the slot context.
Hans Petter Selasky [Tue, 3 May 2022 16:10:49 +0000 (18:10 +0200)]
xhci(4): Always add and evaluate the slot context.

Because the maximum number of endpoint contexts is stored there.

Tested by: ehaupt@
PR: 262882
MFC after: 3 hours
Sponsored by: NVIDIA Networking

2 years agoxhci(4): Only drop BULK and INTERRUPT endpoints to reset data toggle.
Hans Petter Selasky [Tue, 3 May 2022 16:09:17 +0000 (18:09 +0200)]
xhci(4): Only drop BULK and INTERRUPT endpoints to reset data toggle.

Only drop BULK and INTERRUPT endpoints, to reset the data toggle,
because for other endpoint types this is not critical.

Tested by: ehaupt@
PR: 262882
MFC after: 3 hours
Sponsored by: NVIDIA Networking

2 years agoImport OpenSSL 1.1.1o
Jung-uk Kim [Tue, 3 May 2022 15:01:12 +0000 (11:01 -0400)]
Import OpenSSL 1.1.1o

2 years agonfscl: Acquire a refcount on "cred" for mirrored pNFS RPCs
Rick Macklem [Tue, 3 May 2022 14:22:15 +0000 (07:22 -0700)]
nfscl: Acquire a refcount on "cred" for mirrored pNFS RPCs

When the NFSv4.1/4.2 client is doing a pnfs mount to
mirrored DS(s), asynchronous threads are used to do the
RPCs against the DS(s) concurrently.  If a DS is slow
to reply, it is possible for the "cred" to be free'd
before the asynchronous thread is done with it, causing
a panic/crash.

This patch fixes the problem by acquiring a refcount on
the "cred" while it is being used by the asynchronous thread
for a DS RPC.  This bug was found during a recent IETF
NFSv4 testing event.

This bug only affects "pnfs" mounts to mirrored pNFS
servers.

MFC after: 2 weeks

2 years agobsdinstall/script: umount before zpool export
Corvin Köhne [Tue, 3 May 2022 14:01:22 +0000 (16:01 +0200)]
bsdinstall/script: umount before zpool export

When running zpool export first, boot/efi and dev is still mounted so
zpool export fails. By running bsdinstall umount first the pool can be
cleanly exported.

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D35114
Sponsored by: Beckhoff Automation GmbH & Co. KG
MFC After: 3 days

2 years agobsdinstall: stop messing with file descriptors
Corvin Köhne [Tue, 3 May 2022 14:00:09 +0000 (16:00 +0200)]
bsdinstall: stop messing with file descriptors

Throughout the bsdinstall script fd 3 is used by f_dprintf (set through
$TERMINAL_STDOUT_PASSTHRU). By closing file descriptor 3 here, the
final f_dprintf "Installation Completed ... does not work anymore.

By putting the code into a subshell, file descriptors can be edited
without interference with the calling script.

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D35113
Sponsored by: Beckhoff Automation GmbH & Co. KG
MFC after: 3 days

2 years agomlx5en(4): Use hard-coded 4K page size for RQ/SQ/CQ.
Hans Petter Selasky [Mon, 2 May 2022 15:14:50 +0000 (17:14 +0200)]
mlx5en(4): Use hard-coded 4K page size for RQ/SQ/CQ.

The page size specified for RQ, SQ and CQ is always in units of 4KBytes.
Make sure we subtract MLX5_ADAPTER_PAGE_SHIFT, 12, instead of PAGE_SHIFT
which may vary. This fixes support for using the mlx5en driver on systems
having non-4K page size.

Linux commit:
68cdf5d6e91068c98d6091b193dc7a5ab7dcf5eb

MFC after: 1 week
Sponsored by: NVIDIA Networking

2 years agobuild target triple variable from sys/conf/newvers.sh
Alfredo Dal'Ava Junior [Tue, 3 May 2022 11:09:38 +0000 (08:09 -0300)]
build target triple variable from sys/conf/newvers.sh

Retrieve FreeBSD revision number directly from sys/conf/newvers.sh
when building the compiler target triple value, avoiding manual
intervention on other files every new release.

Reviewed by: imp
MFC after: 2 months
Sponsored by: Instituto de Pesquisas Eldorado (eldorado.org.br)
Differential Revision: https://reviews.freebsd.org/D34429

2 years agoRemove PAGE_SIZE from libthr
Andrew Turner [Thu, 7 Apr 2022 16:24:46 +0000 (17:24 +0100)]
Remove PAGE_SIZE from libthr

In libthr we use PAGE_SIZE when allocating memory with mmap and to check
various structs will fit into a single page so we can use this allocator
for them.

Ask the kernel for the page size on init for use by the page allcator
and add a new machine dependent macro to hold the smallest page size
the architecture supports to check the structure is small enough.

This allows us to use the same libthr on arm64 with either 4k or 16k
pages.

Reviewed by: kib, markj, imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34984

2 years agoUse the existing page size in libthr
Andrew Turner [Thu, 7 Apr 2022 16:20:04 +0000 (17:20 +0100)]
Use the existing page size in libthr

Rather than calling getpagesize() twice use the value saved after the
first call to size a mmap allocation.

Reviewed by: kib, markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34983

2 years agonfsd: Fix session slot freeing for NFSv4.1/4.2
Rick Macklem [Mon, 2 May 2022 19:45:42 +0000 (12:45 -0700)]
nfsd: Fix session slot freeing for NFSv4.1/4.2

Without this patch the NFSv4.1/4.2 server erroneously
always frees session slot zero for callbacks.  This only
affects 4.1/4.2 mounts if the server has delegations
enabled or is a pNFS configuration.  Even for those
cases, the effect is mainly to only use slot 0 for
callbacks, serializing all of them.  There is a slight
chance that callbacks will fail if the client performs
them in a different order than received on the TCP
connection.

If this bug affects your server, you will see console
messages like:
  newnfs_request: Bad session slot

This patch fixes the problem.  Found during a recent
IETF NFSv4 testing event.

PR: 263728
MFC after: 2 weeks

2 years agoRemove stray .Pp from WITH_LOADER_EFI_SECUREBOOT description
Ed Maste [Mon, 2 May 2022 19:42:32 +0000 (15:42 -0400)]
Remove stray .Pp from WITH_LOADER_EFI_SECUREBOOT description

MFC after: 3 days
Fixes: 13ea0450a9c8 ("Extend libsecureboot(old libve) to...")
Sponsored by: The FreeBSD Foundation

2 years agofreebsd-update: restart sshd after upgrade
Ed Maste [Mon, 2 May 2022 17:16:19 +0000 (13:16 -0400)]
freebsd-update: restart sshd after upgrade

Sometimes the parent-child sshd protocol changes during an upgrade, and
when this happens sshd will not accept new connections until it is
restarted.

PR: 263489
Reviewed by: kevans, gjb
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D35109

2 years agoUpdate UNIFIED_OBJDIR descriptions
Ed Maste [Mon, 2 May 2022 17:53:30 +0000 (13:53 -0400)]
Update UNIFIED_OBJDIR descriptions

src.conf(5) previously stated they would be removed before FreeBSD 12.0,
but that did not happen.  Change it to "a future version of FreeBSD."

Also pick up LOADER_KBOOT change (enabled on x86) in src.conf regen.

Reported by: jhb
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

2 years agocam: Remove redunant static __inline forward decls
Warner Losh [Mon, 2 May 2022 15:29:20 +0000 (09:29 -0600)]
cam: Remove redunant static __inline forward decls

Sponsored by: Netflix

2 years agodiff3: Remove test case that references non existent test files
Tom Jones [Mon, 2 May 2022 15:00:44 +0000 (16:00 +0100)]
diff3: Remove test case that references non existent test files

Sponsored by: Klara, Inc.

2 years agong_pppoe: introduce new sysctl net.graph.pppoe.lcp_pcp
Eugene Grosbein [Mon, 2 May 2022 14:55:24 +0000 (21:55 +0700)]
ng_pppoe: introduce new sysctl net.graph.pppoe.lcp_pcp

This fixes incomplete commit 2e547442ab3822d3d7c46a68f152032ef5fe337c

New sysctl allows to mark transmitted PPPoE LCP Control
ethernet frames with needed 3-bit Priority Code Point (PCP) value.
Confirming driver like if_vlan(4) uses the value to fill
IEEE 802.1p class of service field.

This is similar to Cisco IOS "control-packets vlan cos priority"
command.

It helps to avoid premature disconnection of user sessions
due to control frame drops (LCP Echo etc.)
if network infrastructure has a botteleck at a switch
or the xdsl DSLAM.

See also:
https://sourceforge.net/p/mpd/discussion/44692/thread/c7abe70e3a/

Tested by:      Klaus Fokuhl at SourceForge
MFC after:      2 weeks

2 years agoibcore: Allow passing NULL-pointers to ib_umem_release()
Hans Petter Selasky [Mon, 2 May 2022 11:10:09 +0000 (13:10 +0200)]
ibcore: Allow passing NULL-pointers to ib_umem_release()

FreeBSD commit b633e08c705fe43180567eae26923d6f6f98c8d9 removed the
NULL-checks from the mlx4ib-driver.

This fixes the following NULL-pointer panic when unloading mlx4ib:
ib_umem_release()
mlx4_ib_destroy_qp()
ib_destroy_qp_user()
ipoib_transport_dev_cleanup()
ipoib_dev_cleanup()
ipoib_remove_one()
ib_unregister_client()
ipoib_cleanup_module()
linker_file_sysuninit()
linker_file_unload()
kern_kldunload()
amd64_syscall()

Linux commit:
836a0fbb3e76f704ad65ddfb57f00725245e509b

MFC after: 1 week
Submitted by: dandan@lysator.liu.se
Sponsored by: Lysator ACS
Sponsored by: NVIDIA Networking

2 years agoiosched: Move bio_next() inside of the CAM_IOSCHED_DYNAMIC ifdef
Warner Losh [Sun, 1 May 2022 22:53:13 +0000 (16:53 -0600)]
iosched: Move bio_next() inside of the CAM_IOSCHED_DYNAMIC ifdef

bio_next() is only used by the dynamic scheduler, so move it under that
ifdef.

Sponsored by: Netflix

2 years agonfsd: Add a sanity check to SecinfoNoname for file type
Rick Macklem [Sun, 1 May 2022 20:41:31 +0000 (13:41 -0700)]
nfsd: Add a sanity check to SecinfoNoname for file type

Robert Morris reported that, for the case of SecinfoNoname
with the Parent option, providing a non-directory could
cause a crash.

This patch adds a sanity check for v_type == VDIR for
this case, to avoid the crash.

Reported by: rtm@lcs.mit.edu
PR: 260300
MFC after: 2 weeks

2 years agocam_xpt: Prefer bool to int where it's a boolean
Warner Losh [Sun, 1 May 2022 18:04:13 +0000 (12:04 -0600)]
cam_xpt: Prefer bool to int where it's a boolean

In the places where we set an integer to 0 or 1 and then use it like a
boolean, replace int with bool and 0/1 with false/true. Left alone
places where this is a function argument or return value. No functional
changes intended.

Sponsored by: Netflix

2 years agocam: add hw.cam.iosched.read_bias
Warner Losh [Sun, 1 May 2022 17:18:27 +0000 (11:18 -0600)]
cam: add hw.cam.iosched.read_bias

Allow a global setting for the read_bias for the dynamic io
scheduler. This allows global policy to be set, in addition to the
existing per-drive policy. kern.cam.iosched.read_bias is a new tunable.

Sponsored by: Netflix
Reviewed by: chs
Differential Revision: https://reviews.freebsd.org/D34365

2 years agocam iosched: default to no read bias in dynamic ioscheduling
Warner Losh [Sun, 1 May 2022 17:18:23 +0000 (11:18 -0600)]
cam iosched: default to no read bias in dynamic ioscheduling

When we're doing dynamic I/O scheduling, don't default to a read bias of
100. Default it to 0 so turning on dynamic scheduling only does
scheduling tweaks that are requested. The other limiters are off by
default, and need no further adjustment.

Sponsored by: Netflix

2 years agocam iosched: Remove write bias when read bias = 0
Warner Losh [Sun, 1 May 2022 17:18:18 +0000 (11:18 -0600)]
cam iosched: Remove write bias when read bias = 0

Change the meaning of read bias == 0 in the dynamic I/O scheduler. Prior
to this change, a read bias of 0 would mean prefer writes.  Now, when
read bias is 0, we queue all requests to the same queue removing the
bias. When it's non-zero, we still separate the queues we use so we can
bias reads vs writes for workloads that are read centric. These changes
restore the typical bias you get from disksort or ordered insertion at
the end of the list.

Sponsored by: Netflix

2 years agostand: Initial kboot support on amd64
Warner Losh [Sun, 1 May 2022 17:13:18 +0000 (11:13 -0600)]
stand: Initial kboot support on amd64

Get amd64 compiling. However, the current kboot supports an old way of
enumerating memory and the new way needs to be incorporated as well. The
powerpc folks could use either, it seems and newer powerpc platforms
need some changes for kboot to work anyway.

This commit includes the linker script, trampoline code to start the new
kernel, Linux system calls and the necessary configuration glue needed
to build the binaries.

This includes a quick hack to get multiboot support, but we need to
really share these defines. The multiiboot2.h is the minimum needed to
build. We have multiboot information in three places now, so a
refactoring is in order.

This should be considered, at best, preliminary and experimental for
anybody wishing to try it out.

Sponsored by: Netflix
Reviewed by: tsoome
Differential Revision: https://reviews.freebsd.org/D35100

2 years agoada: Retry commands with retries left on CAM_SEL_TIMEOUT
Warner Losh [Sun, 1 May 2022 16:39:04 +0000 (10:39 -0600)]
ada: Retry commands with retries left on CAM_SEL_TIMEOUT

The AHCI and ATA SIMs will return CAM_SEL_TIMEOUT when an underlying
device has stopped responding. This is usually seen after a timeouted
out command and can be a transient event. Rather than fail the
peripheral immediately after seeing this, queue a retry. For transient
events, this allows drives to continue to provide data, though with some
added latency, just like we do when we have some other kind of retriable
error. If the error isn't transient (the drive is truly gone), then
we'll discover that eventually and fail the transaction and invalidate
the drive like we do today.

This helps us avoid a panic at the end of camperiphfree when
CAM_PERIPH_NEW_DEV_FOUND is set. However, the deferred callback should
be queued to xpt_async_td instead of being made inline there. This issue
will be solved in a different patch that does that. PR 263703.

This also helps us avoid another bug where we can drop all references to
the device (causing us to go through camperiphfree and destroy the path)
while we have an I/O pending in the ata_da state machine (usually in
state ADA_STATE_RAHEAD with ATA_SETFEATURES ATA_SF_ENAB_RCACHE
command). It's not clear why the reference that we take out to do the
reprobe isn't effective at blocking this. By retrying this condition,
though we avoid this bug (at least more often, I don't have a good
reproduction test case, I just see this panic a few times a month at
work on systems that have transient disk errors on ahci connected SATA
SSDs). PR 263704. It's too soon to know how much this helps us avoid
this bug.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D34977

2 years agong_pppoe: introduce new sysctl net.graph.pppoe.lcp_pcp
Eugene Grosbein [Sun, 1 May 2022 16:34:08 +0000 (23:34 +0700)]
ng_pppoe: introduce new sysctl net.graph.pppoe.lcp_pcp

New sysctl allows to mark transmitted PPPoE LCP Control
ethernet frames with needed 3-bit Priority Code Point (PCP) value.
Confirming driver like if_vlan(4) uses the value to fill
IEEE 802.1p class of service field.

This is similar to Cisco IOS "control-packets vlan cos priority"
command.

It helps to avoid premature disconnection of user sessions
due to control frame drops (LCP Echo etc.)
if network infrastructure has a botteleck at a switch
or the xdsl DSLAM.

See also:
https://sourceforge.net/p/mpd/discussion/44692/thread/c7abe70e3a/

Tested by: Klaus Fokuhl at SourceForge
MFC after: 2 weeks

2 years agolibz: update the upgrade instructions to reflect reality
Xin LI [Sat, 30 Apr 2022 23:57:54 +0000 (16:57 -0700)]
libz: update the upgrade instructions to reflect reality

2 years agonfscl: Add support for a NFSv4 AppendWrite RPC
Rick Macklem [Sat, 30 Apr 2022 20:49:23 +0000 (13:49 -0700)]
nfscl: Add support for a NFSv4 AppendWrite RPC

For IO_APPEND VOP_WRITE()s, the code first does a
Getattr RPC to acquire the file's size, before it
can do the Write RPC.

Although NFS does not have an append write operation,
an NFSv4 compound can use a Verify operation to check
that the client's notion of the file's size is
correct, followed by the Write operation.

This patch modifies the NFSv4 client to use an Appendwrite
RPC, which does a Verify to check the file's size before
doing the Write.  This avoids the need for a Getattr RPC
to preceed this RPC and reduces the RPC count by half for
IO_APPEND writes, so long as the client knows the file's
size.

The nfsd structure was moved from the stack to be malloc()'d,
since the kernel stack limit was being exceeded.

While here, fix the types of a few variables, although
there should not be any semantics change caused by these
type changes.

2 years agosrc.conf.5: regen after f768ecf247b7
Ed Maste [Sat, 30 Apr 2022 19:42:49 +0000 (15:42 -0400)]
src.conf.5: regen after f768ecf247b7

2 years agoCorrect markup in WITH_/WITHOUT_UNIFIED_OBJDIR descriptions
Ed Maste [Sat, 30 Apr 2022 19:39:21 +0000 (15:39 -0400)]
Correct markup in WITH_/WITHOUT_UNIFIED_OBJDIR descriptions

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

2 years agoUpdate WITH_PROFILE description as it is yet removed
Ed Maste [Sat, 30 Apr 2022 19:25:35 +0000 (15:25 -0400)]
Update WITH_PROFILE description as it is yet removed

GCC still wants to link against (for example) libc_p.a when -pg is in
use, and it's unclear when and how this will be addressed.  Change the
WITH_PROFILE option description to claim that it may be removed from an
unspecified future version of FreeBSD, rather than FreeBSD 14.

Reported by: Steve Kargl
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

2 years agostand: Install libsa.3
Warner Losh [Sat, 30 Apr 2022 18:51:19 +0000 (12:51 -0600)]
stand: Install libsa.3

Turns out there is a libsa.3. It's a bit out of date, but we reference
it in a number of places so we should install it. We need to do the DO32
dance because this Makefile is included twice and we don't want it
installing twice.

Sponsored by: Netflix

2 years agosbin/devfs: Correct usage
Enji Cooper [Sat, 30 Apr 2022 17:54:43 +0000 (10:54 -0700)]
sbin/devfs: Correct usage

The -s applies to rule keyword only and it follows the rule keyword.

MFC after: 1 week
PR: [[https://bugs.freebsd.org/bugzilla/show_bug.cgi?id= 263289|263289]]
Submitted by: Yuichiro NAITO <naito.yuichiro@gmail.com>
Fixes: c3e412c08333 sbin/devfs: clarify usage
Reviewed by: ngie
Differential Revision: https://reviews.freebsd.org/D34934

2 years agobsdinstall netconfig_ipv4: Fix resolv.conf rebuild
Alfonso S. Siciliano [Sat, 30 Apr 2022 15:25:57 +0000 (17:25 +0200)]
bsdinstall netconfig_ipv4: Fix resolv.conf rebuild

After an installation restart (for error or choice) dhclient does not
rebuild resolv.conf so `dialog --mixedform' of "Resolver Configuration"
in bsdinstall/scripts/netconfig draws empty forms. It causes a bad UX,
to see PR262262. Fixed resetting the interface before to run dhclient.

PR: 262262
Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D35094

2 years agostand: Change libstand.3 to libsa.3
Warner Losh [Sat, 30 Apr 2022 14:07:52 +0000 (08:07 -0600)]
stand: Change libstand.3 to libsa.3

Changes instances of the non-existant libstand.3 to the more correct,
but also non-existant libsa.3.

Sponsored by: Netflix

2 years agostand: s/libstand/libsa/g to catch up with rename
Warner Losh [Sat, 30 Apr 2022 13:33:15 +0000 (07:33 -0600)]
stand: s/libstand/libsa/g to catch up with rename

We renamed libstand to libsa years ago with the move from sys/boot to
stand. Catch up in the comments.

Sponsored by: Netflix

2 years agouath(4): Fix incorrect byte-swapping and a buffer length check.
Hans Petter Selasky [Sat, 30 Apr 2022 09:21:54 +0000 (11:21 +0200)]
uath(4): Fix incorrect byte-swapping and a buffer length check.

PR: 263638
Reported by: Jeff Gibbons <jgibbons@protogate.com>
MFC after: 1 week
Sponsored by: NVIDIA Networking

2 years agoLinuxKPI: 802.11: fill in two more TODOs
Bjoern A. Zeeb [Sat, 30 Apr 2022 08:00:04 +0000 (08:00 +0000)]
LinuxKPI: 802.11: fill in two more TODOs

Implement ieee80211_is_data_present() and a subset of
ieee80211_is_bufferable_mmpdu() which hopefully is good enough in
the compat code for now.
This is partly in preparation for some TXQ changes coming up soon.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

2 years agoLinuxKPI: 802.11: use ieee80211_beacon_miss()
Bjoern A. Zeeb [Sat, 30 Apr 2022 07:57:34 +0000 (07:57 +0000)]
LinuxKPI: 802.11: use ieee80211_beacon_miss()

In ieee80211_beacon_loss() call into net80211::ieee80211_beacon_miss()
rather than manually bouncing our state.  That should give us the
ability to send a probereq and see if the AP is till there rather than
right away going to scan.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

2 years agobsdinstall/partedit: Fix UFS auto partitioning
Alfonso S. Siciliano [Fri, 29 Apr 2022 23:19:30 +0000 (01:19 +0200)]
bsdinstall/partedit: Fix UFS auto partitioning

Fix bsdinstall "Auto (UFS) Guided Disk Setup" and sade(8) "Auto".
The problem is a string comparison failure, it arose during the
dialog(3)/bsddialog(3) form conversion:

 * dialog uses only form.text while bsdialog differentiates between
   form.init and form.value.
 * dialog always allocates memory for form values while bsddialog only
   when a button is pressed.

Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D35033

2 years agofusefs: use the fsname mount option if set
Alan Somers [Fri, 29 Apr 2022 16:43:47 +0000 (10:43 -0600)]
fusefs: use the fsname mount option if set

The daemon can specify fsname=XXX in its mount options.  If so, the file
system should report f_mntfromname as XXX during statfs.  This will show
up in the output of commands like mount and df.

Submitted by: Ali Abdallah <ali.abdallah@suse.com>
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D35090

2 years agofusefs: add a test for the subtype= option
Alan Somers [Fri, 29 Apr 2022 13:59:29 +0000 (07:59 -0600)]
fusefs: add a test for the subtype= option

At mount time server can set, for example, "subtype=xfs", so that
mount(8) will later show the mountpoint's file system as "fusefs.xfs".
fusefs has had this feature ever since the original GSoC commit in 2012,
but there's never been a test for it.

MFC after: 2 weeks

2 years agoMap the ACPI tables into the DMAP
Andrew Turner [Fri, 29 Apr 2022 12:02:15 +0000 (13:02 +0100)]
Map the ACPI tables into the DMAP

When we try to load these tables via acpidump(8) we need them to be in
the DMAP for /dev/mem to access. Add the EFI ACPI reclaim memory type
to the list of memory we map into DMAP but not used by the kernel as
this is the recommended place to put these.

Sponsored by: The FreeBSD Foundation

2 years agostress2: Fixed cleanup path error
Peter Holm [Fri, 29 Apr 2022 08:55:26 +0000 (10:55 +0200)]
stress2: Fixed cleanup path error

2 years agocam_periph: Return ENXIO when peripheral is invalidated
Warner Losh [Thu, 28 Apr 2022 22:29:39 +0000 (16:29 -0600)]
cam_periph: Return ENXIO when peripheral is invalidated

When the peripheral is invalidated, no further I/O is possible. Signal
this up the stack with ENXIO now that upper layers of the stack
differentiate sometimes. In order for there to be further I/O, and new
open is required for any block device that a future periph might
instantiate for devices at this location that might return or otherwise
become available. The I/O scheduler flushes its I/O with the ENXIO error
for pending I/O that didn't make it to the device, so this makes the two
paths match.

MFC After: 3 days
Sponsored by: Netflix
Reviewed by: chs, mav
Differential Revision: https://reviews.freebsd.org/D35093

2 years agompr/mps: when sending reset on removal, include target in message
Warner Losh [Thu, 28 Apr 2022 22:29:28 +0000 (16:29 -0600)]
mpr/mps: when sending reset on removal, include target in message

It's possible for muliple drives to be departing at the same time (if
the common power rail the share goes dark, for example). To understand
what's going on better, include target and handle in the messages
announcing the reset to allow matching with other corresponding events.

MFC After: 3 days
Sponsored by: Netflix
Reviewed by: mav
Differential Revision: https://reviews.freebsd.org/D35092

2 years agofusefs: fix FUSE_CREATE with file handles and fuse protocol < 7.9
Alan Somers [Thu, 28 Apr 2022 21:13:09 +0000 (15:13 -0600)]
fusefs: fix FUSE_CREATE with file handles and fuse protocol < 7.9

Prior to fuse protocol version 7.9, the fuse_entry_out structure had a
smaller size.  But fuse_vnop_create did not take that into account when
working with servers that use older protocols.  The bug does not matter
for servers which don't use file handles or open flags (the only fields
affected).

PR: 263625
Submitted by: Ali Abdallah <ali.abdallah@suse.com>
MFC after: 2 weeks

2 years agoAdd a tool to find MFC candidates
Ed Maste [Tue, 8 Feb 2022 19:50:50 +0000 (14:50 -0500)]
Add a tool to find MFC candidates

usage: mfc-candidates.sh [-ah] [-f from_branch] [-t to_branch]
    [-u user] [-X exclude_file] [path ...]

This tool compares git commit hashes that are in from_branch and not in
to_branch with hashes listed in "cherry picked from" lines, finding
commits that may be MFC candidates.  By default it searches for commits
by ${USER} but that can be overridden with -u for a specific user or -a
for all.

gonzo@'s MFC tracker is a web application that presents this sort of
information in a more convenient way, and unlike this script it tracks
"MFC After" status and timing.  However, it is sometimes useful to be
able to perform an offline search against a local repo.

Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34208

2 years agompr/mps: Add comment explaining state transition
Warner Losh [Thu, 28 Apr 2022 17:13:58 +0000 (11:13 -0600)]
mpr/mps: Add comment explaining state transition

When we can't load a request due to a shortage of chains, we complete
the command's cm. However, to avoid an assert in mp?_complete_command,
we transition its state to INQUEUE. This transition is legitimate
because this is the only error path that terminates a cm before it's
enqueued and the only other alternative would be an additional transient
state that would add complexity w/o adding value. Add a comment
explainging all this because otherwise the transition can look a bit
weird.

Sponsored by: Netflix

2 years agogeom_dev: extend kevent support for geom dev
Robert Wing [Thu, 28 Apr 2022 16:40:13 +0000 (08:40 -0800)]
geom_dev: extend kevent support for geom dev

Add support for the following NOTE events:
    NOTE_OPEN, NOTE_CLOSE, NOTE_CLOSE_WRITE, NOTE_READ, and NOTE_WRITE.

Differential Revision: https://reviews.freebsd.org/D34777

2 years agobhyve/snapshot: ..back to SOCK_STREAM
Robert Wing [Thu, 28 Apr 2022 15:43:01 +0000 (07:43 -0800)]
bhyve/snapshot: ..back to SOCK_STREAM

Now that nvlist_send()/nvlist_recv() are being used, ditch the datagram
socket.

Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D34863

2 years agopowerpc: enable wlan and ath modules in GENERIC64*
Piotr Kubaj [Thu, 28 Apr 2022 00:05:56 +0000 (02:05 +0200)]
powerpc: enable wlan and ath modules in GENERIC64*

Reviewed by: jhibbits (src)
Differential Revision: https://reviews.freebsd.org/D35089

2 years agostress2: Added a regression test
Peter Holm [Thu, 28 Apr 2022 07:41:27 +0000 (09:41 +0200)]
stress2: Added a regression test

2 years agoAdd USB ID and quirks for Huawei E3372
Kornel Duleba [Tue, 26 Apr 2022 12:11:50 +0000 (14:11 +0200)]
Add USB ID and quirks for Huawei E3372

Set UQ_MSC_NO_INQUIRY and UQ_MSC_NO_GETMAXLUN quirks for mass storage,
which is the initial mode of this dongle.
The modem is shipped with at least two firmware versions: 10.X and 11.X,
without ability to update to the newer one.
The 11.X version works more or less fine, but the 10.X one resets after
receiving either an SCSI INQUIRY, or a get_max_lun command.
Since both of those are used for automatic quirk detection, this leads
to a reset cycle making the device somewhat unusable.

Sponsored by: Stormshield
Obtained from: Semihalf
Reviewed by: hps, wma
Differential Revision: https://reviews.freebsd.org/D35076

2 years agousb: Respect NO_INQUIRY quirk during device enumeration
Kornel Duleba [Tue, 26 Apr 2022 12:07:21 +0000 (14:07 +0200)]
usb: Respect NO_INQUIRY quirk during device enumeration

Both usb_iface_is_cdrom and usb_msc_auto_quirk functions use SCSI INQUIRY
command to probe various properties of usb mass storage devices.
The problem here is that some very broken devices don't like this command.
Check if UQ_MSC_NO_INQUIRY quirk is set and skip cdrom and quirk
autodetection in that case.

Sponsored by: Stormshield
Obtained from: Semihalf
Reviewed by: hps, wma
Differential Revision: https://reviews.freebsd.org/D35075

2 years agoCAM: Keep periph_links when restoring CCB in camperiphdone().
Alexander Motin [Thu, 28 Apr 2022 01:39:50 +0000 (21:39 -0400)]
CAM: Keep periph_links when restoring CCB in camperiphdone().

While recovery command executed, some other commands from the periph
may complete, that may affect periph_links of this CCB.  So restoring
original CCB we must keep current periph_links as more up to date.

I've found this triggering assertions with debug kernel and suspect
some memory corruptions otherwise when spun down disk receives two
or sometimes more concurrent requests.

MFC after: 1 week
Sponsored by: iXsystems, Inc.

2 years agosubr_unit.c: make userspace tests buildable
Konstantin Belousov [Thu, 28 Apr 2022 00:00:14 +0000 (03:00 +0300)]
subr_unit.c: make userspace tests buildable

by defining a placeholder for UNR_NO_MTX

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

2 years agoFix another race between fork(2) and PROC_REAP_KILL subtree
Konstantin Belousov [Thu, 21 Apr 2022 22:39:58 +0000 (01:39 +0300)]
Fix another race between fork(2) and PROC_REAP_KILL subtree

where we might not yet see a new child when signalling a process.
Ensure that this cannot happen by stopping all reapping subtree,
which ensures that the child is not inside a syscall, in particular
fork(2).

Reported and tested by: pho
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D35014

2 years agoFix a race between fork(2) and PROC_REAP_KILL subtree
Konstantin Belousov [Wed, 20 Apr 2022 21:33:51 +0000 (00:33 +0300)]
Fix a race between fork(2) and PROC_REAP_KILL subtree

by repeating iteration over the subtree until there are no new processes
to signal.

Reported and tested by: pho
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D35014

2 years agokern_procctl: add possibility to take stop_all_proc_block() around exec
Konstantin Belousov [Wed, 27 Apr 2022 21:18:34 +0000 (00:18 +0300)]
kern_procctl: add possibility to take stop_all_proc_block() around exec

stop_allo_proc_block() must be taken before proctree_lock.

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

2 years agoAdd stop_all_proc_block(9)
Konstantin Belousov [Sat, 23 Apr 2022 22:55:04 +0000 (01:55 +0300)]
Add stop_all_proc_block(9)

It allows to have more than one consumer of thread_signle(SIGNLE_ALLPROC) by
serializing them.

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

2 years agoreap_kill(): split children and subtree killers into helpers
Konstantin Belousov [Wed, 20 Apr 2022 21:12:05 +0000 (00:12 +0300)]
reap_kill(): split children and subtree killers into helpers

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

2 years agoreap_kill(): rename the reap variable to reaper
Konstantin Belousov [Mon, 25 Apr 2022 22:10:16 +0000 (01:10 +0300)]
reap_kill(): rename the reap variable to reaper

Suggested and reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D35014

2 years agoreap_kill(): de-inline LIST_FOREACH(), twice
Konstantin Belousov [Mon, 25 Apr 2022 21:57:13 +0000 (00:57 +0300)]
reap_kill(): de-inline LIST_FOREACH(), twice

Suggested and reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D35014

2 years agoreaper_abandon_children(): upgrade proctree_lock assert to exclusive
Konstantin Belousov [Tue, 26 Apr 2022 14:44:48 +0000 (17:44 +0300)]
reaper_abandon_children(): upgrade proctree_lock assert to exclusive

p_reapsibling linkage is protected by proctree_lock, and it is modified
there.

Suggested and reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D35014

2 years agounr(9): allow to avoid internal locking
Konstantin Belousov [Wed, 20 Apr 2022 22:14:37 +0000 (01:14 +0300)]
unr(9): allow to avoid internal locking

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

2 years agoinit_unrhdr(): make it usable by initializing everything
Konstantin Belousov [Wed, 20 Apr 2022 21:58:22 +0000 (00:58 +0300)]
init_unrhdr(): make it usable by initializing everything

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

2 years agopowerpc pseries xics: Use devclass_find to lookup xicp devclass.
John Baldwin [Wed, 27 Apr 2022 22:08:47 +0000 (15:08 -0700)]
powerpc pseries xics: Use devclass_find to lookup xicp devclass.

Reviewed by: jhibbits
Differential Revision: https://reviews.freebsd.org/D35083

2 years agogpio/qoriq: Recognize another compatible string entry
Justin Hibbits [Wed, 27 Apr 2022 21:55:42 +0000 (16:55 -0500)]
gpio/qoriq: Recognize another compatible string entry

2 years agogpiopower: Fix call to ofw_gpiobus_parse_gpios
Justin Hibbits [Wed, 27 Apr 2022 21:55:28 +0000 (16:55 -0500)]
gpiopower: Fix call to ofw_gpiobus_parse_gpios

Failure is denoted by -1, not non-zero.  A positive integer denotes the
number of pins mapped and configured.

2 years agolacp: short timeout erroneously declares link-flapping
Greg Foster [Tue, 26 Apr 2022 06:38:23 +0000 (23:38 -0700)]
lacp: short timeout erroneously declares link-flapping

Panasas was seeing a higher-than-expected number of link-flap events.
After joint debugging with the switch vendor, we determined there were
problems on both sides; either of which might cause the occasional
event, but together caused lots of them.

On the switch side, an internal queuing issue was causing LACP PDUs --
which should be sent every second, in short-timeout mode -- to sometimes
be sent slightly later than they should have been. In some cases, two
successive PDUs were late, but we never saw three late PDUs in a row.

On the FreeBSD side, we saw a link-flap event every time there were two
late PDUs, while the spec says that it takes *three* seconds of downtime
to trigger that event. It turns out that if a PDU was received shortly
before the timer code was run, it would decrement less than a full
second after the PDU arrived. Then two delayed PDUs would cause two
additional decrements, causing it to reach zero less than three seconds
after the most-recent on-time PDU.

The solution is to note the time a PDU arrives, and only decrement if at
least a full second has elapsed since then.

Reported by: Greg Foster <gfoster@panasas.com>
Reviewed by: gallatin
Tested by: Greg Foster <gfoster@panasas.com>
MFC after: 3 days
Sponsored by: Panasas
Differential Revision: https://reviews.freebsd.org/D35070

2 years agofirewire: Initialize firewire_devclass in fw_modevent.
John Baldwin [Wed, 27 Apr 2022 19:26:05 +0000 (12:26 -0700)]
firewire: Initialize firewire_devclass in fw_modevent.

The use of devclass_get_softc() combined with cdev unit numbers is
probably not ideal (probably should be initializing si_drv1 when each
cdev is created instead), but it looks like a bit of a PITA to do, so
just initialize the devclass explicitly instead.

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D35060

2 years agosetkey(8): Clarify language around AEAD ciphers.
John Baldwin [Wed, 27 Apr 2022 19:18:52 +0000 (12:18 -0700)]
setkey(8): Clarify language around AEAD ciphers.

AEAD ciphers for IPsec combine both encryption and authentication.  As
such, ESP configurations using an AEAD cipher should not use a
seperate authentication algorithm via -A.  However, this was not
apparent from the setkey manpage and 12.x and earlier did not perform
sufficient argument validation permitting users to pair an explicit -A
such as SHA256-HMAC with AES-GCM.  (The result was a non-standard
combination of AES-CTR with the specified MAC, but with the wrong
initial block counter (and thus different keystream) compared to using
AES-CTR as the cipher.)

Attempt to clarify this in the manpage by explicitly calling out AEAD
ciphers (currently only AES-GCM) and noting that AEAD ciphers should
not use -A.

While here, explicitly note which authentication algorithms can be
used with esp vs esp-old.  Also add subsection headings for the
different algorithm lists and tidy some language.

I did not convert the tables to column lists (Bl -column) though that
would probably be more correct than using literal blocks (Bd
-literal).

PR: 263379
Reviewed by: Pau Amma <pauamma@gundo.com>, markj
Differential Revision: https://reviews.freebsd.org/D34947

2 years agoAdd a __witness_used for variables only used under #ifdef WITNESS.
John Baldwin [Wed, 27 Apr 2022 18:46:16 +0000 (11:46 -0700)]
Add a __witness_used for variables only used under #ifdef WITNESS.

__diagused is now solely used for variables only used under INVARIANTS.

Reviewed by: mjg
Differential Revision: https://reviews.freebsd.org/D35085

2 years agortw88: deal with debug messages
Bjoern A. Zeeb [Wed, 27 Apr 2022 15:20:34 +0000 (15:20 +0000)]
rtw88: deal with debug messages

The 'failed to write TX skb to HCI' error message is twice in the code.
Print the function name and along with the message and also the reported
error so it can possibly be helpful.

The 'failed to get tx report from firmware' was purposefully changed
away from debugging in the upstream Linux driver in
584dce175f0461d5d9d63952a1e7955678c91086 . Revert that decision and
extend the logging by the actual queue length so we get an idea how
sever the problem is (see PR for a report).

PR:  248235
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
X-MFC: only to get the reminder for later

2 years agosctp: improve locking
Michael Tuexen [Wed, 27 Apr 2022 14:07:31 +0000 (16:07 +0200)]
sctp: improve locking

While there, do some cleanup.

Reported by: syzbot+f475e054c454310bc26d@syzkaller.appspotmail.com
MFC after: 3 day

2 years agolibcxxrt: Insert padding in __cxa_dependent_exception
Ed Maste [Wed, 27 Apr 2022 13:15:09 +0000 (09:15 -0400)]
libcxxrt: Insert padding in __cxa_dependent_exception

Padding was added to __cxa_exception in 45ca8b19 and
__cxa_dependent_exception needs the same layout.
Add some static_asserts to detect this in the future.

Merge of libcxxrt commit b00c6c564357

2 years agoPatch up __diagused for when only one of INVARIANTS or WITNESS is defined
Mateusz Guzik [Wed, 27 Apr 2022 13:29:12 +0000 (13:29 +0000)]
Patch up __diagused for when only one of INVARIANTS or WITNESS is defined

Reported by: John F Carr<jfc@mit.edu>

2 years agoExport _Unwind_Complete and _Unwind_VRS_Pop from arm's libgcc_s
Dimitry Andric [Wed, 27 Apr 2022 09:04:10 +0000 (11:04 +0200)]
Export _Unwind_Complete and _Unwind_VRS_Pop from arm's libgcc_s

Apparently some ports on arm require these symbols, and while they were
available in llvm's libunwind, they were never exported via the arm
specific Symbol.map. Put them in the same version block as gcc does
(GCC_3.5).

Reported by: Robert Clausecker <fuz_at_fuz.su>
MFC after: 3 days

2 years agorpc.tlsservd: Delete set but unused variable
Rick Macklem [Wed, 27 Apr 2022 02:29:01 +0000 (19:29 -0700)]
rpc.tlsservd: Delete set but unused variable

2 years agortsx: Number of tweaks for RTS5260.
Henri Hennebert [Wed, 27 Apr 2022 01:43:17 +0000 (21:43 -0400)]
rtsx: Number of tweaks for RTS5260.

MFC after: 2 weeks

2 years agorelease: fix on-disc pkg binary symbolic links
Glen Barber [Tue, 26 Apr 2022 19:52:40 +0000 (15:52 -0400)]
release: fix on-disc pkg binary symbolic links

PR: 263574
Reported by: loader
MFC after: immediately
Sponsored by: Rubicon Communications, LLC ("Netgate")

2 years agondaasync: sync to SCSI's daasyncs cam_periph_async() calls
Warner Losh [Tue, 26 Apr 2022 17:01:16 +0000 (11:01 -0600)]
ndaasync: sync to SCSI's daasyncs cam_periph_async() calls

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

2 years agoadaasync: Harmonize with daasync
Warner Losh [Tue, 26 Apr 2022 17:01:06 +0000 (11:01 -0600)]
adaasync: Harmonize with daasync

We should call cam_periph_async() always, like SCSI does. This routine
is supposed to be more of a catch-all.

cam_periph_async() only does actions for AC_LOST_DEVICE. It ignores all
other events (today), but this may not always be true. So this is a nop
change.

Drop in a 'break' so we don't fall through unnecessarily.

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

2 years agoRemove dead code.
Dmitry Chagin [Tue, 26 Apr 2022 16:40:59 +0000 (19:40 +0300)]
Remove dead code.

is_physical_memory() dead since 235a54de.

Reviewed by: markj
Differential revision: https://reviews.freebsd.org/D35056
MFC after: 2 weeks

2 years agolinux(4): Add epoll_pwai2 syscall.
Dmitry Chagin [Tue, 26 Apr 2022 16:35:59 +0000 (19:35 +0300)]
linux(4): Add epoll_pwai2 syscall.

MFC after: 2 weeks

2 years agolinux(4): Regen for epoll_pwait2 syscall.
Dmitry Chagin [Tue, 26 Apr 2022 16:35:58 +0000 (19:35 +0300)]
linux(4): Regen for epoll_pwait2 syscall.

2 years agolinux(4): Change epoll_pwait2 syscall definition to match Linux actual one.
Dmitry Chagin [Tue, 26 Apr 2022 16:35:57 +0000 (19:35 +0300)]
linux(4): Change epoll_pwait2 syscall definition to match Linux actual one.

MFC after: 2 weeks

2 years agolinux(4): Add copyin_sigset() helper.
Dmitry Chagin [Tue, 26 Apr 2022 16:35:57 +0000 (19:35 +0300)]
linux(4): Add copyin_sigset() helper.

MFC after: 2 weeks

2 years agolinux(4): Add linux_epoll_pwait_ts() helper for future use.
Dmitry Chagin [Tue, 26 Apr 2022 16:35:56 +0000 (19:35 +0300)]
linux(4): Add linux_epoll_pwait_ts() helper for future use.

MFC after: 2 weeks