]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/x86/mm/fault.c
Merge branch 'linus' into stackprotector
[karo-tx-linux.git] / arch / x86 / mm / fault.c
index 1f524df68b96185c81aeaf52022b1fe1e68d6710..0c5dcee23bb15cd93f8001e25b0e16eac22cfe63 100644 (file)
@@ -498,6 +498,11 @@ static int vmalloc_fault(unsigned long address)
        unsigned long pgd_paddr;
        pmd_t *pmd_k;
        pte_t *pte_k;
+
+       /* Make sure we are in vmalloc area */
+       if (!(address >= VMALLOC_START && address < VMALLOC_END))
+               return -1;
+
        /*
         * Synchronize this task's top level page-table
         * with the 'reference' page table.