Re: [PATCH v9 1/2] crypto: skcipher AF_ALG - overhaul memory management

2017-06-21 Thread Stephan Müller
Am Dienstag, 20. Juni 2017, 05:10:42 CEST schrieb Herbert Xu: Hi Herbert, > > + int err = _skcipher_recvmsg(sock, msg, ignored, flags); > > + > > + /* > > +* This error covers -EIOCBQUEUED which implies that we can > > +* only handle one AIO request. If

Re: [PATCH v9 1/2] crypto: skcipher AF_ALG - overhaul memory management

2017-06-19 Thread Herbert Xu
On Sat, Jun 10, 2017 at 07:59:25PM +0200, Stephan Müller wrote: > > -static int skcipher_recvmsg_sync(struct socket *sock, struct msghdr *msg, > - int flags) > +static int skcipher_recvmsg(struct socket *sock, struct msghdr *msg, > + size_t ignor

[PATCH v9 1/2] crypto: skcipher AF_ALG - overhaul memory management

2017-06-10 Thread Stephan Müller
The updated memory management is described in the top part of the code. As one benefit of the changed memory management, the AIO and synchronous operation is now implemented in one common function. The AF_ALG operation uses the async kernel crypto API interface for each cipher operation. Thus, the