Skip to content

Updates to compat VDSOs

Jeremy Fitzhardinge lkml virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Relocate VDSO ELF headers to match mapped location with COMPAT_VDSOarch/i386/kernel/entry.S arch/i386/kernel/sysenter.c arch/i386/mm/pgtable.c +3 more+95 -4911 replies
2/2Make COMPAT_VDSO runtime selectable.Documentation/kernel-parameters.txt arch/i386/kernel/sysenter.c include/asm-i386/page.h+84 -500 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/2] Updates to compat VDSOs

Hi Andi,

Here's a couple of patches to fix up COMPAT_VDSO:

The first is a straightforward implementation of Jan's original idea of relocating the VDSO to match its mapped location. Unlike Jan and Zach's version, I changed it to relocate based on the phdrs rather than the sections; the result is pleasantly compact.

The second patch takes advantage of the fact that all the COMPAT_VDSO work happens at runtime now, and allows compat mode to be enabled dynamically. If you specify vdso=2 on the kernel command line, it comes up in compat mode; vdso=1 is normal vdso mode, and vdso=0 disables vdso altogether. You can also switch modes with sysctl.

Thanks,
J