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 | e5b8ea0402e3099960b8e27e11596a0d34bb6103 (patch) | |
tree | 31908549863d75e2a0ac6af2166e65c0dafc8822 /crypto/ecb.c | |
parent | bbda03707cf8fbf6851b7990e0e33485c774df07 (diff) | |
download | linux-crypto-e5b8ea0402e3099960b8e27e11596a0d34bb6103.tar.gz linux-crypto-e5b8ea0402e3099960b8e27e11596a0d34bb6103.zip |
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/ecb.c')
0 files changed, 0 insertions, 0 deletions