Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4643360yba; Wed, 10 Apr 2019 01:39:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjNRLmU0KnHCTB6fK5IooLczABkXqeUoUM4n5FbQKymO1z10dQ/tOjWvuGAkhN6+YTr8bm X-Received: by 2002:a63:e44f:: with SMTP id i15mr35527804pgk.362.1554885594837; Wed, 10 Apr 2019 01:39:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554885594; cv=none; d=google.com; s=arc-20160816; b=0P7YfUBxToXxRZZdplyLryQdxqbb9WQgqiQkP/HAdZAzKSam8MpeoKU9/vruU+zWez 7vfhxOG5Chw2SQEFPBLqu27B/mtfc3ebWUfV7GutOQg4rES2KQqBgqnjW+wyqgm5HN5n xZ+QNHqN/yu6bQWN2xs0F+Z8ZeB7vB+BgiTzrLSKCswUFfhL5NJmrDvB4szwE12oDBFU ool0WwIDJmADXRT4fWlMPxFGUM0FDq96XFDDWvGadcfyZ1muVM1wb5kfH3YqhgKpgEEP MY+phVDUjI2x3JelbrlTQic9nyOe9GN4Al+Ih8ZAPmMf8K/G+pIK6kOLQw7mpgf2P3k6 Vpig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=AKcACywpvMXpvxF6l6VJbNoikXlSpkc3REmOQ5KahwY=; b=GRuLwXb/cml5lXZfnL62gwyhOeqtbgYTNFwynWAPwjFJjYFikJg88lfj17LuaEmFEK 20z9HT4cy09NCPiUXflfthok0ECsIGJ6Cm2x9RYek4eAvHuLAYojshshUB9KMa6LRTO0 +cGZPWUI7lgtExheyoPVei14Aj+Vo0OF/BU4/9ULD2FGYEQxgjhePEu1yzPaOitzKlcn f9oh5qZL38u3/ypVyQV7k8BI86ENeL9ZQqlP9mf4KN1BxSdZMZVsamzm6+/mjUvdFyFM qm8beVQOkFfWhJi2CE7uwmlVekZyTiFUpXIWHlMPoVruA9uJzawYU1FS0rYbIQXCei6A aR8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n34si31173743pld.352.2019.04.10.01.39.39; Wed, 10 Apr 2019 01:39:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728828AbfDJHUg (ORCPT + 99 others); Wed, 10 Apr 2019 03:20:36 -0400 Received: from foss.arm.com ([217.140.101.70]:48846 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728787AbfDJHUf (ORCPT ); Wed, 10 Apr 2019 03:20:35 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 15131A78; Wed, 10 Apr 2019 00:20:35 -0700 (PDT) Received: from [10.1.197.45] (e112298-lin.cambridge.arm.com [10.1.197.45]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9A5AC3F68F; Wed, 10 Apr 2019 00:20:33 -0700 (PDT) Subject: Re: [PATCH 0/6] objtool: Add support for Arm64 To: Josh Poimboeuf , Ard Biesheuvel Cc: Raphael Gault , Linux Kernel Mailing List , linux-arm-kernel , Peter Zijlstra , Catalin Marinas , Will Deacon References: <20190409135243.12424-1-raphael.gault@arm.com> <20190410033732.ibtpnd36655afpfj@treble> From: Julien Thierry Message-ID: Date: Wed, 10 Apr 2019 08:20:31 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20190410033732.ibtpnd36655afpfj@treble> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/04/2019 04:37, Josh Poimboeuf wrote: > On Tue, Apr 09, 2019 at 10:43:18AM -0700, Ard Biesheuvel wrote: >> On Tue, 9 Apr 2019 at 06:53, Raphael Gault wrote: >>> >>> Hi, >>> >>> As of now, objtool only supports the x86_64 architecture but the >>> groundwork has already been done in order to add support for other >>> architecture without too much effort. >>> >>> This series of patches adds support for the arm64 architecture >>> based on the Armv8.5 Architecture Reference Manual. >>> >> >> I think it makes sense to clarify *why* we want this on arm64. Also, >> we should identify things that objtool does today that maybe we don't >> want on arm64, rather than buy into all of it by default. > > Agreed, the "why" should at least be in the cover letter. From my > perspective, the "why" includes: > > - Live patching - objtool stack validation is the foundation for a > reliable unwinder > Yes, as I understand Live patching is a work in progress for arm64. Having objtool to provide more guarantees would be nice. > - ORC unwinder - benefits include presumed improved overall performance > from disabling frame pointers, and the ability to unwind across > interrupts and exceptions > I'm unsure this will be part of the plan. I believe so far arm64 code heavily relies on the presence of frame pointers. It's also part of the Aarch64 Procedure Call Standard. But who knows. > - PeterZ's new uaccess validation? > Yes, we've reverted twice our implementation of user_access_begin/end() on arm64 because of the issue of potentially calling sleeping functions. Once we have the base of objtool work, this would be one of the next work items. Thanks, -- Julien Thierry