linux_dsm_epyc7002/arch/sh/mm
Paul Mundt acca4f4d9b sh: Handle fixmap TLB eviction more coherently.
There was a race in the kmap_coherent() implementation. While we
guarded against preemption, there was nothing preventing eviction of
the pre-faulted fixmap entry from the UTLB. Under certain workloads
this would result in the fixmap entries used for cache colouring being
evicted from the UTLB in the midst of a copy_page().

In addition to pre-faulting, we also make sure to preserve the PTEs
in the kernel page table and introduce a cached PTE for kmap_coherent()
usage. This follows a similar change on MIPS ("[MIPS] Fix aliasing bug
in copy_to_user_page / copy_from_user_page").

Reported-by: Hideo Saito <saito@densan.co.jp>
Reported-by: CHIKAMA Masaki <masaki.chikama@gmail.com>
Tested-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-11-10 20:00:45 +09:00
..
cache-debugfs.c Fix debugfs_create_file's error checking method for arch/sh/mm/ 2008-10-20 10:40:21 +09:00
cache-sh2.c SH2(A) cache update 2008-08-04 16:33:47 +09:00
cache-sh2a.c sh: fix sh2a cache entry_mask 2008-10-31 16:29:20 +09:00
cache-sh3.c sh: Fixup cpu_data references for the non-boot CPUs. 2007-02-13 10:54:45 +09:00
cache-sh4.c sh: uninline flush_icache_all(). 2008-09-08 10:35:06 +09:00
cache-sh5.c sh64: Fixup the nommu build. 2008-05-08 19:51:37 +09:00
cache-sh7705.c sh: Preparation for uncached jumps through PMB. 2008-01-28 13:18:59 +09:00
consistent.c sh: remove consistent alloc cruft 2008-10-20 11:38:44 +09:00
extable_32.c sh: Split out extable.c _32 and _64 variants. 2008-01-28 13:18:44 +09:00
extable_64.c sh: comment tidying for sh64->sh migration. 2008-01-28 13:18:58 +09:00
fault_32.c sh: Trivial trace_mark() instrumentation for core events. 2008-09-21 13:56:39 +09:00
fault_64.c sh: migrate to arch/sh/include/ 2008-07-29 08:09:44 +09:00
hugetlbpage.c hugetlb: introduce pud_huge 2008-07-24 10:47:18 -07:00
init.c sh: Handle fixmap TLB eviction more coherently. 2008-11-10 20:00:45 +09:00
ioremap_32.c sh: replace remaining __FUNCTION__ occurrences 2008-03-06 11:18:22 +09:00
ioremap_64.c sh64: export onchip_remap/unmap() too. 2008-05-08 19:51:41 +09:00
Kconfig sh: Make memory hot-add and hot-remove depend on MMU. 2008-09-17 23:13:27 +09:00
Makefile sh: Split out extable.c _32 and _64 variants. 2008-01-28 13:18:44 +09:00
Makefile_32 SH2(A) cache update 2008-08-04 16:33:47 +09:00
Makefile_64 sh64: Fixup the nommu build. 2008-05-08 19:51:37 +09:00
numa.c mm: move bootmem descriptors definition to a single place 2008-07-24 10:47:14 -07:00
pg-nommu.c sh: fixup many sparse errors. 2008-09-08 10:35:04 +09:00
pg-sh4.c sh: Handle fixmap TLB eviction more coherently. 2008-11-10 20:00:45 +09:00
pg-sh7705.c fix sh ptep_get_and_clear breakage 2008-07-28 18:10:35 +09:00
pmb.c Fix debugfs_create_file's error checking method for arch/sh/mm/ 2008-10-20 10:40:21 +09:00
tlb-nommu.c sh: fixup many sparse errors. 2008-09-08 10:35:04 +09:00
tlb-sh3.c sh: Revert lazy dcache writeback changes. 2007-03-05 19:46:47 +09:00
tlb-sh4.c sh: Preparation for uncached jumps through PMB. 2008-01-28 13:18:59 +09:00
tlb-sh5.c sh: Fix up broken kerneldoc comments. 2008-08-04 12:51:06 +09:00
tlbflush_32.c sh: Rename the _32 and _64 TLB flush variants. 2008-01-28 13:18:54 +09:00
tlbflush_64.c sh: replace remaining __FUNCTION__ occurrences 2008-03-06 11:18:22 +09:00