diff options
author | Ondrej Kozina <okozina@redhat.com> | 2014-08-25 11:49:54 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-14 08:48:00 -0800 |
commit | 591189c21235f0c2884cfae24b65ecfb5e120325 (patch) | |
tree | af2758bedcee666e84d34dbb47871185d1f3754a /Documentation/arm/OMAP | |
parent | b089fe5b6d7fe1ad383dd2ffcb2e4ce4ee0c574d (diff) |
crypto: algif - avoid excessive use of socket buffer in skcipher
commit e2cffb5f493a8b431dc87124388ea59b79f0bccb upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/arm/OMAP')
0 files changed, 0 insertions, 0 deletions