Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp494869pxb; Wed, 24 Feb 2021 07:33:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkOG9RN7ovwdW0dQAQqlxZYW1djo8RNCPYRYZgZ9Q1JELRnUbULYE5zq9YpkQAAX6XwuDD X-Received: by 2002:a17:906:a101:: with SMTP id t1mr29478526ejy.182.1614180792751; Wed, 24 Feb 2021 07:33:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614180792; cv=none; d=google.com; s=arc-20160816; b=YVanJiswdmQE50AJX2HSSJklMc0EO90hDH3JyjQHMGWIn05cqxrnUaWXsWpYpad/eN i1O1nnpUc4Yd34xpNk3p9iF9UEOfez6+rXJju0Yb3qo++UpqdEVDYNd4ag+a2SF5nIIj UetDzjtL0uiHM5sta0gVTqnhi1/t3Wf0KJgKC5WmqGEP8sq5MGrKg2N4qzKYXcAE6Bnw iw25U2YH+xcSpFpECNprBjhAPwhU2Thkb0s0jLl5Rx7+unaT3UU77yDsfBVX8ykGW9E/ VXlWkDt1vd81CAkEndAHEdeNmeQ1vvFBXLB7NnKGYh/u/pWE6AjPSvWTfSRihDe7drF5 D9yQ== 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=64cQywZ1MpmZpOKuyYCXIuKG27+NxSFMl6KgGWIRMBk=; b=sqWgKRlXqUA/93nvdoUQWhgn1fNeKjW0p70BAaEdeV05YxqNvBSSeZLvb84SvFqMJC rb7XyWNajjaoQXtgZPEgGpoDXoHLzSlspUaGWe5v3DhItr0QoV7whslyjN0LmGUdIOsR K49m9vk0CPQI/1MwgkqmRDg15POY565f7LIX/D6ZTgQRksEiXKJXmQZ2tPS1ljK6AeIT mvluLyG7GG9WZY0ZgB8wIDtZ+R0/6WpCE8WsN6af/NeJKfXE0VeMZ/fz/Ztn0DWRieyg vjgjyvTeWzozWUr1HC5oSvQC2VD27ysVX379mievxhKvhyYdRaP2zVXNcHA/ltkw5cMU sTUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=kN3RfplY; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rk13si1495201ejb.35.2021.02.24.07.32.35; Wed, 24 Feb 2021 07:33:12 -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=@infradead.org header.s=merlin.20170209 header.b=kN3RfplY; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237561AbhBXP3e (ORCPT + 99 others); Wed, 24 Feb 2021 10:29:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233365AbhBXOxk (ORCPT ); Wed, 24 Feb 2021 09:53:40 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 630B0C061786 for ; Wed, 24 Feb 2021 06:52:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=64cQywZ1MpmZpOKuyYCXIuKG27+NxSFMl6KgGWIRMBk=; b=kN3RfplYFi8OjSXadb7gIWOj4q VYm7xlUFB55IdNkLf63s5p3LT7mYZmwnxy/7996elunamGZJkISOrJqbccr40/qT4aals7HTxqgpq wxUzVQS5bUtDvLXpcql6PoPvRx/sw7/HNVwNh2HDYbDEX6whMNWeRUyJjqmermVFPT8DNC2SabdJU blmo7C1L7w2y6L8YntKy4TiN1hGPNTHqdZ8dYkFti9H/Ku+ir3hnfJN46SIH6WaSK1m3uI1efocRz dp41z1Kro6DtGvt3UAzQfRbuG3Pd0xv3bAg7gHK/r5sZmajtX1M8caq+TSEC+sTXXA1TvKtdNVXUJ h6SKPy2g==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1lEvWH-0005cc-1Z; Wed, 24 Feb 2021 14:52:05 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 68BE030799A; Wed, 24 Feb 2021 15:52:01 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 548BA206D9577; Wed, 24 Feb 2021 15:52:01 +0100 (CET) Date: Wed, 24 Feb 2021 15:52:01 +0100 From: Peter Zijlstra To: Josh Poimboeuf 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: References: <06d02c4bbb220bd31668db579278b0352538efbb.1612534649.git.jpoimboe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <06d02c4bbb220bd31668db579278b0352538efbb.1612534649.git.jpoimboe@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.