From: Ma Wupeng <mawupeng1(a)huawei.com>
During page eject, machine check safe is enhanced as follow:
During soft offline page, page is copied to new page in kernel. If the
origin page has UCE, there will lead to kernel panic.
In order to solve this problem, use machine check safe to catch this
error which can be achieved by using copy_mc_to_kernel to replace
copy_page. Signal SIGBUS will be send to user task if this UCE
is consumed by this situation to avoid kernel panic.
Jiaqi Yan (1):
mm/hwpoison: introduce copy_mc_highpage
Ma Wupeng (5):
mm/hwpoison: arm64: introduce copy_mc_highpage
mm/hwpoison: introduce copy_mc_highpages
mm/hwpoison: add migrate_page_mc_extra()
mm: Update PF_COREDUMP_MCS to PF_MCS
mm: page_eject: Add mc support during offline page
arch/arm64/include/asm/page.h | 1 +
arch/arm64/mm/copypage.c | 13 ++++++
drivers/ras/page_eject.c | 5 +++
fs/coredump.c | 4 +-
include/linux/highmem.h | 52 +++++++++++++++++++++++
include/linux/sched.h | 2 +-
lib/iov_iter.c | 2 +-
mm/migrate.c | 77 +++++++++++++++++++++++++++++++----
8 files changed, 143 insertions(+), 13 deletions(-)
--
2.25.1