aboutsummaryrefslogtreecommitdiff
path: root/arch/sparc
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2018-10-08 08:46:51 -0700
committerDavid S. Miller <[email protected]>2018-10-08 11:09:34 -0700
commitff5d1a42096cd96e70546c97d92f01d10cbddc2d (patch)
tree5e117b880905b7b3a7368d9f65a16f2f9d7a8b34 /arch/sparc
parent0854ba5ff5c938307cd783e996b62c83f1ce923b (diff)
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 <[email protected]> Cc: [email protected] Signed-off-by: Kees Cook <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'arch/sparc')
0 files changed, 0 insertions, 0 deletions