]> git.baikalelectronics.ru Git - kernel.git/commit
mm/memory-failure: fix race with compound page split/merge
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Thu, 28 Apr 2016 23:19:03 +0000 (16:19 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 29 Apr 2016 02:34:04 +0000 (19:34 -0700)
commitca88d1b91590a95df50146f40343cbb5de70c572
treee89161188d2a485e428e9aa61690517418f75952
parentc85db2ea1716cde3d91c406c0bd47fe7f2cd9188
mm/memory-failure: fix race with compound page split/merge

get_hwpoison_page() must recheck relation between head and tail pages.

n-horiguchi said: without this recheck, the race causes kernel to pin an
irrelevant page, and finally makes kernel crash for refcount mismatch.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Acked-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory-failure.c