]> git.ipfire.org Git - thirdparty/u-boot.git/commit - lib/lmb.c
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)
commit9cc2323feebdde500f50f7abb855045dbde765cb
tree7d4c0bf226c098a560620457a6e4a96321a47bee
parente3b4fc9598388f47632a8c802aaa68b1154526f2
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