qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Replace variable length arrays in ppc KVM code
@ 2024-02-21 16:26 Thomas Huth
  2024-02-21 16:26 ` [PATCH 1/3] target/ppc/kvm: Replace variable length array in kvmppc_save_htab() Thomas Huth
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Thomas Huth @ 2024-02-21 16:26 UTC (permalink / raw)
  To: qemu-devel, Peter Maydell
  Cc: qemu-ppc, Daniel P. Berrangé, Nicholas Piggin,
	Daniel Henrique Barboza, Cédric Le Goater

It would be good to enable -Wvla as an additional security feature
when compiling QEMU (see also Peter's explanation here:
https://lore.kernel.org/qemu-devel/20240125173211.1786196-1-peter.maydell@linaro.org/ ).
There are currently only two spots with variable lengths arrays left,
so if we fix those, we can finally enable the -Wvla compiler switch.

Peter Maydell (1):
  meson: Enable -Wvla

Thomas Huth (2):
  target/ppc/kvm: Replace variable length array in kvmppc_save_htab()
  target/ppc/kvm: Replace variable length array in kvmppc_read_hptes()

 meson.build      | 1 +
 target/ppc/kvm.c | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)

-- 
2.43.2



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-02-22  8:20 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-21 16:26 [PATCH 0/3] Replace variable length arrays in ppc KVM code Thomas Huth
2024-02-21 16:26 ` [PATCH 1/3] target/ppc/kvm: Replace variable length array in kvmppc_save_htab() Thomas Huth
2024-02-21 16:29   ` Peter Maydell
2024-02-21 16:52     ` Thomas Huth
2024-02-21 16:26 ` [PATCH 2/3] target/ppc/kvm: Replace variable length array in kvmppc_read_hptes() Thomas Huth
2024-02-21 16:30   ` Peter Maydell
2024-02-21 16:26 ` [PATCH 3/3] meson: Enable -Wvla Thomas Huth
2024-02-21 16:59   ` Thomas Huth
2024-02-21 17:27     ` Philippe Mathieu-Daudé
2024-02-21 17:30       ` Philippe Mathieu-Daudé
2024-02-22  8:19       ` Clément Chigot
2024-02-21 17:48     ` Thomas Huth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).