Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3426921pxf; Mon, 22 Mar 2021 06:17:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxU0OjOHsn7SnRNkbJ0BwrIoIP6+oFCFvqVtfktKKAkcjXp+vqFBFGVDYfXtHLB1MXohLaW X-Received: by 2002:a05:6402:510b:: with SMTP id m11mr26024166edd.103.1616419062931; Mon, 22 Mar 2021 06:17:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616419062; cv=none; d=google.com; s=arc-20160816; b=J3ap3sfGYq0awfRpk9XosIcqGW2itMLNNLkN1RkpjGuccM2bRGytNKmZLZZxnXLeOy dP3RREXxClTAUOIDcSiaIcCKcCNjYYxvBBlPbcXfbmKWZzB6+jpNrI1Hh3+bBW9ggaXN 2WTdoayLrz20xTAVy9MHFFFicKc8czppbBW4eWk/dns28B4cT3Ga06WBeXmtiROR3rIv NzA6+hmDVxmJhNQQKQp/Oje3F2nJdArQUPRHhfNMlDCHq20hOA0S/qx98Z56/EhwMG1a lJf18+6FddLz5wY2MSDdWKbU96KWQ97hRwWrd8yafKd/3fcKrKMMTQt1DnoLVKKNl+Vg pauw== 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=d1WTY5FhOPdRRgo+aktx1nit817jjSoGX4OU25Fl8z0=; b=J11k+V0R6yrU8FUIahGU//DmpPUXEKrIRxSBgNDkhoa6MuG6d24Hu+QRkYKHst+B16 KWCekH3jtM/q+rTOGPqhPrL6qifei0lWbdHm8BhgEnOHjSsPCahoZBndWIiCtt5dI7tR pw8If066+8Bl8CY5lZY2GQEOCdr1jcGtL28WlTadhZqhGVqYE1gv5CgfGzyzIgg2Zaeo LMSRYE/YPpSrqgrelHraXqLiRk11HAeSyvmvs06eUeqVKHvareSPNGs0SzJHhNWgGOOM gAVFGeC7+6T5/HTgT+5PAfh529aZF+uXGHeWyHEb3PwQpiPH70bT4h28IJYnZashWUb1 x0sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="M6C9/3IY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m23si11284983ejr.429.2021.03.22.06.17.19; Mon, 22 Mar 2021 06:17:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="M6C9/3IY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230251AbhCVNQg (ORCPT + 99 others); Mon, 22 Mar 2021 09:16:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:59492 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233325AbhCVNIA (ORCPT ); Mon, 22 Mar 2021 09:08:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 91778601FF; Mon, 22 Mar 2021 13:07:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616418479; bh=qGVCe84YjHOqo7ar1lMMOlU6GzzioCkF4hOoYU0sLJc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=M6C9/3IYNPUizTchFvw+auywfWq30w+2b+iZfTJyR9dspjkGDLbTDIwxP6pUhsKNA yRz0Gp+ppLnYEwZyWO47oORcC63v7MvANSu++m+F7NGFa/tDizRhKiU2iDuG+a2oSu eUF5USMxUNU9+5nYqafMsUsM9IbMPJT8vTVJoFKqE7k8BcCRujHtYZv6CAu3aC8ety S5Pna6dRpcH2QhuoaVjDnDCgU85KeWX6LC4QGBCEO+1C1/Pg5JzOiwGIfxkD1C1DKn ZK4gBfS5gw1Cu0kfKwWru9dw/64/AF5E8/bG7H41zTf0jhLGIcWgmio/JBYbYkwqZK /ARbaB9stpEYA== Date: Mon, 22 Mar 2021 14:07:54 +0100 From: Jessica Yu To: Steven Rostedt Cc: Peter Zijlstra , Josh Poimboeuf , x86@kernel.org, jbaron@akamai.com, ardb@kernel.org, linux-kernel@vger.kernel.org, sumit.garg@linaro.org, oliver.sang@intel.com, jarkko@kernel.org Subject: Re: [PATCH 3/3] static_call: Fix static_call_update() sanity check Message-ID: References: <20210318113156.407406787@infradead.org> <20210318113610.739542434@infradead.org> <20210318161308.vu3dhezp2lczch6f@treble> <20210319140005.7ececb11@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210319140005.7ececb11@gandalf.local.home> X-OS: Linux gunter 5.11.2-1-default x86_64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +++ Steven Rostedt [19/03/21 14:00 -0400]: >On Fri, 19 Mar 2021 13:57:38 +0100 >Peter Zijlstra wrote: > >> Jessica, can you explain how !MODULE_UNLOAD is supposed to work? >> Alternatives, jump_labels and static_call all can have relocations into >> __exit code. Not loading it at all would be BAD. > >According to the description: > >" Without this option you will not be able to unload any > modules (note that some modules may not be unloadable anyway), which > makes your kernel smaller, faster and simpler. > If unsure, say Y." > >Seems there's no reason to load the "exit" portion, as that's what makes it >"smaller". Exactly. If you disable MODULE_UNLOAD, then you don't intend to ever unload any modules, and so you'll never end up calling the module's cleanup/exit function. That code would basically be never used, so that's why it's not loaded in the first place.