• T
    arm64: add support for machine check error safe · 8a9bc410
    Tong Tiangen 提交于
    hulk inclusion
    category: feature
    bugzilla: https://gitee.com/openeuler/kernel/issues/I5GB28
    CVE: NA
    
    -------------------------------
    
    During the processing of arm64 kernel hardware memory errors(do_sea()), if
    the errors is consumed in the kernel, the current processing is panic.
    However, it is not optimal.
    
    Take uaccess for example, if the uaccess operation fails due to memory
    error, only the user process will be affected, kill the user process
    and isolate the user page with hardware memory errors is a better choice.
    
    This patch only enable machine error check framework, it add exception
    fixup before kernel panic in do_sea() and only limit the consumption of
    hardware memory errors in kernel mode triggered by user mode processes.
    If fixup successful, panic can be avoided.
    Signed-off-by: NTong Tiangen <tongtiangen@huawei.com>
    8a9bc410
fault.c 25.5 KB