Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1407297rwb; Fri, 28 Jul 2023 09:01:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlEWVCRLRMNhE2emhnpg88DCoH155RA+ILb0P7QlkOjLmRVxirCQ9fqbyUr05EjR6g0XM6Jj X-Received: by 2002:a17:906:5daa:b0:98c:df38:517b with SMTP id n10-20020a1709065daa00b0098cdf38517bmr2174155ejv.33.1690560062804; Fri, 28 Jul 2023 09:01:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690560062; cv=none; d=google.com; s=arc-20160816; b=FGGDi5jFHY2KMqwBENFb8th3NNlI2LvU+udfCuYHl7ne5EAsxpNcII1XZ0vZHkghTX z+XfWYghUMn8gktsmcrDmUABIXIIdum3GM1UkHz//DvYQjZrUmN2uH8AeQrKKegiu5Q7 UwQfishIqFOx1Q4kMuIBj8Cizvn+p2FEpnVxNZG22vW0KkWGlgTNg7tXdaVaU/Zb/73z 90GJGO3FyQJGjXtHjK239QpFT9zZtgH+MFWGSP0j47xdqbSiCeezBGT4nyJS+NNYn6Lo ICMosLKNpNJJdUR7ghGOEYRZ+cNSn7lyluXpeXm9civH5+QQO0hjhHh6vVhIAifFby6Z +6yg== 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=tbRuuicCTVua6QIP5mIymL3++5dLnPccEGP2OFwtlVY=; fh=ssCX1sjd5qt88BaR0yRNXggTpiVPA/EDtQ2IicSMeXY=; b=nTRe6ZsAvVcwph+vIb7qEk1eXrqx7PPKnSS7U18wvSF5Y5FyRwwnD6vbuvz1cBifhH 6L6RxfU0UoH4RL9SO9GF9RGUPNfjbdY+L0mw0FEldcXqkFPHd84tKWIuGJZtnV8qNUsc VjYhYfRv8TSlR4UOjVEFt8nNQEeLWG9mMf4Rfm8Iqy2vKPS7T1k7lMWjfYvAy1Qfv7Dh 8AqmcwpYLf6HfKwBXOzTRKLC/A040ftRc2ZXsBkjK2Ix7PId8qyEITwMlQMLd7s7Bd9Y mkWIXusXd6/UbHKZeA4ZQVMwxu7WFPtkEgdIBYOkUbzTi8xZoxBzJ71mi0MMvvK90OBe j9RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AD2p4MRx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kd27-20020a17090798db00b0099279b2cdddsi2774406ejc.833.2023.07.28.09.00.37; Fri, 28 Jul 2023 09:01:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AD2p4MRx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236579AbjG1Pdu (ORCPT + 99 others); Fri, 28 Jul 2023 11:33:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229588AbjG1Pds (ORCPT ); Fri, 28 Jul 2023 11:33:48 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAD43B5; Fri, 28 Jul 2023 08:33:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 78DAD6215F; Fri, 28 Jul 2023 15:33:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D81C5C433C8; Fri, 28 Jul 2023 15:33:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690558424; bh=oINpRshoP8wUOrW0KrHyosEeCy6vm0dPU8gi9b4Apus=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AD2p4MRxVbTJMornW4rtnlVVyLtsVamKFOjKM/YtSATmK7lMhlOFDtRA8/G9pwgAF 1sWs1sWg4F/hukZR/JU7U6+l+wo+TWOewD4I0cwarQlOh0aRJ5NoYtpqB65I1MoNkZ 9eZ9o3jYY3UHmKnV1fAXG/Wsu+xLSUGP3fwhMzmUZYsiirR4cz2f0g0qO5oPqupzrV KVK6uhTCxPtxrv7b6kTCNn/0LI+haKYLBtnoLaTW2+Afw76EKbl/pDrq9Nr7zzTHx3 98waSBKvQ5Se6QKIDWgXNStJwQxe0LwKr5KRFMdIy2JGzu/oByxmUdnBja60W0N9t0 bBsDZIkwNMEcg== Date: Fri, 28 Jul 2023 10:33:34 -0500 From: Josh Poimboeuf To: Valentin Schneider Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kvm@vger.kernel.org, linux-mm@kvack.org, bpf@vger.kernel.org, x86@kernel.org, rcu@vger.kernel.org, linux-kselftest@vger.kernel.org, Steven Rostedt , Masami Hiramatsu , Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Paolo Bonzini , Wanpeng Li , Vitaly Kuznetsov , Andy Lutomirski , Peter Zijlstra , Frederic Weisbecker , "Paul E. McKenney" , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Boqun Feng , Mathieu Desnoyers , Lai Jiangshan , Zqiang , Andrew Morton , Uladzislau Rezki , Christoph Hellwig , Lorenzo Stoakes , Jason Baron , Kees Cook , Sami Tolvanen , Ard Biesheuvel , Nicholas Piggin , Juerg Haefliger , Nicolas Saenz Julienne , "Kirill A. Shutemov" , Nadav Amit , Dan Carpenter , Chuang Wang , Yang Jihong , Petr Mladek , "Jason A. Donenfeld" , Song Liu , Julian Pidancet , Tom Lendacky , Dionna Glaze , Thomas =?utf-8?Q?Wei=C3=9Fschuh?= , Juri Lelli , Daniel Bristot de Oliveira , Marcelo Tosatti , Yair Podemsky Subject: Re: [RFC PATCH v2 11/20] objtool: Flesh out warning related to pv_ops[] calls Message-ID: <20230728153334.myvh5sxppvjzd3oz@treble> References: <20230720163056.2564824-1-vschneid@redhat.com> <20230720163056.2564824-12-vschneid@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230720163056.2564824-12-vschneid@redhat.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Thu, Jul 20, 2023 at 05:30:47PM +0100, Valentin Schneider wrote: > I had to look into objtool itself to understand what this warning was > about; make it more explicit. > > Signed-off-by: Valentin Schneider > --- > tools/objtool/check.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/objtool/check.c b/tools/objtool/check.c > index 8936a05f0e5ac..d308330f2910e 100644 > --- a/tools/objtool/check.c > +++ b/tools/objtool/check.c > @@ -3360,7 +3360,7 @@ static bool pv_call_dest(struct objtool_file *file, struct instruction *insn) > > list_for_each_entry(target, &file->pv_ops[idx].targets, pv_target) { > if (!target->sec->noinstr) { > - WARN("pv_ops[%d]: %s", idx, target->name); > + WARN("pv_ops[%d]: indirect call to %s() leaves .noinstr.text section", idx, target->name); > file->pv_ops[idx].clean = false; This is an improvement, though I think it still results in two warnings, with the second not-so-useful warning happening in validate_call(). Ideally it would only show a single warning, I guess that would need a little bit of restructuring the code. -- Josh