mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
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> |
||
|---|---|---|
| .. | ||
| aops.c | ||
| aops.h | ||
| attrib.c | ||
| attrib.h | ||
| bitmap.c | ||
| bitmap.h | ||
| collate.c | ||
| collate.h | ||
| compress.c | ||
| debug.c | ||
| debug.h | ||
| dir.c | ||
| dir.h | ||
| endian.h | ||
| file.c | ||
| index.c | ||
| index.h | ||
| inode.c | ||
| inode.h | ||
| Kconfig | ||
| layout.h | ||
| lcnalloc.c | ||
| lcnalloc.h | ||
| logfile.c | ||
| logfile.h | ||
| Makefile | ||
| malloc.h | ||
| mft.c | ||
| mft.h | ||
| mst.c | ||
| namei.c | ||
| ntfs.h | ||
| quota.c | ||
| quota.h | ||
| runlist.c | ||
| runlist.h | ||
| super.c | ||
| sysctl.c | ||
| sysctl.h | ||
| time.h | ||
| types.h | ||
| unistr.c | ||
| upcase.c | ||
| usnjrnl.c | ||
| usnjrnl.h | ||
| volume.h | ||