]> asedeno.scripts.mit.edu Git - linux.git/commit
pstore/ram: Do not use stack VLA for parity workspace
authorKees Cook <keescook@chromium.org>
Wed, 7 Mar 2018 20:18:33 +0000 (12:18 -0800)
committerKees Cook <keescook@chromium.org>
Wed, 7 Mar 2018 20:47:06 +0000 (12:47 -0800)
commitf2531f1976d98a7a4328da7f3cbf31b7c1927738
treefa32c230298182b5124ebb32ab2f2de287972d47
parentfe1d475888eecf1319458ee916e642e3e5e41c28
pstore/ram: Do not use stack VLA for parity workspace

Instead of using a stack VLA for the parity workspace, preallocate a
memory region. The preallocation is done to keep from needing to perform
allocations during crash dump writing, etc. This also fixes a missed
release of librs on free.

Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/ram_core.c
include/linux/pstore_ram.h