Re: [PATCH v2] lib/bch: Remove VLA usage

2018-05-31 Thread Ivan Djelic
On Wed, May 30, 2018 at 02:22:06PM -0700, Kees Cook wrote: > In the quest to remove all stack VLA usage from the kernel[1], this > allocates a fixed size stack array to cover the range needed for > bch. This was done instead of a preallocation on the SLAB due to > performance reasons, shown by Ivan

[PATCH v2] lib/bch: Remove VLA usage

2018-05-30 Thread Kees Cook
In the quest to remove all stack VLA usage from the kernel[1], this allocates a fixed size stack array to cover the range needed for bch. This was done instead of a preallocation on the SLAB due to performance reasons, shown by Ivan Djelic: little-endian, type sizes: int=4 long=8 longlong=8 cpu: