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 D9EA33AE45 for ; Wed, 7 Jun 2023 20:24:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 096ECC4339B; Wed, 7 Jun 2023 20:24:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1686169464; bh=700v+BH6np3ZE2csfybYbvwJxbWyFN/w9HcRP7KclC4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n+FaggRq5uRpSvAEgQZPqld1tOpVm/VjktHaTAwdixw0EolRwNbNFLYUvAP1fneMe ZNzSLwGgMxVeN95Xl2T1W7NxDxXsaJjsoaF9DfQ/paZBsBGTZjt6FLeLnylVbPS+FM Ri89/l7L47VNEF+zqZOxuCSIL08ewTW1KXCZk4do= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Qing Zhang , Huacai Chen , Sasha Levin Subject: [PATCH 6.3 090/286] LoongArch: Add ARCH_HAS_FORTIFY_SOURCE selection Date: Wed, 7 Jun 2023 22:13:09 +0200 Message-ID: <20230607200926.005630242@linuxfoundation.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230607200922.978677727@linuxfoundation.org> References: <20230607200922.978677727@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Qing Zhang [ Upstream commit d4c937c2a57bbba24790be6fe7a791456f5fbb60 ] FORTIFY_SOURCE could detect various overflows at compile and run time. ARCH_HAS_FORTIFY_SOURCE means that the architecture can be built and run with CONFIG_FORTIFY_SOURCE. So select it in LoongArch. See more about this feature from commit 6974f0c4555e285 ("include/linux/ string.h: add the option of fortified string.h functions"). Signed-off-by: Qing Zhang Signed-off-by: Huacai Chen Signed-off-by: Sasha Levin --- arch/loongarch/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig index 3ddde336e6a56..3e5d6acbf2409 100644 --- a/arch/loongarch/Kconfig +++ b/arch/loongarch/Kconfig @@ -10,6 +10,7 @@ config LOONGARCH select ARCH_ENABLE_MEMORY_HOTPLUG select ARCH_ENABLE_MEMORY_HOTREMOVE select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI + select ARCH_HAS_FORTIFY_SOURCE select ARCH_HAS_NMI_SAFE_THIS_CPU_OPS select ARCH_HAS_PTE_SPECIAL select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST -- 2.39.2