aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2018-08-17 15:44:14 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2018-08-17 16:20:27 -0700
commitab62ef82ea49b8814f4b0e2fe61426acda793fb9 (patch)
tree0d008a528dc3753c12383c928e776f6d012d388e /fs/ubifs
parentntfs: decompress: remove VLA usage (diff)
downloadlinux-dev-ab62ef82ea49b8814f4b0e2fe61426acda793fb9.tar.xz
linux-dev-ab62ef82ea49b8814f4b0e2fe61426acda793fb9.zip
ntfs: mft: remove VLA usage
In the quest to remove all stack VLA usage from the kernel[1], this allocates the maximum size stack buffer. Existing checks already require that blocksize >= NTFS_BLOCK_SIZE and mft_record_size <= PAGE_SIZE, so max_bhs can be at most PAGE_SIZE / NTFS_BLOCK_SIZE. Sanity checks are added for robustness. [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com Link: http://lkml.kernel.org/r/20180626172909.41453-4-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>
Diffstat (limited to 'fs/ubifs')
0 files changed, 0 insertions, 0 deletions