Received: by 2002:a05:6520:2f93:b029:af:d4db:7a05 with SMTP id 19csp2296436lkf; Fri, 5 Feb 2021 09:35:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfUjqIxurjPBTHv49PhZOQ+nQe6xr1/q50kAe68RQaVZ1IcWve0OW8ksUKbd0mRu3jTxWD X-Received: by 2002:a17:906:3883:: with SMTP id q3mr4943712ejd.160.1612546541009; Fri, 05 Feb 2021 09:35:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612546541; cv=none; d=google.com; s=arc-20160816; b=qOEv6506IEm49VTumxOzcPnpwKEKFz1osQjvSGkPlxL1Souri+Fn4MbSB4ROBvDjOh ghpEbsQ7ot+HEPA7NxQh3gYlLlNlaQCMICdOUVBr2rF1Z/Zr9QeTQnKg+KKdqqaILJGw GcHwqj0QCZvnM3kp6tEC+snZlR+3FXtWNY90V79nhTKqmGSLE4i82Qj0hiHciqjkMvCf yAnP+yDd6N3nSaTiWG+8+M12d15cNdkcK1LmpKm0erjqBDmIklsetXnUNXPMmDyUgfBs Vx8VufSuNAxsS3y6BZGViMjJz+1jL307IOxVyyFAIT+ZIvgg3Hs+5/Rlpf8eOx4qyRw1 LpeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vcp9Eqr93Xo6XFmidRYjV1Oz+ChgKiiN3/ZJ2UwlACk=; b=lJ02eLecafvyWmDaTQ3nnvOY2w61FuxGJKB7+XUE9SxkQ3Fm6kULnKEwjEWgJIn8Kz 4G0BCbISrYXcRKb93uj7ya1Bpxk2zH4VVs7ZJUiHuZt4uPaGmHqCsGuYc5fr57JaTmmf 25wrUviwHLY7tscpphShrvjhiKciCb3l6tRxUK44g4enogTpipoowHPK9fLpEocaymCt tn4fhUo9c7KgDCck2m5o7Fgv7Tu06SFSB50NQovRKbYWRiFPmk1OZSI0rEpcUFYSRZZT 9F08v8GyicotKoQBaW+AwcfkzlM15FJj63Fras6RAPizIe32GXdp2Ylbrqfa0LRCO7Ug /hzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hoRb67iR; 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 s14si5633086ejr.548.2021.02.05.09.35.15; Fri, 05 Feb 2021 09:35:40 -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=hoRb67iR; 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 S233248AbhBEPti (ORCPT + 99 others); Fri, 5 Feb 2021 10:49:38 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:30207 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233289AbhBEPqu (ORCPT ); Fri, 5 Feb 2021 10:46:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612546066; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vcp9Eqr93Xo6XFmidRYjV1Oz+ChgKiiN3/ZJ2UwlACk=; b=hoRb67iREmKM/JCGn5GqUQeGv6me4cucfy4gyfAnBx96ooVyA1cnno/PGyi5SHM4Vxx2Ra OBzV+VkIQ4aknrFlXZB/ClzJDJ3QTMyT0PoCsttnfkjEVboe1N/Ir3yhYXnqBYZL/bJdk2 ATDDXv+j5sUrpFLMviFEdlhOvgDtjoE= 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-544-0OyopJcBNdiRstKjRwtiVg-1; Fri, 05 Feb 2021 09:24:14 -0500 X-MC-Unique: 0OyopJcBNdiRstKjRwtiVg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 500CD107ACF3; Fri, 5 Feb 2021 14:24:13 +0000 (UTC) Received: from treble.redhat.com (ovpn-116-178.rdu2.redhat.com [10.10.116.178]) by smtp.corp.redhat.com (Postfix) with ESMTP id B60565D9CC; Fri, 5 Feb 2021 14:24:12 +0000 (UTC) From: Josh Poimboeuf To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, Ivan Babrou , Peter Zijlstra , Steven Rostedt Subject: [PATCH 2/2] x86/unwind/orc: Silence warnings caused by missing ORC data Date: Fri, 5 Feb 2021 08:24:03 -0600 Message-Id: <06d02c4bbb220bd31668db579278b0352538efbb.1612534649.git.jpoimboe@redhat.com> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Josh Poimboeuf --- arch/x86/kernel/unwind_orc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/unwind_orc.c b/arch/x86/kernel/unwind_orc.c index c451d5f6422f..027b72b5c9ed 100644 --- a/arch/x86/kernel/unwind_orc.c +++ b/arch/x86/kernel/unwind_orc.c @@ -13,7 +13,7 @@ #define orc_warn_current(args...) \ ({ \ - if (state->task == current) \ + if (state->task == current && !state->error) \ orc_warn(args); \ }) -- 2.29.2