[PATCH] arm64: Remove the __user annotation for the restore_za_context() argument

Catalin Marinas catalin.marinas at arm.com
Wed Jun 1 10:13:38 PDT 2022


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 at arm.com>
Fixes: 39782210eb7e ("arm64/sme: Implement ZA signal handling")
Reported-by: kernel test robot <lkp at intel.com>
Cc: Mark Brown <broonie at kernel.org>
---
 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 18bf590dc1c7..03810a759f91 100644
--- a/arch/arm64/kernel/signal.c
+++ b/arch/arm64/kernel/signal.c
@@ -385,7 +385,7 @@ static int preserve_za_context(struct za_context __user *ctx)
 	return err ? -EFAULT : 0;
 }
 
-static int restore_za_context(struct user_ctxs __user *user)
+static int restore_za_context(struct user_ctxs *user)
 {
 	int err;
 	unsigned int vq;

base-commit: 0616ea3f1b93a99264d84f3d002ae117f6526b62
prerequisite-patch-id: a6fae0ce60ab032bd12f684b7c9dc885a5044e5d



More information about the linux-arm-kernel mailing list