[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140917113646.GA14001@chicago.guarana.org>
Date: Wed, 17 Sep 2014 21:36:46 +1000
From: Kevin Easton <kevin@...rana.org>
To: Richard Larocque <rlarocque@...gle.com>
Cc: mingo@...hat.com, tglx@...utronix.de, hpa@...or.com,
luto@...capital.net, filbranden@...gle.com, md@...gle.com,
gthelen@...gle.com, x86@...nel.org, linux-api@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] x86/vdso: Add prctl to set per-process VDSO load
On Tue, Sep 16, 2014 at 05:05:51PM -0700, Richard Larocque wrote:
> + case PR_SET_VDSO:
> + if (arg2 == PR_VDSO_ENABLE)
> + me->signal->disable_vdso = 0;
> + else if (arg2 == PR_VDSO_DISABLE)
> + me->signal->disable_vdso = 1;
> + else
> + return -EINVAL;
> + break;
> + case PR_GET_VDSO:
> + if (!me->signal->disable_vdso)
> + error = put_user(PR_VDSO_ENABLE, (int __user *)arg2);
> + else
> + error = put_user(PR_VDSO_DISABLE, (int __user *)arg2);
> + break;
Perhaps both of those should do
if (arg3 || arg4 || arg5)
return -EINVAL;
- Kevin
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists