Kees Cook ff5d1a4209 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>
2018-10-08 11:09:34 -07:00
..
2018-05-11 15:08:03 -06:00
2018-06-12 16:19:22 -07:00
2017-02-20 12:16:15 +01:00
2018-09-06 16:18:04 +02:00
2017-08-18 08:45:29 -06:00
2018-10-08 11:09:34 -07:00
2018-06-12 16:19:22 -07:00