Re: [dm-devel] [PATCH 01/11] crypto: shash: Remove VLA usage

2018-06-21 Thread Christophe LEROY
Le 20/06/2018 à 22:36, Kees Cook a écrit : On Wed, Jun 20, 2018 at 12:30 PM, Christophe Leroy wrote: On 06/20/2018 07:03 PM, Kees Cook wrote: In the quest to remove all stack VLA usage from the kernel[1], this removes the VLAs in SHASH_DESC_ON_STACK (via crypto_shash_descsize()) by using

Re: [dm-devel] [PATCH 01/11] crypto: shash: Remove VLA usage

2018-06-21 Thread Christophe Leroy
On 06/20/2018 07:03 PM, Kees Cook wrote: In the quest to remove all stack VLA usage from the kernel[1], this removes the VLAs in SHASH_DESC_ON_STACK (via crypto_shash_descsize()) by using the maximum allowable size (which is now more clearly captured in a macro). Similar limits are turned into

Re: [dm-devel] [PATCH 01/11] crypto: shash: Remove VLA usage

2018-06-20 Thread Kees Cook
On Wed, Jun 20, 2018 at 1:39 PM, Christophe LEROY wrote: > > > Le 20/06/2018 à 22:36, Kees Cook a écrit : >> >> On Wed, Jun 20, 2018 at 12:30 PM, Christophe Leroy >> wrote: >>> >>> >>> >>> On 06/20/2018 07:03 PM, Kees Cook wrote: In the quest to remove all stack VLA usage from the

Re: [dm-devel] [PATCH 01/11] crypto: shash: Remove VLA usage

2018-06-20 Thread Kees Cook
On Wed, Jun 20, 2018 at 12:30 PM, Christophe Leroy wrote: > > > On 06/20/2018 07:03 PM, Kees Cook wrote: >> >> In the quest to remove all stack VLA usage from the kernel[1], this >> removes the VLAs in SHASH_DESC_ON_STACK (via crypto_shash_descsize()) >> by using the maximum allowable size (which