lkml.org 
[lkml]   [2009]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] [4/4] x86: MCE: Fix EIPV behaviour with !PCC
    Date

    From: Huang Ying <ying.huang@intel.com>

    Impact: Spec compliance

    When tolerant == 0, system should go panic instead of send SIGBUS even
    for a MCE with EPIV && !PCC on user space.

    Signed-off-by: Huang Ying <ying.huang@intel.com>
    Signed-off-by: Andi Kleen <ak@linux.intel.com>

    ---
    arch/x86/kernel/cpu/mcheck/mce_64.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    Index: linux/arch/x86/kernel/cpu/mcheck/mce_64.c
    ===================================================================
    --- linux.orig/arch/x86/kernel/cpu/mcheck/mce_64.c 2009-04-07 16:09:59.000000000 +0200
    +++ linux/arch/x86/kernel/cpu/mcheck/mce_64.c 2009-04-07 16:43:14.000000000 +0200
    @@ -401,7 +401,7 @@
    * force_sig() takes an awful lot of locks and has a slight
    * risk of deadlocking.
    */
    - if (user_space) {
    + if (user_space && tolerant > 0) {
    force_sig(SIGBUS, current);
    } else if (panic_on_oops || tolerant < 2) {
    mce_panic("Uncorrected machine check",

    \
     
     \ /
      Last update: 2009-04-07 17:11    [W:0.027 / U:0.684 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site