summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/signal.c
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@csgroup.eu>2020-08-18 19:19:20 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2020-12-03 15:01:12 +0100
commit454b1abb588b3942655638a8bcf1ea4501260579 (patch)
tree0cbc63ab7f68f57e327be1d5cae47869c2b307b1 /arch/powerpc/kernel/signal.c
parentpowerpc/signal: Remove BUG_ON() in handler_signal functions (diff)
downloadlinux-454b1abb588b3942655638a8bcf1ea4501260579.tar.xz
linux-454b1abb588b3942655638a8bcf1ea4501260579.zip
powerpc/signal: Move access_ok() out of get_sigframe()
This access_ok() will soon be performed by user_access_begin(). So move it out of get_sigframe(). Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/900b93744732ed0887f28f5b6a40730fb04a43fa.1597770847.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/kernel/signal.c')
-rw-r--r--arch/powerpc/kernel/signal.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/signal.c b/arch/powerpc/kernel/signal.c
index 7cc305aaf44e..37372fd5b600 100644
--- a/arch/powerpc/kernel/signal.c
+++ b/arch/powerpc/kernel/signal.c
@@ -154,10 +154,6 @@ void __user *get_sigframe(struct ksignal *ksig, unsigned long sp,
oldsp = sigsp(oldsp, ksig);
newsp = (oldsp - frame_size) & ~0xFUL;
- /* Check access */
- if (!access_ok((void __user *)newsp, oldsp - newsp))
- return NULL;
-
return (void __user *)newsp;
}