diff options
author | 2019-04-17 21:29:29 -0700 | |
---|---|---|
committer | 2019-04-23 10:56:24 +0100 | |
commit | d4d18e3ec6091843f607e8929a56723e28f393a6 (patch) | |
tree | ebe9dab3dcc03344ca8f47f3b00e6c37242bde02 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 5.1-rc6 (diff) | |
download | wireguard-linux-d4d18e3ec6091843f607e8929a56723e28f393a6.tar.xz wireguard-linux-d4d18e3ec6091843f607e8929a56723e28f393a6.zip |
arm64: mm: Ensure tail of unaligned initrd is reserved
In the event that the start address of the initrd is not aligned, but
has an aligned size, the base + size will not cover the entire initrd
image and there is a chance that the kernel will corrupt the tail of the
image.
By aligning the end of the initrd to a page boundary and then
subtracting the adjusted start address the memblock reservation will
cover all pages that contains the initrd.
Fixes: c756c592e442 ("arm64: Utilize phys_initrd_start/phys_initrd_size")
Cc: stable@vger.kernel.org
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions