From: Kees Cook <kees@kernel.org>
To: Paul Moore <paul@paul-moore.com>
Cc: Arulpandiyan Vadivel <arulpandiyan.vadivel@siemens.com>,
linux-security-module@vger.kernel.org,
linux-modules@vger.kernel.org, cedric.hombourger@siemens.com,
srikanth.krishnakar@siemens.com
Subject: Re: [PATCH] loadpin: remove MODULE_COMPRESS_NONE as it is no longer supported
Date: Fri, 28 Feb 2025 11:42:45 -0800 [thread overview]
Message-ID: <202502281136.66F12960A1@keescook> (raw)
In-Reply-To: <CAHC9VhR41PLeO-TZvDt8jM2j5oDr_VyHPmsWh-B0ND4Ynot4HQ@mail.gmail.com>
On Wed, Feb 26, 2025 at 07:17:33PM -0500, Paul Moore wrote:
> On Tue, Jan 14, 2025 at 10:20 PM Paul Moore <paul@paul-moore.com> wrote:
> > On Tue, Jan 14, 2025 at 11:16 AM Arulpandiyan Vadivel
> > <arulpandiyan.vadivel@siemens.com> wrote:
> > >
> > > Updated the MODULE_COMPRESS_NONE with MODULE_COMPRESS as it was no longer
> > > available from kernel modules.
> > >
> > > Fixes: c7ff693fa209 ("module: Split modules_install compression and in-kernel decompression")
> > > Signed-off-by: Arulpandiyan Vadivel <arulpandiyan.vadivel@siemens.com>
> > > ---
> > > Changes in v2:
> > > Reword the commit message
> > > Modify logic and add Fixes tag.
> > > ---
> > > security/loadpin/Kconfig | 2 +-
> > > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > For what it's worth, this looks fine to me.
> >
> > Reviewed-by: Paul Moore <paul@paul-moore.com>
>
> Kees, did you ever merge this into your LoadPin tree?
Hi! This slipped through the cracks.
>
> > > diff --git a/security/loadpin/Kconfig b/security/loadpin/Kconfig
> > > index 848f8b4a60190..d82bcdb34cc8a 100644
> > > --- a/security/loadpin/Kconfig
> > > +++ b/security/loadpin/Kconfig
> > > @@ -16,7 +16,7 @@ config SECURITY_LOADPIN_ENFORCE
> > > depends on SECURITY_LOADPIN
> > > # Module compression breaks LoadPin unless modules are decompressed in
> > > # the kernel.
> > > - depends on !MODULES || (MODULE_COMPRESS_NONE || MODULE_DECOMPRESS)
> > > + depends on !MODULES || (!MODULE_COMPRESS || MODULE_DECOMPRESS)
MODULE_COMPRESS depends on MODULES, so I think this can be reduced to:
depends on !MODULE_COMPRESS || MODULE_DECOMPRESS
-Kees
--
Kees Cook
next prev parent reply other threads:[~2025-02-28 19:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-14 16:17 [PATCH] loadpin: remove MODULE_COMPRESS_NONE as it is no longer supported Arulpandiyan Vadivel
2025-01-15 3:20 ` Paul Moore
2025-02-27 0:17 ` Paul Moore
2025-02-28 19:42 ` Kees Cook [this message]
2025-03-02 10:38 ` [PATCH V3] " Arulpandiyan Vadivel
2025-03-03 17:33 ` Kees Cook
-- strict thread matches above, loose matches on Subject: below --
2025-01-13 9:31 [PATCH] " Arulpandiyan Vadivel
2025-01-13 10:19 ` Greg KH
2025-01-13 13:42 ` Petr Pavlu
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=202502281136.66F12960A1@keescook \
--to=kees@kernel.org \
--cc=arulpandiyan.vadivel@siemens.com \
--cc=cedric.hombourger@siemens.com \
--cc=linux-modules@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=paul@paul-moore.com \
--cc=srikanth.krishnakar@siemens.com \
/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;
as well as URLs for NNTP newsgroup(s).