From: Andrey Ryabinin <arbn@yandex-team.com>
To: linux-kernel@vger.kernel.org
Cc: Alexander Graf <graf@amazon.com>,
James Gowans <jgowans@amazon.com>,
Mike Rapoport <rppt@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
linux-mm@kvack.org, Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
Eric Biederman <ebiederm@xmission.com>,
kexec@lists.infradead.org, Steven Rostedt <rostedt@goodmis.org>,
Masami Hiramatsu <mhiramat@kernel.org>,
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
linux-trace-kernel@vger.kernel.org, valesini@yandex-team.com,
Andrey Ryabinin <arbn@yandex-team.com>
Subject: [RFC PATCH 3/7] [hack] purgatory: disable purgatory verification.
Date: Wed, 2 Oct 2024 18:07:18 +0200 [thread overview]
Message-ID: <20241002160722.20025-4-arbn@yandex-team.com> (raw)
In-Reply-To: <20241002160722.20025-1-arbn@yandex-team.com>
Kstate changes data in kexec segments after the calculation
of the checksum, so we don't pass purgatroy verification stage.
Disable it for now. Proper solution will be later, in next versions of
the patchset.
Signed-off-by: Andrey Ryabinin <arbn@yandex-team.com>
---
arch/x86/purgatory/purgatory.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/x86/purgatory/purgatory.c b/arch/x86/purgatory/purgatory.c
index aea47e7939637..cdec5f21282a7 100644
--- a/arch/x86/purgatory/purgatory.c
+++ b/arch/x86/purgatory/purgatory.c
@@ -45,6 +45,8 @@ void purgatory(void)
{
int ret;
+ if (IS_ENABLED(CONFIG_KSTATE))
+ return;
ret = verify_sha256_digest();
if (ret) {
/* loop forever */
--
2.45.2
next prev parent reply other threads:[~2024-10-02 16:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-02 16:07 [RFC PATCH 0/7] KSTATE: a mechanism to migrate some part of the kernel state across kexec Andrey Ryabinin
2024-10-02 16:07 ` [RFC PATCH 1/7] kstate: Add kstate - a mechanism to migrate some " Andrey Ryabinin
2024-10-02 16:07 ` [RFC PATCH 2/7] kexec: Hack and abuse crashkernel for the kstate's migration stream Andrey Ryabinin
2024-10-02 16:07 ` Andrey Ryabinin [this message]
2024-10-02 16:07 ` [RFC PATCH 4/7] mm/memblock: Add MEMBLOCK_PRSRV flag Andrey Ryabinin
2024-10-02 16:07 ` [RFC PATCH 5/7] kstate: Add mechanism to preserved specified memory pages across kexec Andrey Ryabinin
2024-10-02 16:07 ` [RFC PATCH 6/7] kstate, test: add test module for testing kstate subsystem Andrey Ryabinin
2024-10-02 16:07 ` [RFC PATCH 7/7] trace: migrate trace buffers across kexec Andrey Ryabinin
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=20241002160722.20025-4-arbn@yandex-team.com \
--to=arbn@yandex-team.com \
--cc=akpm@linux-foundation.org \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=ebiederm@xmission.com \
--cc=graf@amazon.com \
--cc=hpa@zytor.com \
--cc=jgowans@amazon.com \
--cc=kexec@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=mhiramat@kernel.org \
--cc=mingo@redhat.com \
--cc=rostedt@goodmis.org \
--cc=rppt@kernel.org \
--cc=tglx@linutronix.de \
--cc=valesini@yandex-team.com \
--cc=x86@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