mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 00:58:31 +00:00
Change compel_task_size() to probe the actual kernel address space limit at runtime via mmap() with MAP_FIXED_NOREPLACE flag. On systems where the CPU supports 5-level paging but the kernel doesn't have it enabled, we need to detect the actual task size the kernel is using. On x86-64, task_size is either (1UL << 47) for 4-level paging or (1UL << 56) for 5-level paging. The function probes by attempting to mmap at the 4-level boundary and if it succeeds or the address is already occupied, the kernel supports 5-level paging. Fixes: #2877 Signed-off-by: Tushar Mohapatra <tusharmohapatra.gig@gmail.com> |
||
|---|---|---|
| .. | ||
| aarch64 | ||
| arm | ||
| loongarch64 | ||
| mips | ||
| ppc64 | ||
| riscv64 | ||
| s390 | ||
| x86 | ||