• Jose Abreu's avatar
    ARC: Re-enable MMU upon Machine Check exception · 1ee55a8f
    Jose Abreu authored
    I recently came upon a scenario where I would get a double fault
    machine check exception tiriggered by a kernel module.
    However the ensuing crash stacktrace (ksym lookup) was not working
    correctly.
    
    Turns out that machine check auto-disables MMU while modules are allocated
    in kernel vaddr spapce.
    
    This patch re-enables the MMU before start printing the stacktrace
    making stacktracing of modules work upon a fatal exception.
    
    Cc: stable@kernel.org
    Signed-off-by: default avatarJose Abreu <joabreu@synopsys.com>
    Reviewed-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
    Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
    [vgupta: moved code into low level handler to avoid in 2 places]
    1ee55a8f
tlb.c 28.4 KB