Adam Litke 72fad7139b hugetlb: handle write-protection faults in follow_hugetlb_page
The follow_hugetlb_page() fix I posted (merged as git commit
5b23dbe8173c212d6a326e35347b038705603d39) missed one case.  If the pte is
present, but not writable and write access is requested by the caller to
get_user_pages(), the code will do the wrong thing.  Rather than calling
hugetlb_fault to make the pte writable, it notes the presence of the pte
and continues.

This simple one-liner makes sure we also fault on the pte for this case.
Please apply.

Signed-off-by: Adam Litke <agl@us.ibm.com>
Acked-by: Dave Kleikamp <shaggy@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-12-10 19:43:55 -08:00
..
2007-12-05 09:21:20 -08:00
2007-07-17 10:22:59 -07:00
2007-10-20 02:46:58 +02:00
2007-10-16 09:43:02 -07:00
2007-10-20 01:27:18 +02:00
2007-10-20 02:13:26 +02:00
2007-02-15 09:57:03 -08:00
2007-10-18 14:37:31 -07:00
2007-05-21 09:18:19 -07:00
2007-10-20 15:04:06 -07:00
2007-10-20 01:27:18 +02:00
2007-05-07 12:12:54 -07:00
2007-10-17 08:42:45 -07:00
2007-11-28 11:04:28 -08:00
2007-12-05 09:21:18 -08:00
2007-12-09 10:17:52 -08:00
2007-12-09 10:17:52 -08:00
2007-10-20 01:27:18 +02:00
2007-10-17 08:42:55 -07:00
2007-11-14 18:45:41 -08:00
2007-10-20 01:27:18 +02:00
2007-10-20 01:27:18 +02:00
2007-11-14 18:45:42 -08:00