Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29405966rwd; Wed, 5 Jul 2023 11:19:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlEIDrPayaQ680pVJ/8S4uXPLdHiPHEZ6nEdgnuGOmWcF0BjXfcm+Th5Ggl8VgRXFTwpOAXn X-Received: by 2002:a05:6a00:1953:b0:668:98a1:5e9d with SMTP id s19-20020a056a00195300b0066898a15e9dmr4127319pfk.6.1688581164209; Wed, 05 Jul 2023 11:19:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688581164; cv=none; d=google.com; s=arc-20160816; b=tG2AIwNqXaBoB0jetGsON4BzewHeel4+9r1FPtGuX8/X8FyzySkNbTLN/3Zc4tOvpL GnLHWclxg2MxpwKEDKTcoR2bVWkGPZrImZvDJGytg8w3V3TEfIJwU2LlFJjPmUi7sDZJ AjZenSchR+3WOM0oAu8AYwnocd+eP+NcjVsxkbNbEsoDDoaT1UnIm2NydgjJzjsjlqoy sJiTw8h3/RepvIobD6PAHQ0sUNmj7d9TOAsH8A2JtaUDbne/n+tRGYFd7QS63T1/PlqT jfFlqjWIMxOEOU8Vx9Af0NzHKPsAYXuULTsNNFVQ8dHKhe0qlr7RfDOafcPdwW0AonH+ ZKeA== 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=touy8a7//BeI9DXwQuTy3DIG1jDKoaRDRv3dbDYYd7A=; fh=dVCMRuKhK2aqTEuWethYlqkP4G2sINJQEE+rq5xoO1c=; b=O8O6F0NybdSssByIPCdu/Q6vbBhFUokAxtL1miKmAPGefnNiYXJ4u9hahmzX69QdVl AswCMLZ7bYhHSaw4NkHBahuuM0lsOw/Hb9YMsDDfulyNRbIciVtOi6pZ570PgTvGFCVL h1ZvfOSLfoNt3lCmqjJEIdY2X3kCzJty22DRRiUe46oQ3jRYgw84VVMenb9Zgu2L4A0V VaFVcSrIrWrMkvwHFxukiatNCI3P3T+/na+m5ZHtaUcHz9HCmq5sdxMRsmPIKNckggEq 1zX18o4B0FI6fHKkJyRWiI7qxfTXGbUBIwyS/cf+75PKPKoDbLaB6h0unO1Z/cHoD+9D jotw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="bRf0/gE2"; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g6-20020a056a0023c600b0068094fd5451si16934378pfc.188.2023.07.05.11.19.10; Wed, 05 Jul 2023 11:19:24 -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=@redhat.com header.s=mimecast20190719 header.b="bRf0/gE2"; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233353AbjGESRj (ORCPT + 99 others); Wed, 5 Jul 2023 14:17:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233403AbjGESR2 (ORCPT ); Wed, 5 Jul 2023 14:17:28 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7C1A1985 for ; Wed, 5 Jul 2023 11:16:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688581001; 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=touy8a7//BeI9DXwQuTy3DIG1jDKoaRDRv3dbDYYd7A=; b=bRf0/gE2Af75MWSNZa6GZtLmlRk10CBo3aTBBwDMg+36xwGoqleWJ21QUOgO4G/vqMyUPv UGQrPQzp06C56zVhhuBl2lHQpx7rWd4L3DUIyQYyY/P8CJ7GXLIPZuu45X5Usm6cOLCIAb Po/q/AyzuRQNuk0us1FXSYe87qmaRAI= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-281-rTU3Fnz6O_mjXhT8Or3jrg-1; Wed, 05 Jul 2023 14:16:38 -0400 X-MC-Unique: rTU3Fnz6O_mjXhT8Or3jrg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6BA218037BA; Wed, 5 Jul 2023 18:16:36 +0000 (UTC) Received: from vschneid.remote.csb (unknown [10.42.28.164]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 508F218EB4; Wed, 5 Jul 2023 18:16:31 +0000 (UTC) From: Valentin Schneider To: 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 Cc: 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" , Andrew Morton , Uladzislau Rezki , Christoph Hellwig , Lorenzo Stoakes , Josh Poimboeuf , 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 , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Juri Lelli , Daniel Bristot de Oliveira , Marcelo Tosatti , Yair Podemsky Subject: [RFC PATCH 06/14] objtool: Flesh out warning related to pv_ops[] calls Date: Wed, 5 Jul 2023 19:12:48 +0100 Message-Id: <20230705181256.3539027-7-vschneid@redhat.com> In-Reply-To: <20230705181256.3539027-1-vschneid@redhat.com> References: <20230705181256.3539027-1-vschneid@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 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 0fcf99c914000..fe62232f218f9 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -3404,7 +3404,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; } } -- 2.31.1