linux_dsm_epyc7002/drivers/gpu/drm/nouveau/nvkm/subdev/secboot
Gustavo A. R. Silva 7bf5b70bef drm/nouveau/secboot: remove VLA usage
In preparation to enabling -Wvla, remove VLA. In this particular
case directly use macro NVKM_MSGQUEUE_CMDLINE_SIZE instead of local
variable cmdline_size. Also, remove cmdline_size as it is not
actually useful anymore.

The use of stack Variable Length Arrays needs to be avoided, as they
can be a vector for stack exhaustion, which can be both a runtime bug
or a security flaw. Also, in general, as code evolves it is easy to
lose track of how big a VLA can get. Thus, we can end up having runtime
failures that are hard to debug.

Also, fixed as part of the directive to remove all VLAs from
the kernel: https://lkml.org/lkml/2018/3/7/621

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2018-05-18 15:01:20 +10:00
..
acr_r352.c drm/nouveau/secboot: start LS firmware in post-run hook 2017-04-06 14:39:04 +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: pass instance to LS firmware loaders 2017-04-06 14:39:04 +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/gm20b: fix the error return code in gm20b_secboot_tegra_read_wpr() 2017-04-29 22:39:23 +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: add GP10B support 2017-04-06 14:39:04 +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/secboot/gp108: implement on top of acr_r370 2018-02-02 15:24:05 +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