summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorJann Horn <jannh@google.com>2020-12-07 01:02:52 +0100
committerChristian Brauner <christian.brauner@ubuntu.com>2021-01-11 12:55:00 +0100
commitadc5d8757288a3a5628436d16e78fb696d802e39 (patch)
tree30646d064e11d65ce10c5c222a02d51d125bfeaa /kernel
parentLinux 5.11-rc3 (diff)
downloadlinux-adc5d8757288a3a5628436d16e78fb696d802e39.tar.xz
linux-adc5d8757288a3a5628436d16e78fb696d802e39.zip
signal: Add missing __user annotation to copy_siginfo_from_user_any
copy_siginfo_from_user_any() takes a userspace pointer as second argument; annotate the parameter type accordingly. Signed-off-by: Jann Horn <jannh@google.com> Link: https://lore.kernel.org/r/20201207000252.138564-1-jannh@google.com Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/signal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/signal.c b/kernel/signal.c
index 5736c55aaa1a..546b860c6514 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -3701,7 +3701,8 @@ static bool access_pidfd_pidns(struct pid *pid)
return true;
}
-static int copy_siginfo_from_user_any(kernel_siginfo_t *kinfo, siginfo_t *info)
+static int copy_siginfo_from_user_any(kernel_siginfo_t *kinfo,
+ siginfo_t __user *info)
{
#ifdef CONFIG_COMPAT
/*