Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp519218pxb; Wed, 24 Feb 2021 08:06:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJxCVUBWxBaPMTY6KRpMP59P1Bdx0pcA9l/VeofH8xNBYIfZbFg4k/YMN0+J7P+6MuQnajqW X-Received: by 2002:aa7:df0a:: with SMTP id c10mr34003893edy.12.1614182783377; Wed, 24 Feb 2021 08:06:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614182783; cv=none; d=google.com; s=arc-20160816; b=UYGDrbbgW0lnUE9yUy8azxuOogwjs974pAqeBiyw2eKIW3GU3ijTV8oOC2lLa80Ln5 JSi+/iO0NW7hFnFJFoGSdIsfb+9tmxswvnwAeojsvaKb84X/o3vmeP6Ltt1xB6MFoz92 L83CWks4XZVUnXGVsgmSeshv/ch7Y5CoQqVWgcP6JOmmmhP3DNMb48ReNoPhrL74QV/z faB/Rl2xS0jfXNSJLQkbNfXnbVPfLkC7jE9CWgenj7KBNpkh+JH7Pgw9R6mZPDY8h/3N dJ8hvJCMxx6Ckx2GSSO/av1d/zHF/ouA8BNyjEAUZSSfw/mmR4bFTIzVWkzWZXP/MXMS yjIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LOjIWreQoJfAnxovsPGI1EvM93YpjjYx3q/VF0cdRbM=; b=FlgFt5U49aSP0IfR9LRAAMDjmUqXB0x0+zaN/fgf8G40XTkTkHnedzjIEgpcJMlOaM vKEF6PJ0XBahklR/NVw3ijY2FxEYlutByqx9uU4gnVVAzVxiuk6GBvLPPkWam26B+7fB R9qHaG257SFSi2ENE6r6G/lCuipsC1H2uALPHLEMBASi4cAmMS4E5FJxaeDdVWNBFy5p Zh7+mFXj5uYXMDRA2ZpRqOWAtqv1SvJHH2X7klpEUKF6UbnRhlrjIwg0A4jpQCms0nSJ ral0Yp4vy2yRPRH4iZmFKkWSjiBvxh+oOH018+0du4PVWOaKbq3BM81mS0Ez5G3MyDJh bxNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MLWMk8Ds; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l7si1528547ejo.432.2021.02.24.08.05.55; Wed, 24 Feb 2021 08:06:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MLWMk8Ds; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233784AbhBXQB0 (ORCPT + 99 others); Wed, 24 Feb 2021 11:01:26 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:57654 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236207AbhBXPsA (ORCPT ); Wed, 24 Feb 2021 10:48:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614181590; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=LOjIWreQoJfAnxovsPGI1EvM93YpjjYx3q/VF0cdRbM=; b=MLWMk8Dsyb02CRoemesPIM5kQzdNJtBkXGYHShehVeP79gtgRxzV+x/32Az2KyEYp4Mo2q p8tMCgKT8Gany0jyfNLKV63TxaIcB8Dy2TbtbLZAwYfpppFmSRNRHhHR+BhY3pCy0O6Ptn bFvjG1dCW898p3w8ug5y18JT0Sz2gX0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-402-VxgQ8n2IOXylo_39ZPNIuQ-1; Wed, 24 Feb 2021 10:45:56 -0500 X-MC-Unique: VxgQ8n2IOXylo_39ZPNIuQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 11DFA8D22D4; Wed, 24 Feb 2021 15:18:08 +0000 (UTC) Received: from treble (ovpn-118-134.rdu2.redhat.com [10.10.118.134]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 427BA19C71; Wed, 24 Feb 2021 15:18:07 +0000 (UTC) Date: Wed, 24 Feb 2021 09:18:05 -0600 From: Josh Poimboeuf To: Peter Zijlstra Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Ivan Babrou , Steven Rostedt Subject: Re: [PATCH 2/2] x86/unwind/orc: Silence warnings caused by missing ORC data Message-ID: <20210224151805.zrujocamlb5pxf7m@treble> References: <06d02c4bbb220bd31668db579278b0352538efbb.1612534649.git.jpoimboe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 24, 2021 at 03:52:01PM +0100, Peter Zijlstra wrote: > On Fri, Feb 05, 2021 at 08:24:03AM -0600, Josh Poimboeuf wrote: > > The ORC unwinder attempts to fall back to frame pointers when ORC data > > is missing for a given instruction. It sets state->error, but then > > tries to keep going as a best-effort type of thing. That may result in > > further warnings if the unwinder gets lost. > > > > Until we have some way to register generated code with the unwinder, > > missing ORC will be expected, and occasionally going off the rails will > > also be expected. So don't warn about it. > > I recently ran into another variant of missing ORC data, some files are > simply not processed by objtool, eg. arch/x86/realmode/init.c. Would it > make sense to have the vmlinux pass (when it isn't used to generate orc > in the first place) also check that all code it finds has ORC data? > > It's not fool proof, but it should help find files we're missing for > some raisin. Doesn't validate_reachable_instructions() basically already do that? -- Josh