]> git.baikalelectronics.ru Git - uboot.git/commit
lmb: handle more than one DRAM BANK
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Sat, 26 Jan 2019 21:13:04 +0000 (22:13 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 2 Feb 2019 13:19:17 +0000 (08:19 -0500)
commite1a9b19ba61c5b8628d112cdd2360a0aba54ac41
tree7d4c0bf226c098a560620457a6e4a96321a47bee
parentd7b5cff3b74efcf4be2ab1c09e865c9b74cd251e
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>
common/bootm.c
fs/fs.c
include/lmb.h
lib/lmb.c
net/tftp.c