]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - arch/powerpc/mm/fault.c
powerpc/32s: Fix bad_kuap_fault()
[linux.git] / arch / powerpc / mm / fault.c
index b5047f9b5dec4d97c03e84ebccf5c32a9bfac515..1baeb045f7f4b716ed0a5e590c60b16b7a375ce1 100644 (file)
@@ -233,7 +233,7 @@ static bool bad_kernel_fault(struct pt_regs *regs, unsigned long error_code,
 
        // Read/write fault in a valid region (the exception table search passed
        // above), but blocked by KUAP is bad, it can never succeed.
-       if (bad_kuap_fault(regs, is_write))
+       if (bad_kuap_fault(regs, address, is_write))
                return true;
 
        // What's left? Kernel fault on user in well defined regions (extable