]> git.baikalelectronics.ru Git - kernel.git/commit
ksm: revert "use GET_KSM_PAGE_NOLOCK to get ksm page in remove_rmap_item_from_tree()"
authorHugh Dickins <hughd@google.com>
Sat, 15 May 2021 00:27:22 +0000 (17:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 15 May 2021 02:41:32 +0000 (19:41 -0700)
commit7b97184eec03df5686656ac7743f60a8056e6785
tree94a2315b50117f96e1f732ed698df1b6f70a1ea1
parentd0c5d42a3d4b0a5055e2fea9a97a9c0f1d905ffd
ksm: revert "use GET_KSM_PAGE_NOLOCK to get ksm page in remove_rmap_item_from_tree()"

This reverts commit 05770c7f7967b6a19910ac245b27b6a06b7499dd.  General
Protection Fault in rmap_walk_ksm() under memory pressure:
remove_rmap_item_from_tree() needs to take page lock, of course.

Link: https://lkml.kernel.org/r/alpine.LSU.2.11.2105092253500.1127@eggly.anvils
Signed-off-by: Hugh Dickins <hughd@google.com>
Cc: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/ksm.c