summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2018-09-18 00:31:24 +0200
committerEric W. Biederman <ebiederm@xmission.com>2018-09-21 14:52:12 +0200
commit988bbc7b1a349a0139d5837d29a91714f8f512f4 (patch)
treef93be9c06f63e0bf7947498fcd63e5c28618b4b0
parentsignal/x86: Remove pkey parameter from mm_fault_error (diff)
downloadlinux-988bbc7b1a349a0139d5837d29a91714f8f512f4.tar.xz
linux-988bbc7b1a349a0139d5837d29a91714f8f512f4.zip
signal/x86: Don't compute pkey in __do_page_fault
There are no more users of the computed pkey value in __do_page_fault so stop computing the value. Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
-rw-r--r--arch/x86/mm/fault.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c
index bc27595dd8c7..b3d8aee7564c 100644
--- a/arch/x86/mm/fault.c
+++ b/arch/x86/mm/fault.c
@@ -1216,7 +1216,6 @@ __do_page_fault(struct pt_regs *regs, unsigned long error_code,
struct mm_struct *mm;
vm_fault_t fault, major = 0;
unsigned int flags = FAULT_FLAG_ALLOW_RETRY | FAULT_FLAG_KILLABLE;
- u32 pkey;
tsk = current;
mm = tsk->mm;
@@ -1388,10 +1387,7 @@ good_area:
* (potentially after handling any pending signal during the return to
* userland). The return to userland is identified whenever
* FAULT_FLAG_USER|FAULT_FLAG_KILLABLE are both set in flags.
- * Thus we have to be careful about not touching vma after handling the
- * fault, so we read the pkey beforehand.
*/
- pkey = vma_pkey(vma);
fault = handle_mm_fault(vma, address, flags);
major |= fault & VM_FAULT_MAJOR;