android_kernel_samsung_univ.../arch/mips/mm
Leonid Yegoshin 070e76cb3f MIPS: tlbex: Fix potential HTW race on TLBL/M/S handlers
There is a potential race when probing the TLB in TLBL/M/S exception
handlers for a matching entry. Between the time we hit a TLBL/S/M
exception and the time we get to execute the TLBP instruction, the
HTW may have replaced the TLB entry we are interested in hence the TLB
probe may fail. However, in the existing handlers, we never checked the
status of the TLBP (ie check the result in the C0/Index register). We
fix this by adding such a check when the core implements the HTW. If
we couldn't find a matching entry, we return back and try again.

Signed-off-by: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Cc: <stable@vger.kernel.org> # v3.17+
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8599/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2014-11-27 17:21:56 +01:00
..
c-octeon.c
c-r3k.c
c-r4k.c MIPS: c-r4k: Avoid duplicate CPU_74K/CPU_1074K checks 2014-07-30 15:50:52 +02:00
c-tx39.c
cache.c MIPS: Remove race window in page fault handling 2014-08-19 13:31:09 +02:00
cerr-sb1.c
cex-gen.S
cex-oct.S
cex-sb1.S
dma-default.c MIPS: DMA: Add cma support 2014-09-22 13:35:52 +02:00
extable.c
fault.c
gup.c
highmem.c
hugetlbpage.c
init.c mm: export symbol dependencies of is_zero_pfn() 2014-09-14 16:25:14 +02:00
ioremap.c
Makefile
mmap.c
page-funcs.S
page.c
pgtable-32.c
pgtable-64.c
sc-ip22.c
sc-mips.c
sc-r5k.c
sc-rm7k.c
tlb-funcs.S
tlb-r3k.c MIPS: Remove incorrect NULL check in local_flush_tlb_page() 2014-07-30 20:59:43 +02:00
tlb-r4k.c MIPS: tlb-r4k: Add missing HTW stop/start sequences 2014-11-19 18:22:08 +01:00
tlb-r8k.c
tlbex-fault.S
tlbex.c MIPS: tlbex: Fix potential HTW race on TLBL/M/S handlers 2014-11-27 17:21:56 +01:00
uasm-micromips.c MIPS: uasm: Add SLT uasm instruction 2014-06-26 10:48:19 +01:00
uasm-mips.c MIPS: mm: uasm: Fix lh micro-assembler instruction 2014-06-26 10:48:19 +01:00
uasm.c MIPS: uasm: Add SLT uasm instruction 2014-06-26 10:48:19 +01:00