diff options
author | Will Deacon <[email protected]> | 2012-07-23 14:18:13 +0100 |
---|---|---|
committer | Russell King <[email protected]> | 2012-07-31 12:04:47 +0100 |
commit | b74253f78400f9a4b42da84bb1de7540b88ce7c4 (patch) | |
tree | 27a91700b0dafa9119ed774ad29f481152491ead /lib/mpi/mpi-inv.c | |
parent | 15ac49b65024f55c4371a53214879a9c77c4fbf9 (diff) |
ARM: 7479/1: mm: avoid NULL dereference when flushing gate_vma with VIVT caches
The vivt_flush_cache_{range,page} functions check that the mm_struct
of the VMA being flushed has been active on the current CPU before
performing the cache maintenance.
The gate_vma has a NULL mm_struct pointer and, as such, will cause a
kernel fault if we try to flush it with the above operations. This
happens during ELF core dumps, which include the gate_vma as it may be
useful for debugging purposes.
This patch adds checks to the VIVT cache flushing functions so that VMAs
with a NULL mm_struct are flushed unconditionally (the vectors page may
be dirty if we use it to store the current TLS pointer).
Cc: <[email protected]> # 3.4+
Reported-by: Gilles Chanteperdrix <[email protected]>
Tested-by: Uros Bizjak <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Signed-off-by: Russell King <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inv.c')
0 files changed, 0 insertions, 0 deletions