From: Catalin Marinas catalin.marinas@arm.com
mainline inclusion from mainline-v5.19-rc1 commit 1bec877bdb763999112ad05d243bd538966938b4 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I8E73O CVE: NA
Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=...
The struct user_ctx *user pointer passed to restore_za_context() is not a user point but a structure containing several __user pointers. Remove the __user annotation.
Signed-off-by: Catalin Marinas catalin.marinas@arm.com Fixes: 39782210eb7e ("arm64/sme: Implement ZA signal handling") Reported-by: kernel test robot lkp@intel.com Cc: Mark Brown broonie@kernel.org Reviewed-by: Mark Brown broonie@kernel.org Link: https://lore.kernel.org/r/20220601171338.2143625-1-catalin.marinas@arm.com Signed-off-by: Catalin Marinas catalin.marinas@arm.com Signed-off-by: Wang ShaoBo bobo.shaobowang@huawei.com --- arch/arm64/kernel/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/kernel/signal.c b/arch/arm64/kernel/signal.c index 1d86a2fb8f9a7..7437291ff9d28 100644 --- a/arch/arm64/kernel/signal.c +++ b/arch/arm64/kernel/signal.c @@ -331,7 +331,7 @@ int preserve_za_context(struct za_context __user *ctx) return err ? -EFAULT : 0; }
-int restore_za_context(struct user_ctxs __user *user) +int restore_za_context(struct user_ctxs *user) { int err; unsigned int vq;