summaryrefslogtreecommitdiff
path: root/arch/sparc/include
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2018-10-08 18:46:51 +0300
committerDavid S. Miller <davem@davemloft.net>2018-10-08 21:09:34 +0300
commitff5d1a42096cd96e70546c97d92f01d10cbddc2d (patch)
tree5e117b880905b7b3a7368d9f65a16f2f9d7a8b34 /arch/sparc/include
parent0854ba5ff5c938307cd783e996b62c83f1ce923b (diff)
downloadlinux-ff5d1a42096cd96e70546c97d92f01d10cbddc2d.tar.xz
sunvdc: Remove VLA usage
In the quest to remove all stack VLA usage from the kernel[1], this moves the math for cookies calculation into macros and allocates a fixed size array for the maximum number of cookies and adds a runtime sanity check. (Note that the size was always fixed, but just hidden from the compiler.) [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com Cc: Jens Axboe <axboe@kernel.dk> Cc: linux-block@vger.kernel.org Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include')
0 files changed, 0 insertions, 0 deletions