aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2012-07-23 14:18:13 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-08-15 12:04:10 -0700
commitb9d316de7dc18de5df147597e3c38365ee1bfd6c (patch)
tree372e530d4be36385da4836210fa6d33c7b859926 /mm
parent0b41a531bee76feefaa22878b035d8c71edcb87e (diff)
downloadkernel_samsung_smdk4412-b9d316de7dc18de5df147597e3c38365ee1bfd6c.zip
kernel_samsung_smdk4412-b9d316de7dc18de5df147597e3c38365ee1bfd6c.tar.gz
kernel_samsung_smdk4412-b9d316de7dc18de5df147597e3c38365ee1bfd6c.tar.bz2
ARM: 7479/1: mm: avoid NULL dereference when flushing gate_vma with VIVT caches
commit b74253f78400f9a4b42da84bb1de7540b88ce7c4 upstream. 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). Reported-by: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> Tested-by: Uros Bizjak <ubizjak@gmail.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions