exynos-linux-stable/arch/s390/boot/compressed
Marcelo Henrique Cerri f4938792af s390/decompressor: fix initrd corruption caused by bss clear
commit d82c0d12c92705ef468683c9b7a8298dd61ed191 upstream.

Reorder the operations in decompress_kernel() to ensure initrd is moved
to a safe location before the bss section is zeroed.

During decompression bss can overlap with the initrd and this can
corrupt the initrd contents depending on the size of the compressed
kernel (which affects where the initrd is placed by the bootloader) and
the size of the bss section of the decompressor.

Also use the correct initrd size when checking for overlaps with
parmblock.

Fixes: 06c0dd72ae ([S390] fix boot failures with compressed kernels)
Reviewed-by: Joy Latten <joy.latten@canonical.com>
Reviewed-by: Vineetha HariPai <vineetha.hari.pai@canonical.com>
Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-04-12 12:41:14 +02:00
..
.gitignore s390: add various .gitignore files. 2012-05-16 14:42:41 +02:00
head.S s390: clarify compressed image code path 2016-08-08 15:41:31 +02:00
Makefile s390: enable UBSAN 2016-09-20 14:26:23 +02:00
misc.c s390/decompressor: fix initrd corruption caused by bss clear 2017-04-12 12:41:14 +02:00
vmlinux.lds.S s390: remove 31 bit support 2015-03-25 11:49:33 +01:00
vmlinux.scr [S390] add support for compressed kernels 2010-02-26 22:37:33 +01:00