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 X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F83BC3A5A3 for ; Wed, 28 Aug 2019 02:21:11 +0000 (UTC) Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E512B20674 for ; Wed, 28 Aug 2019 02:21:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sourceforge.net header.i=@sourceforge.net header.b="cWfJsPPc"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sf.net header.i=@sf.net header.b="ja1aLnYU"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="k98yVcHo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E512B20674 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-f2fs-devel-bounces@lists.sourceforge.net Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1i2naA-0003qq-H1; Wed, 28 Aug 2019 02:21:10 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1i2na9-0003qj-8o for linux-f2fs-devel@lists.sourceforge.net; Wed, 28 Aug 2019 02:21:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=References:Content-Type:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=2Id8G/Xn6V06sAdZYXMptUi6MUxaX2z3h414AQSi5/I=; b=cWfJsPPcre4M7Tv4rlMmxl23Hi EVf0cGPocjLzEX5ndUS5dnhy6RtkEM+/Ri/5bKoGxUSbBDjllgUuVeKhVJXnmRxQTLuALztZ08GjO 7gxWbtbQt1ciDx3DMRyDZEh564cB5EkkI7Nzphe4DrZPB3bw9rN19jRLG05a6d08CqLo=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=References:Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID :Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=2Id8G/Xn6V06sAdZYXMptUi6MUxaX2z3h414AQSi5/I=; b=j a1aLnYU+eLKTPUzmOYlBYkg4vfVoD0Bs4nGYw1bVRToEy53xJNhEuu0/1TexHLWDs8vxU4VukJHyd WjuC8wjaHlBV4GXswZxOnUKFc6RQkdPN/IZ8PSDdlbHNqjl2/3HtTevDZTpQARiYUeAdBAErM3Xjw jYLNA2jas4UzWz4o=; Received: from mailout3.samsung.com ([203.254.224.33]) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) id 1i2na4-000rPg-GZ for linux-f2fs-devel@lists.sourceforge.net; Wed, 28 Aug 2019 02:21:09 +0000 Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20190828022057epoutp03db8c446f45cb8a4bc76f8a83e3303bb2~_9MdRZFi33038330383epoutp03y for ; Wed, 28 Aug 2019 02:20:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20190828022057epoutp03db8c446f45cb8a4bc76f8a83e3303bb2~_9MdRZFi33038330383epoutp03y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1566958857; bh=2Id8G/Xn6V06sAdZYXMptUi6MUxaX2z3h414AQSi5/I=; h=From:To:Cc:Subject:Date:References:From; b=k98yVcHoY5eRWy55whZ8rcavcrMGw1LpHMDptIqy9vdMw+WVazwzt15mo01XkRRd9 7l4/CVj1LA+KD2X9zJQ7pDyqu9or8QDc9Y8Ar0ut0xku1LRrop+z5Ki0aMLe43HoyD 3N5pbfTIZQ6BYehWU3Hx+E4IXA0zFrHfzsrXO79E= Received: from epsnrtp5.localdomain (unknown [182.195.42.166]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20190828022056epcas2p488315cc4e34969caaecc606d9bbd2c6e~_9Mc2Raic1168911689epcas2p4l; Wed, 28 Aug 2019 02:20:56 +0000 (GMT) Received: from epsmges2p1.samsung.com (unknown [182.195.40.181]) by epsnrtp5.localdomain (Postfix) with ESMTP id 46J8c74t4rzMqYkf; Wed, 28 Aug 2019 02:20:55 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p1.samsung.com (Symantec Messaging Gateway) with SMTP id 36.C7.04156.705E56D5; Wed, 28 Aug 2019 11:20:55 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20190828022055epcas2p25525077d0a5a3fa5a2027bac06a10bc1~_9MbUtf8v2048620486epcas2p2Q; Wed, 28 Aug 2019 02:20:55 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190828022055epsmtrp247236feb1b81a6eaa608658d164e62a4~_9MbTgesT1110211102epsmtrp2U; Wed, 28 Aug 2019 02:20:55 +0000 (GMT) X-AuditID: b6c32a45-ddfff7000000103c-c4-5d65e5073e36 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id F0.33.03706.605E56D5; Wed, 28 Aug 2019 11:20:55 +0900 (KST) Received: from KORDO035251 (unknown [12.36.165.204]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190828022054epsmtip1cb959d74740696d9b606a29b76e0110e~_9MbAmhuG2545625456epsmtip1A; Wed, 28 Aug 2019 02:20:54 +0000 (GMT) From: "boojin.kim" To: "'Theodore Y. Ts'o'" Date: Wed, 28 Aug 2019 11:20:53 +0900 Message-ID: <009301d55d47$38606400$a9212c00$@samsung.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AdVdRkQ7u+BKrKHPSQuBNN28o4N3VA== Content-Language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA01Tf0wbZRjOd3e9OybFs6vus6LrThYdE9arFj50qNG5XbL9gb+iMc56KZcW 7a/0WjbUbATXUhiRQXRuhbG5GeNgla3UjQzKXGGSOqBOZGEEt8QxDKBsApuBiNr2WOS/53m+ 5/ne9/3efDSu+pzS0CV2t+iyC1aWXEGc7l6Xn0PdELfrWnqy0O05P4Faf/geRy2/1JLo4mf9 GGqM7yFQZLpBgYKdf+No72QmGmsN4Gh4wadAtdencBSPn6RQ6PplBYqMrEfXrs5j6GDTKIl+ OroFTTbdIVBnJEagwbONJOr5txagA/EuDPlO3QbIWzNPod7gG88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NVaLvbe0Le7f+8lkMXPeHTaLS4vcLV7N+8ZisWfvSRaLy7vmsFkc+d/PaDHj/D4mi7aNXxkt Wnt+slscXxvuIOmxZeVNJo+WzeUe2w6oelw+W+qxaVUnm8eda3vYPDYvqffYveAzk0fTmaPM Hu/3XWXz6NuyitHj8ya5AJ4oLpuU1JzMstQifbsEroxJ9+ayF7TzVJyZ38/awHias4uRg0NC wESidYt7FyMXh5DAbkaJkzPfsHYxcgLFpSS2tu9hhrCFJe63HAGLCwk8Z5T43FQAYrMJaEts Pr6KEcQWEdCQuPr3J1gNs8A0DoldH8RBbGEBI4nWrm4mEJtFQFXiZedFJpC9vAKWEhenyYOE eQUEgdY+YQEJMwvoSbRtZISYIi+x/e0cqAsUJHacfc0IUiICVLLoWRBEiYjE7M425gmMgrOQ DJqFMGgWkkGzkHQsYGRZxSiZWlCcm55bbFhgmJdarlecmFtcmpeul5yfu4kRHPtamjsYLy+J P8QowMGoxMPbwZ8aK8SaWFZcmXuIUYKDWUmE95EKUIg3JbGyKrUoP76oNCe1+BCjNAeLkjjv 07xjkUIC6YklqdmpqQWpRTBZJg5OqQbGCe6KPu0piqufKnP1tu34wfCOpXqGoZpO67oI2VcH eqz4CosPzjLUeH51hWb/iW3c2p8WGrj7dMxw+SJmk/ti5rSjDMePZCbVPPVd3qPhWBbPHjtv ZbFB6qVNv9OePpv046uo851LB0VeyiS+PenWVX+k+d80Jp7Pto/8NjFKWcr4L715Z/M0JZbi jERDLeai4kQAn059LPkCAAA= X-CMS-MailID: 20190828022055epcas2p25525077d0a5a3fa5a2027bac06a10bc1 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20190828022055epcas2p25525077d0a5a3fa5a2027bac06a10bc1 References: X-Headers-End: 1i2na4-000rPg-GZ Subject: Re: [f2fs-dev] [PATCH 5/9] block: support diskcipher X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 'Ulf Hansson' , 'Mike Snitzer' , dm-devel@redhat.com, 'Andreas Dilger' , 'Alasdair Kergon' , 'Eric Biggers' , linux-samsung-soc@vger.kernel.org, 'Herbert Xu' , 'Krzysztof Kozlowski' , 'Jaehoon Chung' , 'Kukjin Kim' , linux-ext4@vger.kernel.org, linux-block@vger.kernel.org, linux-fscrypt@vger.kernel.org, 'Jaegeuk Kim' , linux-arm-kernel@lists.infradead.org, 'Jens Axboe' , 'Theodore Ts'o' , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-crypto@vger.kernel.org, linux-fsdevel@vger.kernel.org, "'David S. Miller'" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net On Tue, Aug 27, 2019 at 05:33:33PM +0900, boojin.kim wrote: > > Hi Boojin, > > I think the important thing to realize here is that there are a large > number of hardware devices for which the keyslot manager *is* needed. > And from the upstream kernel's perspective, supporting two different > schemes for supporting the inline encryption feature is more > complexity than just supporting one which is general enough to support > a wider variety of hardware devices. > > If you want somethig which is only good for the hardware platform you > are charged to support, that's fine if it's only going to be in a > Samsung-specific kernel. But if your goal is to get something that > works upstream, especially if it requires changes in core layers of > the kernel, it's important that it's general enough to support most, > if not all, if the hardware devices in the industry. > > Regards, I understood your reply. But, Please consider the diskcipher isn't just for FMP. The UFS in Samsung SoC also has UFS ICE. This UFS ICE can be registered as an algorithm of diskcipher like FMP. Following is my opinion to introduce diskcipher. I think the common feature of ICE like FMP and UFS ICE, is 'exposing cipher text to storage". And, Crypto test is also important for ICE. Diskcipher supports the common feature of ICE. I think specific functions for each ICE such as the key control of UFS ICE and the writing crypto table of FMP can be processed at algorithm level. Thanks for your reply. Boojin Kim. _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel