summaryrefslogtreecommitdiffstats
path: root/arch/i386
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2005-11-30 04:34:32 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-30 04:47:03 +0100
commit5bd0190bf3d7e53043a048e809ffa29d41b9d6ac (patch)
treec6fba8d5a532ecfa53dc97a3841d13d972964854 /arch/i386
parent[PATCH] process events connector: uid_t gid_t size issues (diff)
downloadlinux-5bd0190bf3d7e53043a048e809ffa29d41b9d6ac.tar.xz
linux-5bd0190bf3d7e53043a048e809ffa29d41b9d6ac.zip
[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>
Diffstat (limited to 'arch/i386')
0 files changed, 0 insertions, 0 deletions