]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mm/memory-failure: fix an incorrect use of tail pages
authorLiu Shixin <liushixin2@huawei.com>
Thu, 7 Mar 2024 12:51:50 +0000 (20:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Apr 2024 10:50:09 +0000 (12:50 +0200)
commit27f83f1cacba82afa4c9697e3ec3abb15e92ec82
treea42e77353c7b7e1707a842e975473df5040c4a85
parentc8686c014b5e872ba7e334f33ca553f14446fc29
mm/memory-failure: fix an incorrect use of tail pages

When backport commit c79c5a0a00a9 to 4.19-stable, there is a mistake change.
The head page instead of tail page should be passed to try_to_unmap(),
otherwise unmap will failed as follows.

 Memory failure: 0x121c10: failed to unmap page (mapcount=1)
 Memory failure: 0x121c10: recovery action for unmapping failed page: Ignored

Fixes: c6f50413f2aa ("mm/memory-failure: check the mapcount of the precise page")
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
mm/memory-failure.c