Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jan 2021 20:32:22 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 2fccd4f9b6b9 - main - safexcel: Disallow unsupported buffer layouts
Message-ID:  <202101272032.10RKWMG9014693@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=2fccd4f9b6b96d75de87df4922eb2bf04fb0a67d

commit 2fccd4f9b6b96d75de87df4922eb2bf04fb0a67d
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2021-01-27 20:31:10 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2021-01-27 20:31:10 +0000

    safexcel: Disallow unsupported buffer layouts
    
    MFC after:      3 days
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sys/dev/safexcel/safexcel.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/dev/safexcel/safexcel.c b/sys/dev/safexcel/safexcel.c
index 3083f5f794fe..71300dcb0393 100644
--- a/sys/dev/safexcel/safexcel.c
+++ b/sys/dev/safexcel/safexcel.c
@@ -2272,6 +2272,9 @@ safexcel_probe_cipher(const struct crypto_session_params *csp)
 static int
 safexcel_probesession(device_t dev, const struct crypto_session_params *csp)
 {
+	if (csp->csp_flags != 0)
+		return (EINVAL);
+
 	switch (csp->csp_mode) {
 	case CSP_MODE_CIPHER:
 		if (!safexcel_probe_cipher(csp))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101272032.10RKWMG9014693>