diff options
author | Herbert Xu <herbert@gondor.hengli.com.au> | 2010-11-30 17:06:03 +0800 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2010-11-30 14:28:39 +0100 |
commit | 9e43ee6d3b352093775245386edd319c4f099c50 (patch) | |
tree | 42beb50449bdbb7e70f685ae83734eba8f55f6e5 /drivers/char/riscom8_reg.h | |
parent | d0dfeb6032a3ed33487dfe0d69367b74f207f587 (diff) | |
download | kernel-crypto-9e43ee6d3b352093775245386edd319c4f099c50.tar.gz kernel-crypto-9e43ee6d3b352093775245386edd319c4f099c50.tar.xz kernel-crypto-9e43ee6d3b352093775245386edd319c4f099c50.zip |
crypto: algif_skcipher - Handle unaligned receive buffer
Hi:
This patch fixes unexpected EINVAL failures on recvmsg when
encrypting/decrypting due to unaligned receive buffers.
commit bc97e57eb21f8db55bf0e1f182d384e75b2e3c99
Author: Herbert Xu <herbert@gondor.apana.org.au>
Date: Tue Nov 30 17:04:31 2010 +0800
crypto: algif_skcipher - Handle unaligned receive buffer
As it is if user-space passes through a receive buffer that's not
aligned to to the cipher block size, we'll end up encrypting or
decrypting a partial block which causes a spurious EINVAL to be
returned.
This patch fixes this by moving the partial block test after the
af_alg_make_sg call.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char/riscom8_reg.h')
0 files changed, 0 insertions, 0 deletions