From: Patrick Venture <venture@google.com>
To: richard.henderson@linaro.org, peter.maydell@linaro.org
Cc: pbonzini@redhat.com, qemu-devel@nongnu.org,
Peter Foley <pefoley@google.com>,
Patrick Venture <venture@google.com>
Subject: [PATCH] accel/tcg: fix msan findings in translate-all
Date: Fri, 28 Feb 2025 21:23:29 +0000 [thread overview]
Message-ID: <20250228212329.1775669-1-venture@google.com> (raw)
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
next reply other threads:[~2025-02-28 21:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-28 21:23 Patrick Venture [this message]
2025-02-28 21:38 ` [PATCH] accel/tcg: fix msan findings in translate-all 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250228212329.1775669-1-venture@google.com \
--to=venture@google.com \
--cc=pbonzini@redhat.com \
--cc=pefoley@google.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).