commit | ac4ecf968acb9e54c335f99d842d56d6b90e28fb | [log] [tgz] |
---|---|---|
author | Kees Cook <keescook@chromium.org> | Fri Aug 17 15:44:07 2018 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Fri Aug 17 16:20:27 2018 -0700 |
tree | bfbd2cc93a3d3e1e8de4f2f6df6a248252a8fb9e | |
parent | a10dcebacdb0cf6eb29c211e99cf190cd131a16a [diff] |
ntfs: aops: remove VLA usage 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=qPXydAacU1RqZWA@mail.gmail.com Link: http://lkml.kernel.org/r/20180626172909.41453-2-keescook@chromium.org Signed-off-by: Kees Cook <keescook@chromium.org> Cc: Anton Altaparmakov <anton@tuxera.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>