<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/opencrypto/criov.c, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-04-23T17:05:55Z</updated>
<entry>
<title>VM_PAGE_TO_DMAP: Wrapper macro to return direct map address for a page</title>
<updated>2026-04-23T17:05:55Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2026-04-23T17:05:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9a6e9d7799235d3e122bcc8065e865ae265a6ce2'/>
<id>urn:sha1:9a6e9d7799235d3e122bcc8065e865ae265a6ce2</id>
<content type='text'>
Effort:		CHERI upstreaming
Reviewed by:	kib
Sponsored by:	AFRL, DARPA
Pull Request:	https://github.com/freebsd/freebsd-src/pull/2068
</content>
</entry>
<entry>
<title>PHYS_TO_DMAP: Return a void * instead of a vm_offset_t</title>
<updated>2026-04-23T17:05:54Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2026-04-23T17:05:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fe3e92e6868dce2ed94c98428b8df1f27ed3ef63'/>
<id>urn:sha1:fe3e92e6868dce2ed94c98428b8df1f27ed3ef63</id>
<content type='text'>
Add a new PHYS_TO_DMAP_ADDR that still returns an address for use in
places that only need an address and not a pointer.

Effort:		CHERI upstreaming
Reviewed by:	kib
Sponsored by:	AFRL, DARPA
Pull Request:	https://github.com/freebsd/freebsd-src/pull/2068
</content>
</entry>
<entry>
<title>sys: Automated cleanup of cdefs and other formatting</title>
<updated>2023-11-27T05:24:00Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-11-24T20:12:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fdafd315ad0d0f28a11b9fb4476a9ab059c62b92'/>
<id>urn:sha1:fdafd315ad0d0f28a11b9fb4476a9ab059c62b92</id>
<content type='text'>
Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+&lt;sys/cdefs.h&gt;.*\n/
Remove /\n+#include\s+&lt;sys/cdefs.h&gt;.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+&lt;sys/cdefs.h&gt;\n#include\s+&lt;sys/types.h&gt;/
Remove /\n+#include\s+&lt;sys/cdefs.h&gt;\n#include\s+&lt;sys/param.h&gt;/
Remove /\n+#include\s+&lt;sys/cdefs.h&gt;\n#include\s+&lt;sys/capsicum.h&gt;/

Sponsored by:		Netflix
</content>
</entry>
<entry>
<title>sys: Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-16T17:54:36Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=685dc743dc3b5645e34836464128e1c0558b404b'/>
<id>urn:sha1:685dc743dc3b5645e34836464128e1c0558b404b</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
</content>
</entry>
<entry>
<title>crypto: Advance the correct pointer in crypto_cursor_copydata()</title>
<updated>2023-06-12T16:52:24Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2023-06-12T16:09:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9f7fdd8c1ab153104275e59b49b2d567cec95256'/>
<id>urn:sha1:9f7fdd8c1ab153104275e59b49b2d567cec95256</id>
<content type='text'>
PR:		271766
Reported by:	Michael Laß &lt;bevan@bi-co.net&gt;
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D40468
</content>
</entry>
<entry>
<title>opencrypto: Handle end-of-cursor conditions in crypto_cursor_segment()</title>
<updated>2023-06-12T16:52:24Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2023-06-12T16:09:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=718d4a1d5643c2faf409001320c3fd64aae57638'/>
<id>urn:sha1:718d4a1d5643c2faf409001320c3fd64aae57638</id>
<content type='text'>
Some consumers, e.g., swcr_encdec(), may call crypto_cursor_segment()
after having advanced the cursor to the end of the buffer.  In this case
I believe the right behaviour is to return NULL and a length of 0.

When this occurs with a CRYPTO_BUF_VMPAGE buffer, the cc_vmpage pointer
will point past the end of the page pointer array, so
crypto_cursor_segment() ends up dereferencing a random pointer before
the function returns a length of 0.  The uio-backed cursor has
a similar problem.

Address this by keeping track of the residual buffer length and
returning immediately once the length is zero.

PR:		271766
Reported by:	Andrew "RhodiumToad" Gierth &lt;andrew@tao11.riddles.org.uk&gt;
Reviewed by:	jhb
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D40428
</content>
</entry>
<entry>
<title>opencrypto: mark INVARIANTS variables as __diagused</title>
<updated>2022-08-10T19:35:29Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2022-08-09T23:23:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3471fcf3a42d2a7b221215bfc772a6d1a170a059'/>
<id>urn:sha1:3471fcf3a42d2a7b221215bfc772a6d1a170a059</id>
<content type='text'>
Fixes INVARIANTS build with Clang 15, which previously failed due to
set-but-not-used variable warnings.

MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>Fix "set but not used" in opencrypto, with a correction for the previous</title>
<updated>2021-12-05T22:30:36Z</updated>
<author>
<name>Scott Long</name>
<email>scottl@FreeBSD.org</email>
</author>
<published>2021-12-05T22:30:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4d54d1b7fd06b09495603eb56bf199043aa14fc1'/>
<id>urn:sha1:4d54d1b7fd06b09495603eb56bf199043aa14fc1</id>
<content type='text'>
commit.

Sponsored by: Rubicon Communications, LLC ("Netgate")
</content>
</entry>
<entry>
<title>Fix "set but not used" in opencrypto</title>
<updated>2021-12-05T22:25:44Z</updated>
<author>
<name>Scott Long</name>
<email>scottl@FreeBSD.org</email>
</author>
<published>2021-12-05T22:23:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5a052b6114eae84a52519f75a4d504f544f86f98'/>
<id>urn:sha1:5a052b6114eae84a52519f75a4d504f544f86f98</id>
<content type='text'>
Sponsored by: Rubicon Communications, LLC ("Netgate")
</content>
</entry>
<entry>
<title>crypto: Remove now-unused crypto_cursor_seg{base,len}.</title>
<updated>2021-06-16T22:23:16Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2021-06-16T22:22:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8fa5c577de301642de4039a616da6f38bcb54bc5'/>
<id>urn:sha1:8fa5c577de301642de4039a616da6f38bcb54bc5</id>
<content type='text'>
Callers should use crypto_cursor_segment() instead.

Reviewed by:	markj
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D30448
</content>
</entry>
</feed>
