[PATCH] keys: fix missing __user in KEYCTL_PKEY_QUERY

James Morris jmorris at namei.org
Tue Mar 5 03:28:07 UTC 2019

On Fri, 1 Mar 2019, Ben Dooks wrote:

> The arg5 of KEYCTL_PKEY_QUERY should have a __user pointer tag on
> it as it is a user pointer. This clears the following sparse warning
> for this:
> security/keys/keyctl.c:1755:43: warning: incorrect type in argument 3 (different address spaces)
> security/keys/keyctl.c:1755:43:    expected struct keyctl_pkey_query [noderef] <asn:1>*<noident>
> security/keys/keyctl.c:1755:43:    got struct keyctl_pkey_query *<noident>
> Signed-off-by: Ben Dooks <ben.dooks at codethink.co.uk>

Applied to
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git next-general

James Morris
<jmorris at namei.org>

More information about the Linux-security-module-archive mailing list