Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp431648pxb; Sat, 6 Mar 2021 04:37:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUFxmeS1/L2rVJVX8vUzwweUyj0JUEECBdP91UZHm31157hFcOPDV/EgYDycmIZYgrMJfb X-Received: by 2002:a05:6402:520b:: with SMTP id s11mr13958367edd.212.1615034277507; Sat, 06 Mar 2021 04:37:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615034277; cv=none; d=google.com; s=arc-20160816; b=Iaqeclx9XAw11NK8bfKhvBNJooXdmIICdRJwa+nyoiEjGqsl45ALycbqFlbdYYrT4l qHOzIFqRi93N2AsMiJ42pD9Pih0Tv3n3AyTfzR4KQFwi1+jUfuvLIluvz/aVpI9tRngW FBdunKTGG5QVQY1zy50zPy9oqeJ5ltdopEdW7QA3F8o8fXsMxEFZZW1QcJgMYXgAdw5w RC+jMi5vqNKq706f4Fn+2gP8bcAtNBkoF/5cL+ApU/T7GKz/Q+g+TB6dC6ODHb7OIhvt Pk+W6TYOse9RH6CPo5B4Hja8kyRpPnx8OlP3rdoKrcX2YY8Nu9v8a6AHHPlPJO7obMCk UweA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=CPwGF9GluJChKp2hs/hvWVBHjDwzvWx8N4NtTtqx68c=; b=WxaYVODalHUlSzbIbscl8p9vDS8SydQ74ifs1YmRQFFMzpD/lu4slF4Gk3szQSW/Yj UOYQ9R83O1DEKCD7A/qOhACcl+mggJHGZ9LSvn4LnrDMFezbk5LRICrd7DFjCJPojMQr op5ccSHCEwyNYWGxCbpe7+Ayl2Q/v+3y619Q+llKyxGL0q9wXouNcEHk030w85rM32Bc wWnLAQyhauTX/Az8rAlFw201+J0pnHmw8qs8C/wkloWofZ3c35nUMnC8+N+D9QNLXroj zJzyaX4JRy/ezHAPvZYwtjq0T50m8h1FCvx3dyzMB2d7nVqXCvdMwpmaNrltxaZsp1po KIug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=jN6rHOyz; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z23si3118205ejw.362.2021.03.06.04.37.35; Sat, 06 Mar 2021 04:37:57 -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=@linutronix.de header.s=2020 header.b=jN6rHOyz; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230444AbhCFMTP (ORCPT + 99 others); Sat, 6 Mar 2021 07:19:15 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:34992 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230191AbhCFMSz (ORCPT ); Sat, 6 Mar 2021 07:18:55 -0500 Date: Sat, 06 Mar 2021 12:18:53 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1615033133; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CPwGF9GluJChKp2hs/hvWVBHjDwzvWx8N4NtTtqx68c=; b=jN6rHOyzzZnw6ULdwMT4eiRBP9vpOmjacdzE/BrHvBLKYHMOi/f68/OTqfVNYopJlzV1i9 xIF6nWzspYdN6hTIiR+gY4YyF18duqeono0UZoJ9i6a4tboT3E8MIqK+0sSPlBcroFSVYf rb+ME9hJxc7dKODkSfNZhoeC67e5tO4F5IvdVGbsGE/bVSywGV48uKDVWAktA2BpXGIeVB mFMJYDuiPK5XILk65z5R5b8GABqoozxfYclQjZ+CshLqjP+U6Ou0wjKclCbHuubYwnLVoo q5bx50a2FDpy73Ye/HtU38GSeZmbiemTJ/9SepSplidnGSeNt5G4bntmth6G1w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1615033133; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CPwGF9GluJChKp2hs/hvWVBHjDwzvWx8N4NtTtqx68c=; b=9kCu0GTJqEb52Z8zSziMl2yNWb0gNWHR0BFcN7BMcIc4s0lNnh/7rLPt7Gweax5cITQaKQ B2CmgzevAemlpYAw== From: "tip-bot2 for Josh Poimboeuf" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/urgent] x86/unwind/orc: Silence warnings caused by missing ORC data Cc: Josh Poimboeuf , "Peter Zijlstra (Intel)" , Borislav Petkov , Ivan Babrou , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <06d02c4bbb220bd31668db579278b0352538efbb.1612534649.git.jpoimboe@redhat.com> References: <06d02c4bbb220bd31668db579278b0352538efbb.1612534649.git.jpoimboe@redhat.com> MIME-Version: 1.0 Message-ID: <161503313330.398.3537176169423600436.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/urgent branch of tip: Commit-ID: b59cc97674c947861783ca92b9a6e7d043adba96 Gitweb: https://git.kernel.org/tip/b59cc97674c947861783ca92b9a6e7d043adba96 Author: Josh Poimboeuf AuthorDate: Fri, 05 Feb 2021 08:24:03 -06:00 Committer: Borislav Petkov CommitterDate: Sat, 06 Mar 2021 13:09:45 +01:00 x86/unwind/orc: Silence warnings caused by missing ORC data 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 Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Borislav Petkov Tested-by: Ivan Babrou Link: https://lkml.kernel.org/r/06d02c4bbb220bd31668db579278b0352538efbb.1612534649.git.jpoimboe@redhat.com --- 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 1bcc14c..a120253 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); \ })