qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] accel/tcg: fix msan findings in translate-all
@ 2025-02-28 21:23 Patrick Venture
  2025-02-28 21:38 ` Richard Henderson
  0 siblings, 1 reply; 6+ messages in thread
From: Patrick Venture @ 2025-02-28 21:23 UTC (permalink / raw)
  To: richard.henderson, peter.maydell
  Cc: pbonzini, qemu-devel, Peter Foley, Patrick Venture

From: Peter Foley <pefoley@google.com>

e.g.
  Uninitialized value was created by an allocation of 'host_pc' in the stack frame
  #0 0xaaaac07df87c in tb_gen_code third_party/qemu/accel/tcg/translate-all.c:297:5

Signed-off-by: Peter Foley <pefoley@google.com>
Signed-off-by: Patrick Venture <venture@google.com>
---
 accel/tcg/translate-all.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c
index d4189c7386..f584055a15 100644
--- a/accel/tcg/translate-all.c
+++ b/accel/tcg/translate-all.c
@@ -298,7 +298,7 @@ TranslationBlock *tb_gen_code(CPUState *cpu,
     tcg_insn_unit *gen_code_buf;
     int gen_code_size, search_size, max_insns;
     int64_t ti;
-    void *host_pc;
+    void *host_pc = NULL;
 
     assert_memory_lock();
     qemu_thread_jit_write();
-- 
2.48.1.711.g2feabab25a-goog



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

end of thread, other threads:[~2025-03-03 21:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-28 21:23 [PATCH] accel/tcg: fix msan findings in translate-all Patrick Venture
2025-02-28 21:38 ` Richard Henderson
2025-02-28 22:25   ` Patrick Venture
2025-03-03 16:34     ` Peter Foley
2025-03-03 16:40       ` Peter Foley
2025-03-03 21:14         ` Richard Henderson

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).