Thread (14 messages) flat view 14 messages, 3 authors, 2012-07-22
STALE5173d

[PATCH] ARM: mm: avoid attempting to flush the gate_vma with VIVT caches

From: Gilles Chanteperdrix <hidden>
Date: 2012-07-21 14:40:56

On 07/21/2012 04:35 PM, Will Deacon wrote:
Hi Gilles,

On Sat, Jul 21, 2012 at 02:18:35PM +0100, Gilles Chanteperdrix wrote:
quoted
On 07/20/2012 10:41 PM, Gilles Chanteperdrix wrote:
quoted
Being 0 or 1 whether we want to flush the vector page (I believe we do
not want to flush it, but am not sure).
Actually, I believe we want to flush the vector page, at least on
systems with VIVT cache: on systems with VIVT cache, the vector page is
writeable in kernel mode, so may have been modified, and the address
used by elf_core_dump is not the vectors address, but the address in the
kernel direct-mapped RAM region where the vector page was allocated, so
there is a cache aliasing issue.
It may be writable, but we never actually write to it after it has been
initialised so there's no need to worry about caching issues (the cache is
flushed in devicemaps_init).
Except if CONFIG_TLS_REG_EMUL is enabled, or if some faulty code wrote
by accident to the vector page, which caused the application to crash.
What is the reason to include the vector page in the core dump if not to
help debugging?

-- 
                                                                Gilles.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help