Message ID | 20230202074036.507249-12-madvenka@linux.microsoft.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 09E1FC05027 for <linux-arm-kernel@archiver.kernel.org>; Thu, 2 Feb 2023 07:46: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: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=LCaRef5TaEisvDzsjhjCVTdha1OIVGusSzzmCiTamsA=; b=WlilbuT1vY/nnM 0gWqDl12sCFxuTIAxqkIbf+FbyrN6Yq3WSBBA0rtuMgNW0x2RHB1+z683ukWCCUt/UF8oPPxaIwVK xy5SraAD/fV6uNfs+QxawvCU665hR2eBg5siz/M46UshEVUNkANwSjonhAie2A5qoQrQ14UexNcHo V/++HFPo/PXqK3tjmurVu5rKW0sfhTPqXtPwmru0RHrTNxPPs2on4JSToKt2YnqnlApbSgjawE2oJ BRSt+b2H/f5azm8TMmup8YtBIPUp/Drrcz3M+jK495EOqPce3cIgsL7PZE8n+Wcu3v7BxqlwFwXC4 YaMCEawxMvjFtUXascQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pNUHm-00EijU-Rt; Thu, 02 Feb 2023 07:45:35 +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 1pNUEu-00Eh7l-Kp for linux-arm-kernel@lists.infradead.org; Thu, 02 Feb 2023 07:42:45 +0000 Received: from x64host.home (unknown [47.187.213.40]) by linux.microsoft.com (Postfix) with ESMTPSA id A79A520B96E8; Wed, 1 Feb 2023 23:42:35 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com A79A520B96E8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1675323756; bh=3qU35kR6nm9/qdtMkBRKO5MFQ8eSw6OI7xVYMG8qPdU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hONvI3e0GsW7hJPLcxlcDOCGFQv9nEsAM58s8vmj+SktxBGS71H6LsGwW6rFfpKPF sxZ3btYfSM9XR2NeR07R7+VEqWKQsP10HiBErjXRDWnlujUAvocDiERW3Oi5K9fKc/ BmaFGuQS65bH+qQz9rwbDoYyISLXSIniZW+kuIg0= 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 v3 11/22] objtool: arm64: Invoke the decoder Date: Thu, 2 Feb 2023 01:40:25 -0600 Message-Id: <20230202074036.507249-12-madvenka@linux.microsoft.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230202074036.507249-1-madvenka@linux.microsoft.com> References: <0337266cf19f4c98388e3f6d09f590d9de258dc7> <20230202074036.507249-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-20230201_234236_749381_C8FA9583 X-CRM114-Status: UNSURE ( 9.75 ) 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: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
arm64: livepatch: Use ORC for dynamic frame pointer validation
|
expand
|
diff --git a/tools/objtool/dcheck.c b/tools/objtool/dcheck.c index e2098c9ad282..cd2700153408 100644 --- a/tools/objtool/dcheck.c +++ b/tools/objtool/dcheck.c @@ -9,8 +9,13 @@ #include <sys/mman.h> #include <objtool/objtool.h> +#include <objtool/builtin.h> +#include <objtool/insn.h> int check(struct objtool_file *file) { - return 0; + if (!opts.stackval) + return 1; + + return decode_instructions(file); }