linux_dsm_epyc7002/arch/mips/mm
Lars Persson 4b34cdde90 MIPS: Remove race window in page fault handling
Multicore MIPSes without I/D hardware coherency suffered from a race
condition in the page fault handler. The page table entry was
published before any pending lazy D-cache flush was committed, hence
it allowed execution of stale page cache data by other VPEs in the
system.

To make the cache handling safe we need to perform flushing already in
the set_pte_at function. MIPSes without coherent I-caches can get a
small increase in flushes due to the unavailability of the execute
flag in set_pte_at.

[ralf@linux-mips.org: outlining set_pte_at() saves a good k in a test
build, so I moved its definition from pgtable.h to cache.c.]

Signed-off-by: Lars Persson <larper@axis.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7511/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2014-08-26 02:18:54 +02: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-26 02:18:54 +02:00
cerr-sb1.c
cex-gen.S
cex-oct.S
cex-sb1.S
dma-default.c
extable.c
fault.c
gup.c
highmem.c
hugetlbpage.c
init.c MIPS: Initialise MAARs 2014-08-02 00:06:46 +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: mm: Use the Hardware Page Table Walker if the core supports it 2014-08-02 00:06:39 +02:00
tlb-r8k.c
tlbex-fault.S
tlbex.c Merge branch '3.16-fixes' into mips-for-linux-next 2014-08-02 00:07:03 +02: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