linux/drivers/gpu/drm/nouveau/nvkm/subdev/secboot
Kees Cook 0d46690155 drm/nouveau/secboot/acr: Remove VLA usage
In the quest to remove all stack VLA usage from the kernel[1], this
allocates the working buffers before starting the writing so it won't
abort in the middle. This needs an initial walk of the lists to figure
out how large the buffer should be.

[1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2018-07-16 18:06:30 +10:00
..
acr_r352.c drm/nouveau/secboot/acr: Remove VLA usage 2018-07-16 18:06:30 +10:00
acr_r352.h drm/nouveau/secboot: let LS post_run hooks return error 2017-04-06 14:39:04 +10:00
acr_r361.c drm/nouveau/secboot: share r361 BL structures and functions 2017-03-07 17:05:13 +10:00
acr_r361.h drm/nouveau/secboot: share r361 BL structures and functions 2017-03-07 17:05:13 +10:00
acr_r364.c drm/nouveau/secboot: support for r364 ACR 2017-03-07 17:05:15 +10:00
acr_r367.c drm/nouveau/secboot/acr: Remove VLA usage 2018-07-16 18:06:30 +10:00
acr_r367.h drm/nouveau/secboot: pass instance to LS firmware loaders 2017-04-06 14:39:04 +10:00
acr_r370.c drm/nouveau/secboot/r370: implement support for booting LS SEC2 ucode 2018-02-02 15:24:04 +10:00
acr_r370.h drm/nouveau/secboot/r370: move a bunch of r375 stuff to a new implementation 2018-02-02 15:24:04 +10:00
acr_r375.c drm/nouveau/secboot/r370: move a bunch of r375 stuff to a new implementation 2018-02-02 15:24:04 +10:00
acr.c drm/nouveau/secboot: reorganize into more files 2017-02-17 15:14:31 +10:00
acr.h drm/nouveau/secboot/r370: move a bunch of r375 stuff to a new implementation 2018-02-02 15:24:04 +10:00
base.c drm/nouveau/secboot: allow to boot multiple falcons 2017-04-06 14:39:03 +10:00
gm20b.c drm/nouveau/secboot/tegra: Enable gp20b/gp10b firmware tag when relevant 2018-07-16 18:06:29 +10:00
gm200.c drm/nouveau/secboot/gm200: use new interfaces for vmm operations 2017-11-02 13:32:30 +10:00
gm200.h drm/nouveau/secboot/gm200: initialise vmm with new interfaces 2017-11-02 13:32:30 +10:00
gp10b.c drm/nouveau/secboot/tegra: Enable gp20b/gp10b firmware tag when relevant 2018-07-16 18:06:29 +10:00
gp102.c drm/nouveau/secboot/gp108: implement on top of acr_r370 2018-02-02 15:24:05 +10:00
gp108.c drm/nouveau/gr/gv100: initial support 2018-05-18 15:01:47 +10:00
hs_ucode.c drm/nouveau/secboot: put HS code loading code into own file 2017-03-07 17:05:16 +10:00
hs_ucode.h drm/nouveau/secboot: put HS code loading code into own file 2017-03-07 17:05:16 +10:00
Kbuild drm/nouveau/secboot/gp108: implement on top of acr_r370 2018-02-02 15:24:05 +10:00
ls_ucode_gr.c drm/nouveau/secboot: plug memory leak in ls_ucode_img_load_gr() error path 2017-05-17 09:09:41 +10:00
ls_ucode_msgqueue.c drm/nouveau/secboot: remove VLA usage 2018-05-18 15:01:20 +10:00
ls_ucode.h drm/nouveau/secboot: let LS post_run hooks return error 2017-04-06 14:39:04 +10:00
priv.h drm/nouveau/secboot/gp108: implement on top of acr_r370 2018-02-02 15:24:05 +10:00