mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
lmb: handle more than one DRAM BANK
This fixes the automatic lmb initialization and reservation for boards with more than one DRAM bank. This fixes the CVE-2018-18439 and -18440 fixes that only allowed to load files into the firs DRAM bank from fs and via tftp. Found-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Tested-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Tom Rini
parent
e3b4fc9598
commit
9cc2323fee
@@ -59,8 +59,8 @@ static void boot_start_lmb(bootm_headers_t *images)
|
||||
mem_start = env_get_bootm_low();
|
||||
mem_size = env_get_bootm_size();
|
||||
|
||||
lmb_init_and_reserve(&images->lmb, (phys_addr_t)mem_start, mem_size,
|
||||
NULL);
|
||||
lmb_init_and_reserve_range(&images->lmb, (phys_addr_t)mem_start,
|
||||
mem_size, NULL);
|
||||
}
|
||||
#else
|
||||
#define lmb_reserve(lmb, base, size)
|
||||
|
Reference in New Issue
Block a user