Re: md5sum (from libkcapi) fails on kernel 4.9 but not on 4.13

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Dienstag, 17. Oktober 2017, 10:51:06 CEST schrieb Christophe LEROY:

Hi Christophe,

> 
> I've now tried a test with 1.0.0, and there seems to be another big
> issue: the error returned by sendmsg() is not taken into account anymore:

It seems that this bug was there before. Can you please check whether this one 
fixes it?

diff --git a/lib/kcapi-kernel-if.c b/lib/kcapi-kernel-if.c
index e00d328..9053104 100644
--- a/lib/kcapi-kernel-if.c
+++ b/lib/kcapi-kernel-if.c
@@ -321,6 +321,8 @@ int32_t _kcapi_common_vmsplice_chunk_fd(struct 
kcapi_handle *handle, int *fdptr,
 
                if ((handle->processed_sg++) > handle->flags.alg_max_pages) {
                        ret = _kcapi_common_send_data(handle, &iov, 1, 
sflags);
+                       if (ret < 0)
+                               return ret;
                } else {
                        ret = vmsplice(handle->pipes[1], &iov, 1,
                                       SPLICE_F_GIFT|flags);

Thanks

Ciao
Stephan



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux