b5e0a701 gbe Dec. 22, 2021, 9 a.m.
- s/decriptor/descriptor/

MFC after:	3 days
cgit
6d529756 jrtc27 Dec. 21, 2021, 10:47 p.m.
Checking there are still bytes left must be done before dereferencing
the pointer, not the other way round. This is harmless on traditional
architectures since the result will immediately be thrown away, and all
callers are in separate translation units so there is no potential for
optimising based on this out-of-bounds read. However, on CHERI, pointers
are bounded, and so this will trap if fed a string that does not have a
NUL within the first len bytes.

Found by:	CHERI
Reviewed by:	brooks
cgit
d074adf1 jhb Dec. 21, 2021, 8:33 p.m.
Sponsored by:	Chelsio Communications
cgit
762f1dcb jhb Dec. 21, 2021, 8:33 p.m.
ccr(4) can handle requests for AES-CTR (a stream cipher), not just
block ciphers, so make the function and structure names more generic.

Sponsored by:	Chelsio Communications
cgit
cb2d1350 emaste Dec. 21, 2021, 6:34 p.m.
__FBSDID() places the provided string in the output object's .comment
section.  However, with the transition to Git $FreeBSD$ is no longer
expanded and so we emitted a literal $FreeBSD$.

$FreeBSD$ will be addressed in a holistic manner in the future, but at
least avoid embedding it into everything linked on FreeBSD (via csu).

Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D33594
cgit
a2c51da6 kevans Dec. 21, 2021, 6:01 p.m.
clock_gettime() returns 0 if it succeeds, so don't capture that into the
fail logic.  With this, WITH_DETECT_TZ_CHANGES successfully detects a
change after 61 seconds.

Reviewed by:	imp, trasz
Differential Revision:	https://reviews.freebsd.org/D33494
cgit
6bdbfa49 pkubaj Dec. 21, 2021, 5:41 p.m.
40218ffe pkubaj Dec. 21, 2021, 5:41 p.m.
Summary:
OFED on riscv64 builds fine, so it's ok to enable it.

Also MFC to stable/13.

Test Plan: make buildworld

Reviewers: mhorne

Subscribers: bdrewery, imp, emaste

Differential Revision: https://reviews.freebsd.org/D33602
cgit
f9978339 hselasky Dec. 21, 2021, 5:35 p.m.
The variable orig_resid is always set to zero right after the while loop
where it is cleared.

Reviewed by:	gallatin@ and glebius@
Differential Revision:	https://reviews.freebsd.org/D33589
MFC after:	1 week
Sponsored by:	NVIDIA Networking
cgit
d93b4d32 bapt Dec. 21, 2021, 3:13 p.m.
77a55d2c bapt Dec. 21, 2021, 3:06 p.m.
02c16e21 andrew Dec. 21, 2021, 1:06 p.m.
We only need to include sys/_atomic_subword.h on arm64 to provide
atomic_testandset_acq_long. Add an implementation in the arm64 atomic.h
based on the existing atomic_testandset macro.

Reviewed by:	kib
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33587
cgit
69cfbd66 andrew Dec. 21, 2021, 1:06 p.m.
When recursing in pmap_change_props_locked we may fail because there is
no pte. This shouldn't be considered a fail as it may happen in a few
cases, e.g. there are multiple normal memory ranges with device memory
between them.

Reported by:	cperciva
Tested by:	cperciva
Reviewed by:	alc, kib
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33459
cgit
71779ddd lwhsu Dec. 21, 2021, 12:42 p.m.
MFC after:	3 days
cgit
a15c5918 trasz Dec. 21, 2021, 12:32 p.m.
Those tracepoints have been removed somewhere in the past.

Sponsored By:	EPSRC
cgit