]> git.baikalelectronics.ru Git - kernel.git/commit
s390/kexec_file: Fix potential segment overlap in ELF loader
authorPhilipp Rudo <prudo@linux.ibm.com>
Mon, 1 Apr 2019 10:13:42 +0000 (12:13 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 29 Apr 2019 08:43:43 +0000 (10:43 +0200)
commitef7e88e7c96f5dff48b570712d23c0b227fac216
treeb3732ebceab3c5d5a05c0f045156760c6f75c6ac
parent115c9b6fb31603e3a5c39b96aa196e29fa8b2ff1
s390/kexec_file: Fix potential segment overlap in ELF loader

When loading an ELF image via kexec_file the segment alignment is ignored
in the calculation for the load address of the next segment. When there are
multiple segments this can lead to segment overlap and thus load failure.

Signed-off-by: Philipp Rudo <prudo@linux.ibm.com>
Fixes: 0c5693d9c07b ("s390/kexec_file: Add ELF loader")
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/kexec_elf.c