[CRIU] [PATCH 0/3] vdso proxy, v3

Cyrill Gorcunov gorcunov at openvz.org
Wed May 15 16:56:28 EDT 2013


On Thu, May 16, 2013 at 12:38:14AM +0400, Andrew Vagin wrote:
> After remaping or unmaping vdso, another vma can be marked as vdso.
> 
> Here is a small example, which shows this problem.
> 
> [avagin at localhost ~]$ cat test3.c 
> #define _GNU_SOURCE
> #include <stdio.h>
> #include <sys/mman.h>
> 
> int main()
> {
> 	void *p, *n;
> 	long size;
> 
> 	scanf("%p %d %p", &p, &size, &n);
> 
> 	mremap(p, size, size, MREMAP_MAYMOVE | MREMAP_FIXED, n);
> 	mmap(p, size, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
> 
> 	scanf("%p %d %p", &p, &size, &n);
> 	return 0;
> }
> 

Sigh, that's what I've been feared of to happen... thanks!


More information about the CRIU mailing list