diff mbox series

arm64: Remove the __user annotation for the restore_za_context() argument

Message ID 20220601171338.2143625-1-catalin.marinas@arm.com (mailing list archive)
State New, archived
Headers show
Series arm64: Remove the __user annotation for the restore_za_context() argument | expand

Commit Message

Catalin Marinas June 1, 2022, 5:13 p.m. UTC
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>
---
 arch/arm64/kernel/signal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


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

Comments

Mark Brown June 2, 2022, 8:35 a.m. UTC | #1
On Wed, Jun 01, 2022 at 06:13:38PM +0100, Catalin Marinas wrote:
> 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.

Reviewed-by: Mark Brown <broonie@kernel.org>
Catalin Marinas June 2, 2022, 10:56 a.m. UTC | #2
On Wed, 1 Jun 2022 18:13:38 +0100, Catalin Marinas wrote:
> 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.
> 
> 

Applied to arm64 (for-next/core), thanks!

[1/1] arm64: Remove the __user annotation for the restore_za_context() argument
      https://git.kernel.org/arm64/c/1bec877bdb76
diff mbox series

Patch

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;