From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2C5F0C7EE2A for ; Tue, 9 May 2023 03:55:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SsQwpMbGZrl0gsAzFyyWZjdZJwll0fx3ZnNbLCVTPFM=; b=5HCCkJ2rmF36iU qZX5d70uzEfsUyHLQtFUYm8Rj2dCzgWf16wqZ3L2Nh0hC9+Wg3zSN7rXF0gHvxe66FKzmCpRCinZX dj6UCxAXFlDu6HClGz4lMVEWEFrKFW0GQ/d26s4xSR5dg7L6v0s3aTQi/QYqTk0P7avBazC1pKkpQ +E8UDg7YEYYIOwO937xhspod0pYgs20H1MopczKTGD/bt8LJovy48QCeRENPpes3JeYtV4eCNRMsr l5Pr9RQ+NnNPW6gWltJ1cJNz3l3pSQxD4FpQ6gsu298lNUSEfoIyCgoA03RoTFbCc8BB5Z4w4I5Z9 xdl2WCtqdb21wJoZx63A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pwERT-002D02-2R; Tue, 09 May 2023 03:55:11 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pwERQ-002CyB-0I for linux-riscv@lists.infradead.org; Tue, 09 May 2023 03:55:10 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D177B6314C; Tue, 9 May 2023 03:55:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4AA3C433AE; Tue, 9 May 2023 03:55:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683604505; bh=FeEPuL62SD/ceTdy1AZqZeZrGvNE+W6iSSHqrcpuhdM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GQXhuxX40OjGGl1paD/X/fdnwF9K7z/DBK9UKpH7kwctsb++xAOnVd8Vrlo+/lTHU yC7UFxLTQ/wQ5dQ4yIv2ocW5hSi0UsDrcFQcQ/T1CI092s3g+uuZbMJndTkhl/n4l3 gTTAm4c9zAuklrHU+soqL7v3xXxrXR2S8IT1RACELJGwF2HhxnSFVGLFf36eVe3FLM O9m4QRQSefHBk6PpO+vupZQ8liC70N0769oqFKFg1sv3oFuAH6xLqI0jrN/EYdwdrl tAVL3u+YZC6IloyF+RRfY+RLbbk+NEoqpg7PHsEDobSGysTcX37hzGVGv9DzFT8jZq L21/v6pEfIM5Q== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Alexandre Ghiti , Ard Biesheuvel , Atish Patra , Palmer Dabbelt , Sasha Levin , paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org Subject: [PATCH AUTOSEL 6.3 4/7] riscv: Fix EFI stub usage of KASAN instrumented strcmp function Date: Mon, 8 May 2023 23:54:27 -0400 Message-Id: <20230509035455.59524-4-sashal@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230509035455.59524-1-sashal@kernel.org> References: <20230509035455.59524-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230508_205508_172937_F5AD0780 X-CRM114-Status: GOOD ( 10.63 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org From: Alexandre Ghiti [ Upstream commit 617955ca6e275c4dd0dcf5316fca7fc04a8f2fe6 ] The EFI stub must not use any KASAN instrumented code as the kernel proper did not initialize the thread pointer and the mapping for the KASAN shadow region. Avoid using the generic strcmp function, instead use the one in drivers/firmware/efi/libstub/string.c. Signed-off-by: Alexandre Ghiti Acked-by: Ard Biesheuvel Reviewed-by: Atish Patra Link: https://lore.kernel.org/r/20230203075232.274282-5-alexghiti@rivosinc.com Signed-off-by: Palmer Dabbelt Signed-off-by: Sasha Levin --- arch/riscv/kernel/image-vars.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/riscv/kernel/image-vars.h b/arch/riscv/kernel/image-vars.h index 7e2962ef73f92..15616155008cc 100644 --- a/arch/riscv/kernel/image-vars.h +++ b/arch/riscv/kernel/image-vars.h @@ -23,8 +23,6 @@ * linked at. The routines below are all implemented in assembler in a * position independent manner */ -__efistub_strcmp = strcmp; - __efistub__start = _start; __efistub__start_kernel = _start_kernel; __efistub__end = _end; -- 2.39.2 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv