Commit 7d867d4d authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] sane mlock_limit

As David M-T points out, the default per-user mlock limit should be at least a
single page.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent bc5184b1
......@@ -59,7 +59,7 @@ struct rlimit {
* GPG wants 32kB of mlocked memory, to make sure pass phrases
* and other sensitive information are never written to disk.
*/
#define MLOCK_LIMIT (32*1024)
#define MLOCK_LIMIT (8 * PAGE_SIZE)
/*
* Due to binary compatibility, the actual resource numbers
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment