diff options
author | Kees Cook | 2018-10-08 17:46:51 +0200 |
---|---|---|
committer | David S. Miller | 2018-10-08 20:09:34 +0200 |
commit | ff5d1a42096cd96e70546c97d92f01d10cbddc2d (patch) | |
tree | 5e117b880905b7b3a7368d9f65a16f2f9d7a8b34 /arch/mips/kvm/msa.S | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc (diff) | |
download | kernel-qcow2-linux-ff5d1a42096cd96e70546c97d92f01d10cbddc2d.tar.gz kernel-qcow2-linux-ff5d1a42096cd96e70546c97d92f01d10cbddc2d.tar.xz kernel-qcow2-linux-ff5d1a42096cd96e70546c97d92f01d10cbddc2d.zip |
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/mips/kvm/msa.S')
0 files changed, 0 insertions, 0 deletions