Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2401102ybe; Tue, 3 Sep 2019 12:17:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqzjUTQgpYMdUoV+N61zu7MLKneD+HsxhwoUFzUSCJPREJJktlKB6lNgmavYlvcUOBwtK9JS X-Received: by 2002:a17:902:860b:: with SMTP id f11mr36458052plo.48.1567538232186; Tue, 03 Sep 2019 12:17:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567538232; cv=none; d=google.com; s=arc-20160816; b=eaTLzK60xARAAi/Bq599PYzwniEvgbd87wO4rFbUWJpGGl7O/IIqBMIFf7MGgwCgsS 6GijTa9wn0qOsBpftzuY7eB/IygKf2MQ8wf3rCqC3haRqw1sBmmFQ3hNCB4vUtLA5cCa izT9d8akGXZ5wTHupI06I+qnEz+8iV10o/FmZakSswRIoF+ovN1K1bvnvWcqE45qn52R Xow1a0q0azLKXt79mwUQVkU6MCe3W6yErDjZYvterzfRJRkreawo6zz9tILzWDAjRhKh Ybh87X6KsKjOmkZkshSnDABa9ws0kZASQS2PrKD8A2ewGeMwy7ksf9Wc1vg4q1lhwY8J C4Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=gBst/PzcKHazEBTzFOINHVe/fZC6+oHesCadX7XbBW0=; b=vg17IzMMOLkm+VcvU6CF77Mk250SU1VbspVnpLopvsDZKPzSu3Mn9sCZ8X6WX1M4qa +9ZzGGdIc9HtKhaUZ2r+bSTitttVCzfhGB9Nw/anFlgW9QrjU6+vcTJTEsfqubH53wJA K9iY1q0rFMmEhr28YLOCW4Eoy/paVsfNkiNEju04NUb9GP2rq4TIhT1yumdSbPsVZLSi NjfBHLXR1cghzx+8gPp9gsRxBf9jlnBXPR6itduzbr+0grel4yp/MEEFge6+kpTQkydE w7QlNrT0nY8PfsZn1+aqB5tdH6jUZNodkz//sVb4RaEGP744hhgQdpges3fCjVF0huzp tU/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QPF2NDhY; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k133si15233867pgc.425.2019.09.03.12.16.55; Tue, 03 Sep 2019 12:17:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QPF2NDhY; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726192AbfICTQv (ORCPT + 99 others); Tue, 3 Sep 2019 15:16:51 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:44443 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726090AbfICTQu (ORCPT ); Tue, 3 Sep 2019 15:16:50 -0400 Received: by mail-wr1-f65.google.com with SMTP id 30so7708607wrk.11 for ; Tue, 03 Sep 2019 12:16:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gBst/PzcKHazEBTzFOINHVe/fZC6+oHesCadX7XbBW0=; b=QPF2NDhYwyppH6Ky42ZPl3wJNJ0hG3VrH/qMWKJNT7kXCTnpRDLUfCVs1QYDGM5eaI 46oNdYPrKSnwq3Ju/RtVX4uw+8ZgLxmEoj6+V78IsZx4exsmD27Iu2xF3zZberjXTVw2 vL2KikBY1kzZzgt1J0zx0PKDw8/oP/CwwCKvmnzL/0cxt9x2XYP1TeprVhmSycNd4oi9 bMooHOJTblHagb7LIY7ZaPQAX7yHJKqXJcvUGYtHQpqtQxoNpLkw/TYGZ5spqbsheTBs y5HsHbeJOdMN7+b7bzuMSUg1l4qCURo2ACak2V1hnoFeeAOBTdoWzcPni02eATquQePb ljfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gBst/PzcKHazEBTzFOINHVe/fZC6+oHesCadX7XbBW0=; b=X6PBoF6JsMKbzZ3sgJ/Nj81w64LHvKrzQi2AkwFs2vQekMGijWXsQp9bqz2Kk8KDTA DNOrh1IJ+wQ5QQZijmSpQPByOt4Kz5mR00EqBH4kde10/AtbF8/cVWVGuP54Gm+ZYqnt mjdUFe4etiENO2koqugYr8CNcVjwqcphM9HbhPeOG2JsQG8HQObIy3Fv2L4fHGeUCfcu uBYz+o/SFcuDLv1sjSgydnGuRsifslZCTDmN7SrPUw/98xPHWE0HOPqC/rcS7eYyOlU3 1oYPWBo1M2r6dO7hiWlPP+CvV6NVyLgRdZYAric/IW0YHQQI+LB7c7UHVmk4eNdb4+GR ppwg== X-Gm-Message-State: APjAAAW2bUQxQv3kAtMlW7Ldv6tAtIQs8wAcBBINVOVmZ3hMe4bPJgKU Ny4tLJU14t4bYajwOsR869dY/iOiknCyzcgFG3KUsw== X-Received: by 2002:adf:9e09:: with SMTP id u9mr45284225wre.169.1567538208948; Tue, 03 Sep 2019 12:16:48 -0700 (PDT) MIME-Version: 1.0 References: <20190819141738.1231-1-ard.biesheuvel@linaro.org> <20190819141738.1231-6-ard.biesheuvel@linaro.org> <20190903185537.GC13472@redhat.com> In-Reply-To: <20190903185537.GC13472@redhat.com> From: Ard Biesheuvel Date: Tue, 3 Sep 2019 12:16:37 -0700 Message-ID: Subject: Re: [PATCH v13 5/6] md: dm-crypt: switch to ESSIV crypto API template To: Mike Snitzer Cc: "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" , Herbert Xu , Eric Biggers , linux-fscrypt@vger.kernel.org, Gilad Ben-Yossef , device-mapper development , Milan Broz Content-Type: text/plain; charset="UTF-8" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, 3 Sep 2019 at 11:55, Mike Snitzer wrote: > > On Mon, Aug 19 2019 at 10:17am -0400, > Ard Biesheuvel wrote: > > > Replace the explicit ESSIV handling in the dm-crypt driver with calls > > into the crypto API, which now possesses the capability to perform > > this processing within the crypto subsystem. > > > > Note that we reorder the AEAD cipher_api string parsing with the TFM > > instantiation: this is needed because cipher_api is mangled by the > > ESSIV handling, and throws off the parsing of "authenc(" otherwise. > > > > Signed-off-by: Ard Biesheuvel > > I really like to see this type of factoring out to the crypto API; > nicely done. > > Acked-by: Mike Snitzer > > Herbert, please feel free to pull this, and the next 6/6 patch, into > your crypto tree for 5.4. I see no need to complicate matters by me > having to rebase my dm-5.4 branch ontop of the crypto tree, etc. > Thanks Mike. There is no need to rebase your branch - there is only a single dependency, which is the essiv template itself, and the patch that adds that (#1 in this series) was acked by Herbert, specifically so that it can be taken via another tree. The crypto tree has no interdependencies with this template, and the other patches in this series are not required for essiv in dm-crypt. If you feel it is too late in the cycle, we can defer to v5.5, but in this case, we should align with Eric, which will depend on the essiv template for fscrypt as well. In any case, it is up to you, Eric and Herbert to align on this. For me, it doesn't really matter whether this lands in v5.4 or v5.5. There is some followup work based on this, but that is further out still. Thanks, Ard.