<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/opencrypto/crypto.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>2025-05-09T00:29:23Z</updated>
<entry>
<title>crypto: Remove uses of CRYPTO_F_DONE</title>
<updated>2025-05-09T00:29:23Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2025-05-09T00:23:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2fa185f9bf5948ead9c3920d452ddd6bcad8f569'/>
<id>urn:sha1:2fa185f9bf5948ead9c3920d452ddd6bcad8f569</id>
<content type='text'>
Previously OCF set CRYPTO_F_DONE prior to invoking the completion
callback, even if the request failed. This isn't particularly useful
and leads to bugs when consumers retry a failed request, since OCF also
asserts that CRYPTO_F_DONE is clear in crypto_dispatch(). (Really, OCF
should retry requests that fail with EAGAIN, but that's a larger
change.)

For now, just stop setting CRYPTO_F_DONE to simplify consumers (and fix
those which fail to clear the flag before retrying a request).

PR:		286321
Reviewed by:	jhb
Differential Revision:	https://reviews.freebsd.org/D50104
</content>
</entry>
<entry>
<title>sys: make the kernel metadata pointer global</title>
<updated>2025-01-24T21:25:51Z</updated>
<author>
<name>Ahmad Khalifa</name>
<email>ahmadkhalifa570@gmail.com</email>
</author>
<published>2024-08-22T19:05:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b72ae900d4348118829fe04abdc11b620930c30f'/>
<id>urn:sha1:b72ae900d4348118829fe04abdc11b620930c30f</id>
<content type='text'>
The way we got the kernel metadata pointer was by calling
preload_search_by_type with one of the following three: "elf kernel",
"elf32 kernel" and "elf64 kernel". Which one(s) we used wasn't
consistent though. Sometimes we would only try "elf kernel", and other
times we would try one of the latter two if the first failed. However,
the loader only ever sets "elf kernel" as the kernel type.

Now, the kmdp is a global, preload_kmdp, and it's initialized using
preload_initkmdp in machdep.c (or machdep_boot.c on arm/64).
preload_initkmdp takes a single boolean argument that tells us whether
not finding the kmdp is fatal or not.

Reviewed by: imp, kib
Pull Request: https://github.com/freebsd/freebsd-src/pull/1394
</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>Complete removal of opt_compat.h</title>
<updated>2023-02-13T16:07:38Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2023-02-13T16:07:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=06c07e1203324bfe8ab4526c82dbb750864272d5'/>
<id>urn:sha1:06c07e1203324bfe8ab4526c82dbb750864272d5</id>
<content type='text'>
Since Linux emulation layer build options was removed there is no reason
to keep opt_compat.h.

Reviewed by:		emaste
Differential Revision:	https://reviews.freebsd.org/D38548
MFC after:		2 weeks
</content>
</entry>
<entry>
<title>crypto: move all zeroing into crypto_getreq</title>
<updated>2022-11-22T12:28:07Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2022-11-22T12:28:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=517547573a5bcf28c676daca3a9118fcd28c8116'/>
<id>urn:sha1:517547573a5bcf28c676daca3a9118fcd28c8116</id>
<content type='text'>
Reviewed by:	jhb, markj
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D36774
</content>
</entry>
<entry>
<title>[skip ci] Remove obsolete references in crypto_request(9)</title>
<updated>2022-11-02T17:09:06Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2022-11-02T16:41:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=002c47badee59be58cb84fd74624594d22e14276'/>
<id>urn:sha1:002c47badee59be58cb84fd74624594d22e14276</id>
<content type='text'>
They were missed by 68f6800ce05c3.

Sponsored by:	Axcient
MFC with:	68f6800ce05c3
Reviewed by:	markj
Differential Revision: https://reviews.freebsd.org/D37239
</content>
</entry>
<entry>
<title>ddb: annotate some commands with DB_CMD_MEMSAFE</title>
<updated>2022-07-18T22:06:09Z</updated>
<author>
<name>Mitchell Horne</name>
<email>mhorne@FreeBSD.org</email>
</author>
<published>2022-07-18T21:21:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c84c5e00ac28c8e00a56019031d1eaec74428b54'/>
<id>urn:sha1:c84c5e00ac28c8e00a56019031d1eaec74428b54</id>
<content type='text'>
This is not completely exhaustive, but covers a large majority of
commands in the tree.

Reviewed by:	markj
Sponsored by:	Juniper Networks, Inc.
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D35583
</content>
</entry>
<entry>
<title>crypto: Validate return values from CRYPTODEV_PROCESS()</title>
<updated>2022-07-01T15:09:39Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2022-07-01T15:09:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=99df914899f56efe63afd9e0fef79148fa6ca162'/>
<id>urn:sha1:99df914899f56efe63afd9e0fef79148fa6ca162</id>
<content type='text'>
Errors are always handled by the completion callback, so we should check
that they're not also passed back to the caller.

No functional change intended.

Reviewed by:	kp, mav, jhb
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D35382
</content>
</entry>
<entry>
<title>crypto: Fix assertions for digest-only sessions with separate output.</title>
<updated>2022-06-30T17:10:00Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2022-06-30T17:10:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c71f2370c5d480cf70f12ee276e044681c57aefc'/>
<id>urn:sha1:c71f2370c5d480cf70f12ee276e044681c57aefc</id>
<content type='text'>
Digest-only sessions do not generate modified payload as an output, so
don't bother asserting anything about the payload with respect to the
output buffer other than the payload output start being zero.

In addition, a verify request on a digest-only session doesn't
generate any output at all so should never have a separate output
buffer.

PR:		252316
Reviewed by:	markj
Co-authored-by:	Jeremy Faulkner &lt;gldisater@gmail.com&gt;
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D35578
</content>
</entry>
<entry>
<title>crypto: hide crypto_destroyreq behind a tunable</title>
<updated>2022-02-16T07:45:12Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2022-02-16T07:45:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=70439285ad9d5ec8ebdb1cf8617e8f30ea31b2e2'/>
<id>urn:sha1:70439285ad9d5ec8ebdb1cf8617e8f30ea31b2e2</id>
<content type='text'>
Reviewed by:	jhb, markj
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D32084
</content>
</entry>
</feed>
