Re: [PATCH] crypto: AF_ALG - limit mask and type

2017-12-12 Thread Stephan Mueller
Am Dienstag, 12. Dezember 2017, 09:57:37 CET schrieb Eric Biggers: Hi Eric, > Hi Stephan, > > On Tue, Dec 12, 2017 at 07:09:08AM +0100, Stephan Müller wrote: > > Hi Herbert, > > > > you see the reported problem by simply using > > > > sa.salg_mask = 0x; > > > > Note, I am not fully

Re: [PATCH] crypto: AF_ALG - limit mask and type

2017-12-12 Thread Eric Biggers
Hi Stephan, On Tue, Dec 12, 2017 at 07:09:08AM +0100, Stephan Müller wrote: > Hi Herbert, > > you see the reported problem by simply using > > sa.salg_mask = 0x; > > Note, I am not fully sure about whether CRYPTO_AF_ALG_ALLOWED_MASK and > CRYPTO_AF_ALG_ALLOWED_TYPE have the correct

[PATCH] crypto: AF_ALG - limit mask and type

2017-12-11 Thread Stephan Müller
Hi Herbert, you see the reported problem by simply using sa.salg_mask = 0x; Note, I am not fully sure about whether CRYPTO_AF_ALG_ALLOWED_MASK and CRYPTO_AF_ALG_ALLOWED_TYPE have the correct value. But I think that all that user space should reach is potentially the ASYNC flag and the