qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] hw/core: Don't dump incompletely reset cpu
@ 2025-08-27  5:38 Richard Henderson
  2025-08-27  5:38 ` [PATCH 1/2] hw/core: Dump cpu_reset in the reset.exit phase Richard Henderson
  2025-08-27  5:38 ` [PATCH 2/2] hw/core: Use qemu_log_trylock/unlock in cpu_common_reset_exit Richard Henderson
  0 siblings, 2 replies; 7+ messages in thread
From: Richard Henderson @ 2025-08-27  5:38 UTC (permalink / raw)
  To: qemu-devel

The start of CPUState reset.hold happens before any subclasses,
which can result in attempting to dump uninitialized data.
In the case of Sparc, this will SIGSEGV.


r~


Richard Henderson (2):
  hw/core: Dump cpu_reset in the reset.exit phase
  hw/core: Use qemu_log_trylock/unlock in cpu_common_reset_exit

 hw/core/cpu-common.c | 21 ++++++++++++++++-----
 1 file changed, 16 insertions(+), 5 deletions(-)

-- 
2.43.0



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

end of thread, other threads:[~2025-08-30 17:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-27  5:38 [PATCH 0/2] hw/core: Don't dump incompletely reset cpu Richard Henderson
2025-08-27  5:38 ` [PATCH 1/2] hw/core: Dump cpu_reset in the reset.exit phase Richard Henderson
2025-08-28 15:24   ` Peter Maydell
2025-08-28 21:57     ` Philippe Mathieu-Daudé
2025-08-27  5:38 ` [PATCH 2/2] hw/core: Use qemu_log_trylock/unlock in cpu_common_reset_exit Richard Henderson
2025-08-28 15:29   ` Peter Maydell
2025-08-28 21:55   ` Philippe Mathieu-Daudé

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