diff options
author | Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> | 2014-06-23 13:22:03 -0700 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2014-07-11 13:33:54 +0100 |
commit | de5f02d08d32aaf559f57def64176dae52a2e00a (patch) | |
tree | e25fb312671abf17bf9373e8812722389dd91b35 /mm/highmem.c | |
parent | bb99d6796995968ca6a42b17fbfb48d073bb234c (diff) | |
download | kernel_samsung_smdk4412-de5f02d08d32aaf559f57def64176dae52a2e00a.zip kernel_samsung_smdk4412-de5f02d08d32aaf559f57def64176dae52a2e00a.tar.gz kernel_samsung_smdk4412-de5f02d08d32aaf559f57def64176dae52a2e00a.tar.bz2 |
hugetlb: fix copy_hugetlb_page_range() to handle migration/hwpoisoned entry
commit 4a705fef986231a3e7a6b1a6d3c37025f021f49f upstream.
There's a race between fork() and hugepage migration, as a result we try
to "dereference" a swap entry as a normal pte, causing kernel panic.
The cause of the problem is that copy_hugetlb_page_range() can't handle
"swap entry" family (migration entry and hwpoisoned entry) so let's fix
it.
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Acked-by: Hugh Dickins <hughd@google.com>
Cc: Christoph Lameter <cl@linux.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'mm/highmem.c')
0 files changed, 0 insertions, 0 deletions