qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/3] hw/arm/aspeed_ast2700-fc: Fix null pointer dereference
@ 2025-05-07 10:10 Steven Lee via
  2025-05-07 10:10 ` [PATCH v1 1/3] hw/arm/aspeed_ast2700-fc: Fix null pointer dereference in ca35 init Steven Lee via
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Steven Lee via @ 2025-05-07 10:10 UTC (permalink / raw)
  To: Cédric Le Goater, Peter Maydell, Troy Lee, Jamin Lin,
	Andrew Jeffery, Joel Stanley, open list:ASPEED BMCs,
	open list:All patches CC here
  Cc: troy_lee, longzl2, yunlin.tang, steven_lee

Clang's sanitizer reports a runtime error when booting with
'-net nic -net user', due to a null pointer being passed
to memory_region_find(), which subsequently triggers a crash in
flatview_lookup().

The root cause is that CA35 memory region is not mapped to system
memory. In addition, unconfigured NICs (due to missing peers)
lead to a cascade of warnings and possibly misbehavior.

Fix by:
- Reduce ca35 ram size to 1GiB to match the ast2700a1-evb.
- Map ca35_memory into system memory
- Add nic configuration in ast2700fc's ca35 init function.

Steven Lee (3):
  hw/arm/aspeed_ast2700-fc: Fix null pointer dereference in ca35 init
  hw/arm/aspeed_ast27x0: Fix unimplemented region overlap with vbootrom
  docs: Remove ast2700fc from Aspeed family boards

 docs/system/arm/aspeed.rst |  2 +-
 hw/arm/aspeed_ast27x0-fc.c | 16 ++++++++++++++--
 hw/arm/aspeed_ast27x0.c    |  4 ++--
 3 files changed, 17 insertions(+), 5 deletions(-)

-- 
2.34.1



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

end of thread, other threads:[~2025-05-12 13:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-07 10:10 [PATCH v1 0/3] hw/arm/aspeed_ast2700-fc: Fix null pointer dereference Steven Lee via
2025-05-07 10:10 ` [PATCH v1 1/3] hw/arm/aspeed_ast2700-fc: Fix null pointer dereference in ca35 init Steven Lee via
2025-05-12  8:08   ` Cédric Le Goater
2025-05-12 10:00     ` Steven Lee
2025-05-07 10:10 ` [PATCH v1 2/3] hw/arm/aspeed_ast27x0: Fix unimplemented region overlap with vbootrom Steven Lee via
2025-05-12 13:18   ` Cédric Le Goater
2025-05-07 10:10 ` [PATCH v1 3/3] docs: Remove ast2700fc from Aspeed family boards Steven Lee via
2025-05-12  7:37   ` Cédric Le Goater
2025-05-12  9:42     ` Steven Lee

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