https://github.com/torvalds/linux
Revision 0145058c3d30b4319d747f64caa16a9cb15f0581 authored by Catalin Marinas on 16 January 2015, 13:56:38 UTC, committed by Will Deacon on 16 January 2015, 13:57:33 UTC
This patch partially reverts commit 421520ba98290a73b35b7644e877a48f18e06004
(only the arm64 part). There is no guarantee that the boot-loader places other
images like dtb in a different page than initrd start/end, especially when the
kernel is built with 64KB pages. When this happens, such pages must not be
freed. The free_reserved_area() already takes care of rounding up "start" and
rounding down "end" to avoid freeing partially used pages.

Cc: <stable@vger.kernel.org> # 3.17+
Reported-by: Peter Maydell <Peter.Maydell@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
1 parent cd25b85
History
Tip revision: 0145058c3d30b4319d747f64caa16a9cb15f0581 authored by Catalin Marinas on 16 January 2015, 13:56:38 UTC
arm64: partially revert "ARM: 8167/1: extend the reserved memory for initrd to be page aligned"
Tip revision: 0145058
File Mode Size
Kconfig -rw-r--r-- 1.4 KB
Makefile -rw-r--r-- 265 bytes
bind.c -rw-r--r-- 6.9 KB
daemon.c -rw-r--r-- 16.5 KB
interface.c -rw-r--r-- 14.8 KB
internal.h -rw-r--r-- 10.8 KB
key.c -rw-r--r-- 3.7 KB
main.c -rw-r--r-- 2.4 KB
namei.c -rw-r--r-- 24.0 KB
proc.c -rw-r--r-- 3.1 KB
rdwr.c -rw-r--r-- 24.3 KB
security.c -rw-r--r-- 2.7 KB
xattr.c -rw-r--r-- 6.9 KB

back to top