kernel-ark/arch/mips
Ralf Baechle 2eaa7ec286 [MIPS] Handle I-cache coherency in flush_cache_range()
So far flush_cache_range() did't consider the I-cache largely because it
did rarely ever matter to real world code.  This was working primarily
because normally code and data are don't share the same pages - with the
exception of MIPS16 code which uses address constants embedded between
the code.   The following sequence of events may break the code:

 o MIPS16 executable being loaded
 o dynamic linker relocates the address constants embedded into the code:
 o   Uses mprotect(2) to make code pages PROT_READ|PROT_WRITE
 o   Performs the actual relocations by writing to the pages which likely
     are COW.  Because no PROT_EXEC is set I-cache coherence will not be
     considered.
 o   Uses mprotect(2) to switch code pages back to PROT_READ|PROT_EXEC.
     This results in a call to flush_cache_range() which also does not
     consider I-caches.
 o => executing the page just having been relocated may now result in the
   I-cache getting refilled with stale data from memory.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2008-02-19 17:01:31 +00:00
..
au1000 Remove inclusions of <linux/autoconf.h> 2008-02-06 10:41:00 -08:00
basler/excite [MIPS]: constify function pointer tables 2008-01-29 10:15:03 +00:00
bcm47xx
boot
cobalt [MIPS] add cpu_wait() to machine_halt() 2008-01-29 10:15:00 +00:00
configs [MIPS] Qemu: Remove platform. 2008-01-29 10:15:02 +00:00
dec [MIPS] time: remove unused mips_timer_state() 2008-01-29 10:15:00 +00:00
emma2rh
fw [MIPS] RM: Collected changes 2008-01-29 10:14:59 +00:00
gt64120/wrppmc
jazz
jmr3927
kernel [MIPS] Use find_task_by_vpid in system calls 2008-02-19 17:01:30 +00:00
lasat [MIPS] Lasat: Convert pvc_sem semaphore to mutex 2008-01-29 10:15:01 +00:00
lemote/lm2e
lib [MIPS] Eleminate local symbols from the symbol table. 2008-01-29 10:14:59 +00:00
math-emu
mips-boards [MIPS] Malta: remaining bits of the board support code cleanup 2008-01-29 10:15:05 +00:00
mipssim
mm [MIPS] Handle I-cache coherency in flush_cache_range() 2008-02-19 17:01:31 +00:00
oprofile [MIPS] Extend performance counter event field. 2008-01-29 10:14:59 +00:00
pci
philips/pnx8550 [MIPS] pnx8xxx: clocksource cleanups 2008-01-29 10:15:01 +00:00
pmc-sierra
sgi-ip22
sgi-ip27 Introduce flags for reserve_bootmem() 2008-02-07 08:42:25 -08:00
sgi-ip32
sibyte
sni [MIPS] RM: Collected changes 2008-01-29 10:14:59 +00:00
tx4927 Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus 2008-01-29 22:48:03 +11:00
tx4938 Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus 2008-01-29 22:48:03 +11:00
vr41xx [MIPS] move vr41xx_calculate_clock_frequency() to plat_time_init() 2008-01-29 10:15:00 +00:00
defconfig [MIPS] Qemu: Remove platform. 2008-01-29 10:15:02 +00:00
Kconfig ide: introduce HAVE_IDE 2008-02-09 10:46:40 +01:00
Kconfig.debug
Makefile [MIPS] Qemu: Remove platform. 2008-01-29 10:15:02 +00:00