From patchwork Thu May 4 15:07:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milan Broz X-Patchwork-Id: 9712115 X-Patchwork-Delegate: snitzer@redhat.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1361660362 for ; Thu, 4 May 2017 15:07:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 04B8828639 for ; Thu, 4 May 2017 15:07:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB90328653; Thu, 4 May 2017 15:07:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9F0F228639 for ; Thu, 4 May 2017 15:07:55 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B8277C04B95A; Thu, 4 May 2017 15:07:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com B8277C04B95A Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=dm-devel-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com B8277C04B95A Authentication-Results: mx1.redhat.com; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kt+xSlDd" Received: from colo-mx.corp.redhat.com (unknown [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 802777D4F1; Thu, 4 May 2017 15:07:52 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id AC7625EC63; Thu, 4 May 2017 15:07:49 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v44F7mKD007791 for ; Thu, 4 May 2017 11:07:48 -0400 Received: by smtp.corp.redhat.com (Postfix) id 3561517963; Thu, 4 May 2017 15:07:48 +0000 (UTC) Delivered-To: dm-devel@redhat.com Received: from mx1.redhat.com (ext-mx01.extmail.prod.ext.phx2.redhat.com [10.5.110.25]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2D69E17990 for ; Thu, 4 May 2017 15:07:46 +0000 (UTC) Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3552880E7D for ; Thu, 4 May 2017 15:07:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 3552880E7D Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=gmazyland@gmail.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 3552880E7D Received: by mail-wm0-f67.google.com with SMTP id y10so3950709wmh.0 for ; Thu, 04 May 2017 08:07:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=yQcaaQClV7sOOVOQhVxgMtYArkLK72a9mEk37jk6GH4=; b=kt+xSlDdG9R/z+U8Yom0rTnBOGqT/ZR9iLCZLraQbQXtiZTNoDdkieLX6hk6omL8RU jw+4c4af+N8ijN0pGq77DHdKMdj5TfcAubbmO9uGyflT8Ajjkrt9Ug0goJsJKosrq3Bb ymrWnz3FtHbCQtcM6CQnSjWXu8Zdp1GHk/bt+ezjJ9Xc3ZeGSqbXSy6Blv1JzoB4bWpS uagI/TuEry4OgVGT9V04BunoHh7jrEXItD89CbqKP7BmRD6M4Ollr47l5aV2UR/n56by pWFOOfLQHV+WQYwwFj33gSbn3CyXG8WjU8JmAvaTVpzoEZrG0W+VT3CwMNMhyD0XPY+a UFXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=yQcaaQClV7sOOVOQhVxgMtYArkLK72a9mEk37jk6GH4=; b=NjKmWuaHqKR8VADV1G9nqKNVqTqpQQj8vsAEaFDxMPRrmnns16+kikVbAk41UETfoT Yd7RXofnkVXUrKPuJiLljm8etCIiT2I34aZG8WsTk2PFo/RE8IYYxCxGfpia28w4zo2y 6cxzgyJ45tLsa9S/8h6jQU8FUMNjRCVy+1hvviIPMpxrLkWO3OPTszJDGW0+q/KOgCt1 eLFn1xvR7C8jtdwcaLt+NvpkUjtDqHe5j6N1X8Wi7s/t/gUBXwjhsuHLPtTQ8lXAJlDS 29OSaYZt594AsbRCj71JDjwlQgt4ZXWHFyauxM1y9pYwnoDE29nyMeiikanDyPe/JVwz IqAQ== X-Gm-Message-State: AODbwcBRsBvgsljkqmejgHydnhG1Xz/EVK2G7qYr0hZsT5CAdCtxgVGL y/9brYNlKlOq++lU X-Received: by 10.28.143.135 with SMTP id r129mr2153629wmd.54.1493910463645; Thu, 04 May 2017 08:07:43 -0700 (PDT) Received: from merlot.mazyland.net (dynamic-2a00-1028-96c1-4f6a-740e-137c-bba9-27a9.ipv6.broadband.iol.cz. [2a00:1028:96c1:4f6a:740e:137c:bba9:27a9]) by smtp.googlemail.com with ESMTPSA id w17sm1835963wme.13.2017.05.04.08.07.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 May 2017 08:07:42 -0700 (PDT) From: Milan Broz To: dm-devel@redhat.com Date: Thu, 4 May 2017 17:07:25 +0200 Message-Id: <20170504150725.9737-1-gmazyland@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Thu, 04 May 2017 15:07:45 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Thu, 04 May 2017 15:07:45 +0000 (UTC) for IP:'74.125.82.67' DOMAIN:'mail-wm0-f67.google.com' HELO:'mail-wm0-f67.google.com' FROM:'gmazyland@gmail.com' RCPT:'' X-RedHat-Spam-Score: -1.61 (BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, RCVD_IN_SORBS_SPAM, SPF_PASS) 74.125.82.67 mail-wm0-f67.google.com 74.125.82.67 mail-wm0-f67.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.25 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: dm-devel@redhat.com Cc: Milan Broz Subject: [dm-devel] [PATCH] dm-crypt: add Kconfig switch to enable authenticated mode. X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Thu, 04 May 2017 15:07:54 +0000 (UTC) X-Virus-Scanned: ClamAV using ClamSMTP The switch just enables dm-integrity module but it makes configuration more logic and user friendly. Signed-off-by: Milan Broz --- drivers/md/Kconfig | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/md/Kconfig b/drivers/md/Kconfig index 3e96fccbbdb2..134f885c6be1 100644 --- a/drivers/md/Kconfig +++ b/drivers/md/Kconfig @@ -285,6 +285,17 @@ config DM_CRYPT If unsure, say N. +config DM_CRYPT_AEAD + tristate "Crypt target support for authenticated disk encrytion modes" + depends on DM_CRYPT + select DM_INTEGRITY + ---help--- + This option enables dm-integrity target that is required in dm-crypt + for support of authenticated encryption modes (it enables additional + per-sector metadata for authentication tags). + + If unsure, say N. + config DM_SNAPSHOT tristate "Snapshot target" depends on BLK_DEV_DM