From patchwork Thu Apr 7 20:25:18 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: 12805685 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 E86BCC433EF for ; Thu, 7 Apr 2022 20:29:16 +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=OzltYz8aX4LFHMEDTSUuXV7f2GI/fz1b1EcZhdH8/AU=; b=SABoUapsSgPFDP UcL5EpUEhTFexfTldXQtZKWM2ftYnSx7Lhl8EZFunBuzGRqE94S+wHsCw9IHhG80VwD7FeuaXbA23 /ACqQUZ4GM/TEWgM14iUo+mAcepG8z6oXEziKWvxhPZQzRxzzVXin25WgZH5wYzNEbboQB5JlhkhI SiPzP9+DfKa0hvskqnckghBrx7UpbRmlbFAZMYvNUXe3GItPsNbhayDKQAEmcjCBzE6GCikFPzap2 sPKieS4ShJmHo4gEqZZ/aLx1gLe+GBS/m6j7j4iV4gn2NKqo//IK+d9HaBdA22i9ErUfuw61hMfo3 bnv6VIdhikhhfqPYik0w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ncYjg-00DsW4-D1; Thu, 07 Apr 2022 20:28:08 +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 1ncYhl-00DrZg-45 for linux-arm-kernel@lists.infradead.org; Thu, 07 Apr 2022 20:26:10 +0000 Received: from x64host.home (unknown [47.189.24.195]) by linux.microsoft.com (Postfix) with ESMTPSA id 324E6201CBCC; Thu, 7 Apr 2022 13:26:08 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 324E6201CBCC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1649363168; bh=pBJjoP6HBM9BMHnhHHaiEURpWVqcRsKUpUuk8SoRtTQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=a6NRBZTILpb2I0lPawXCowwNYiD5FEHMK9pnYTYL3zeo3UtYuyZDY/GujINlEz7wv qFozDl4KHfDQ8vp5BnZmx++lCPlxttAFcDLT01GS2qmbo8vbFLwFaYM821aRGiAxuV JSfKebUPQR2MinG3+tfTzHuG2JDatLISytOmUJ74= From: madvenka@linux.microsoft.com To: mark.rutland@arm.com, broonie@kernel.org, jpoimboe@redhat.com, ardb@kernel.org, nobuta.keiya@fujitsu.com, sjitindarsingh@gmail.com, catalin.marinas@arm.com, will@kernel.org, jmorris@namei.org, linux-arm-kernel@lists.infradead.org, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, madvenka@linux.microsoft.com Subject: [RFC PATCH v1 9/9] dwarf: Enable livepatch for ARM64 Date: Thu, 7 Apr 2022 15:25:18 -0500 Message-Id: <20220407202518.19780-10-madvenka@linux.microsoft.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220407202518.19780-1-madvenka@linux.microsoft.com> References: <95691cae4f4504f33d0fc9075541b1e7deefe96f> <20220407202518.19780-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-20220407_132609_206998_91D80349 X-CRM114-Status: UNSURE ( 7.08 ) 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 c82a3a93297f..6cb00b3770cf 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -222,6 +222,9 @@ config ARM64 select THREAD_INFO_IN_TASK select HAVE_STACK_VALIDATION if DWARF_FP 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 @@ -2066,3 +2069,5 @@ source "arch/arm64/kvm/Kconfig" if CRYPTO source "arch/arm64/crypto/Kconfig" endif + +source "kernel/livepatch/Kconfig"