From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B1A023760; Thu, 18 Jan 2024 11:02:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705575778; cv=none; b=KdoQl5S47pUiUkskrN59ufHho7Z4uLwXINWwAMgq26zh2LFfKE8OowE/iBGIVtFVqqubbZOeWh6fQGQRbPb2NhRCQI4kV7cwQVsMsIQ9IpmeK5l8wb3YRhe23Kwskyo+SSzAwKBSOVqTZWLnd4z/WL9TJT36RoOWEWabT1r5t9c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705575778; c=relaxed/simple; bh=oyrLwUWAH67+bqUpTLvBGFSgpDp6dJ9TKdbqXzPQmlM=; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:User-Agent:X-stable: X-Patchwork-Hint:MIME-Version:Content-Transfer-Encoding; b=moZJKU2pqdBxpgV87gt6fefudfjnZbL+YzfZa373fOKUzyRnbk1tMaU7ljjtZwbQtAQThgG8ySjcIJKmePWzM6P2TjddB/bCJQav0cTyYCp2xYr5dmwiIpPPy9crP11NwCnEKThKEFqXOHHHYNORAZVCYbclshdZtRt97M38HMc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dG8oUJKe; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="dG8oUJKe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3779C433C7; Thu, 18 Jan 2024 11:02:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1705575778; bh=oyrLwUWAH67+bqUpTLvBGFSgpDp6dJ9TKdbqXzPQmlM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dG8oUJKe8QdB5HP/ta/WER+bZnPq8zzAlSEDdu1CT6084vi+EYC6vKfK92Y/eLNM9 hO8Ssj7ZxrTNRGLbXYkfzBwwdtxpmh2oyIVBoUtF70ypOTM5hS/5K/WHsQNyF4hgSA LSIwIoZzzfwRODcgauMzUtUvG0+c4BCG1JpC4Kf8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, kernel test robot , Vineet Gupta , Sasha Levin Subject: [PATCH 6.1 061/100] ARC: fix spare error Date: Thu, 18 Jan 2024 11:49:09 +0100 Message-ID: <20240118104313.582369140@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240118104310.892180084@linuxfoundation.org> References: <20240118104310.892180084@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Vineet Gupta [ Upstream commit aca02d933f63ba8bc84258bf35f9ffaf6b664336 ] Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202312082320.VDN5A9hb-lkp@intel.com/ Signed-off-by: Vineet Gupta Signed-off-by: Sasha Levin --- arch/arc/kernel/signal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arc/kernel/signal.c b/arch/arc/kernel/signal.c index 3c1590c27fae..723abcb10c80 100644 --- a/arch/arc/kernel/signal.c +++ b/arch/arc/kernel/signal.c @@ -61,7 +61,7 @@ struct rt_sigframe { unsigned int sigret_magic; }; -static int save_arcv2_regs(struct sigcontext *mctx, struct pt_regs *regs) +static int save_arcv2_regs(struct sigcontext __user *mctx, struct pt_regs *regs) { int err = 0; #ifndef CONFIG_ISA_ARCOMPACT @@ -74,12 +74,12 @@ static int save_arcv2_regs(struct sigcontext *mctx, struct pt_regs *regs) #else v2abi.r58 = v2abi.r59 = 0; #endif - err = __copy_to_user(&mctx->v2abi, &v2abi, sizeof(v2abi)); + err = __copy_to_user(&mctx->v2abi, (void const *)&v2abi, sizeof(v2abi)); #endif return err; } -static int restore_arcv2_regs(struct sigcontext *mctx, struct pt_regs *regs) +static int restore_arcv2_regs(struct sigcontext __user *mctx, struct pt_regs *regs) { int err = 0; #ifndef CONFIG_ISA_ARCOMPACT -- 2.43.0