All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: Remove the __user annotation for the restore_za_context() argument
@ 2022-06-01 17:13 Catalin Marinas
  2022-06-02  8:35 ` Mark Brown
  2022-06-02 10:56 ` Catalin Marinas
  0 siblings, 2 replies; 3+ messages in thread
From: Catalin Marinas @ 2022-06-01 17:13 UTC (permalink / raw)
  To: linux-arm-kernel; +Cc: Will Deacon, kernel test robot, Mark Brown

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(-)

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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: Remove the __user annotation for the restore_za_context() argument
  2022-06-01 17:13 [PATCH] arm64: Remove the __user annotation for the restore_za_context() argument Catalin Marinas
@ 2022-06-02  8:35 ` Mark Brown
  2022-06-02 10:56 ` Catalin Marinas
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2022-06-02  8:35 UTC (permalink / raw)
  To: Catalin Marinas; +Cc: linux-arm-kernel, Will Deacon, kernel test robot


[-- Attachment #1.1: Type: text/plain, Size: 284 bytes --]

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>

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: Remove the __user annotation for the restore_za_context() argument
  2022-06-01 17:13 [PATCH] arm64: Remove the __user annotation for the restore_za_context() argument Catalin Marinas
  2022-06-02  8:35 ` Mark Brown
@ 2022-06-02 10:56 ` Catalin Marinas
  1 sibling, 0 replies; 3+ messages in thread
From: Catalin Marinas @ 2022-06-02 10:56 UTC (permalink / raw)
  To: linux-arm-kernel, Catalin Marinas
  Cc: Will Deacon, Mark Brown, kernel test robot

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

-- 
Catalin


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-06-02 10:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-01 17:13 [PATCH] arm64: Remove the __user annotation for the restore_za_context() argument Catalin Marinas
2022-06-02  8:35 ` Mark Brown
2022-06-02 10:56 ` Catalin Marinas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.