aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/fault.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2019-02-07 10:25:08 -0500
committerEric W. Biederman <ebiederm@xmission.com>2019-05-29 10:31:43 -0400
commit351b6825b3a9f70bab080fba67aec104ff9a41d6 (patch)
tree8d46d573a342393df13a874fabd20af264cae458 /arch/x86/mm/fault.c
parentec74e9205e064af6a7076faabe649335acc78b69 (diff)
signal: Explicitly call force_sig_fault on current
Update the calls of force_sig_fault that pass in a variable that is set to current earlier to explicitly use current. This is to make the next change that removes the task parameter from force_sig_fault easier to verify. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'arch/x86/mm/fault.c')
-rw-r--r--arch/x86/mm/fault.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c
index c431326ee3fa..16a5d1b615a7 100644
--- a/arch/x86/mm/fault.c
+++ b/arch/x86/mm/fault.c
@@ -757,7 +757,7 @@ no_context(struct pt_regs *regs, unsigned long error_code,
757 757
758 /* XXX: hwpoison faults will set the wrong code. */ 758 /* XXX: hwpoison faults will set the wrong code. */
759 force_sig_fault(signal, si_code, (void __user *)address, 759 force_sig_fault(signal, si_code, (void __user *)address,
760 tsk); 760 current);
761 } 761 }
762 762
763 /* 763 /*
@@ -918,7 +918,7 @@ __bad_area_nosemaphore(struct pt_regs *regs, unsigned long error_code,
918 if (si_code == SEGV_PKUERR) 918 if (si_code == SEGV_PKUERR)
919 force_sig_pkuerr((void __user *)address, pkey); 919 force_sig_pkuerr((void __user *)address, pkey);
920 920
921 force_sig_fault(SIGSEGV, si_code, (void __user *)address, tsk); 921 force_sig_fault(SIGSEGV, si_code, (void __user *)address, current);
922 922
923 return; 923 return;
924 } 924 }
@@ -1044,7 +1044,7 @@ do_sigbus(struct pt_regs *regs, unsigned long error_code, unsigned long address,
1044 return; 1044 return;
1045 } 1045 }
1046#endif 1046#endif
1047 force_sig_fault(SIGBUS, BUS_ADRERR, (void __user *)address, tsk); 1047 force_sig_fault(SIGBUS, BUS_ADRERR, (void __user *)address, current);
1048} 1048}
1049 1049
1050static noinline void 1050static noinline void