Skip to content
Commit 6751ed65 authored by Tony Luck's avatar Tony Luck
Browse files

x86/mce: Fix siginfo_t->si_addr value for non-recoverable memory faults

In commit dad1743e

 ("x86/mce: Only restart instruction after machine
check recovery if it is safe") we fixed mce_notify_process() to force a
signal to the current process if it was not restartable (RIPV bit not
set in MCG_STATUS). But doing it here means that the process doesn't
get told the virtual address of the fault via siginfo_t->si_addr. This
would prevent application level recovery from the fault.

Make a new MF_MUST_KILL flag bit for memory_failure() et al. to use so
that we will provide the right information with the signal.

Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
Acked-by: default avatarBorislav Petkov <borislav.petkov@amd.com>
Cc: stable@kernel.org    # 3.4+
parent 6887a413
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment