[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/5] hw/core/loader: Prohibit loading ROMs bigger than memory reg
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 0/5] hw/core/loader: Prohibit loading ROMs bigger than memory region |
Date: |
Mon, 9 Mar 2020 15:43:48 +0100 |
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(-)
--
2.21.1
- [PATCH 0/5] hw/core/loader: Prohibit loading ROMs bigger than memory region,
Philippe Mathieu-Daudé <=
- [PATCH 1/5] hw/sparc64/niagara: Pass available memory region size to add_rom_or_fail, Philippe Mathieu-Daudé, 2020/03/09
- [PATCH 2/5] hw/core/loader: Prohibit loading ROMs bigger than memory region, Philippe Mathieu-Daudé, 2020/03/09
- [PATCH 3/5] hw/core/loader: Provide rom_add_file() a 'max_size' argument, Philippe Mathieu-Daudé, 2020/03/09
- [PATCH 4/5] hw/core/loader: Restrict rom_add_file_mr() to available region size, Philippe Mathieu-Daudé, 2020/03/09
- [PATCH 5/5] hw/core/loader: Provide rom_add_file_fixed() a 'max_size' argument, Philippe Mathieu-Daudé, 2020/03/09