[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1357960.1688461165@warthog.procyon.org.uk>
Date: Tue, 04 Jul 2023 09:59:25 +0100
From: David Howells <dhowells@...hat.com>
To: Ondrej Mosnáček <omosnacek@...il.com>
Cc: dhowells@...hat.com,
Linux Crypto Mailing List <linux-crypto@...r.kernel.org>,
Herbert Xu <herbert@...dor.apana.org.au>,
Paolo Abeni <pabeni@...hat.com>, netdev@...r.kernel.org
Subject: Re: Regression bisected to "crypto: af_alg: Convert af_alg_sendpage() to use MSG_SPLICE_PAGES"
The attached makes the SEGV go away. Just removing SPLICE_F_GIFT isn't
sufficient.
David
---
diff --git a/lib/kcapi-kernel-if.c b/lib/kcapi-kernel-if.c
index b4d7f74..33e0337 100644
--- a/lib/kcapi-kernel-if.c
+++ b/lib/kcapi-kernel-if.c
@@ -321,7 +321,7 @@ ssize_t _kcapi_common_vmsplice_iov(struct kcapi_handle *handle,
if (ret)
return ret;
- ret = vmsplice(handle->pipes[1], iov, iovlen, SPLICE_F_GIFT|flags);
+ ret = writev(handle->pipes[1], iov, (int)iovlen);
if (ret < 0) {
ret = -errno;
kcapi_dolog(KCAPI_LOG_DEBUG,
Powered by blists - more mailing lists