Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp312814ybl; Fri, 23 Aug 2019 01:01:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxBNSbkzEUA0fU6OITYal5min5A+x7sea9joiBTZbZneF2nLguzNJUmXrUndRIudqqe3Dm1 X-Received: by 2002:a17:90a:b30f:: with SMTP id d15mr3810416pjr.19.1566547279713; Fri, 23 Aug 2019 01:01:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566547279; cv=none; d=google.com; s=arc-20160816; b=JfqvVZGVvIQ8Ui4KSHpWDsARt2gNjLKiN/GKseyKXwe60sRJD7k5Y/h8FHRKq+3dhv obugpk1QrWn4+bOUA2PyJ6tzHxgguhgOJ/1mDNXdYHXL2vxZ1Z/+jPM5PV+5pjF/kHQm tc0n+X4y90jdgHi3/FqPGZJYxNJXyy6pGJB1DgUq6mbHorkxlUEsPVE3F3an9KHRO6Pp rn1xFFwgNSiXfcnVKOZ9c5qp3me8JXz7qsV9huu45A1wrIbVIlFxtdnsmsGP6T+BJd8O YiUr3ZdOZHZ+S/imPJiL91n1hMKWhUuWXs6TFl1l9+6gWK5IMVmIfWmYatZwpRHt/g19 N06A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=9GudPg57KSBCffDdaC4FRmDRun/A5xSgk1jnj1/3VOc=; b=i9hJySGvQEKedol0BWmYSHoAjLXKiMHfUBOY5y68ZVh9dPNKQkvwdUMiQcR9bmYiZP 6Lkwmei7mJyo3MlRl9jIaUyUZpe961ug5++7HgxGgSzNqNWVru+Mf9bzXMwpi+ymMNkg RCCQNIF69GldRo2fSnIMrBqgsGUGiRODmtfGfDiEtPQ9dqKr/dtaLT2cyWU45twzDDON iJlpoH7x9S61f6ndiV54PPwDmOvCMePnKWqTp/1XePjXtSiYGb899mST3q5M8Ol2SfTl /9n5OeCcwE+buwIQlrNdq1h9V9+YQ6AQWpbEBfh9VLt4yPlNpeavdeqsE/wciW9COfT4 yl+A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5si1340661pgw.454.2019.08.23.01.01.04; Fri, 23 Aug 2019 01:01:19 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392473AbfHVUEJ (ORCPT + 99 others); Thu, 22 Aug 2019 16:04:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:7022 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387767AbfHVUEJ (ORCPT ); Thu, 22 Aug 2019 16:04:09 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 747B63082E25; Thu, 22 Aug 2019 20:04:09 +0000 (UTC) Received: from treble (ovpn-121-55.rdu2.redhat.com [10.10.121.55]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4D3796012A; Thu, 22 Aug 2019 20:04:08 +0000 (UTC) Date: Thu, 22 Aug 2019 15:04:06 -0500 From: Josh Poimboeuf To: Raphael Gault Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, peterz@infradead.org, catalin.marinas@arm.com, will.deacon@arm.com, julien.thierry.kdev@gmail.com, raph.gault+kdev@gmail.com Subject: Re: [RFC v4 07/18] objtool: Introduce INSN_UNKNOWN type Message-ID: <20190822200406.jc3yf77pomxxwep6@treble> References: <20190816122403.14994-1-raphael.gault@arm.com> <20190816122403.14994-8-raphael.gault@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190816122403.14994-8-raphael.gault@arm.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Thu, 22 Aug 2019 20:04:09 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 16, 2019 at 01:23:52PM +0100, Raphael Gault wrote: > On arm64 some object files contain data stored in the .text section. > This data is interpreted by objtool as instruction but can't be > identified as a valid one. In order to keep analysing those files we > introduce INSN_UNKNOWN type. The "unknown instruction" warning will thus > only be raised if such instructions are uncountered while validating an > execution branch. > > This change doesn't impact the x86 decoding logic since 0 is still used > as a way to specify an unknown type, raising the "unknown instruction" > warning during the decoding phase still. > > Signed-off-by: Raphael Gault Is there a reason such data can't be moved to .rodata? That would seem like the proper fix. -- Josh