Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp937603pxb; Wed, 6 Apr 2022 04:50:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwULXgWIPuagzx4AHOnob0MPKfg5xQiHP3q6pT4/Kwn6BFgE8DjRMHrOxqTitVDA5Nwxavc X-Received: by 2002:a17:902:9b87:b0:156:bf3e:9ab5 with SMTP id y7-20020a1709029b8700b00156bf3e9ab5mr8321837plp.119.1649245803774; Wed, 06 Apr 2022 04:50:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649245803; cv=none; d=google.com; s=arc-20160816; b=OgCz99pmvwm0tEe1yZi93hi+EKtdn1TiVcyMlJvGnDCvthN/vxEUFp3m9aAp9rBX48 gSuIlvK8/1GlulqMf7EK9IDW/JzV1WUfX6oFzVbVcTn9AqZ1BUxaecie82dDrCX0PfHX 8D1C+nDfzwNAMMj6QiCYjeFW+q+perwLCw1bG8GGdATSosyIa+5jzMeAN8tiKDRIjgMj ytjHQ9tRIn1LX7ndDTuGVxLWaQunmmZjX1ehwd6llNHFBnupcD01PJ29XvrY1E9Ndv7O Aodoz0OPEMzOIo4nbT8vb1BsyE4fVw1rIB5eS2eDc37eJYV4B71HXX0wbX4DFBz71xiG 6TyQ== 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:subject:cc:to:from:date; bh=XlqjLp+pIqg/B3epODTeQMksjyO125bXpoWi+91SYu8=; b=t34m3M5tcFHfP6C2ZJ6c5Q0QD78Cibs3OpP5ZXGJfO//deAZgzadysfy3Cf1CFm+45 gq/f/59CwmDi3bVXwAT5iyuGvhd5teOlXCN6nTI/eD+E3B/QpJHh1oWwgNllGIuYsaum Mwpy7da693R9I5gu9no0SCO0QEGf7VIyK5fRQfoHyWXWyia/IuVRyS5Nf76wNiRs/HxD PzSx2WpyytH5H2h2t190mnHdPRwELQhBlBhXT5BOTUC6syjrBIuYXCf3vsW59p+7Up1v uMAebmMIjsqg1JRzK33uHJs9QHnQj5dWFIxIJ+x2rW4x2ZG2xe4ZNIreGkLlO/iM9J5D D/5A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f188-20020a636ac5000000b003824583a8efsi14997469pgc.440.2022.04.06.04.50.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 04:50:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C6A19631C01; Wed, 6 Apr 2022 03:08:19 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1582892AbiDEXuM (ORCPT + 99 others); Tue, 5 Apr 2022 19:50:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1390737AbiDEPbO (ORCPT ); Tue, 5 Apr 2022 11:31:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EE4247396 for ; Tue, 5 Apr 2022 06:39:03 -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 D364361899 for ; Tue, 5 Apr 2022 13:39:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80635C385A1; Tue, 5 Apr 2022 13:39:01 +0000 (UTC) Date: Tue, 5 Apr 2022 09:38:59 -0400 From: Steven Rostedt To: Peter Zijlstra Cc: Kees Cook , Josh Poimboeuf , kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, kernel test robot Subject: Re: vmlinux.o: warning: objtool: stackleak_erase()+0x35: call to ftrace_likely_update() leaves .noinstr.text section Message-ID: <20220405093859.05660166@gandalf.local.home> In-Reply-To: <20220405080335.GC30877@worktop.programming.kicks-ass.net> References: <202204042008.sCQbEmVS-lkp@intel.com> <202204041125.500C28FD8@keescook> <20220404152502.0621caf9@gandalf.local.home> <20220405080335.GC30877@worktop.programming.kicks-ass.net> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 On Tue, 5 Apr 2022 10:03:35 +0200 Peter Zijlstra wrote: > > I think I'll just send a patch to nuke the tracer. I'm sure Peter Zijlstra > > will be happy when I do that. But I still want the profiler, as I find that > > useful. > > It'll explode the moment Lai's entry rework goes through. That'll make > us run C code before we switch to the kernel address space, so your > counters will not exist/be-mapped and *BOOM*. We could black list those areas. Just add: #define DISABLE_BRANCH_PROFILING at the top of any file and it will not do the profiling. -- Steve