David Gibson 5bd0190bf3 [PATCH] Fix crash when ptrace poking hugepage areas
set_page_dirty() will not cope with being handed a page * which is part of
a compound page, but not the master page in that compound page.  This case
can occur via access_process_vm() if you attemp to write to another
process's hugepage memory area using ptrace() (causing an oops or hang).

This patch fixes the bug by only calling set_page_dirty() from
access_process_vm() if the page is not a compound page.  We already use a
similar fix in bio_set_pages_dirty() for the case of direct io to
hugepages.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-11-29 19:47:03 -08:00
..
2005-10-28 08:16:49 -07:00
2005-10-28 08:16:49 -07:00
2005-11-28 14:42:24 -08:00
2005-11-23 16:08:38 -08:00
2005-10-30 17:37:32 -08:00
2005-10-29 21:40:42 -07:00
2005-10-08 15:00:57 -07:00
2005-10-30 17:37:17 -08:00
2005-10-30 17:37:32 -08:00
2005-10-30 17:37:18 -08:00
2005-10-30 17:37:25 -08:00