Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

csky: Fixup update_mmu_cache called with user io mapping

The function update_mmu_cache could be called by user-io mapping.
There is no space of struct page in mem_map for the pte. Just
ignore the user-io mmaping in update_mmu_cache.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>

Guo Ren 3e455cf5 78bfa70b

+3
+3
arch/csky/abiv2/cacheflush.c
··· 12 12 unsigned long addr; 13 13 struct page *page; 14 14 15 + if (!pfn_valid(pte_pfn(*pte))) 16 + return; 17 + 15 18 page = pfn_to_page(pte_pfn(*pte)); 16 19 if (page == ZERO_PAGE(0)) 17 20 return;