Venki Pallipadi 1c12c4cf94 mprotect: prevent alteration of the PAT bits
There is a defect in mprotect, which lets the user change the page cache
type bits by-passing the kernel reserve_memtype and free_memtype
wrappers.  Fix the problem by not letting mprotect change the PAT bits.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-05-14 19:11:15 -07:00
..
2008-04-17 17:41:07 +02:00
2008-01-30 13:34:07 +01:00
2008-04-17 17:41:33 +02:00
2007-10-17 20:17:13 +02:00
2008-04-19 19:19:54 +02:00
2008-02-04 16:48:04 +01:00
2007-10-17 20:17:15 +02:00
2008-04-17 17:41:19 +02:00
2007-10-17 20:17:08 +02:00
2008-05-01 08:03:58 -07:00
2008-05-01 08:04:01 -07:00
2007-10-17 20:17:08 +02:00
2007-10-17 20:17:21 +02:00
2008-01-30 13:33:09 +01:00
2008-04-19 19:19:58 +02:00
2008-04-17 17:41:33 +02:00
2008-01-30 13:33:35 +01:00
2008-02-04 16:48:03 +01:00
2008-05-10 19:31:45 +02:00
2008-01-30 13:33:14 +01:00
2008-04-18 00:46:35 +02:00
2008-01-30 13:30:28 +01:00
2008-05-01 08:04:01 -07:00
2007-10-30 00:22:22 +01:00
2008-01-30 13:30:16 +01:00
2008-04-17 20:05:37 +02:00
2008-04-27 12:01:19 +03:00
2007-10-17 20:16:47 +02:00
2008-01-30 13:31:55 +01:00
2007-10-17 20:26:15 +02:00
2008-01-30 13:31:43 +01:00
2007-10-23 22:37:24 +02:00
2008-04-17 17:41:30 +02:00
2008-04-17 17:41:01 +02:00
2008-04-17 17:40:58 +02:00
2008-01-30 13:34:10 +01:00
2008-05-08 15:43:51 +02:00
2008-04-19 19:19:55 +02:00
2008-04-26 23:41:04 +02:00
2008-04-24 23:57:31 +02:00
2008-04-30 23:15:34 +02:00
2008-04-30 23:15:34 +02:00
2007-10-17 20:17:08 +02:00
2007-10-17 20:17:08 +02:00
2008-04-19 19:19:57 +02:00
2007-10-17 20:17:08 +02:00
2008-04-17 10:42:34 -04:00
2007-10-23 22:37:24 +02:00
2008-04-24 23:15:44 +02:00
2008-01-30 13:31:21 +01:00
2007-10-23 22:37:24 +02:00
2007-10-23 22:37:24 +02:00
2008-04-19 19:19:55 +02:00
2008-04-29 08:06:03 -07:00
2008-02-06 10:41:02 -08:00
2007-10-17 20:26:18 +02:00
2008-04-29 13:45:24 +02:00
2008-04-26 17:35:46 +02:00
2007-10-17 20:32:38 +02:00
2008-01-30 13:32:39 +01:00