diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/mm/mem.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index e8122447f019..c7d7bd43a251 100644 --- a/arch/powerpc/mm/mem.c +++ b/arch/powerpc/mm/mem.c | |||
@@ -483,7 +483,12 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long address, | |||
483 | */ | 483 | */ |
484 | _tlbie(address, 0 /* 8xx doesn't care about PID */); | 484 | _tlbie(address, 0 /* 8xx doesn't care about PID */); |
485 | #endif | 485 | #endif |
486 | if (!PageReserved(page) | 486 | /* The _PAGE_USER test should really be _PAGE_EXEC, but |
487 | * older glibc versions execute some code from no-exec | ||
488 | * pages, which for now we are supporting. If exec-only | ||
489 | * pages are ever implemented, this will have to change. | ||
490 | */ | ||
491 | if (!PageReserved(page) && (pte_val(pte) & _PAGE_USER) | ||
487 | && !test_bit(PG_arch_1, &page->flags)) { | 492 | && !test_bit(PG_arch_1, &page->flags)) { |
488 | if (vma->vm_mm == current->active_mm) { | 493 | if (vma->vm_mm == current->active_mm) { |
489 | __flush_dcache_icache((void *) address); | 494 | __flush_dcache_icache((void *) address); |