Skip to content

Commit adc5d87

Browse files
thejhChristian Brauner
authored andcommitted
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>
1 parent 7c53f6b commit adc5d87

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

kernel/signal.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3701,7 +3701,8 @@ static bool access_pidfd_pidns(struct pid *pid)
37013701
return true;
37023702
}
37033703

3704-
static int copy_siginfo_from_user_any(kernel_siginfo_t *kinfo, siginfo_t *info)
3704+
static int copy_siginfo_from_user_any(kernel_siginfo_t *kinfo,
3705+
siginfo_t __user *info)
37053706
{
37063707
#ifdef CONFIG_COMPAT
37073708
/*

0 commit comments

Comments
 (0)