From: Randy Dunlap <rdunlap@infradead.org>
To: "Matthew Maurer" <mmaurer@google.com>,
"Michael Ellerman" <mpe@ellerman.id.au>,
"Nicholas Piggin" <npiggin@gmail.com>,
"Christophe Leroy" <christophe.leroy@csgroup.eu>,
"Naveen N Rao" <naveen@kernel.org>,
"Madhavan Srinivasan" <maddy@linux.ibm.com>,
"Luis Chamberlain" <mcgrof@kernel.org>,
"Petr Pavlu" <petr.pavlu@suse.com>,
"Sami Tolvanen" <samitolvanen@google.com>,
"Daniel Gomez" <da.gomez@samsung.com>,
"Masahiro Yamada" <masahiroy@kernel.org>,
"Nathan Chancellor" <nathan@kernel.org>,
"Nicolas Schier" <nicolas@fjasle.eu>,
"Miguel Ojeda" <ojeda@kernel.org>,
"Alex Gaynor" <alex.gaynor@gmail.com>,
"Boqun Feng" <boqun.feng@gmail.com>,
"Gary Guo" <gary@garyguo.net>,
"Björn Roy Baron" <bjorn3_gh@protonmail.com>,
"Benno Lossin" <benno.lossin@proton.me>,
"Andreas Hindborg" <a.hindborg@kernel.org>,
"Alice Ryhl" <aliceryhl@google.com>,
"Trevor Gross" <tmgross@umich.edu>,
"Jonathan Corbet" <corbet@lwn.net>
Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org,
linux-modules@vger.kernel.org, linux-kbuild@vger.kernel.org,
rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org
Subject: Re: [PATCH v9 3/5] modules: Allow extended modversions without basic MODVERSIONS
Date: Fri, 22 Nov 2024 16:53:07 -0800 [thread overview]
Message-ID: <eac20e8d-d08c-4be7-a34f-b511798f0a57@infradead.org> (raw)
In-Reply-To: <20241123-extended-modversions-v9-3-bc0403f054bf@google.com>
On 11/22/24 4:19 PM, Matthew Maurer wrote:
> If you know that your kernel modules will only ever be loaded by a newer
> kernel, you can disable BASIC_MODVERSIONS to save space. This also
> allows easy creation of test modules to seee how tooling will respond to
> modules that only have the new format.
>
> Signed-off-by: Matthew Maurer <mmaurer@google.com>
> ---
> kernel/module/Kconfig | 15 +++++++++++++++
> scripts/Makefile.modpost | 1 +
> scripts/mod/modpost.c | 19 +++++++++++--------
> 3 files changed, 27 insertions(+), 8 deletions(-)
>
> diff --git a/kernel/module/Kconfig b/kernel/module/Kconfig
> index a31c617cd67d3d66b24d2fba34cbd5cc9c53ab78..f28b361494c4b4cc2446d683589f9452a0043b2b 100644
> --- a/kernel/module/Kconfig
> +++ b/kernel/module/Kconfig
> @@ -161,6 +161,7 @@ config MODULE_UNLOAD_TAINT_TRACKING
> config MODVERSIONS
> bool "Module versioning support"
> depends on !COMPILE_TEST
> + selects BASIC_MODVERSIONS
tested? 'selects' is not valid.
> help
> Usually, you have to use modules compiled with your kernel.
> Saying Y here makes it sometimes possible to use modules
> @@ -218,6 +219,20 @@ config EXTENDED_MODVERSIONS
> The most likely reason you would enable this is to enable Rust
> support. If unsure, say N.
>
> +config BASIC_MODVERSIONS
> + bool "Basic Module Versioning Support"
> + depends on MODVERSIONS
> + help
> + This enables basic MODVERSIONS support, allowing older tools or
> + kernels to potentially load modules.
> +
> + Disabling this may cause older `modprobe` or `kmod` to be unable
> + to read MODVERSIONS information from built modules. With this
> + disabled, older kernels may treat this module as unversioned.
> +
> + This is enabled by default when MODVERSIONS are enabled.
> + If unsure, say Y.
> +
> config MODULE_SRCVERSION_ALL
> bool "Source checksum for all modules"
> help
--
~Randy
next prev parent reply other threads:[~2024-11-23 0:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-23 0:18 [PATCH v9 0/5] Extended MODVERSIONS Support Matthew Maurer
2024-11-23 0:18 ` [PATCH v9 1/5] modules: Support extended MODVERSIONS info Matthew Maurer
2024-11-23 0:18 ` [PATCH v9 2/5] modpost: Produce extended MODVERSIONS information Matthew Maurer
2024-11-23 0:19 ` [PATCH v9 3/5] modules: Allow extended modversions without basic MODVERSIONS Matthew Maurer
2024-11-23 0:53 ` Randy Dunlap [this message]
2024-11-23 1:44 ` Matthew Maurer
2024-11-23 0:19 ` [PATCH v9 4/5] Documentation/kbuild: Document storage of symbol information Matthew Maurer
2024-11-23 0:19 ` [PATCH v9 5/5] rust: Use gendwarfksyms + extended modversions for CONFIG_MODVERSIONS Matthew Maurer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=eac20e8d-d08c-4be7-a34f-b511798f0a57@infradead.org \
--to=rdunlap@infradead.org \
--cc=a.hindborg@kernel.org \
--cc=alex.gaynor@gmail.com \
--cc=aliceryhl@google.com \
--cc=benno.lossin@proton.me \
--cc=bjorn3_gh@protonmail.com \
--cc=boqun.feng@gmail.com \
--cc=christophe.leroy@csgroup.eu \
--cc=corbet@lwn.net \
--cc=da.gomez@samsung.com \
--cc=gary@garyguo.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-modules@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=maddy@linux.ibm.com \
--cc=masahiroy@kernel.org \
--cc=mcgrof@kernel.org \
--cc=mmaurer@google.com \
--cc=mpe@ellerman.id.au \
--cc=nathan@kernel.org \
--cc=naveen@kernel.org \
--cc=nicolas@fjasle.eu \
--cc=npiggin@gmail.com \
--cc=ojeda@kernel.org \
--cc=petr.pavlu@suse.com \
--cc=rust-for-linux@vger.kernel.org \
--cc=samitolvanen@google.com \
--cc=tmgross@umich.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®