From: Hugh Dickins Date: Sat, 10 Feb 2007 09:43:00 +0000 (-0800) Subject: [PATCH] page_mkwrite caller race fix X-Git-Tag: v2.6.21-rc1~274^2~472 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3704ceb4ad055b489b143f4e37c57d128908012;p=pandora-kernel.git [PATCH] page_mkwrite caller race fix After do_wp_page has tested page_mkwrite, it must release old_page after acquiring page table lock, not before: at some stage that ordering got reversed, leaving a (very unlikely) window in which old_page might be truncated, freed, and reused in the same position. Signed-off-by: Hugh Dickins Acked-by: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed