criu/arch
Christopher Covington 69d008d567 Use run-time page_size() for mremap
The old and new address parameters passed to the mremap system
call must be page size aligned. On AArch64, the page size can
only be correctly determined at run time. This fixes the following
errors for CRIU on AArch64 kernels with CONFIG_ARM64_64K_PAGES=y.

      call mremap(0x3ffb7d50000, 8192, 8192, MAYMOVE | FIXED, 0x2a000)
  Error (rst-malloc.c:201): Can't mremap rst mem: Invalid argument

      call mremap(0x3ffb7d90000, 8192, 8192, MAYMOVE | FIXED, 0x32000)
  Error (rst-malloc.c:201): Can't mremap rst mem: Invalid argument

Signed-off-by: Christopher Covington <cov@codeaurora.org>
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2015-07-28 13:38:30 +03:00
..
aarch64 Use run-time page_size() for mremap 2015-07-28 13:38:30 +03:00
arm arm: fix syscall numbers for waitid 2015-07-24 18:22:35 +03:00
ppc64 ppc64: Add Altivec and VSX support 2015-07-28 13:35:20 +03:00
scripts/arm arm: prepare syscall table generation scripts to be shared with AArch64 2014-03-11 22:46:06 +04:00
x86 x86: Add proper ifdefs into sigframe construction 2015-07-28 13:31:55 +03:00