qemu: Add support for stack canary protection
authorMichalis Pappas <mpappas@fastmail.fm>
Tue, 20 Mar 2018 06:30:00 +0000 (14:30 +0800)
committerMichalis Pappas <mpappas@fastmail.fm>
Tue, 20 Mar 2018 06:35:47 +0000 (14:35 +0800)
commitf68d22e8796524f36acf9feb6ffcc16cb1fc75d2
treef055f0739e6f619625ac4e571541a1fec36908d7
parentfb45044bc567b96e8be243b717ec2920224cd9b9
qemu: Add support for stack canary protection

Allow qemu users to enable stack protection. Since the virt platform
does not provide an RNG, use a basic, timer-based, canary generation,
similarly to FVP.

Increase SRAM size and BL2 size to fit images when stack protection is
enabled.

Notice that stack protection is not enabled by default in qemu.

Fixes ARM-software/tf-issues#568

Signed-off-by: Michalis Pappas <mpappas@fastmail.fm>
plat/qemu/include/platform_def.h
plat/qemu/platform.mk
plat/qemu/qemu_stack_protector.c [new file with mode: 0644]