2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-11 07:04:04 +08:00

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>
This commit is contained in:
Jann Horn 2020-12-07 01:02:52 +01:00 committed by Christian Brauner
parent 7c53f6b671
commit adc5d87572
No known key found for this signature in database
GPG Key ID: 91C61BC06578DCA2

View File

@ -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
/*