diff options
author | Stuart Menefy <stuart.menefy@st.com> | 2011-01-31 18:50:29 +0100 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-02-15 08:24:31 +0100 |
commit | a25bbe12224e649fe12cba7a2fa920180a35c8a9 (patch) | |
tree | 2c4b07a6e106551b70f3c48e5ce32824e3168a1e /arch/sh/include | |
parent | sh: Ensure ST40-300 BogoMIPS value is consistent (diff) | |
download | linux-a25bbe12224e649fe12cba7a2fa920180a35c8a9.tar.xz linux-a25bbe12224e649fe12cba7a2fa920180a35c8a9.zip |
sh: Flush executable pages in copy_user_highpage
This resolves a problem seen when using the Android dynamic linker.
Sometimes the dynamic linker would seg-fault at start up and this
was eventually traced to the handling of a COW fault for a page which
was being modified by the linker. If there was no cache aliasing between
the kernel and the user page, the page was not flushed, leaving the
newly copied data in the D-cache. However when executing instructions
from that page, the I-cache is filled directly from external memory,
rather than the D-cache, and causing garbage to be executed.
Signed-off-by: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include')
0 files changed, 0 insertions, 0 deletions