diff options
author | Minchan Kim | 2011-02-02 00:52:33 +0100 |
---|---|---|
committer | Linus Torvalds | 2011-02-03 01:03:18 +0100 |
commit | 48db54ee2f41e8ae2faf330b55db34a9fffb5b3c (patch) | |
tree | 5cdf936bf6996e379784e0b75b982a364f437368 /fs/bad_inode.c | |
parent | mm: when migrate_pages returns 0, all pages must have been released (diff) | |
download | kernel-qcow2-linux-48db54ee2f41e8ae2faf330b55db34a9fffb5b3c.tar.gz kernel-qcow2-linux-48db54ee2f41e8ae2faf330b55db34a9fffb5b3c.tar.xz kernel-qcow2-linux-48db54ee2f41e8ae2faf330b55db34a9fffb5b3c.zip |
mm/migration: fix page corruption during hugepage migration
If migrate_huge_page by memory-failure fails , it calls put_page in itself
to decrease page reference and caller of migrate_huge_page also calls
putback_lru_pages. It can do double free of page so it can make page
corruption on page holder.
In addtion, clean of pages on caller is consistent behavior with
migrate_pages by cf608ac19c ("mm: compaction: fix COMPACTPAGEFAILED
counting").
Signed-off-by: Minchan Kim <minchan.kim@gmail.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/bad_inode.c')
0 files changed, 0 insertions, 0 deletions