]> git.proxmox.com Git - mirror_qemu.git/blobdiff - meson.build
migration: Fix use-after-free of migration state object
[mirror_qemu.git] / meson.build
index 1bda391de66ddb6d088f5c5b15b834065446109b..5ffa8c97166d064816f26b504767773b1c338685 100644 (file)
@@ -559,6 +559,11 @@ hardening_flags = [
     # upon its return. This makes it harder to assemble
     # ROP gadgets into something usable
     '-fzero-call-used-regs=used-gpr',
+
+    # Initialize all stack variables to zero. This makes
+    # it harder to take advantage of uninitialized stack
+    # data to drive exploits
+    '-ftrivial-auto-var-init=zero',
 ]
 
 qemu_common_flags += cc.get_supported_arguments(hardening_flags)
@@ -3281,7 +3286,6 @@ if have_system
     'hw/arm',
     'hw/audio',
     'hw/block',
-    'hw/block/dataplane',
     'hw/char',
     'hw/display',
     'hw/dma',