Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5780499ioo; Wed, 1 Jun 2022 12:26:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxD3PIaKYW1c44LtrBnD8TCAWN0wgW30D+NBnj/rOT2AayNFMprH09zYOoguGytWySHq2Rf X-Received: by 2002:a17:90b:17c4:b0:1de:c92c:ad91 with SMTP id me4-20020a17090b17c400b001dec92cad91mr934925pjb.169.1654111600704; Wed, 01 Jun 2022 12:26:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654111600; cv=none; d=google.com; s=arc-20160816; b=P1BWp7Vjq47uIdDrMfGHmdFPz7uvgF9BpgkoGwBvf3MpLe7bfcu9jyzOVCUZRJZiHF aaNELNV96shAJActh4BM4z5lNl/z8DGFsxE7gUAPe4rZRJAANkWB49K4uoJ6bVkaqFqD tkg/qsFdkdpKynFOFEeeqEiwRIB77LFKhbuNkQivuue19vE78ALOkGYY0zSXiNH86TCh WWXsj9R997vQvuBSAOlym5xwCPBjTW+0G8/ynWTNKZ1xuP1qSIH9oJL312NCOIzql5TY rcNf7lneID3tE1lcHbnRQdLzl6FtTWqCV78VdHDZnSQSIBWSBPkvlr46+fIegwWRe07E xNqg== 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=DnheS9IDxtCxpoNf3+64zRntm8mh2DCwkcwdysDf7uY=; b=TowFGQSpsylf6z+nb01CvzKOwJKrundSTcvKlJLD/zZhrHfFzLvHvw3FHIqNbbRKyX wy7KKzaG2tIm1rmBinyl9z6S1b5KV8WPoub+2jNwd5wlH8uJ5ZmGuB1/BqEi74y+nej0 EF4FXYmgFQ8Nr2YCgvUBAu80jg03oK3iuft9wHB6ruGEisMoE22jFIwzqv72LVS4IMPB Jhe6xlczwEkTfFHoXS28Qjxfz8ItbHxR//b881xcowJQHN1NoRR6FDQS0pytMm7oGYcH Qw671Hpr3buDS4xHaC9B/Lhq6MIhvxNRpTlFvcSvMOlrx/xvUADulhkFVWi9yFoJ9iYR gtQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PhY5EzHo; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id p13-20020a63950d000000b003f5ef3afdb6si3181246pgd.409.2022.06.01.12.26.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 12:26:40 -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=@kernel.org header.s=k20201202 header.b=PhY5EzHo; 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=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A0938170660; Wed, 1 Jun 2022 11:59:21 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354863AbiFAQrs (ORCPT + 99 others); Wed, 1 Jun 2022 12:47:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234144AbiFAQrr (ORCPT ); Wed, 1 Jun 2022 12:47:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCCCB3FD87 for ; Wed, 1 Jun 2022 09:47:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 80F74615CD for ; Wed, 1 Jun 2022 16:47:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A89E3C385B8; Wed, 1 Jun 2022 16:47:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654102064; bh=vpX+RchnCKz170MMQrXhkUd9iB/TXy1f+YQjMDZwgTk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PhY5EzHoJ0KfBn2VvyiOVzx+ZW1pKwqL8rBcVmx/fpg0zp2nW4tLPlIj2WYgnoXt4 h1rqNt0Es4jM9HAGxW+hHPpGYxdWi/Pcr5W3r1diGVw+ocTIlhXF0ixpyKKQVobZ5H WsV9m+5cpmcGeSofMnsbGwLrYZwKsbSTvS2X1WF+LayX59bJBtrujx8R63PcTNJV6o MaMFvrp5a2rtlWavXLiLxhdwCB3rWt91PWvWB54LhGvJj/GkWTTXstGgA2MEnDNkQD NrzkeRp/2taBDlCMyk/JMCfHjmm9Ksrj7Vb0id+XMK4NPgN/+8gFaLzSL+DXLx/Gcl wfBZB+qakJFGA== Date: Wed, 1 Jun 2022 09:47:41 -0700 From: Josh Poimboeuf To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, Steven Rostedt , Peter Zijlstra , kernel test robot Subject: Re: [PATCH] x86/ftrace: Fix objtool vmlinux.o __fentry__ warning Message-ID: <20220601164741.r547yrz4p6jea6ih@treble> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Wed, Jun 01, 2022 at 09:30:53AM -0700, Josh Poimboeuf wrote: > The 'save_mcount_regs' macro does funny things with the frame pointer, > which objtool doesn't approve of. So OBJECT_FILES_NON_STANDARD is used > with CONFIG_FRAME_POINTER to tell objtool to skip the entire file when > frame pointers are enabled. > > However, the file-wide OBJECT_FILES_NON_STANDARD annotation is now > deprecated, because it doesn't work for IBT, where objtool runs on > vmlinux.o. Use more fine-grained function-specific annotations > instead. > > Fixes the following warning: > > vmlinux.o: warning: objtool: __fentry__+0x16: return with modified stack frame > > Fixes: ed53a0d97192 ("x86/alternative: Use .ibt_endbr_seal to seal indirect calls") > Reported-by: kernel test robot > Signed-off-by: Josh Poimboeuf NACK - I just found another robot warning for this one. -- Josh