Re: [PATCH 1/3] NTFS: aops: Remove VLA usage

2018-07-09 Thread Kees Cook
On Thu, Jul 5, 2018 at 1:44 PM, Arnd Bergmann wrote: > On Tue, Jun 26, 2018 at 7:29 PM, Kees Cook wrote: >> In the quest to remove all stack VLA usage from the kernel[1], this >> uses the maximum size needed on the stack and adds a sanity check for >> robustness: index.block_size cannot be larger

Re: [PATCH 1/3] NTFS: aops: Remove VLA usage

2018-07-05 Thread Arnd Bergmann
On Tue, Jun 26, 2018 at 7:29 PM, Kees Cook wrote: > In the quest to remove all stack VLA usage from the kernel[1], this > uses the maximum size needed on the stack and adds a sanity check for > robustness: index.block_size cannot be larger than PAGE_SIZE nor less > than NTFS_BLOCK_SIZE. > > [1] >

[PATCH 1/3] NTFS: aops: Remove VLA usage

2018-06-26 Thread Kees Cook
In the quest to remove all stack VLA usage from the kernel[1], this uses the maximum size needed on the stack and adds a sanity check for robustness: index.block_size cannot be larger than PAGE_SIZE nor less than NTFS_BLOCK_SIZE. [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=q