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.
Changelog since v1:
- remove unused ret in patch #4
- add a bugfix for page eject
Jiaqi Yan (1):
mm/hwpoison: introduce copy_mc_highpage
Ma Wupeng (6):
mm: page_eject: Return right value during removal
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 | 10 ++++-
fs/coredump.c | 4 +-
include/linux/highmem.h | 52 ++++++++++++++++++++++++
include/linux/sched.h | 2 +-
lib/iov_iter.c | 2 +-
mm/migrate.c | 76 ++++++++++++++++++++++++++++++-----
8 files changed, 145 insertions(+), 15 deletions(-)
--
2.25.1