]> Git Repo - linux.git/commitdiff
signal/powerpc: Remove pkey parameter from __bad_area_nosemaphore
authorEric W. Biederman <[email protected]>
Tue, 18 Sep 2018 08:42:33 +0000 (10:42 +0200)
committerEric W. Biederman <[email protected]>
Fri, 21 Sep 2018 13:49:28 +0000 (15:49 +0200)
Now that bad_key_fault_exception no longer calls __bad_area_nosemaphore
there is no reason for __bad_area_nosemaphore to handle pkeys.

Reviewed-by: Stephen Rothwell <[email protected]>
Signed-off-by: "Eric W. Biederman" <[email protected]>
arch/powerpc/mm/fault.c

index 5afc1ee55043aecec04a5efdb6ecff70a4abf235..a84d06b7d50dec57449a73992920846f95bef98d 100644 (file)
@@ -103,8 +103,7 @@ static bool store_updates_sp(unsigned int inst)
  */
 
 static int
-__bad_area_nosemaphore(struct pt_regs *regs, unsigned long address, int si_code,
-               int pkey)
+__bad_area_nosemaphore(struct pt_regs *regs, unsigned long address, int si_code)
 {
        /*
         * If we are in kernel mode, bail out with a SEGV, this will
@@ -114,14 +113,14 @@ __bad_area_nosemaphore(struct pt_regs *regs, unsigned long address, int si_code,
        if (!user_mode(regs))
                return SIGSEGV;
 
-       _exception_pkey(SIGSEGV, regs, si_code, address, pkey);
+       _exception(SIGSEGV, regs, si_code, address);
 
        return 0;
 }
 
 static noinline int bad_area_nosemaphore(struct pt_regs *regs, unsigned long address)
 {
-       return __bad_area_nosemaphore(regs, address, SEGV_MAPERR, 0);
+       return __bad_area_nosemaphore(regs, address, SEGV_MAPERR);
 }
 
 static int __bad_area(struct pt_regs *regs, unsigned long address, int si_code)
@@ -134,7 +133,7 @@ static int __bad_area(struct pt_regs *regs, unsigned long address, int si_code)
         */
        up_read(&mm->mmap_sem);
 
-       return __bad_area_nosemaphore(regs, address, si_code, 0);
+       return __bad_area_nosemaphore(regs, address, si_code);
 }
 
 static noinline int bad_area(struct pt_regs *regs, unsigned long address)
This page took 0.05565 seconds and 4 git commands to generate.