qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] hw/arm/aspeed_ast2700-fc: Fix null pointer dereference
@ 2025-05-14  9:03 Steven Lee via
  2025-05-14  9:03 ` [PATCH v2 1/5] hw/arm/aspeed_ast2700-fc: Fix null pointer dereference in ca35 init Steven Lee via
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Steven Lee via @ 2025-05-14  9:03 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().

Root cause:
- Missing NIC configuration in the CA35 initialization.

Fix:
- Reduce ca35 ram size from 2GiB to 1GiB to align with ast2700a1-evb,
  where the ram-container is defined as 1GiB in its class.
- Add nic configuration in ast2700fc's ca35 init function.


v2:
- Split the CA35 memory mapping into a separate patch.
- Added a new patch to fix BMC memory mapping in the fby35 machine,
  which had a similar issue (unmapped system_memory).
- Removed Change-Id tag from commit messages

Steven Lee (5):
  hw/arm/aspeed_ast2700-fc: Fix null pointer dereference in ca35 init
  hw/arm/aspeed_ast27x0: Fix unimplemented region overlap with vbootrom
  hw/arm/aspeed_ast27x0-fc: Map ca35 memory into system memory
  hw/arm/fby35: Map BMC memory into system memory
  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 ++--
 hw/arm/fby35.c             |  1 +
 4 files changed, 18 insertions(+), 5 deletions(-)

-- 
2.43.0



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

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

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-14  9:03 [PATCH v2 0/5] hw/arm/aspeed_ast2700-fc: Fix null pointer dereference Steven Lee via
2025-05-14  9:03 ` [PATCH v2 1/5] hw/arm/aspeed_ast2700-fc: Fix null pointer dereference in ca35 init Steven Lee via
2025-05-14 13:27   ` Cédric Le Goater
2025-05-15  3:53     ` Steven Lee
2025-05-14  9:03 ` [PATCH v2 2/5] hw/arm/aspeed_ast27x0: Fix unimplemented region overlap with vbootrom Steven Lee via
2025-05-14 13:27   ` Cédric Le Goater
2025-05-15  5:05     ` Steven Lee
2025-05-19  8:25       ` Steven Lee
2025-05-14  9:03 ` [PATCH v2 3/5] hw/arm/aspeed_ast27x0-fc: Map ca35 memory into system memory Steven Lee via
2025-05-14 15:32   ` Cédric Le Goater
2025-05-15  6:23     ` Steven Lee
2025-05-14  9:03 ` [PATCH v2 4/5] hw/arm/fby35: Map BMC " Steven Lee via
2025-05-14 15:32   ` Cédric Le Goater
2025-05-14  9:03 ` [PATCH v2 5/5] docs: Remove ast2700fc from Aspeed family boards Steven Lee via

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