hw/core/loader: Prohibit loading ROMs bigger than memory region
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | hw/sparc64/niagara: Pass available memory region size to add_rom_or_failhw/ | +10 | 0 replies | |
| 2/5 | hw/core/loader: Prohibit loading ROMs bigger than memory regionhw/ | +4 | 2 replies | |
| 3/5 | hw/core/loader: Provide rom_add_file() a 'max_size' argumenthw/ include/ | +19 | 1 reply | |
| 4/5 | hw/core/loader: Restrict rom_add_file_mr() to available region sizeinclude/ | +1 | 0 replies | |
| 5/5 | hw/core/loader: Provide rom_add_file_fixed() a 'max_size' argumenthw/ hw/ hw/ +1 more | +7 | 1 reply |
Reviews trailers per patch
1 of 5 patches has a Reviewed-by or Acked-by.
| Patch | David Gibson |
|---|---|
| 1/5 | |
| 2/5 | |
| 3/5 | |
| 4/5 | |
| 5/5 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/5] hw/core/loader: Prohibit loading ROMs bigger than memory region
This series fixes a bug where an user can load ROMs bigger than the expected size. The bug is delayed after a reset where rom_reset() can overflow the underlying memory regions.
Philippe Mathieu-Daudé (5):
hw/sparc64/niagara: Pass available memory region size to
add_rom_or_fail
hw/core/loader: Prohibit loading ROMs bigger than memory region hw/core/loader: Provide rom_add_file() a 'max_size' argument hw/core/loader: Restrict rom_add_file_mr() to available region size hw/core/loader: Provide rom_add_file_fixed() a 'max_size' argument
include/hw/loader.h | 12 ++++++------ hw/core/loader.c | 24 +++++++++++++++++------- hw/i386/x86.c | 2 +- hw/ppc/sam460ex.c | 2 +- hw/sparc64/niagara.c | 22 +++++++++++++--------- 5 files changed, 38 insertions(+), 24 deletions(-)
Signature · 1 line
2.21.1