diff options
author | Ondrej Kozina <okozina@redhat.com> | 2014-08-25 11:49:54 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2014-09-04 15:07:10 +0800 |
commit | e2cffb5f493a8b431dc87124388ea59b79f0bccb (patch) | |
tree | a671bcf66969ac8af41a1b887f061f18bf64c1c2 /crypto/Kconfig | |
parent | ab81873974afa3ce7bd8669580b06d33353f1e7c (diff) | |
download | op-kernel-dev-e2cffb5f493a8b431dc87124388ea59b79f0bccb.zip op-kernel-dev-e2cffb5f493a8b431dc87124388ea59b79f0bccb.tar.gz |
crypto: algif - avoid excessive use of socket buffer in skcipher
On archs with PAGE_SIZE >= 64 KiB the function skcipher_alloc_sgl()
fails with -ENOMEM no matter what user space actually requested.
This is caused by the fact sock_kmalloc call inside the function tried
to allocate more memory than allowed by the default kernel socket buffer
size (kernel param net.core.optmem_max).
Signed-off-by: Ondrej Kozina <okozina@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/Kconfig')
0 files changed, 0 insertions, 0 deletions