Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1317901pxy; Thu, 29 Apr 2021 04:39:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJym/QpmywzaHtkI4DiZvvthNqQ/tf1dgW93+pEx6DpAuEiSOd6WoJvp3zsrbAF9h4HerC8u X-Received: by 2002:a17:906:144d:: with SMTP id q13mr36221386ejc.458.1619696369662; Thu, 29 Apr 2021 04:39:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619696369; cv=none; d=google.com; s=arc-20160816; b=skd2kA/k4cRWHvr3j05y3/wU7gYvt9ajPLv6bLqKlvFLn+JdkCejyZgG5WpsVvP7KT 8mkZT4toXg5hCFx5NVMMeanmaSjVN8tC1auw4BxWIE1ni5UvZS7USz73BNdU6zQrB01z tRvckvph2aCP1zSr1qJs/tD/uoQuuAONSwMpmHHv5AEGSaLBR8J8NwQK1gsIh6pZ7F7Z wslwvjC3QrFtZdX5PnYZJ9bAit9syTMYglCmn8PBVBiE0tr7YFi4G592iaPFc+qJRegc yfrhp4jOu1/osaFvSXv9FCN+uRQRjSuxVSUOvQVy8JKr0BdoAT/jlUb9aA/+s8iB5I+h 3RgQ== 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=IRuH/t7AdwA4DwmeKAIsvd9xGwDCmRbGhefeyOjAyUg=; b=kv2YW3fDYywrzz4y1B+dotkyyzEDnYrAEK5sigEh4C/JGNp2KjuUVwppxIKGISmYT1 1S4rX9+3RzqNrdis90eYMh7KVQky0yj3M2OnWQ9MJRuze0Ukcm+9QI1q05B8m7InYa+T f9mmWMjbmnEVT+/StFUZMq/FQ65h4rFTBed000YU9lM7BdVYWBVY1+giFCj16Vc7b3XV nwfi9OF+0OlVyxSMjyO2FCFJO84HIVncIZgYpg0G+he48yXNa87EV6QH3S5ucf7OvsKJ k0XIizTiTILlhEfbRuDiiWn6LO24CEmtqBzL26IplstOuXu/u+ctyHFir/RbzZHBVIY4 s6tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=C1a0aoHH; 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 o4si2807666edc.426.2021.04.29.04.39.04; Thu, 29 Apr 2021 04:39:29 -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=C1a0aoHH; 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 S232248AbhD2Lhw (ORCPT + 99 others); Thu, 29 Apr 2021 07:37:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:35188 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230148AbhD2Lhw (ORCPT ); Thu, 29 Apr 2021 07:37:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 96B196143D; Thu, 29 Apr 2021 11:37:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619696225; bh=OimQREtAsCbCtjwcO3nlmksyWqWkBSZ3W40b1WBierI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=C1a0aoHHOLESde2VuJKdnOGY8TH8fcL2tHaLTt2EXxN4KTYR0ziynLtLxpbfuXpMC IHmPss4MSGXLMvHoc1CousLn/fbVAnWrjQZ3NaaK0WJyfYTtAMBxdKs04KRqCW8BEM YDtmxhwyf6B3kBwLuPn5gn+nTitVyHZHelCW7AqOf810qZ74xZ/U3NZked5FZkTTdX UyckX56sQJJI1i0aKJ6D4nZee9xQwY8iTFbfT8ZlSU9BbCeYXdc9m8Z43qyE0EfwBz OwXYJt9VZsFHOja1nmrdjUi4tcfDPgnb/iIrsoxOM2gaFy5i9oRzujYjmSDymZVor2 8fNxVnx8WyPvA== Date: Thu, 29 Apr 2021 13:37:01 +0200 From: Jessica Yu To: Linus Torvalds Cc: linux-kernel@vger.kernel.org Subject: Re: [GIT PULL] Modules updates for v5.13 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-OS: Linux gunter 5.11.16-1-default x86_64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +++ Jessica Yu [28/04/21 14:58 +0200]: >Hi Linus, > >Please pull below to receive modules updates for the v5.13 merge window. >A summary can be found in the signed tag. > >Thank you, > >Jessica Ugh, I had forgotten to sign the tag. Should be fixed now, sorry about that. >-- >The following changes since commit 1e28eed17697bcf343c6743f0028cc3b5dd88bf0: > > Linux 5.12-rc3 (2021-03-14 14:41:02 -0700) > >are available in the Git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux.git tags/modules-for-v5.13 > >for you to fetch changes up to 33121347fb1c359bd6e3e680b9f2c6ced5734a81: > > module: treat exit sections the same as init sections when !CONFIG_MODULE_UNLOAD (2021-03-29 13:08:53 +0200) > >---------------------------------------------------------------- >Modules updates for v5.13 > >Summary of modules changes for the 5.13 merge window: > >- Fix an age old bug involving jump_calls and static_labels when > CONFIG_MODULE_UNLOAD=n. When CONFIG_MODULE_UNLOAD=n, it means you > can't unload modules, so normally the __exit sections of a module are > not loaded at all. However, dynamic code patching (jump_label, > static_call, alternatives) can have sites in __exit sections even if > __exit is never executed. > > Reported by Peter Zijlstra: "Alternatives, jump_labels and static_call > all can have relocations into __exit code. Not loading it at all would > be BAD." Therefore, load the __exit sections even when > CONFIG_MODULE_UNLOAD=n, and discard them after init. > >Signed-off-by: Jessica Yu > >---------------------------------------------------------------- >Jessica Yu (1): > module: treat exit sections the same as init sections when !CONFIG_MODULE_UNLOAD > > kernel/module.c | 9 ++++----- > 1 file changed, 4 insertions(+), 5 deletions(-)