mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
7bf5b70bef
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> |
||
---|---|---|
.. | ||
acr_r352.c | ||
acr_r352.h | ||
acr_r361.c | ||
acr_r361.h | ||
acr_r364.c | ||
acr_r367.c | ||
acr_r367.h | ||
acr_r370.c | ||
acr_r370.h | ||
acr_r375.c | ||
acr.c | ||
acr.h | ||
base.c | ||
gm20b.c | ||
gm200.c | ||
gm200.h | ||
gp10b.c | ||
gp102.c | ||
gp108.c | ||
hs_ucode.c | ||
hs_ucode.h | ||
Kbuild | ||
ls_ucode_gr.c | ||
ls_ucode_msgqueue.c | ||
ls_ucode.h | ||
priv.h |