u-boot/arch/arm/lib
Simon Glass 06fd853890 arm: Add CONFIG_DELAY_ENVIRONMENT to delay environment loading
This option delays loading of the environment until later, so that only the
default environment will be available to U-Boot.

This can address the security risk of untrusted data being used during boot.

Any time you load untrusted data you expose yourself to a bug in the
code. The attacker gets to choose the data so can sometimes carefully
craft it to exploit a bug. We try to avoid touching user-controlled
data during a verified boot unless strictly necessary. Since the
default environment is good enough in this case (or you would just
change it), this gets around the problem by just not loading the
environment.

When CONFIG_DELAY_ENVIRONMENT is defined, it is convenient to have a
run-time way of enabling loading of the environment. Add this to the
fdt as /config/delay-environment.

Note: This patch depends on http://patchwork.ozlabs.org/patch/194342/

Signed-off-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Doug Anderson <dianders@chromium.org>
2013-01-10 22:21:47 +01:00
..
_ashldi3.S Move lib_$ARCH directories to arch/$ARCH/lib 2010-04-13 09:13:03 +02:00
_ashrdi3.S Move lib_$ARCH directories to arch/$ARCH/lib 2010-04-13 09:13:03 +02:00
_divsi3.S Move lib_$ARCH directories to arch/$ARCH/lib 2010-04-13 09:13:03 +02:00
_lshrdi3.S Move lib_$ARCH directories to arch/$ARCH/lib 2010-04-13 09:13:03 +02:00
_modsi3.S Move lib_$ARCH directories to arch/$ARCH/lib 2010-04-13 09:13:03 +02:00
_udivsi3.S Move lib_$ARCH directories to arch/$ARCH/lib 2010-04-13 09:13:03 +02:00
_umodsi3.S Move lib_$ARCH directories to arch/$ARCH/lib 2010-04-13 09:13:03 +02:00
board.c arm: Add CONFIG_DELAY_ENVIRONMENT to delay environment loading 2013-01-10 22:21:47 +01:00
bootm.c arm bootm: Allow to pass board specified atags 2012-10-30 15:28:05 -07:00
cache-cp15.c arm: move flush_dcache_all() to just before disable cache 2013-01-10 22:21:27 +01:00
cache-pl310.c armv7: cache: remove flush on un-aligned invalidate 2011-09-04 11:36:16 +02:00
cache.c arm: do not force d-cache enable on all boards 2011-09-04 11:36:16 +02:00
crt0.S arm: move C runtime setup code in crt0.S 2013-01-08 22:14:50 +01:00
div0.c Move lib_$ARCH directories to arch/$ARCH/lib 2010-04-13 09:13:03 +02:00
eabi_compat.c arm: Don't use printf() in SPL builds 2012-07-07 14:07:43 +02:00
interrupts.c ARM: prevent misaligned array inits 2012-10-15 11:53:07 -07:00
Makefile arm: move C runtime setup code in crt0.S 2013-01-08 22:14:50 +01:00
memcpy.S arm: lib: memcpy: Do not copy to same address 2011-09-03 22:40:45 +02:00
memset.S arm: Use optimized memcpy and memset from linux 2011-04-27 19:38:07 +02:00
reset.c Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
spl.c SPL: Create arch/arm/lib/spl.c for board_init_f and jump_to_image_linux 2012-09-27 09:49:59 -07:00