From patchwork Tue May 24 00:16:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhavan T. Venkataraman" X-Patchwork-Id: 12859591 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 178CBC433EF for ; Tue, 24 May 2022 00:26:39 +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:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=QrszTfAeXEqIgKscaLyuTVLDM6NczgYBv5XA8AaVnNE=; b=nFP+5gpvL7b38W dvGEIcXMtgNj+JrMmSN9MAzRoIiePadmueQd8cKO60/zX3cQuB0N12Pz93ksLRvIkcjChszvsL6I7 x5zIcHvWmIo7GpUu5+YOCO5A5op0//oZEPzzZSglHVqTo2gyKVAnMbBc/MPnW0w4uRzJ4Fz09HENn dKjPLPqJQQb4WBAwadmMd482Ba/RY7GT+Uk/92o982RuHaVM5S2Q34gqm+X/iu8yOGdwQzaIdcSpW zzImvmHrhOHLCmRypObouZiWj7IBIkLzL1XEv6P5/qH5SPKR2YSeI9jnQaCrPdrCQdw+eiyFV9WDy jGO77sb9rBEb3+gOV7Og==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ntIMO-006NLI-4I; Tue, 24 May 2022 00:25:16 +0000 Received: from linux.microsoft.com ([13.77.154.182]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ntIEV-006JTG-GP for linux-arm-kernel@lists.infradead.org; Tue, 24 May 2022 00:17:13 +0000 Received: from x64host.home (unknown [47.189.24.195]) by linux.microsoft.com (Postfix) with ESMTPSA id 8703720B8955; Mon, 23 May 2022 17:17:06 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 8703720B8955 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1653351427; bh=syoprsdej4CwEqysPiBnxYsuZxIUL2IqummhyMfwuKs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jmzMPJue8W13JKIJxHrm31Z+IrCiGzTbyg4geN4LH1l3NdMC7q8JIfO9+84Gl6MgK fd+S9ZmjkwUlbmBMoYsyd5JG7OzCHPiklaCOMchzYaMxMJxcWMFGpffAeXhTp7FXp9 Gux9CKb7F8U5PAFtI2Xp6LA28/BW8ngSH98CFKuY= From: madvenka@linux.microsoft.com To: jpoimboe@redhat.com, peterz@infradead.org, chenzhongjin@huawei.com, mark.rutland@arm.com, broonie@kernel.org, nobuta.keiya@fujitsu.com, sjitindarsingh@gmail.com, catalin.marinas@arm.com, will@kernel.org, jamorris@linux.microsoft.com, linux-arm-kernel@lists.infradead.org, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, madvenka@linux.microsoft.com Subject: [RFC PATCH v2 20/20] arm64: Enable livepatch for ARM64 Date: Mon, 23 May 2022 19:16:37 -0500 Message-Id: <20220524001637.1707472-21-madvenka@linux.microsoft.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220524001637.1707472-1-madvenka@linux.microsoft.com> References: <20220524001637.1707472-1-madvenka@linux.microsoft.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220523_171707_651320_F67A0769 X-CRM114-Status: UNSURE ( 7.44 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: "Madhavan T. Venkataraman" Enable livepatch in arch/arm64/Kconfig. Signed-off-by: Madhavan T. Venkataraman --- arch/arm64/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index e6a7bfc85ff9..49e15402d8c1 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -225,6 +225,9 @@ config ARM64 select THREAD_INFO_IN_TASK select HAVE_STACK_VALIDATION if FRAME_POINTER_VALIDATION select STACK_VALIDATION if HAVE_STACK_VALIDATION + select HAVE_RELIABLE_STACKTRACE if STACK_VALIDATION + select HAVE_LIVEPATCH if HAVE_DYNAMIC_FTRACE_WITH_REGS && HAVE_RELIABLE_STACKTRACE + select HAVE_ARCH_USERFAULTFD_MINOR if USERFAULTFD select TRACE_IRQFLAGS_SUPPORT help @@ -2160,3 +2163,5 @@ source "arch/arm64/kvm/Kconfig" if CRYPTO source "arch/arm64/crypto/Kconfig" endif + +source "kernel/livepatch/Kconfig"