From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61028C38A02 for ; Mon, 31 Oct 2022 06:49:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229574AbiJaGtH (ORCPT ); Mon, 31 Oct 2022 02:49:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229565AbiJaGtG (ORCPT ); Mon, 31 Oct 2022 02:49:06 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 321139FD1 for ; Sun, 30 Oct 2022 23:49:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D876DB8112D for ; Mon, 31 Oct 2022 06:49:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3456BC433D6; Mon, 31 Oct 2022 06:49:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1667198943; bh=tGnTC+dc9xkmwq/21NOTYQeEaGySCb6ZkfFoqzG8oFc=; h=Subject:To:Cc:From:Date:From; b=aEfN9tntqEU6ZwT3saXmybBCXaE4xZ3zLPQKNagWwJBmpEsQH9YVOai1JPUF4I6EB 3kGySPrYa3D5gRTbbYWo0lq4GD8sv6XWg7eTP9E4TUBwFFKccQJTolBDwP2jU3O0Rp K6zQSGsndTpIG48qJhVuk7V6gBnOBXYSGArqa01g= Subject: FAILED: patch "[PATCH] s390/boot: add secure boot trailer" failed to apply to 5.15-stable tree To: oberpar@linux.ibm.com, gor@linux.ibm.com, stable@vger.kernel.org, svens@linux.ibm.com Cc: From: Date: Mon, 31 Oct 2022 07:49:59 +0100 Message-ID: <16671989994781@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org The patch below does not apply to the 5.15-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . Possible dependencies: aa127a069ef3 ("s390/boot: add secure boot trailer") thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From aa127a069ef312aca02b730d5137e1778d0c3ba7 Mon Sep 17 00:00:00 2001 From: Peter Oberparleiter Date: Fri, 16 Sep 2022 15:01:36 +0200 Subject: [PATCH] s390/boot: add secure boot trailer This patch enhances the kernel image adding a trailer as required for secure boot by future firmware versions. Cc: # 5.2+ Signed-off-by: Peter Oberparleiter Reviewed-by: Sven Schnelle Signed-off-by: Vasily Gorbik diff --git a/arch/s390/boot/vmlinux.lds.S b/arch/s390/boot/vmlinux.lds.S index af5c6860e0a1..fa9d33b01b85 100644 --- a/arch/s390/boot/vmlinux.lds.S +++ b/arch/s390/boot/vmlinux.lds.S @@ -102,8 +102,17 @@ SECTIONS _compressed_start = .; *(.vmlinux.bin.compressed) _compressed_end = .; - FILL(0xff); - . = ALIGN(4096); + } + +#define SB_TRAILER_SIZE 32 + /* Trailer needed for Secure Boot */ + . += SB_TRAILER_SIZE; /* make sure .sb.trailer does not overwrite the previous section */ + . = ALIGN(4096) - SB_TRAILER_SIZE; + .sb.trailer : { + QUAD(0) + QUAD(0) + QUAD(0) + QUAD(0x000000207a49504c) } _end = .;