From patchwork Wed Oct 2 16:07:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Ryabinin X-Patchwork-Id: 13820016 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D659CF6D3E for ; Wed, 2 Oct 2024 16:09:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9F3AC6B0131; Wed, 2 Oct 2024 12:09:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9CD8A6B013E; Wed, 2 Oct 2024 12:09:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 733AB6B0131; Wed, 2 Oct 2024 12:09:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 4A4D56B00E9 for ; Wed, 2 Oct 2024 12:09:02 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 9DEC8A0B08 for ; Wed, 2 Oct 2024 16:09:01 +0000 (UTC) X-FDA: 82629146082.02.C8F7103 Received: from forwardcorp1d.mail.yandex.net (forwardcorp1d.mail.yandex.net [178.154.239.200]) by imf11.hostedemail.com (Postfix) with ESMTP id BAA9040021 for ; Wed, 2 Oct 2024 16:08:59 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=yandex-team.com header.s=default header.b=qPH+N7ke; spf=pass (imf11.hostedemail.com: domain of arbn@yandex-team.com designates 178.154.239.200 as permitted sender) smtp.mailfrom=arbn@yandex-team.com; dmarc=pass (policy=none) header.from=yandex-team.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1727885169; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=jFKAUNHTYomsdDtZ7yDs1yniRUoGKOv+DuJ1bapdrNI=; b=sCc1MDa0BiEu9YLEhh8jk8mkXyaVY8mLRklUweMMC7LgC5y6onCP4MZ+wB7z3kVUolSxlc V6J0rCuBU5ua6MrlCydgVcb7QvDxKgmdTpaUaWUH3OPo1jRNTTpsHdNstNvDaCD4lFFGf7 9PA5rjtRpSnsS6ccnJjOLh9l0GN0AlY= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=yandex-team.com header.s=default header.b=qPH+N7ke; spf=pass (imf11.hostedemail.com: domain of arbn@yandex-team.com designates 178.154.239.200 as permitted sender) smtp.mailfrom=arbn@yandex-team.com; dmarc=pass (policy=none) header.from=yandex-team.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1727885169; a=rsa-sha256; cv=none; b=ceKwVzzf/I2iuKGjvSRe+JgiQvv/y++yhKS3g3LmvNaSIr+zIPpuqm4QyXVf3R3BA9UUkn 1IYaI4DeAeEacy1d4zs1YmJgsphztYdw8mozkumaavxZiQJ07ucb3vuG8DjbSWRDJHrdDN 7HX9KySTDxgjDVMk/8r+N7GdEr2ks5o= Received: from mail-nwsmtp-smtp-corp-main-56.klg.yp-c.yandex.net (mail-nwsmtp-smtp-corp-main-56.klg.yp-c.yandex.net [IPv6:2a02:6b8:c42:b1cb:0:640:2a1e:0]) by forwardcorp1d.mail.yandex.net (Yandex) with ESMTPS id 41C2460A74; Wed, 2 Oct 2024 19:08:58 +0300 (MSK) Received: from dellarbn.yandex.net (unknown [10.214.35.248]) by mail-nwsmtp-smtp-corp-main-56.klg.yp-c.yandex.net (smtpcorp/Yandex) with ESMTPSA id Z8emWD2IhiE0-cMZ3bEDP; Wed, 02 Oct 2024 19:08:57 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.com; s=default; t=1727885337; bh=jFKAUNHTYomsdDtZ7yDs1yniRUoGKOv+DuJ1bapdrNI=; h=Message-ID:Date:In-Reply-To:Cc:Subject:References:To:From; b=qPH+N7keP7fgNy1yVdHKgLdk6Vbwy5VUI37bXZuORZnoZCxar0lhhrLgbGMX/rOtr LTEiQPxkzr/9Y1AEX6RNxsh7BzoT/zDNJBuWYiGmRAwpny8Drj92A+n8avkCV2ys3e +ZVTj+7zFN+pwSdGU0uASrLQaonWOGPG+JWQX8yM= From: Andrey Ryabinin To: linux-kernel@vger.kernel.org Cc: Alexander Graf , James Gowans , Mike Rapoport , Andrew Morton , linux-mm@kvack.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Eric Biederman , kexec@lists.infradead.org, Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , linux-trace-kernel@vger.kernel.org, valesini@yandex-team.com, Andrey Ryabinin Subject: [RFC PATCH 3/7] [hack] purgatory: disable purgatory verification. Date: Wed, 2 Oct 2024 18:07:18 +0200 Message-ID: <20241002160722.20025-4-arbn@yandex-team.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241002160722.20025-1-arbn@yandex-team.com> References: <20241002160722.20025-1-arbn@yandex-team.com> MIME-Version: 1.0 X-Yandex-Filter: 1 X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: BAA9040021 X-Stat-Signature: 9k3y3gdneqej3ms1dqrgpijqa68pbb8d X-Rspam-User: X-HE-Tag: 1727885339-360168 X-HE-Meta: U2FsdGVkX1+olKKH5zRH6oZj5H8nvRatPWpmsgi23n3DwPFkqb1yWmYypKxmIfrQgj8qRJovDfYBMW+oOO6h4I/ZTCr5fhSeGiK3r7aLRlaOTlO8nXU2R5SmCzDIKJxSuGBPARnkuXwBE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bx2JNkyEopN6iQuEuHTFj0GRmC1dfXofwGWUr58sMjGqAJc33fvIF0Flc2d1MTAOu/XulVpAbj4Pp7fgbWUqsm3ZqZwbJox7Y9h/mOn86txnKFn985p5CSbgkMqaC74JWGE2EJO/a608GfOV/9dOW X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: 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 --- 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 */