FreeBSD Bugzilla – Attachment 234528 Details for
Bug 252316
[PATCH] add OCF offloading to ZFS
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
OCF KASSERT patch w/ jhb suggested changes
freebsd-zfs-ocf-offloaod-jhb.diff (text/plain), 886 bytes, created by
Jeremy Faulkner
on 2022-06-07 18:25:46 UTC
(
hide
)
Description:
OCF KASSERT patch w/ jhb suggested changes
Filename:
MIME Type:
Creator:
Jeremy Faulkner
Created:
2022-06-07 18:25:46 UTC
Size:
886 bytes
patch
obsolete
>diff --git a/sys/opencrypto/crypto.c b/sys/opencrypto/crypto.c >index fde1316595e..9bdbde36db3 100644 >--- a/sys/opencrypto/crypto.c >+++ b/sys/opencrypto/crypto.c >@@ -1376,9 +1376,13 @@ crp_sanity(struct cryptop *crp) > KASSERT(crp->crp_payload_output_start == 0 || > crp->crp_payload_output_start < olen, > ("invalid payload output start")); >- KASSERT(crp->crp_payload_output_start + >- crp->crp_payload_length <= olen, >- ("payload outside output buffer")); >+ if (csp->csp_mode == CSP_MODE_DIGEST) >+ KASSERT(crp->crp_payload_output_start == 0, >+ ("digest output payloads start at 0")); >+ else >+ KASSERT(crp->crp_payload_output_start + >+ crp->crp_payload_length <= olen, >+ ("payload outside output buffer")); > } > if (csp->csp_mode == CSP_MODE_DIGEST || > csp->csp_mode == CSP_MODE_AEAD || csp->csp_mode == CSP_MODE_ETA) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 252316
:
221152
|
222488
|
234523
|
234528
|
234665
|
234740