Re: [PATCH] crypto: AF_ALG: handle 0 lengths in af_alg_make_sg

2017-04-05 Thread Stephan Müller
Am Mittwoch, 5. April 2017, 14:50:12 CEST schrieb Herbert Xu: Hi Herbert, > So this is only possible with patches that have not been applied > yet? Correct. > In that case please fold this into whichever patch series > that needs it. Ok, let us defer it. Ciao Stephan

Re: [PATCH] crypto: AF_ALG: handle 0 lengths in af_alg_make_sg

2017-04-05 Thread Herbert Xu
On Sat, Apr 01, 2017 at 07:46:39PM +0200, Stephan Müller wrote: > Am Samstag, 1. April 2017, 17:04:28 CEST schrieb Stephan Müller: > > Hi Herbert, > > > Hi Herbert, > > > > If you concur with the patch, I think it should go to 4.11 as well as > > to stable. > > After checking this issue again,

Re: [PATCH] crypto: AF_ALG: handle 0 lengths in af_alg_make_sg

2017-04-01 Thread Stephan Müller
Am Samstag, 1. April 2017, 17:04:28 CEST schrieb Stephan Müller: Hi Herbert, > Hi Herbert, > > If you concur with the patch, I think it should go to 4.11 as well as > to stable. After checking this issue again, I see that it is not triggerable in the current code as the different af_alg users

[PATCH] crypto: AF_ALG: handle 0 lengths in af_alg_make_sg

2017-04-01 Thread Stephan Müller
Hi Herbert, If you concur with the patch, I think it should go to 4.11 as well as to stable. Ciao Stephan ---8<--- The function af_alg_make_sg converts user-provided IOVECs into an SGL. Thus it operates directly on the user-space provided number of IOVECs. When user space provides 0 for the num