Skip to content
  • Huang Ying's avatar
    x86: mce, inject: Use real inject-msg in raise_local · 14c0abf1
    Huang Ying authored
    
    
    Current raise_local() uses a struct mce that comes from mce_write()
    as a parameter instead of the real inject-msg, so when we set
    mce.finished = 0 to clear injected MCE, the real inject stays
    valid.
    
    This will cause the remaining inject-msg affect the next injection,
    which is not desired.
    
    To fix this, real inject-msg is used in raise_local instead of the
    one on the stack.
    
    This patch is based on the diagnosis and the fixes by Dean Nelson.
    
    Reported-by: default avatarDean Nelson <dnelson@redhat.com>
    Signed-off-by: default avatarHuang Ying <ying.huang@intel.com>
    Cc: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
    Cc: Andi Kleen <ak@linux.intel.com>
    LKML-Reference: <1253601357.15717.757.camel@yhuang-dev.sh.intel.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    14c0abf1