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 |
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>
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 --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;
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