Re: [PATCH] avoid excessive use of socket buffer in skcipher

2014-11-08 Thread Milan Broz
On 09/04/2014 09:08 AM, Herbert Xu wrote: > On Mon, Aug 25, 2014 at 11:49:54AM +0200, Ondrej Kozina wrote: >> 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 insid

Re: [PATCH] avoid excessive use of socket buffer in skcipher

2014-09-04 Thread Herbert Xu
On Mon, Aug 25, 2014 at 11:49:54AM +0200, Ondrej Kozina wrote: > 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

Re: [PATCH] avoid excessive use of socket buffer in skcipher

2014-09-01 Thread Ondrej Kozina
On 09/01/2014 05:22 PM, Ondrej Kozina wrote: Attaching simple reproducer. Sigh. Mondays... Sending fixed reproducer. Excuse my mistake. Kind regards Ondrej #include #include #include #include #include #include #include #include #include #include #ifndef SOL_ALG #define SOL_ALG 279

Re: [PATCH] avoid excessive use of socket buffer in skcipher

2014-09-01 Thread Ondrej Kozina
Attaching simple reproducer. Kind regards Ondrej #include #include #include #include #include #include #include #include #include #include #ifndef SOL_ALG #define SOL_ALG 279 #endif #define IN_SIZE 1024 #define MODE "ecb" #define CIPHER "aes" const char key[] = "0123456789abcdef