android_kernel_oneplus_msm8998/arch/arc/mm
Jose Abreu 81306fc3db ARC: Re-enable MMU upon Machine Check exception
commit 1ee55a8f7f6b7ca4c0c59e0b4b4e3584a085c2d3 upstream.

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.

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Reviewed-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
[vgupta: moved code into low level handler to avoid in 2 places]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-09-27 11:00:16 +02:00
..
cache.c ARCv2: PAE40: Explicitly set MSB counterpart of SLC region ops addresses 2017-08-30 10:19:22 +02:00
dma.c ARC: Eliminate some ARCv2 specific code for ARCompact build 2015-08-21 15:06:43 +05:30
extable.c ARC: Fix coding style issues 2013-04-09 12:21:14 +05:30
fault.c ARC: mm: preps ahead of HIGHMEM support 2015-10-28 19:31:05 +05:30
highmem.c ARC: mm: HIGHMEM: Fix section mismatch splat 2015-12-21 12:10:40 +05:30
init.c ARC: [plat-sim] unbork non default CONFIG_LINUX_LINK_BASE 2015-12-17 11:06:43 +05:30
ioremap.c ARC: Use <linux/*> headers instead of <asm/*> 2013-04-09 12:21:14 +05:30
Makefile ARC: mm: HIGHMEM: kmap API implementation 2015-10-28 19:49:04 +05:30
mmap.c mm: larger stack guard gap, between vmas 2017-06-26 07:13:11 +02:00
tlb.c ARC: Re-enable MMU upon Machine Check exception 2017-09-27 11:00:16 +02:00
tlbex.S ARC: use ASL assembler mnemonic 2015-11-14 13:12:21 +05:30