From: Al Viro Date: Sat, 27 May 2017 20:38:39 +0000 (-0400) Subject: osf_sigstack(): switch to put_user() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8d2fd30ecfc81f2b5f2bd60815bd3951cb23601c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git osf_sigstack(): switch to put_user() Signed-off-by: Al Viro --- diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c index f073ebf9f046..df0d0a5e9353 100644 --- a/arch/alpha/kernel/osf_sys.c +++ b/arch/alpha/kernel/osf_sys.c @@ -713,9 +713,8 @@ SYSCALL_DEFINE2(osf_sigstack, struct sigstack __user *, uss, if (uoss) { error = -EFAULT; - if (! access_ok(VERIFY_WRITE, uoss, sizeof(*uoss)) - || __put_user(oss_sp, &uoss->ss_sp) - || __put_user(oss_os, &uoss->ss_onstack)) + if (put_user(oss_sp, &uoss->ss_sp) || + put_user(oss_os, &uoss->ss_onstack)) goto out; }