[lvm-devel] LVM2/lib/mm memlock.c

zkabelac at sourceware.org zkabelac at sourceware.org
Mon Mar 8 15:55:53 UTC 2010


CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac at sourceware.org	2010-03-08 15:55:53

Modified files:
	lib/mm         : memlock.c 

Log message:
	Unconditionaly ignore also Virtual Dynamically-linked Shared Object
	(VDSO on 32bit is VSyscall on 64bit)
	It seems it could be locked on 64bit kernels running 32bit binaries,
	but it makes troubles on real 32bit machines where mlock() returns
	error when trying to lock such map area. (0xffffe000)
	Behavior of mlockall() seems to be similar.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/mm/memlock.c.diff?cvsroot=lvm2&r1=1.17&r2=1.18

--- LVM2/lib/mm/memlock.c	2010/03/05 15:14:03	1.17
+++ LVM2/lib/mm/memlock.c	2010/03/08 15:55:52	1.18
@@ -59,7 +59,8 @@
 
 /* list of maps, that are unconditionaly ignored */
 static const char * const _ignore_maps[] = {
-    "[vsyscall]"
+    "[vdso]",
+    "[vsyscall]",
 };
 
 /* default blacklist for maps */




More information about the lvm-devel mailing list