Mikulas Patocka
a09a79f668
Don't lock guardpage if the stack is growing up
...
Linux kernel excludes guard page when performing mlock on a VMA with
down-growing stack. However, some architectures have up-growing stack
and locking the guard page should be excluded in this case too.
This patch fixes lvm2 on PA-RISC (and possibly other architectures with
up-growing stack). lvm2 calculates number of used pages when locking and
when unlocking and reports an internal error if the numbers mismatch.
[ Patch changed fairly extensively to also fix /proc/<pid>/maps for the
grows-up case, and to move things around a bit to clean it all up and
share the infrstructure with the /proc bits.
Tested on ia64 that has both grow-up and grow-down segments - Linus ]
Signed-off-by: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz >
Tested-by: Tony Luck <tony.luck@gmail.com >
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2011-05-09 16:22:07 -07:00
..
2011-03-31 11:26:23 -03:00
2011-04-11 07:27:24 -07:00
2011-03-29 12:11:16 -07:00
2011-03-31 11:26:23 -03:00
2011-04-18 10:15:43 -07:00
2011-03-31 11:26:23 -03:00
2011-05-02 20:26:32 -07:00
2011-04-27 19:16:12 -04:00
2011-03-31 11:26:23 -03:00
2011-04-11 07:27:24 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-26 14:15:06 +00:00
2011-03-31 11:26:23 -03:00
2011-04-24 14:28:45 -04:00
2011-04-28 12:56:09 -07:00
2011-03-31 11:26:23 -03:00
2011-03-30 16:53:38 -07:00
2011-04-25 18:10:58 -07:00
2011-04-19 13:32:46 +02:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-30 17:14:33 -07:00
2011-03-31 11:26:23 -03:00
2011-04-24 07:58:46 -07:00
2011-04-18 18:25:41 +10:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-04-05 23:51:37 +02:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-04-28 16:12:47 -04:00
2011-04-12 15:21:04 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-05-06 13:20:59 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-04-28 11:28:20 -07:00
2011-03-31 11:26:23 -03:00
2011-04-18 13:29:03 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-30 00:37:41 +02:00
2011-03-29 14:48:19 +02:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-04-01 16:14:30 +11:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-25 21:00:29 -07:00
2011-04-24 11:32:16 -04:00
2011-04-25 18:14:10 -07:00
2011-03-31 11:26:23 -03:00
2011-04-14 16:06:54 -07:00
2011-05-09 16:22:07 -07:00
2011-03-31 11:26:23 -03:00
2011-04-01 20:23:25 -07:00
2011-04-04 17:00:54 +02:00
2011-03-31 11:26:23 -03:00
2011-04-24 14:28:18 -04:00
2011-03-27 17:48:07 +02:00
2011-04-27 15:57:16 -04:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-24 10:16:26 -07:00
2011-05-01 18:18:49 +02:00
2011-03-31 11:26:23 -03:00
2011-05-04 14:20:20 -07:00
2011-04-07 11:14:49 -07:00
2011-04-18 10:35:30 -07:00
2011-03-31 11:26:23 -03:00
2011-04-12 11:13:00 +02:00
2011-03-31 11:26:23 -03:00
2011-04-18 10:39:38 +02:00
2011-03-31 11:26:23 -03:00
2011-04-25 17:28:24 +02:00
2011-03-31 11:26:23 -03:00
2011-03-24 21:16:31 -04:00
2011-04-01 07:27:31 -07:00
2011-03-31 11:26:23 -03:00
2011-04-14 16:06:56 -07:00
2011-04-14 16:06:56 -07:00
2011-03-29 18:44:05 -07:00
2011-04-25 17:28:24 +02:00
2011-04-22 16:17:29 -07:00
2011-04-07 11:14:49 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-28 06:05:24 -04:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-04-11 22:54:42 +02:00
2011-03-24 10:16:26 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-04-19 11:23:31 -03:00
2011-03-31 11:26:23 -03:00
2011-04-19 11:20:56 -03:00
2011-03-28 12:53:29 +01:00
2011-04-14 16:06:55 -07:00
2011-03-31 11:26:23 -03:00
2011-03-24 21:17:51 -04:00
2011-03-31 11:26:23 -03:00