hw/arm/aspeed_ast2700-fc: Fix null pointer dereference
Status from this message: Applied to aspeed-next.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest4 of 6 patches 2 repliesApplied
- v44 of 6 patches 2 repliesSuperseded
- v35 patches 5 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 4 of 5 patches | 7 replies | Superseded | |
| v1 | 2 of 3 patches | 3 replies | Superseded |
Changes in v5 from the cover letter
- Rewrote the commit message for the first patch to:
"hw/arm/aspeed_ast2700-fc: Add network support".
4 of 6 patches are in this archive. The cover letter announces 6.
Patches in v5 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | hw/arm/aspeed_ast2700-fc: Add network supporthw/ | +7 | 1 reply | |
| 2/6 | hw/arm/aspeed_ast2700-fc: Reduce ca35 ram size to align with ast2700a1hw/ | +1 | 0 replies | |
| 3/6 | hw/arm/aspeed_ast27x0: Fix unimplemented region overlap with vbootromhw/ | +2 | 0 replies | |
| 5/6 | hw/arm/fby35: Map BMC memory into system memoryhw/ | +1 | 0 replies |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Cédric Le Goater |
|---|---|
| Series | R-b R-b |
| 1/6 | R-b |
| 2/6 | R-b |
| 3/6 | R-b |
| 5/6 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 0/6] hw/arm/aspeed_ast2700-fc: Fix null pointer dereference
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
v3:
- Fixed issue with incorrectly inheriting TYPE_ASPEED_MACHINE.
- Rewrote the commit message for "Map BMC memory into system memory".
- Added more details to the commit message for "Fix unimplemented region overlap with VBootROM".
v4:
- Split the first patch "Fix null pointer dereference" into two patches.
- Remove the patch "hw/arm/aspeed_ast27x0: Fix unimplemented region overlap with vbootrom".
v5:
- Rewrote the commit message for the first patch to:
"hw/arm/aspeed_ast2700-fc: Add network support".
Steven Lee (6):
hw/arm/aspeed_ast2700-fc: Add network support hw/arm/aspeed_ast2700-fc: Reduce ca35 ram size to align with ast2700a1 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 | 10 +++++++++- hw/arm/aspeed_ast27x0.c | 4 ++-- hw/arm/fby35.c | 1 + 4 files changed, 13 insertions(+), 4 deletions(-)
Signature · 1 line
2.43.0