public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Masahiro Yamada <masahiroy@kernel.org>
Cc: Salvatore Bonaccorso <carnil@debian.org>,
	Francesco Dolcini <francesco@dolcini.it>,
	Parth Pancholi <parth105105@gmail.com>,
	Nathan Chancellor <nathan@kernel.org>,
	Nicolas Schier <nicolas@fjasle.eu>,
	Parth Pancholi <parth.pancholi@toradex.com>,
	linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org,
	stable@vger.kernel.org,
	Francesco Dolcini <francesco.dolcini@toradex.com>
Subject: Re: [PATCH v2] kbuild: switch from lz4c to lz4 for compression
Date: Tue, 4 Feb 2025 14:52:03 +0100	[thread overview]
Message-ID: <2025020457-nanny-reward-06bd@gregkh> (raw)
In-Reply-To: <CAK7LNARFfUexOjoBsr385ECC61k-oNzefRZtTtNhdGV01r-iXg@mail.gmail.com>

On Mon, Feb 03, 2025 at 11:44:50AM +0900, Masahiro Yamada wrote:
> On Sun, Feb 2, 2025 at 6:00 PM Salvatore Bonaccorso <carnil@debian.org> wrote:
> >
> > Hi Greg, hi Yamada,
> >
> > On Sat, Nov 16, 2024 at 04:51:48PM +0900, Masahiro Yamada wrote:
> > > On Fri, Nov 15, 2024 at 6:45 PM Francesco Dolcini <francesco@dolcini.it> wrote:
> > > >
> > > > On Fri, Nov 15, 2024 at 10:22:13AM +0100, Greg KH wrote:
> > > > > On Fri, Nov 15, 2024 at 09:39:40AM +0100, Francesco Dolcini wrote:
> > > > > > On Thu, Nov 14, 2024 at 05:02:01PM +0100, Greg KH wrote:
> > > > > > > On Thu, Nov 14, 2024 at 03:56:44PM +0100, Parth Pancholi wrote:
> > > > > > > > From: Parth Pancholi <parth.pancholi@toradex.com>
> > > > > > > >
> > > > > > > > Replace lz4c with lz4 for kernel image compression.
> > > > > > > > Although lz4 and lz4c are functionally similar, lz4c has been deprecated
> > > > > > > > upstream since 2018. Since as early as Ubuntu 16.04 and Fedora 25, lz4
> > > > > > > > and lz4c have been packaged together, making it safe to update the
> > > > > > > > requirement from lz4c to lz4.
> > > > > > > >
> > > > > > > > Consequently, some distributions and build systems, such as OpenEmbedded,
> > > > > > > > have fully transitioned to using lz4. OpenEmbedded core adopted this
> > > > > > > > change in commit fe167e082cbd ("bitbake.conf: require lz4 instead of
> > > > > > > > lz4c"), causing compatibility issues when building the mainline kernel
> > > > > > > > in the latest OpenEmbedded environment, as seen in the errors below.
> > > > > > > >
> > > > > > > > This change also updates the LZ4 compression commands to make it backward
> > > > > > > > compatible by replacing stdin and stdout with the '-' option, due to some
> > > > > > > > unclear reason, the stdout keyword does not work for lz4 and '-' works for
> > > > > > > > both. In addition, this modifies the legacy '-c1' with '-9' which is also
> > > > > > > > compatible with both. This fixes the mainline kernel build failures with
> > > > > > > > the latest master OpenEmbedded builds associated with the mentioned
> > > > > > > > compatibility issues.
> > > > > > > >
> > > > > > > > LZ4     arch/arm/boot/compressed/piggy_data
> > > > > > > > /bin/sh: 1: lz4c: not found
> > > > > > > > ...
> > > > > > > > ...
> > > > > > > > ERROR: oe_runmake failed
> > > > > > > >
> > > > > > > > Cc: stable@vger.kernel.org
> > > > > > >
> > > > > > > What bug does this resolve that it needs to be backported to stable
> > > > > > > kernels?
> > > > > >
> > > > > > This is not solving any existing actual bug, and therefore there is no
> > > > > > fixes tag.
> > > > > >
> > > > > > The issue here is that the kernel build system is using lz4c, that is
> > > > > > deprecated since 2018, and now distributions are actively moving away from it.
> > > > > >
> > > > > > openSUSE Tumbleweed and OE already removed it, so you would not be able
> > > > > > to compile a stable kernel on such distribution when using lz4 unless we
> > > > > > backport such a patch.
> > > > > >
> > > > > > Everything should be properly documented in the commit message already.
> > > > > >
> > > > > > My understanding is that something like that would be a reason for
> > > > > > backporting to stable, if my understanding is not correct we'll remove
> > > > > > the cc:stable and send a v3.
> > > > >
> > > > > Please read:
> > > > >     https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
> > > > > for what meets stable kernel requirements.  I don't think that this
> > > > > patch is that.
> > > >
> > > > Greg, ack.
> > > >
> > > > Masahiro, can you please let me know if we should send a v3 with the stable
> > > > tag removed or you can remove it yourself when applying?
> > > >
> > >
> > > I applied this with the stable tag removed.
> > > Thanks.
> > >
> > > (I guess someone may want to backport this eventually,
> > > as such distros cannot build stable kernels with ld4 compression.)
> >
> > Yes please :)
> 
> Agree.
> This should be back-ported.

Ok, now queued up, thanks.

greg k-h

  reply	other threads:[~2025-02-04 13:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-14 14:56 [PATCH v2] kbuild: switch from lz4c to lz4 for compression Parth Pancholi
2024-11-14 16:02 ` Greg KH
2024-11-15  8:39   ` Francesco Dolcini
2024-11-15  9:22     ` Greg KH
2024-11-15  9:45       ` Francesco Dolcini
2024-11-16  7:51         ` Masahiro Yamada
2025-02-02  9:00           ` Salvatore Bonaccorso
2025-02-03  2:44             ` Masahiro Yamada
2025-02-04 13:52               ` Greg KH [this message]
2025-02-03 12:37 ` Sasha Levin

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=2025020457-nanny-reward-06bd@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=carnil@debian.org \
    --cc=francesco.dolcini@toradex.com \
    --cc=francesco@dolcini.it \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=masahiroy@kernel.org \
    --cc=nathan@kernel.org \
    --cc=nicolas@fjasle.eu \
    --cc=parth.pancholi@toradex.com \
    --cc=parth105105@gmail.com \
    --cc=stable@vger.kernel.org \
    /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