[tip:,x86/build] x86/tools: objdump_reformat.awk: Skip bad instructions from llvm-objdump
Message ID | 170436087400.398.10481270651479609667.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-16448-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp5505516dyb; Thu, 4 Jan 2024 01:35:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IF6LTnXZmtFy5QwVBtduk3oSJSqtPpZ2qpXXywGZx6fwFA9sdWHVxGvcj56VPRkakz3xyHS X-Received: by 2002:a17:906:d001:b0:a23:701b:a160 with SMTP id z1-20020a170906d00100b00a23701ba160mr254986ejy.38.1704360901504; Thu, 04 Jan 2024 01:35:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704360901; cv=none; d=google.com; s=arc-20160816; b=V0B7R4S+yP0su4ZEPU1o9/i3j7i6+XUtsgXWGjXBFtbql/n7TvKCSLKLoTPFWKthZv ilIMmXNj34uPU5QhLR846PYUygtJymmOVFsPlEgG+mfwrOUoOuOIvmxmYeprtdmsGERn Hg0DbVTDN4qpjMe56bWWq2CXwG9opnFderJI7OxoUEgmhKUY2FSg9Ia1ZjZZbRkHAbes pCA4vf5szXVSPCf2Xr3GVjqzj5qQNc/QeiR9g4KvaCpvAD3mjPdfGxdS2K5NRzBo2ZKH gNVSZZDB9mMHwoDGnp/Sse6gXk01oL5qc8Trv8wN0W8TfAIe1ocyu1ZjgEg1hMeFZHl3 NZow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=m1dzXWXtanidcRqNf7pTgZuB9sg4I7BIsO8RkysnZBw=; fh=zAq/GRavCEsbx8BmvzgjGR2DnRDijQfOJ8dHQ5Avt8A=; b=knxivgvnVxgIAYTvq4S3W2ONYYAEP8bkxTbSYv2MDepBJsiZ4gK+us2wUf8DECiZeX nonbGYjsPByJaX0Grc2mgK4kkYfxzAAbugxxjhZ0yAepcq1tpVdTLAq0cR10gYmMGjgZ XXV4zL0jqfFAcR1IFjquleO7pB2tOOhRShQuKYeUsl8fTay4kkBQ4MAd0mf1DjhLfE49 Nrb6PMsR5kf69C47XxEtj5fUKAg3jZac/ZduY4jM33sYQ136EnEKrd3MbUWEViICTwpo BX3dZlTsiiflBV/tuNHsACD8SAdq3Fp7VhYy5GNZGsgf/V921J93tlxvVpiRNyeVZuH3 YQxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=K3Jo2mzl; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel+bounces-16448-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16448-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id r9-20020a170906550900b00a27a02c4af9si4637759ejp.558.2024.01.04.01.35.01 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 01:35:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16448-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=K3Jo2mzl; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel+bounces-16448-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16448-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1EA841F250E0 for <ouuuleilei@gmail.com>; Thu, 4 Jan 2024 09:35:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F2A2208CF; Thu, 4 Jan 2024 09:34:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="K3Jo2mzl"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="+89tdcqF" X-Original-To: linux-kernel@vger.kernel.org Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DB6A2208A8; Thu, 4 Jan 2024 09:34:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Thu, 04 Jan 2024 09:34:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1704360875; 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=m1dzXWXtanidcRqNf7pTgZuB9sg4I7BIsO8RkysnZBw=; b=K3Jo2mzlh1Gs6VdSKUEBt4LtQBVZhzHKhk+lGH1oJ8JTxQOwqot9fy4wKZlwP+U59HGCdU bomWoxj5ANQLBT0SbxI9ON2v57T7JrHMA5mk+ZrUmie+pGRHMsyzGOWXcI+Q5nd7Xxnt2o EN17oJPDYyVr5Q6ChkEp2vsLepMpbFQsfs+TZ8s+z/MsPUltTzreOqNYH51rOgr8rHaWhi wb85hQGzKd3pJTO+5LjsBSejdnAF82sIi6dJ+MmLi/k3QtZj9hDmjhYNyEqjieZ09KKoym TwLUFlkanPLOwU5TqMPEDp2s+IyPMunWIVnhkSs1mATXyH4ts3n7OWWgr+GRsg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1704360875; 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=m1dzXWXtanidcRqNf7pTgZuB9sg4I7BIsO8RkysnZBw=; b=+89tdcqFGh+FegbQyTYTbSesmePm3gWHWURr+SRydv3MD/FHxethgIgSXbHGWJaRRvypmA 5IWukeLB/OIZ6CDw== From: "tip-bot2 for Nathan Chancellor" <tip-bot2@linutronix.de> Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/build] x86/tools: objdump_reformat.awk: Skip bad instructions from llvm-objdump Cc: Nathan Chancellor <nathan@kernel.org>, "Borislav Petkov (AMD)" <bp@alien8.de>, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: =?utf-8?q?=3C20231205-objdump=5Freformat-awk-handle-llvm-objdum?= =?utf-8?q?p-bad=5Fexpr-v1-1-b4a74f39396f=40kernel=2Eorg=3E?= References: =?utf-8?q?=3C20231205-objdump=5Freformat-awk-handle-llvm-objdump?= =?utf-8?q?-bad=5Fexpr-v1-1-b4a74f39396f=40kernel=2Eorg=3E?= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Message-ID: <170436087400.398.10481270651479609667.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784472938959962618 X-GMAIL-MSGID: 1787151936495067366 |
Series |
[tip:,x86/build] x86/tools: objdump_reformat.awk: Skip bad instructions from llvm-objdump
|
|
Commit Message
tip-bot2 for Thomas Gleixner
Jan. 4, 2024, 9:34 a.m. UTC
The following commit has been merged into the x86/build branch of tip: Commit-ID: bcf7ef56daca2eacf836d22eee23c66f7cd96a65 Gitweb: https://git.kernel.org/tip/bcf7ef56daca2eacf836d22eee23c66f7cd96a65 Author: Nathan Chancellor <nathan@kernel.org> AuthorDate: Tue, 05 Dec 2023 12:53:08 -07:00 Committer: Borislav Petkov (AMD) <bp@alien8.de> CommitterDate: Thu, 04 Jan 2024 10:04:02 +01:00 x86/tools: objdump_reformat.awk: Skip bad instructions from llvm-objdump When running the instruction decoder selftest with LLVM=1 and CONFIG_PVH=y, there is a series of warnings: arch/x86/tools/insn_decoder_test: warning: Found an x86 instruction decoder bug, please report this. arch/x86/tools/insn_decoder_test: warning: ffffffff81000050 ea <unknown> arch/x86/tools/insn_decoder_test: warning: objdump says 1 bytes, but insn_get_length() says 7 arch/x86/tools/insn_decoder_test: warning: Decoded and checked 7214721 instructions with 1 failures GNU objdump outputs "(bad)" instead of "<unknown>", which is already handled in the bad_expr regex, so there is no warning. $ objdump -d arch/x86/platform/pvh/head.o | grep -E '50:\s+ea' 50: ea (bad) $ llvm-objdump -d arch/x86/platform/pvh/head.o | grep -E '50:\s+ea' 50: ea <unknown> Add "<unknown>" to the bad_expr regex to clear up the warning, allowing the instruction decoder selftest to fully pass with llvm-objdump. Signed-off-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/r/20231205-objdump_reformat-awk-handle-llvm-objdump-bad_expr-v1-1-b4a74f39396f@kernel.org --- arch/x86/tools/objdump_reformat.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/tools/objdump_reformat.awk b/arch/x86/tools/objdump_reformat.awk index a4120d9..20b08a6 100644 --- a/arch/x86/tools/objdump_reformat.awk +++ b/arch/x86/tools/objdump_reformat.awk @@ -11,7 +11,7 @@ BEGIN { prev_addr = "" prev_hex = "" prev_mnemonic = "" - bad_expr = "(\\(bad\\)|^rex|^.byte|^rep(z|nz)$|^lock$|^es$|^cs$|^ss$|^ds$|^fs$|^gs$|^data(16|32)$|^addr(16|32|64))" + bad_expr = "(\\(bad\\)|<unknown>|^rex|^.byte|^rep(z|nz)$|^lock$|^es$|^cs$|^ss$|^ds$|^fs$|^gs$|^data(16|32)$|^addr(16|32|64))" fwait_expr = "^9b[ \t]*fwait" fwait_str="9b\tfwait" }