• Dmitry Safonov's avatar
    kdat: Add test for presence of vdso mapping API · 91c81e5f
    Dmitry Safonov authored
    Previously, arch_prctl(ARCH_MAP_VDSO_32) was only used by
    CONFIG_COMPAT to map compatible vdso blob for 32-bit restoree.
    But we can make it more generic:
    Omitting mremap() for moving vdso to rt-vdso zone in restorer
    and afterward on needed position in restoree.
    Also omitting reading /proc/self/maps to find vdso/vvar
    addresses (to park afterward in restorer).
    
    TLDR; under this kdat feature we can get rid of a buch of mremap()'s
    for each restoree and from parsing /proc/self/maps in vdso_init_restore().
    
    The API is present from v4.9 kernel.
    Signed-off-by: 's avatarDmitry Safonov <dsafonov@virtuozzo.com>
    Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    91c81e5f
Name
Last commit
Last update
Documentation Loading commit data...
compel Loading commit data...
contrib Loading commit data...
coredump Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
include/common Loading commit data...
lib Loading commit data...
scripts Loading commit data...
soccr Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
INSTALL.md Loading commit data...
Makefile Loading commit data...
Makefile.compel Loading commit data...
Makefile.config Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...