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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6C8041112252 for ; Thu, 2 Apr 2026 01:50:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=4rWHn8ZLLaNhlcOKvyDiXP9A00oZt/Dbtw9Zn8GCrdY=; b=E9heD6uxLkOEbj4Byjbr/FzBkx H3IOm8+itASuFv5qkEnY4VcuKSrND/LWD8CJJls/FPwbZrJtYHjww/qyktKNF7g97TM6XuDj4+3i7 Fgp5k0u0rN2BaJ64iVgMcO0XreXuJI9WJ4aSpFssNwUKslpUW/m5tBFykau0/zNQf0F9pegEXEd3U s/oa0AV1mMKcH4Am42PmQJRkVXwlabIvG+TWMAkfmCIgKS43v9wSFL/IWN0h35ehW4Li/bPm2c8kZ AqE/rshHfrHoxnU/FO9sv6m0XCINvsIS57my/mT5Qpm+aXhdIAyNekb55zVaOxUb3kEuueQfsolHu 3iGPksrw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1w87Ca-0000000GZWv-0y6H; Thu, 02 Apr 2026 01:50:32 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1w87CQ-0000000GZVo-36vy for kexec@lists.infradead.org; Thu, 02 Apr 2026 01:50:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1775094619; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4rWHn8ZLLaNhlcOKvyDiXP9A00oZt/Dbtw9Zn8GCrdY=; b=QRYuD1PjaTGfm1RgxgNF3yncJKd7G9fjQMcHzZ3mhWWsRKqCGnOet8KvmN1ugfiUIVcDwn mV1IfflBrnGeQTVVMASWKIt5fyTqXqqcjNi0y8gBEKXA5GZngh4TYiGGRp/0HKvewn9Yix HfyMc5UbfcIrO/lAVx2mp7SAVz/CLug= Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-57-n42a_IN-PBOLPyRZcB1Nmw-1; Wed, 01 Apr 2026 21:50:18 -0400 X-MC-Unique: n42a_IN-PBOLPyRZcB1Nmw-1 X-Mimecast-MFC-AGG-ID: n42a_IN-PBOLPyRZcB1Nmw_1775094617 Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3595485abbbso299088a91.2 for ; Wed, 01 Apr 2026 18:50:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775094617; x=1775699417; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4rWHn8ZLLaNhlcOKvyDiXP9A00oZt/Dbtw9Zn8GCrdY=; b=JezzJbT6VFTVfmWQHoGAoTthgRNbYZUuclltaLb+KWXpA60osmese3wfj8k01N07Jq Hh8emeaoePABDJLK+hGXy/Lj86U2QHKXnyd6iXoKOY/1pghduSXrsTGeGjlOfsEQKlQp xPN4CKWVcpxdRcFTOB2UuiV0oeeRwammHuZHo26lypy7Mscm71zUSlYynm6EbOm4nPIm 3zpErC7RmQL+hivENN276YJWCOQX9C8Gh62rme5Qi8Zcpb055jC8DON29NaDpR4jdQX9 hxvZEUolMOPLyBGJRKN/a4pnkhurA6i2g5Vk0bwpxt6/zmMrZXdYFzMMyaiIvrOKmbiy +4EQ== X-Gm-Message-State: AOJu0YzwuEatQ8GA/VtB23LNWff/3NfK9f3dGTPNtSNEtQ65cEVBlFTC Uf67/GAKgl6KiwxpiQh6RyA6Dw+iifDQ1NIcwddfWHbi4vYRuDAaX8jvy+9PZY9V69IG9N3W81h nbpxNPlvmWkVpnAmVClVAx1YY85t9xXQBPTVeRrvNCOBPMknCYxI3Usj6P4R9fA== X-Gm-Gg: ATEYQzzXe5+k8ozs8HyXZffWOHxSvoQcj5Zn7tfJ1UDzbNNZoG7iOGxXIi3pAbqeL7k XVPKuOgaweArnjI6Y1meAWtk5MLqZmwRuUBJtNZiB/K+rGtCXl5bzlrRvAgwsf2JbHM8Yii6Ygm fWdlZ4vL1qlSevmDGUbHOe/f+f8s6IocvNeKVQXOP0nbAib8jk7cmTRiX3BlFw9ypcJI4Tm1fn4 L/OpAqeS1/sGLy3HBpNV53+1TQZ6BfxYAKXOKvJyFUrGAdfMTPExx5nwd52lwh59rBGpIWdsctR P2qHPmQp90fvGeDWjiuzOkvLdjv3Cv+RGbX9FF0Pl0SyptdUz+G1OLL94CRqXIW4cqCL+iRMh7Z s7YQREHH9Gw== X-Received: by 2002:a17:90a:d406:b0:35d:a843:6b1f with SMTP id 98e67ed59e1d1-35dc6e5f016mr5377544a91.11.1775094616931; Wed, 01 Apr 2026 18:50:16 -0700 (PDT) X-Received: by 2002:a17:90a:d406:b0:35d:a843:6b1f with SMTP id 98e67ed59e1d1-35dc6e5f016mr5377491a91.11.1775094616366; Wed, 01 Apr 2026 18:50:16 -0700 (PDT) Received: from localhost ([49.65.225.51]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-35dbe95abc3sm6806610a91.15.2026.04.01.18.50.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Apr 2026 18:50:15 -0700 (PDT) Date: Thu, 2 Apr 2026 09:44:21 +0800 From: Coiby Xu To: Rob Herring Cc: kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, devicetree@vger.kernel.org, Arnaud Lefebvre , Baoquan he , Dave Young , Kairui Song , Pingfan Liu , Andrew Morton , Krzysztof Kozlowski , Thomas Staudt , Sourabh Jain , Will Deacon , "Christophe Leroy (CS GROUP)" , Catalin Marinas , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , Saravana Kannan , open list Subject: Re: [PATCH v5 3/3] arm64,ppc64le/kdump: pass dm-crypt keys to kdump kernel Message-ID: References: <20260225060347.718905-1-coxu@redhat.com> <20260225060347.718905-4-coxu@redhat.com> MIME-Version: 1.0 In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: ecqTErMXEoV67wnd3zzRpQndSpK4OoqRdmeOLyu9_Sg_1775094617 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260401_185022_878306_D8E43611 X-CRM114-Status: GOOD ( 19.74 ) X-BeenThere: kexec@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "kexec" Errors-To: kexec-bounces+kexec=archiver.kernel.org@lists.infradead.org On Mon, Mar 30, 2026 at 06:44:15AM -0500, Rob Herring wrote: >On Wed, Feb 25, 2026 at 12:04 AM Coiby Xu wrote: >> >> CONFIG_CRASH_DM_CRYPT has been introduced to support LUKS-encrypted >> device dump target by addressing two challenges [1], >> - Kdump kernel may not be able to decrypt the LUKS partition. For some >> machines, a system administrator may not have a chance to enter the >> password to decrypt the device in kdump initramfs after the 1st kernel >> crashes >> >> - LUKS2 by default use the memory-hard Argon2 key derivation function >> which is quite memory-consuming compared to the limited memory reserved >> for kdump. >> >> To also enable this feature for ARM64 and PowerPC, the missing piece is >> to let the kdump kernel know where to find the dm-crypt keys which are >> randomly stored in memory reserved for kdump. Introduce a new device >> tree property dmcryptkeys [2] as similar to elfcorehdr to pass the >> memory address of the stored info of dm-crypt keys to the kdump kernel. >> Since this property is only needed by the kdump kernel, it won't be >> exposed to user space. >> >> [1] https://lore.kernel.org/all/20250502011246.99238-1-coxu@redhat.com/ >> [2] https://github.com/devicetree-org/dt-schema/pull/181 >> >> Cc: Arnaud Lefebvre >> Cc: Baoquan he >> Cc: Dave Young >> Cc: Kairui Song >> Cc: Pingfan Liu >> Cc: Andrew Morton >> Cc: Krzysztof Kozlowski >> Cc: Rob Herring >> Cc: Thomas Staudt >> Cc: Sourabh Jain >> Cc: Will Deacon >> Cc: Christophe Leroy (CS GROUP) >> Signed-off-by: Coiby Xu >> --- >> arch/arm64/kernel/machine_kexec_file.c | 4 ++++ >> arch/powerpc/kexec/elf_64.c | 4 ++++ >> drivers/of/fdt.c | 21 +++++++++++++++++++++ >> drivers/of/kexec.c | 19 +++++++++++++++++++ >> 4 files changed, 48 insertions(+) > >Acked-by: Rob Herring (Arm) Hi Rob, Thanks for acknowledging this device tree patch and also merging the dt-schema PR! -- Best regards, Coiby