Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3290931rwd; Sat, 3 Jun 2023 02:25:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7XJb6Rn7abueDqNRDRnUKzCSxbUQAmoOsJoYbprJhX6JryndzE/mbvFR2HrGWnx7a1ODYr X-Received: by 2002:a05:6870:1727:b0:19e:a0df:414a with SMTP id h39-20020a056870172700b0019ea0df414amr4844358oae.25.1685784324783; Sat, 03 Jun 2023 02:25:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685784324; cv=none; d=google.com; s=arc-20160816; b=xbTQzwzMvsPgNjYRzbdribKaLHGxpAQzUC/hUsujlwvShzil+4/bNHwHMN5Bq0s7/u gOtXFcQbN4SfMTn83zt1GBYtdw8mgqBH9Y9FMcKyAKQo2lUU8FxZilPY78TfPh8ig4bR AqSkXRZ0wgB4KspU2pbX+rDtw/LhUOHNxce0z/H/FRU7rIvJveKPZAjgcPl+nzEUwIhZ 7ebHPrxNTkv0yZFB+dRICFXcc1BmikTb5UPhwMLKF1rrBx765tg7d8bJ3aTM9JkneYkA iGfyq1jXvR74x4Xf/xZymdTQRM52oNegOx+4fWV1kCwzqQpwEje4p4P7Afx8otAkJimY zfcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=O5ZZccEjOJDauUyUc86UqVR1EPzXqg2YfD93ZA1ljqc=; b=Z8ADfHo/mLqiNFz48RJAi7yT2mA9Og0DD7hTFe/SBYfTDHVBQ9AMYC23KGkTLOuVTr uQ9IMLMSw3/gwpf3GUs61KY4PcQErtcUgjjPkvtmOr6lZHSdYz66JMxuQMbu11YDZhn6 K1iNU2HNkZD/ZJ8OdWIqndzaH3PHtgw9CShJBU9wd790nEq2E2iF1Ze6vZu1boYiAECR bUnVDvhKpDhPSj4qnQZt4QVXbKjKRONhhiyr3/sGITJyqK9uydTWGWXsXbUDM7e+T4DM rdMqWeOjN0g3pBAv7MuDSkuOcG43fjnxu2k5qbq12HjFbMmf3npKLjKcxhA+xEOCRgS8 gKHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=qI0nJsNW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jk17-20020a170903331100b001ac896ff65dsi2200715plb.480.2023.06.03.02.25.09; Sat, 03 Jun 2023 02:25:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=qI0nJsNW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229845AbjFCJW7 (ORCPT + 99 others); Sat, 3 Jun 2023 05:22:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229564AbjFCJW5 (ORCPT ); Sat, 3 Jun 2023 05:22:57 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 325241BB for ; Sat, 3 Jun 2023 02:22:56 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3f6d38a140bso21915905e9.1 for ; Sat, 03 Jun 2023 02:22:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685784174; x=1688376174; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=O5ZZccEjOJDauUyUc86UqVR1EPzXqg2YfD93ZA1ljqc=; b=qI0nJsNWcHPPAlmCysrUhMrmWKr27qMxZO5HMUxwnyK+gpI+LPc6MlMrzrSyF3ZCtk 1Hft1SoBsmWFRXSmyJaSjpGBY1iimxIJH/04hSrN4Th377wHgQseNGGv/rWbfnir1d1b rJS2HdlJfYGXG8kTkozPEzTSIv6nc/5+/qD4Zt2zJbW/b8PzbGyxeDutsZa65rtWK1mB wF6dbclJzCRVzB6/vtbHfCHojqL3dxpFyi4bePqUmEHNfPWGwjMVzXviopAkC0UeA1zb u8SQESCLxYrVytCtxsfz9subGlJKQtTgJptNGa8pProfb38gx8d1k1L625HFWncg2VZ4 Mbww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685784174; x=1688376174; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=O5ZZccEjOJDauUyUc86UqVR1EPzXqg2YfD93ZA1ljqc=; b=b/lJtdDP+YrHYI+CO3JPYDpnV0raP0BhC6Z4pvZuLE076X/bfLcE5VfJkalHexgWbf pG3mZ7g5BJmtd4zteDVjh7Iu+HTrpiffjNHQZm86K60Y9f6LA9ghN0i4OQx3nwNNLs0J mR+pjbvQfsttdDNGOm9fEHte4D+iUXzDlNFIOHkuMIcc792nATRYEYYIZx8Ca4LRsGZy +epPsW2dqOUyCU0ytVYIN5uCrT7DpGaP7QIjy+JtTJlGdbRUfDq74PswsiqDZVdG0+lo RLUIuMU2xPVpPQUivScdmsY6SwhZEoObzlHwdhM7lBCIoOGdDeXoQKKOeAHHLd0xYsT5 1VkQ== X-Gm-Message-State: AC+VfDxIAYJw6XX0jZNRUDhqLF8C5jjRdsb+xLOXoUb9nZ/4RmSNU1XL hwLBt6nQ9nySQ3LrnYzLhTI= X-Received: by 2002:a1c:4c0d:0:b0:3f7:5e1:f3fd with SMTP id z13-20020a1c4c0d000000b003f705e1f3fdmr4008232wmf.5.1685784174328; Sat, 03 Jun 2023 02:22:54 -0700 (PDT) Received: from [192.168.2.30] (85-70-151-113.rcd.o2.cz. [85.70.151.113]) by smtp.gmail.com with ESMTPSA id l5-20020a7bc445000000b003f6042d6da0sm4431638wmi.16.2023.06.03.02.22.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 03 Jun 2023 02:22:53 -0700 (PDT) Message-ID: Date: Sat, 3 Jun 2023 11:22:52 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.11.0 Subject: Re: [PATCH 0/5] Support kdump with LUKS encryption by reusing LUKS volume key Content-Language: en-US To: Eric Biggers , Coiby Xu Cc: kexec@lists.infradead.org, Baoquan He , x86@kernel.org, dm-devel@redhat.com, Pingfan Liu , linux-kernel@vger.kernel.org, Dave Hansen , Kairui Song , Jan Pazdziora , Thomas Staudt , Vitaly Kuznetsov , Dave Young References: <20230601072444.2033855-1-coxu@redhat.com> <20230602213452.GC628@quark.localdomain> From: Milan Broz In-Reply-To: <20230602213452.GC628@quark.localdomain> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/2/23 23:34, Eric Biggers wrote: > On Thu, Jun 01, 2023 at 03:24:39PM +0800, Coiby Xu wrote: >> [PATCH 0/5] Support kdump with LUKS encryption by reusing LUKS volume key > > The kernel has no concept of LUKS at all. It provides dm-crypt, which LUKS > happens to use. But LUKS is a userspace concept. > > This is a kernel patchset, so why does it make sense for it to be talking about > LUKS at all? Perhaps you mean dm-crypt? Exactly. I had the same comment almost a year ago... and it still applies: https://lore.kernel.org/all/c857dcf8-024e-ab8a-fd26-295ce2e0ae41@gmail.com/ Anyway, please fix the naming before this patchset can be read or reviewed! LUKS is user-space key management only (on-disk metadata); the kernel has no idea how the key is derived or what LUKS is - dm-crypt only knows the key (either through keyring or directly in the mapping table). Polluting kernel namespace with "luks" names variables is wrong - dm-crypt is used in many other mappings (plain, bitlocker, veracrypt, ...) Just use the dm-crypt key, do not reference LUKS at all. Milan