public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
From: "Michal Suchánek" <msuchanek@suse.de>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: Coiby Xu <coxu@redhat.com>,
	bhe@redhat.com, will@kernel.org, zohar@linux.ibm.com,
	stable@vger.kernel.org
Subject: Re: FAILED: patch "[PATCH] arm64: kexec_file: use more system keyrings to verify kernel" failed to apply to 5.15-stable tree
Date: Mon, 22 Aug 2022 10:01:09 +0200	[thread overview]
Message-ID: <20220822080109.GI28810@kitsune.suse.cz> (raw)
In-Reply-To: <YwMwhJ1sFJi+/RBj@kroah.com>

On Mon, Aug 22, 2022 at 09:30:12AM +0200, Greg KH wrote:
> On Sun, Aug 21, 2022 at 09:24:10AM +0200, Michal Suchánek wrote:
> > On Sat, Aug 20, 2022 at 08:20:15PM +0200, Greg KH wrote:
> > > On Fri, Aug 19, 2022 at 04:41:15PM +0200, Greg KH wrote:
> > > > On Thu, Aug 18, 2022 at 12:09:38PM +0800, Coiby Xu wrote:
> > > > > Hi Greg,
> > > > > 
> > > > > This patch depends on three prerequisites. This full list of commit ids
> > > > > should be backported is shown below,
> > > > > 
> > > > > 1. 65d9a9a60fd7 ("kexec_file: drop weak attribute from functions")
> > > > > 2. 689a71493bd2 ("kexec: clean up arch_kexec_kernel_verify_sig")
> > > > > 3. c903dae8941d ("kexec, KEYS: make the code in bzImage64_verify_sig generic")
> > > > > 4. 0d519cadf751 ("arm64: kexec_file: use more system keyrings to verify kernel image signature")
> > > > > 
> > > > > And I can confirm they can be applied to linux-5.15.y branch
> > > > > successfully,
> > > > >     $ git checkout -b arm_key_5.15.y stable/linux-5.15.y
> > > > >     branch 'arm_key_5.15.y' set up to track 'stable/linux-5.15.y'.
> > > > >     Switched to a new branch 'arm_key_5.15.y'
> > > > >     $ git cherry-pick 65d9a9a60fd7 689a71493bd2 c903dae8941d 0d519cadf751
> > > > >     Auto-merging arch/arm64/include/asm/kexec.h
> > > > >     Auto-merging arch/powerpc/include/asm/kexec.h
> > > > >     Auto-merging arch/s390/include/asm/kexec.h
> > > > >     Auto-merging arch/x86/include/asm/kexec.h
> > > > >     Auto-merging include/linux/kexec.h
> > > > >     Auto-merging kernel/kexec_file.c
> > > > >     [arm_key_5.15.y 7c7844771360] kexec_file: drop weak attribute from functions
> > > > >      Author: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
> > > > >      Date: Fri Jul 1 13:04:04 2022 +0530
> > > > >      6 files changed, 61 insertions(+), 40 deletions(-)
> > > > >     Auto-merging include/linux/kexec.h
> > > > >     Auto-merging kernel/kexec_file.c
> > > > >     [arm_key_5.15.y 4283e2681d86] kexec: clean up arch_kexec_kernel_verify_sig
> > > > >      Date: Thu Jul 14 21:40:24 2022 +0800
> > > > >      2 files changed, 13 insertions(+), 25 deletions(-)
> > > > >     Auto-merging include/linux/kexec.h
> > > > >     Auto-merging kernel/kexec_file.c
> > > > >     [arm_key_5.15.y c0cf50b9056f] kexec, KEYS: make the code in bzImage64_verify_sig generic
> > > > >      Date: Thu Jul 14 21:40:25 2022 +0800
> > > > >      3 files changed, 25 insertions(+), 19 deletions(-)
> > > > >     [arm_key_5.15.y 40b98256cb89] arm64: kexec_file: use more system keyrings to verify kernel image signature
> > > > >      Date: Thu Jul 14 21:40:26 2022 +0800
> > > > >      1 file changed, 1 insertion(+), 10 deletions(-)
> > > > 
> > > > thanks, now queued up.
> > > 
> > > Nope, it causes build breakages in powerpc :(
> > s390
> > > 
> > > See:
> > > 	https://lore.kernel.org/r/YwC6eQjx8xC9y3LD@debian
> > > and
> > > 	https://lore.kernel.org/r/CA+G9fYtXnZP2vdAi4eU_ApC_YFz6TqTd6Eh5Mumb2=0Y_dK5Yw@mail.gmail.com
> > > 
> > > for the reports.  I'm dropping these from 5.15.y now, please fix this up
> > > and resend if you want them included.
> > 
> > The offending function was removed in 5.16 by
> > commit 277c8389386e ("s390/kexec_file: move kernel image size check")
> 
> Great, then someone needs to send me a backported, and tested, set of
> patches and I will be glad to queue them up.

It would apply cleanly to 5.15 if it weren't for previous backport of

commit 4aa9340584e3 ("s390/kexec: fix memory leak of ipl report buffer")

adds a function below the one that's supposed to be removed.

Thanks

Michal

  reply	other threads:[~2022-08-22  8:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-15 15:33 FAILED: patch "[PATCH] arm64: kexec_file: use more system keyrings to verify kernel" failed to apply to 5.15-stable tree gregkh
2022-08-18  4:09 ` Coiby Xu
2022-08-19 14:41   ` Greg KH
2022-08-20 18:20     ` Greg KH
2022-08-21  7:24       ` Michal Suchánek
2022-08-22  7:30         ` Greg KH
2022-08-22  8:01           ` Michal Suchánek [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-08-20 18:21 gregkh

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=20220822080109.GI28810@kitsune.suse.cz \
    --to=msuchanek@suse.de \
    --cc=bhe@redhat.com \
    --cc=coxu@redhat.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=stable@vger.kernel.org \
    --cc=will@kernel.org \
    --cc=zohar@linux.ibm.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