From: Ondrej Kozina Date: Mon, 25 Aug 2014 09:49:54 +0000 (+0200) Subject: crypto: algif - avoid excessive use of socket buffer in skcipher X-Git-Tag: v3.2.65~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3308bdcc24f3591ace96289137c9411bc2181602;p=pandora-kernel.git 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 Signed-off-by: Herbert Xu Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed