[CRIU] [RFC 2/3] Use run-time page_size() for mremap
Cyrill Gorcunov
gorcunov at gmail.com
Fri Jul 24 01:03:39 PDT 2015
On Thu, Jul 23, 2015 at 07:59:49AM -0400, Christopher Covington wrote:
> 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 at codeaurora.org>
Acked-by: Cyrill Gorcunov <gorcunov at openvz.org>
More information about the CRIU
mailing list