aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorNaoya Horiguchi <[email protected]>2010-09-08 10:19:32 +0900
committerAndi Kleen <[email protected]>2010-10-08 09:32:44 +0200
commit998b4382c1d75a6fd3b0e334dae3ab33bd074d99 (patch)
tree666c8eaad844df0447870f1e6fada4f0fb8007cd /net/unix/af_unix.c
parent6b0cd00bc396daf5c2dcf17a8d82055335341f46 (diff)
hugetlb: fix metadata corruption in hugetlb_fault()
Since the PageHWPoison() check is for avoiding hwpoisoned page remained in pagecache mapping to the process, it should be done in "found in pagecache" branch, not in the common path. Otherwise, metadata corruption occurs if memory failure happens between alloc_huge_page() and lock_page() because page fault fails with metadata changes remained (such as refcount, mapcount, etc.) This patch moves the check to "found in pagecache" branch and fix the problem. ChangeLog since v2: - remove retry check in "new allocation" path. - make description more detailed - change patch name from "HWPOISON, hugetlb: move PG_HWPoison bit check" Signed-off-by: Naoya Horiguchi <[email protected]> Signed-off-by: Jun'ichi Nomura <[email protected]> Acked-by: Mel Gorman <[email protected]> Reviewed-by: Wu Fengguang <[email protected]> Reviewed-by: Christoph Lameter <[email protected]> Signed-off-by: Andi Kleen <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions