Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2541830rdb; Mon, 25 Dec 2023 16:48:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHppNvLGa6XHg5qj90QTIjvs9m68kFMbpaHS/+Oe40qeIlsvrdV1aLp1h87LUImLuoiseVA X-Received: by 2002:a17:907:868d:b0:a24:71bc:1aad with SMTP id qa13-20020a170907868d00b00a2471bc1aadmr3678622ejc.36.1703551687620; Mon, 25 Dec 2023 16:48:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703551687; cv=none; d=google.com; s=arc-20160816; b=xpnvTiKnkVgN2CakyMp4irQs5o7mEvpg7UinV7uedyQ3yOr/U8cFL/HPV3BFFtSJQs hYMq8Lk44iFycs3FDZpRHmJinG6saiqD/qAf7aaq9JSGK4Cc/W0bTnJ8jtRCJxkAARLW RIq5vtCVFEl8Y2/N3RVDX9c6GDbrCPHO8yItTw+ZoRgVzhuukyS4Wsv3YfOXIGYdylTg zlS2F1li9S3IgDngn1uTOqw71pJm8O5ZBGhJW8kL1ukZQsXF4sLHtRZcWDcHcMQFBqJw wRAW+Uoyxnxvq8DV2A5c8/+NG0ErBDW3oGxfllTW42WCXGxamFpsn1vQjmg5CN0ypKsV KNEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=BBIF4tS5HNGBiKJCdlBZXuyx1y+4rQEdZGkcmSd1pe8=; fh=5GIqLX7EMRbi6tJeNMNgqAzWClZjqEBWn0jQqLiwnaE=; b=UtXsAO2Phg7QURqRQyFdz1XBzFKDoffAitXjl0iKK9eGlaCS36ZQAdy7+XmerzdHPo UePkxaonnjZm6z2PiBtc12VIcPfQu9A5zeeVTAqygqOAzqAygsClKUVP00QbZSBB5Yy3 a2mZ0Y38Kx8CDL7R3P5BC5szGlIcsM779GaGKnKjLKLWm9Rv7cP6MSurFu4V4jbuFg4l KhcNoBLvj+lH3YaoG/u4ONFtvgGUj8nIGIu6j1UxMiS59UagcBDbVFe2LTGvKT2XEzRF flBy8/ZKBSjPacP7oTeFSD96gJN00I73/Tbt9+hw9EjXWavce5axjPTCCMitGg/x7i9T Kkhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e9jV9C7J; spf=pass (google.com: domain of linux-kernel+bounces-11290-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11290-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id n7-20020a170906724700b00a26c8bfed4csi3178710ejk.561.2023.12.25.16.48.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 16:48:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11290-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e9jV9C7J; spf=pass (google.com: domain of linux-kernel+bounces-11290-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11290-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6290A1F2127B for ; Tue, 26 Dec 2023 00:48:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6BE1D5FF07; Tue, 26 Dec 2023 00:27:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="e9jV9C7J" X-Original-To: linux-kernel@vger.kernel.org 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 9F24C5FF03; Tue, 26 Dec 2023 00:27:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47CEDC433C8; Tue, 26 Dec 2023 00:27:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703550429; bh=vHIiMB+tdtmJ2Ky5sIfHg7G79ZSwjuZF+SkYK1pld2M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e9jV9C7J/Gd9mcsMgwqL5az5rmssfDPQljG/ElTOVlmDVhgCUsE3KDWvbjD7I3e2b Zw/nyU61smljU2QQ/pI6ThMgaBQXl7NsQCeFfxsaIrfjVT5o7iZIq1+27eVcSzQNo8 3RSdAvXKte1BazzBB8vQyT+NPvW0+EZcoawUVSy+meYegw1sWqay4y50s4NDdSk8tL yOei8GWshd4loIj0tH609/mVFSXYAQXX65PDGy9SFRSGDNqJXbLuiH+41l77LUKSNw Fq0FGAHEW5P3wSZIBSegMrRNbHrUCGpiwZwXpheePPviEIizgyrcGKFbTaVj1eRhcY CsSp2ito4HPtw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Vineet Gupta , kernel test robot , Sasha Levin , arnd@arndb.de, linux-snps-arc@lists.infradead.org Subject: [PATCH AUTOSEL 4.19 6/7] ARC: fix spare error Date: Mon, 25 Dec 2023 19:26:30 -0500 Message-ID: <20231226002649.7290-6-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231226002649.7290-1-sashal@kernel.org> References: <20231226002649.7290-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 4.19.303 Content-Transfer-Encoding: 8bit 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 68901f6f18bab..c36e642eb1a0a 100644 --- a/arch/arc/kernel/signal.c +++ b/arch/arc/kernel/signal.c @@ -64,7 +64,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 @@ -77,12 +77,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