Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp751726pxb; Fri, 22 Apr 2022 10:22:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjygAuwvntmITxtOyui8VB38FH/MLcuty5iis5Y3QJRcECzsIwGKgp/vU86DhMmzRslYtH X-Received: by 2002:a63:2a96:0:b0:398:7865:d650 with SMTP id q144-20020a632a96000000b003987865d650mr4577380pgq.223.1650648168885; Fri, 22 Apr 2022 10:22:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650648168; cv=none; d=google.com; s=arc-20160816; b=nrGRZ66lVyTNZx36EnmcVx4o94mzqlRstJaRLD5VFCkcSc0BIKCw4WGcjxDOfGAwQV UzYY2QTrKuYX1kyCXpmhFrDiwFHSONlJXIllj4AiYyDsJK7UI4YX6TzGJ+i8Bpm266wi Xt6H6Q1Eyl2/AU0tK7UgJ3YRqpdtw2alX9ohDiepD8V6ZdQeAy5mMhpIg04NQnmZiey3 BUNHttofNx+VjNfAuUy/tMpJQXH78wSftSVpvbelgpUgpEDZ1e3sbwcywRjhKhejIN+p hDxOdkYr05E7phd3v2GYVGykQ+Qc1KCZ0nr94OCbKs2dQMdrHe41U3cHSP17K2+nsy/l lEig== 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=oSzpPAtevF2FdGrZBozZZn3Y/G/z3LHQd+B4A9qveaU=; b=AqZwIiIVLerJQItB+bWc5TSyxolVn8piQnHJHeKN7MXlWa0wFwmkLBIKyUPbS1ZTTm TOkwZjdehFUBO+DIoA2dyUKv/0+k1cnlMY9QSggwTZu1elzCo5/Ld2JlAIPSipU4nxgC ut+KRHnRfb2aWWEdnAbXWx6MtEFvjQTelZ+hyQQOaosj934S/SapR/mHTJAp5LEM+ol7 x4MVNgiqWRbQfJyWjzzfRipLet2novTEzBwnUyKwumHWKXoVOJ3yRaKO67WyuHbdWBF8 20gJFBd1Q+mQBWmGd5Zz9lHphlfDtMtZ4bX2KVPFxaMQ7guAo91/nObJfY0NESDV1nwF /o6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=y1trgAHX; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id i4-20020a170902c94400b00158f84cdfd6si9945582pla.8.2022.04.22.10.22.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 10:22:48 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=y1trgAHX; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 19AD1AFB0C; Fri, 22 Apr 2022 10:17:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357566AbiDSULl (ORCPT + 99 others); Tue, 19 Apr 2022 16:11:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356895AbiDSULV (ORCPT ); Tue, 19 Apr 2022 16:11:21 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83A433915B; Tue, 19 Apr 2022 13:08:37 -0700 (PDT) Date: Tue, 19 Apr 2022 20:08:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1650398916; 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=oSzpPAtevF2FdGrZBozZZn3Y/G/z3LHQd+B4A9qveaU=; b=y1trgAHXYQCTIJl5rgPZyRYjlHnHHABqCayk95nZwsodvxotPMBunUt1s4WpttgeusRYRB 82RPkEztkJhOetCLkcFJ2Tm+vR03VcPKb/eRyaRobgr/deqwEs/d5bTudr8FJY/x+Grhzy 4LksJU30ZK6CDBzom1LYXkooUuIqDx7GRiTpuZkZV6XQFk4sFoA00VHHE6XWCxIUzidyWl b64dX0vNMrotzN1nOK2bXU+QRNLfqtQn3tRL6tU9KArTRFqGP9kWFY00fTakxwIzKUBU3c VOWhqmyRpe14TL6R+hizG9/Mthui1gTp9HeR6e94w2J1lVGdATwF2sT9JozdYA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1650398916; 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=oSzpPAtevF2FdGrZBozZZn3Y/G/z3LHQd+B4A9qveaU=; b=Qc9aJGpazNPbiHRCKCX8yOawh+MfXcqrjzIKnP2sjFuLcPX31135LzTTWRaLX9haIImRJU 1Qjw8WpEAhiyqpCQ== 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] objtool: Use offstr() to print address of missing ENDBR Cc: Josh Poimboeuf , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <95d12e800c736a3f7d08d61dabb760b2d5251a8e.1650300597.git.jpoimboe@redhat.com> References: <95d12e800c736a3f7d08d61dabb760b2d5251a8e.1650300597.git.jpoimboe@redhat.com> MIME-Version: 1.0 Message-ID: <165039891504.4207.6288189756775964296.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 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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: 1d08b92fa2c41c43e4efe9787413e9ac9a434f83 Gitweb: https://git.kernel.org/tip/1d08b92fa2c41c43e4efe9787413e9ac9a434f83 Author: Josh Poimboeuf AuthorDate: Mon, 18 Apr 2022 09:50:30 -07:00 Committer: Peter Zijlstra CommitterDate: Tue, 19 Apr 2022 21:58:50 +02:00 objtool: Use offstr() to print address of missing ENDBR Fixes: 89bc853eae4a ("objtool: Find unused ENDBR instructions") Signed-off-by: Josh Poimboeuf Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/95d12e800c736a3f7d08d61dabb760b2d5251a8e.1650300597.git.jpoimboe@redhat.com --- tools/objtool/check.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/objtool/check.c b/tools/objtool/check.c index b822a6d..5285edd 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -3211,9 +3211,8 @@ validate_ibt_reloc(struct objtool_file *file, struct reloc *reloc) static void warn_noendbr(const char *msg, struct section *sec, unsigned long offset, struct instruction *dest) { - WARN_FUNC("%srelocation to !ENDBR: %s+0x%lx", sec, offset, msg, - dest->func ? dest->func->name : dest->sec->name, - dest->func ? dest->offset - dest->func->offset : dest->offset); + WARN_FUNC("%srelocation to !ENDBR: %s", sec, offset, msg, + offstr(dest->sec, dest->offset)); } static void validate_ibt_dest(struct objtool_file *file, struct instruction *insn,