From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27B78C433E0 for ; Thu, 18 Mar 2021 08:31:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E7C5064DDA for ; Thu, 18 Mar 2021 08:31:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229725AbhCRIar (ORCPT ); Thu, 18 Mar 2021 04:30:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229600AbhCRIag (ORCPT ); Thu, 18 Mar 2021 04:30:36 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84488C06174A for ; Thu, 18 Mar 2021 01:30:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=b5394pXQ3AmJ7TK/eV6mn4r5s5hvBjpXA9Dq39eMKvw=; b=ZYrvUiAopSul/EQZ14BfoWzLxp 2Y/kQGegYgz/l51Pyn5CCqodVOJZlABcqS67BOE0B2tmmKUI0kXFWARjfLMVW5cXaU77wauxAhl28 2vaBNqtmOhwN1PGUCT+S1JI1A1eB7rHJVU6af234l7JR1cY9dvqAvKAPPn4EeZayThMDWQ87DodiP q2SUpFsHYAub6K0Y85ZKfTU+21cHWPxrzotndk6k1wM7lokV5ObV0JQXPM1gBoD+UA/omWWY7BlL/ hgTpteRzi+5AdxE+wSakuJ6XLpINlJ6X24Dp+KHCrzZI5FrkkgDXZIPsAcNyrQpNU1eEnXMdDtwlv cbLq8Vjg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lMo2u-004npD-0F; Thu, 18 Mar 2021 08:30:23 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 133F3305C10; Thu, 18 Mar 2021 09:30:19 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id EE09F29A61CFA; Thu, 18 Mar 2021 09:30:18 +0100 (CET) Date: Thu, 18 Mar 2021 09:30:18 +0100 From: Peter Zijlstra To: Josh Poimboeuf Cc: Sumit Garg , Oliver Sang , jbaron@akamai.com, lkp@lists.01.org, kbuild test robot , Jarkko Sakkinen , linux-kernel@vger.kernel.org Subject: Re: [PATCH] objtool,static_call: Don't emit static_call_site for .exit.text Message-ID: References: <20210317030101.GB22345@xsang-OptiPlex-9020> <20210318000212.l2fdz5vjhuq64yh6@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 18, 2021 at 08:59:45AM +0100, Peter Zijlstra wrote: > On Wed, Mar 17, 2021 at 07:02:12PM -0500, Josh Poimboeuf wrote: > > On Wed, Mar 17, 2021 at 01:45:57PM +0100, Peter Zijlstra wrote: > > > arguably it simply isn't a good idea to use static_call() in __exit > > > code anyway, since module unload is never a performance critical path. > > > > Couldn't you make the same argument about __init functions, which are > > allowed to do static calls? > > I suppose we could indeed make that argument. Much of that code was > copied from jump_label without much consideration. And I now I suppose > I'll have to consider jump_label in __exit too :/ > > > We might consider a STATIC_CALL_SITE_EXIT flag, but I suppose we've run > > out of flag space. > > Yeah, we're definitely short on flags. Let me try and figure out when > exactly it's all discarded. Ha!, x86 stuffs .exit.text in [__init_begin, __init_end) and it is discarded right along with initmem. But that means it should match init and be tagged init and all *should* work, but somehow it doesn't... clearly I'm missing something again ARGH!