]> asedeno.scripts.mit.edu Git - linux.git/commit
csky: Fixup wrong update_mmu_cache implementation
authorGuo Ren <ren_guo@c-sky.com>
Wed, 10 Apr 2019 02:55:07 +0000 (10:55 +0800)
committerGuo Ren <ren_guo@c-sky.com>
Mon, 22 Apr 2019 05:44:57 +0000 (13:44 +0800)
commit981bbf274b64496fd4376b44120d47dae4ca94e8
tree8a1832e851f7197e03d997b6dae632f04b06788b
parentf62e31623d718a7c20d9da98de48361624d7360a
csky: Fixup wrong update_mmu_cache implementation

In our stress test, we found some crash problem caused by:

if (!(vma->vm_flags & VM_EXEC))
return;

in update_mmu_cache().

Seems current update_mmu_cache implementation is wrong and we retread
to the conservative implementation.

Also the usage of kmap_atomic in update_mmu_cache is risky, page-virtual
may be scheduled out and changed, so we must use preempt_disable &
pagefault_disable which is called by kmap_atomic().

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Cc: Arnd Bergmann <arnd@arndb.de>
arch/csky/abiv2/cacheflush.c