]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 6255/1: Workaround infinity loop in handling of translation faults
authorKirill A. Shutemov <kirill@shutemov.name>
Thu, 22 Jul 2010 12:20:22 +0000 (13:20 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 27 Jul 2010 09:48:41 +0000 (10:48 +0100)
commit2bf00932739c00dde4f87a92e71b803f2628e6c6
treeadcb4a60ff55f9b3f88eaeeca628f7398300121e
parent726ed10bf211ae9b83f5982aec0f8d8af53ebdf2
ARM: 6255/1: Workaround infinity loop in handling of translation faults

On ARM one Linux PGD entry contains two hardware entries (see page
tables layout in pgtable.h). We normally guarantee that we always
fill both L1 entries. But create_mapping() doesn't follow the rule.
It can create inidividual L1 entries, so here we have to call
pmd_none() check in do_translation_fault() for the entry really
corresponded to address, not for the first of pair.

Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/fault.c