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 CC8E1C38A02 for ; Mon, 31 Oct 2022 06:49:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229494AbiJaGtV (ORCPT ); Mon, 31 Oct 2022 02:49:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbiJaGtU (ORCPT ); Mon, 31 Oct 2022 02:49:20 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5CF89FD1 for ; Sun, 30 Oct 2022 23:49:19 -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 A1D1DB81147 for ; Mon, 31 Oct 2022 06:49:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0BD40C433C1; Mon, 31 Oct 2022 06:49:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1667198957; bh=eBl1CN87dKos69NAUt07YuDwR6ih44a/bV7jcsMvuEw=; h=Subject:To:Cc:From:Date:From; b=F+SV6i3dskGDendXn3YMP7TBNz1bvoB7wns801ftiBxjrj7dhuX44ZHTCIeUZvMY6 BFqVjjo9XlJJt0UqNI1aiU6jg+n4xB3+zp3Vn3PxuCfFnp9sCBo/tP01pS3damPdoc jUyvzPHoWeSqio+bQQNjs4FH7hlXt+EOVCaeshv8= Subject: FAILED: patch "[PATCH] s390/boot: add secure boot trailer" failed to apply to 5.4-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:50:00 +0100 Message-ID: <166719900013035@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.4-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 = .;