2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 13:58:34 +00:00

vdso-compat: Increase the reserved buffer for compat vdso

On Arch Linux with 5.18.3-zen1-1-zen kernel, the vdso's size is 3 pages which
exceeds the current 2-page reserved buffer. This commit simply increases the
reserved buffer size to 4 pages.

Fixes: https://github.com/checkpoint-restore/criu/issues/1916

Signed-off-by: Bui Quang Minh <minhquangbui99@gmail.com>
This commit is contained in:
Bui Quang Minh 2022-07-21 21:26:58 +07:00 committed by Andrei Vagin
parent b30f3ee3d3
commit 70a9cd6fbf

View File

@ -479,7 +479,7 @@ out_close:
return ret;
}
#define COMPAT_VDSO_BUF_SZ (PAGE_SIZE * 2)
#define COMPAT_VDSO_BUF_SZ (PAGE_SIZE * 4)
static int vdso_fill_compat_symtable(struct vdso_maps *native, struct vdso_maps *compat)
{
void *vdso_mmap;