]> git.baikalelectronics.ru Git - kernel.git/commit
mm: increase the default mlock limit from 32k to 64k
authorKurt Garloff <garloff@suse.de>
Wed, 29 Oct 2008 21:00:48 +0000 (14:00 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 30 Oct 2008 18:38:45 +0000 (11:38 -0700)
commit535ef77111f2b45e050d99ccd3eb83f69d5e81bd
tree5b2f28bc0854a9e3a43eef424a761a2235f756bb
parente91fe3450e2c3476f2e638f5284b9532182d1de8
mm: increase the default mlock limit from 32k to 64k

By default, non-privileged tasks can only mlock() a small amount of
memory to avoid a DoS attack by ordinary users.  The Linux kernel
defaulted to 32k (on a 4k page size system) to accommodate the needs of
gpg.

However, newer gpg2 needs 64k in various circumstances and otherwise
fails miserably, see bnc#329675.

Change the default to 64k, and make it more agnostic to PAGE_SIZE.

Signed-off-by: Kurt Garloff <garloff@suse.de>
Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/resource.h