diff options
| author | Kees Cook <[email protected]> | 2018-10-08 15:46:51 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-10-08 18:09:34 +0000 |
| commit | ff5d1a42096cd96e70546c97d92f01d10cbddc2d (patch) | |
| tree | 5e117b880905b7b3a7368d9f65a16f2f9d7a8b34 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc (diff) | |
| download | kernel-ff5d1a42096cd96e70546c97d92f01d10cbddc2d.tar.gz kernel-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 <[email protected]>
Cc: [email protected]
Signed-off-by: Kees Cook <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
