[PATCH -next] pstore/ram: Do not use stack VLA for parity workspace

2018-03-07 Thread Kees Cook
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 ---

[PATCH -next] pstore/ram: Do not use stack VLA for parity workspace

2018-03-07 Thread Kees Cook
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 --- fs/pstore/ram_core.c |