/*
* Limit the stack by to some sane default: root can always
* increase this limit if needed.. 8MB seems reasonable.
- *
- * (2MB more to cover randomization effects.)
*/
-#define _STK_LIM (10*1024*1024)
-#define EXEC_STACK_BIAS (2*1024*1024)
+#define _STK_LIM (8*1024*1024)
+
+/*
+ * GPG wants 32kB of mlocked memory, to make sure pass phrases
+ * and other sensitive information are never written to disk.
+ */
+#define MLOCK_LIMIT (8 * PAGE_SIZE)
/*
* Due to binary compatibility, the actual resource numbers