projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7c53f6b
)
signal: Add missing __user annotation to copy_siginfo_from_user_any
author
Jann Horn
<jannh@google.com>
Mon, 7 Dec 2020 00:02:52 +0000
(
01:02
+0100)
committer
Christian Brauner
<christian.brauner@ubuntu.com>
Mon, 11 Jan 2021 11:55:00 +0000
(12:55 +0100)
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>
kernel/signal.c
patch
|
blob
|
history
diff --git
a/kernel/signal.c
b/kernel/signal.c
index
5736c55
..
546b860
100644
(file)
--- a/
kernel/signal.c
+++ b/
kernel/signal.c
@@
-3701,7
+3701,8
@@
static bool access_pidfd_pidns(struct pid *pid)
return true;
}
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
/*
{
#ifdef CONFIG_COMPAT
/*