Thread (31 messages) 31 messages, 5 authors, 2016-03-02

[PATCH v3 0/2] Tracking user space vDSO remaping

flat view
STALE3898d SUPERSEDED

From: Laurent Dufour <hidden>
Date: 2015-03-25 13:54:14
Also in: linux-arch, linux-mm, linux-s390, linux-um, lkml
Subsystem: linux for powerpc (32-bit and 64-bit), memory management, memory mapping, the rest · Maintainers: Madhavan Srinivasan, Andrew Morton, Liam R. Howlett, Lorenzo Stoakes, Linus Torvalds

Status: Superseded by v5 (posted 2015-04-15). [go to v5]

Revision v3 (5 revisions archived).

Revisions (5)
  1. v1
  2. v2 [diff against previous]
  3. v3 current [diff against previous] re-posted go to this post
  4. v4 [diff against previous]
  5. v5 [diff against previous]
CRIU is recreating the process memory layout by remapping the checkpointee
memory area on top of the current process (criu). This includes remapping
the vDSO to the place it has at checkpoint time.

However some architectures like powerpc are keeping a reference to the vDSO
base address to build the signal return stack frame by calling the vDSO
sigreturn service. So once the vDSO has been moved, this reference is no
more valid and the signal frame built later are not usable.

This patch serie is introducing a new mm hook 'arch_remap' which is called
when mremap is done and the mm lock still hold. The next patch is adding the
vDSO remap and unmap tracking to the powerpc architecture.

Changes in v3:
--------------
- Fixed grammatical error in a comment of the second patch. 
  Thanks again, Ingo.

Changes in v2:
--------------
- Following the Ingo Molnar's advice, enabling the call to arch_remap through
  the __HAVE_ARCH_REMAP macro. This reduces considerably the first patch.

Laurent Dufour (2):
  mm: Introducing arch_remap hook
  powerpc/mm: Tracking vDSO remap

 arch/powerpc/include/asm/mmu_context.h | 36 +++++++++++++++++++++++++++++++++-
 mm/mremap.c                            | 11 +++++++++--
 2 files changed, 44 insertions(+), 3 deletions(-)

-- 
1.9.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help