Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #67589

Bug#963033: linux-image-arm64: kexec loses EFI system tables with Debian kernels

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Romain Perier <romain.perier@gmail.com>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#963033: linux-image-arm64: kexec loses EFI system tables with Debian kernels
Date Fri, 24 Jul 2020 15:20:02 +0200
Message-ID <Aw5Me-7M7-3@gated-at.bofh.it> (permalink)
References <AiUOC-1Ho-1@gated-at.bofh.it> <Am3iF-1ZE-9@gated-at.bofh.it> <AvsBb-s0-5@gated-at.bofh.it> <AiUOC-1Ho-1@gated-at.bofh.it> <AvsKR-vk-7@gated-at.bofh.it> <AiUOC-1Ho-1@gated-at.bofh.it> <AvsKR-vk-7@gated-at.bofh.it>
X-Original-To Gabriel Krisman Bertazi <krisman@collabora.com>, 963033@bugs.debian.org
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Fri Jul 24 13:15:11 2020
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score 1.202
Reply-To Romain Perier <romain.perier@gmail.com>, 963033@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Debian Kernel Team <debian-kernel@lists.debian.org>
X-Debian-Pr-Message followup 963033
X-Debian-Pr-Package src:linux
X-Debian-Pr-Source linux
X-Spam-Bayes score:0.0000 Tokens: new, 24; hammy, 135; neutral, 51; spammy, 0. spammytokens: hammytokens:0.000-+--H*UA:1.10.1, 0.000-+--H*u:1.10.1, 0.000-+--H*UA:2018-07-13, 0.000-+--H*u:2018-07-13, 0.000-+--H*r:TLS1_3
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Voix4MRwWXVo7BuxlllQ63EvsS/mtlYJh9o1gdFz9PY=; b=dV5hilLdRYcPVzijqmzXwtWgRwv65g2EZHOd3L0xQOuOe3FfMOXj3PJP/v6pE4XRUs r8wGRKTmGk/5wO60vjmmAN0a1JcaIetK4AYwlW8qLJce5MOt+2X5qkY6tBR8AwLP1uXy 8T3GizdtHRb21DhGz3/QLy/Erhg1L8EbULNE0WSVrh/ygMUYKgdFDZfuxJH3kJ/+zqIv A4oXvKc5E//g6xS8BJYSBhOG3pAgqVs++dJAhFafwb0uHw5Mho7IkrThr+48PJf8KZf/ Nk+yoIqhoMnyC9h2I/yqXDCSV1XrNF0Ck8eMJ3TBKH+XvpAPW6pNyQLYZxa/6i1wEq1p a9OQ==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Voix4MRwWXVo7BuxlllQ63EvsS/mtlYJh9o1gdFz9PY=; b=CR/tRZYPLnJRASghPoUVr7NeEOWpxNBViIPdEOQhdzSVRgYgiwDX7mAs2j8q1z2rNv s+HKpSnovE37wxSeMKrxqio15piU50+BIALyrtTxLBZrCRyWAGf8DnSe0o7Q1pSB7Uzb 1GvENdPPJjNwGARMue/tleLmJV8PosANZtnEQoXNC1qzrOmlsvzejvOU0C9ksY6vWcpL e68qgYwLgWaBZUvt2Tf+/iaIXUUrrrJLNRiGbaNYf1zcTOR4JGeyYWiIS+nAm3ayV9Nn LhEUhzIRaTaGA5spDZBfJnIW1/jsLrzCWPU37YO3kF1krtYSuWoeJW41EOvzyqhvvBe9 lcdg==
X-Gm-Message-State AOAM530aQjHvj/2E2Itn0WOOmoM6r57bT3dPDAXuPnP5yax1WbUPOFS0 JY3932BKwSmVto8Z2M9OjAmw8DN4
X-Google-SMTP-Source ABdhPJyB+Wg4yYaMkvLR3q7lnWdOa8od75xkZXkcH7HhQp6JDIFG/4tw3bfJs/srFwbItTbXLoAtxw==
X-Received by 2002:a1c:1dc7:: with SMTP id d190mr8448337wmd.36.1595596345681; Fri, 24 Jul 2020 06:12:25 -0700 (PDT)
X-Google-Original-From Romain Perier <gmailemailhere>
MIME-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mYCpIKhGyMATD0i+"
Content-Disposition inline
User-Agent Mutt/1.10.1 (2018-07-13)
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1615281
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 51
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Fri, 24 Jul 2020 15:12:22 +0200
X-Original-Message-ID <20200724131222.GA20639@hp-probook-450>
X-Original-References <159245605342.407.6332206929547963206.reportbug@debian> <874kqx7ei3.fsf@collabora.com> <20200722191115.GA28942@taurus.defre.kleine-koenig.org> <159245605342.407.6332206929547963206.reportbug@debian> <87eep34ae0.fsf@collabora.com> <159245605342.407.6332206929547963206.reportbug@debian> <87eep34ae0.fsf@collabora.com>
Xref csiph.com linux.debian.bugs.dist:1019131 linux.debian.kernel:67589

Cross-posted to 2 groups.

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Wed, Jul 22, 2020 at 03:28:39PM -0400, Gabriel Krisman Bertazi wrote:

Hi,

Well, after an analyze on my side, the EFI mode is detected based on the EFI stub, right ?
Then the kernel populates the FDT with EFI properties into its own address space (based on
what was previously found from the stub). Kexec simply does not preserve the EFI mode at
all for arm64, it is only present for x86.

With the original debian patch, we suppose that the "secure-boot" property will always be
set in the FDT, simply because this information should be found in the EFI stub (unset,
disabled, enabled, etc...), so the corresponding FDT property will always have a value and
will always be present. So assume that it is always the case is correct, imho.

Now, if the EFI stubs informations are not passed to the second stage
kernel, either nor "system table" or "secure-boot" or the rest will be
found, explaining the issue of the first comment (read the first comment
it is "System table" that is not found).

We should have a "setup_efi_info" like it is the case in the kexec-tools
code base for x86, except we should have something similar for arm64.

Regards,
Romain

Back to linux.debian.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Bug#963033: linux-image-arm64: kexec loses EFI system tables with Debian kernels Da Xue <da+debianbug@lessconfused.com> - 2020-06-18 07:00 +0200
  Bug#963033: linux-image-arm64: kexec loses EFI system tables with Debian kernels Gabriel Krisman Bertazi <krisman@collabora.com> - 2020-06-26 22:40 +0200
    Bug#963033: linux-image-arm64: kexec loses EFI system tables with Debian kernels Uwe Kleine-König <uwe@kleine-koenig.org> - 2020-07-22 21:30 +0200
      Bug#963033: linux-image-arm64: kexec loses EFI system tables with Debian kernels Gabriel Krisman Bertazi <krisman@collabora.com> - 2020-07-22 21:40 +0200
        Bug#963033: linux-image-arm64: kexec loses EFI system tables with Debian kernels Romain Perier <romain.perier@gmail.com> - 2020-07-24 15:20 +0200

csiph-web