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=-8.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 3A215C2D0E2 for ; Tue, 22 Sep 2020 10:48:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CCBD7239D2 for ; Tue, 22 Sep 2020 10:48:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=android.com header.i=@android.com header.b="cjBL0njH" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726543AbgIVKsW (ORCPT ); Tue, 22 Sep 2020 06:48:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726419AbgIVKsV (ORCPT ); Tue, 22 Sep 2020 06:48:21 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EECDC061755 for ; Tue, 22 Sep 2020 03:48:20 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id kk9so1256381pjb.2 for ; Tue, 22 Sep 2020 03:48:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=android.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gd9BXK6Qogm8GWzcEx/RRuoN03o4stNhU2BMPs3db+g=; b=cjBL0njHm+8zUypttYPB1lyQmH9E2S3jK9rf/cmZXEh6EGhIdRL9gIUk/vQojZYKYn IihVstLnA999VhtdeYb2+OGsEINb8d80uZmj0iYuYKmjzqdzEUI76X8MpUdm0QgCwDJk oPFPSJ3Z+Ng/XKbFdKJfbc2uQyDB1AM3XB46PycPUVTODJj7MfvUhH1c9SOBH6hy3fN7 +MmI5yEbIvmoO31Bcs6jUoukXNaA5DDoZecxGw2h+gJmXdQsHQE99QS9XqsD892baliJ wjhdtIqH6uXDr1VRf4Cpg35fClhascX89HcZ86PTKJaI3hQP1+2H5OmowlFkWHmQUA8X 0uXQ== 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:mime-version :content-transfer-encoding; bh=gd9BXK6Qogm8GWzcEx/RRuoN03o4stNhU2BMPs3db+g=; b=k6AlXDfwX5fMKXtzLKhXLkC6zGa92aP7CjRw0oLpD5Aoj3mygmJJ5g/Ieb05ukTRoC Z7Ph/rrUsB5UA3wdYzHhwFT4Dpc5M2ixC3pzQGgbGTln4hwu1txgXYvOlOqVceJvNbh+ NsbmTVRlrIkhm9yLOKs4gzT436g9LUPgX3Tw5W31Buw0rLm6JOuPE6rRiK04JVHZ3Kox eNdQuj2kS+sV61XMo0F4DNL+JdS9amvmHrk/VNtpTFUPUT2ff4rA5u1J+9c1vWT+DjZt HlbftlvWpqtMqv6ACDsx6veSI6kJFPG9TMYLxUsAswn7Ad8XXrX3SDJtzAhcTi85I6W5 tF6A== X-Gm-Message-State: AOAM5317QcgDcfPsxlnAAhwFc03pvlm6yw+gv3RJ0vQ5+pc/o0q2qRDa WxPzywYYO+7+w4bj/lq+wxuNuA== X-Google-Smtp-Source: ABdhPJxmaXOIQxSeBKkx6n6E73BxPgRUl72SH7IqG1Psmqep24Gl/+025pnEfhuIqXdYNK3DnALwOg== X-Received: by 2002:a17:90a:e10:: with SMTP id v16mr3235865pje.84.1600771699965; Tue, 22 Sep 2020 03:48:19 -0700 (PDT) Received: from localhost.localdomain (c-73-231-5-90.hsd1.ca.comcast.net. [73.231.5.90]) by smtp.gmail.com with ESMTPSA id kk17sm1958427pjb.31.2020.09.22.03.48.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2020 03:48:19 -0700 (PDT) From: Daniel Rosenberg To: "Theodore Y . Ts'o" , Jaegeuk Kim , Eric Biggers , Andreas Dilger , Chao Yu , Alexander Viro , Richard Weinberger , linux-fscrypt@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mtd@lists.infradead.org, Gabriel Krisman Bertazi , kernel-team@android.com, Daniel Rosenberg Subject: [PATCH 0/5] Add support for Encryption and Casefolding in F2FS Date: Tue, 22 Sep 2020 03:48:02 -0700 Message-Id: <20200922104807.912914-1-drosen@android.com> X-Mailer: git-send-email 2.28.0.681.g6f77f65b4e-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org These patches are on top of the f2fs dev branch F2FS currently supports casefolding and encryption, but not at the same time. These patches aim to rectify that. In a later follow up, this will be added for Ext4 as well. I've included one ext4 patch from the previous set since it isn't in the f2fs branch, but is needed for the fscrypt changes. The f2fs-tools changes have already been applied. Since both fscrypt and casefolding require their own dentry operations, I've moved the responsibility of setting the dentry operations from fscrypt to the filesystems and provided helper functions that should work for most cases. These are a follow-up to the previously sent patch set "[PATCH v12 0/4] Prepare for upcoming Casefolding/Encryption patches" Daniel Rosenberg (5): ext4: Use generic casefolding support fscrypt: Export fscrypt_d_revalidate libfs: Add generic function for setting dentry_ops fscrypt: Have filesystems handle their d_ops f2fs: Handle casefolding with Encryption fs/crypto/fname.c | 7 ++--- fs/crypto/hooks.c | 1 - fs/ext4/dir.c | 67 ----------------------------------------- fs/ext4/ext4.h | 16 ---------- fs/ext4/hash.c | 2 +- fs/ext4/namei.c | 21 ++++++------- fs/ext4/super.c | 15 +++------ fs/f2fs/dir.c | 64 ++++++++++++++++++++++++++++++--------- fs/f2fs/f2fs.h | 11 +++---- fs/f2fs/hash.c | 11 ++++++- fs/f2fs/namei.c | 1 + fs/f2fs/recovery.c | 12 +++++++- fs/f2fs/super.c | 7 ----- fs/libfs.c | 49 ++++++++++++++++++++++++++++++ fs/ubifs/dir.c | 1 + include/linux/fs.h | 1 + include/linux/fscrypt.h | 6 ++-- 17 files changed, 148 insertions(+), 144 deletions(-) -- 2.28.0.681.g6f77f65b4e-goog 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=-8.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 4384EC2D0E2 for ; Tue, 22 Sep 2020 10:54: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 887292396D for ; Tue, 22 Sep 2020 10:54:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=lists.sourceforge.net header.i=@lists.sourceforge.net header.b="UZOurgZ/"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sourceforge.net header.i=@sourceforge.net header.b="UXQO3ZFL"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sf.net header.i=@sf.net header.b="AYQUeLWC"; dkim=neutral (0-bit key) header.d=android.com header.i=@android.com header.b="cjBL0njH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 887292396D Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=lists.sourceforge.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-f2fs-devel-bounces@lists.sourceforge.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type:Cc: Reply-To:From:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Subject:MIME-Version:Message-Id:Date:To:Sender: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=NO06jLI7SiyehXO2TT9FaEfB+ulmFp4Zcni81Y83lbU=; b=UZOurgZ/F0qF/pRa7uNZJGQOeF 3t8/jHQJMQCMZjlJRRuGvAaOjeTxnI3CsZqJ3ydVc6iFRhh+0QQgEPPmcUClMok5b2PWzMB5JEchC KmEn55Z/rhkvo9GA6rGSOqD388F5qBdYvHf0kuNFsVc7jeKKR0lAAOQAYvacN7cgpDP0=; Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1kKfvz-0006HX-Ae; Tue, 22 Sep 2020 10:54:07 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kKfvx-0006HO-Ti for linux-f2fs-devel@lists.sourceforge.net; Tue, 22 Sep 2020 10:54:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=gd9BXK6Qogm8GWzcEx/RRuoN03o4stNhU2BMPs3db+g=; b=UXQO3ZFLkh51JTLJHLl4VDajq+ eCvFjHLJH7PWkMABKUnok82zOIwShylt113Rwnnz5K6LBsRVPzI8JDYwH6HPEAP8aTfwY+p2QJD90 N7hy1yWP6nFv0Z5oQGnzeBqhYiAKscGvX9EliQRC3uHRgelvikUh02MbeemqRoR08Wd8=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:Cc:To:From :Sender:Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=gd9BXK6Qogm8GWzcEx/RRuoN03o4stNhU2BMPs3db+g=; b=A YQUeLWC+Z5UEGL29Frev2JDcKTR63Lflj3W0KRu6DOubRDg6o4lfN459PPccsptXHfJk9um2IJD2E 9yYuU6xqBdj4PcUQtiy7yoG1GHFBuNs8f7B6hmbEa5wwCNReExgBjeEmARks9nL/48LTfNuGtLSuQ Sr4ngdM11K680lH0=; Received: from mail-oi1-f193.google.com ([209.85.167.193]) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.2) id 1kKfvt-001E4A-1m for linux-f2fs-devel@lists.sourceforge.net; Tue, 22 Sep 2020 10:54:05 +0000 Received: by mail-oi1-f193.google.com with SMTP id a3so20585337oib.4 for ; Tue, 22 Sep 2020 03:54:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=android.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gd9BXK6Qogm8GWzcEx/RRuoN03o4stNhU2BMPs3db+g=; b=cjBL0njHm+8zUypttYPB1lyQmH9E2S3jK9rf/cmZXEh6EGhIdRL9gIUk/vQojZYKYn IihVstLnA999VhtdeYb2+OGsEINb8d80uZmj0iYuYKmjzqdzEUI76X8MpUdm0QgCwDJk oPFPSJ3Z+Ng/XKbFdKJfbc2uQyDB1AM3XB46PycPUVTODJj7MfvUhH1c9SOBH6hy3fN7 +MmI5yEbIvmoO31Bcs6jUoukXNaA5DDoZecxGw2h+gJmXdQsHQE99QS9XqsD892baliJ wjhdtIqH6uXDr1VRf4Cpg35fClhascX89HcZ86PTKJaI3hQP1+2H5OmowlFkWHmQUA8X 0uXQ== 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:mime-version :content-transfer-encoding; bh=gd9BXK6Qogm8GWzcEx/RRuoN03o4stNhU2BMPs3db+g=; b=UEOetMyYa7F4uWgB85jHbtpYiBjGhgO20N5Vvtquv0fMaOa1fIWkb+TK55lT8YREdX mBnN/kKxBv2pbDiSMbBsuRJbBfvEKyvgsDqlDqwvRDOjozkbvzpAXS3Chsmh2C1ilSNG eXtBttyGqxHF5N3ycAqnqSEwTYXOf7c4SFwMgqvsB0C2WYxZbpsP6pATuoVmRYALYkX5 XssAco6NUWqIvjhiVTypMgm4xFarjm6ye1vYhLX4CARodUwXJqqzC16E+uyIHIWE3C50 +t0ybnfo4a7HnIDdmZlwKN0kywsPYqLNvzQ0FjFnbQMbEC0xb0rgCQ53GnTmdzIif+cH EnLg== X-Gm-Message-State: AOAM530FrduvSkAyqxQcvLyolOElgwTLMuc9s4rQBb8qOehI4KHz0u1L 02QitYbFRQSSAuN6c0bbQeiX+BGGuYXB0X+7ehA= X-Google-Smtp-Source: ABdhPJxmaXOIQxSeBKkx6n6E73BxPgRUl72SH7IqG1Psmqep24Gl/+025pnEfhuIqXdYNK3DnALwOg== X-Received: by 2002:a17:90a:e10:: with SMTP id v16mr3235865pje.84.1600771699965; Tue, 22 Sep 2020 03:48:19 -0700 (PDT) Received: from localhost.localdomain (c-73-231-5-90.hsd1.ca.comcast.net. [73.231.5.90]) by smtp.gmail.com with ESMTPSA id kk17sm1958427pjb.31.2020.09.22.03.48.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2020 03:48:19 -0700 (PDT) To: "Theodore Y . Ts'o" , Jaegeuk Kim , Eric Biggers , Andreas Dilger , Chao Yu , Alexander Viro , Richard Weinberger , linux-fscrypt@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Date: Tue, 22 Sep 2020 03:48:02 -0700 Message-Id: <20200922104807.912914-1-drosen@android.com> X-Mailer: git-send-email 2.28.0.681.g6f77f65b4e-goog MIME-Version: 1.0 X-Headers-End: 1kKfvt-001E4A-1m Subject: [f2fs-dev] [PATCH 0/5] Add support for Encryption and Casefolding in F2FS 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: , From: Daniel Rosenberg via Linux-f2fs-devel Reply-To: Daniel Rosenberg Cc: kernel-team@android.com, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, linux-fsdevel@vger.kernel.org, Gabriel Krisman Bertazi , Daniel Rosenberg Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net These patches are on top of the f2fs dev branch F2FS currently supports casefolding and encryption, but not at the same time. These patches aim to rectify that. In a later follow up, this will be added for Ext4 as well. I've included one ext4 patch from the previous set since it isn't in the f2fs branch, but is needed for the fscrypt changes. The f2fs-tools changes have already been applied. Since both fscrypt and casefolding require their own dentry operations, I've moved the responsibility of setting the dentry operations from fscrypt to the filesystems and provided helper functions that should work for most cases. These are a follow-up to the previously sent patch set "[PATCH v12 0/4] Prepare for upcoming Casefolding/Encryption patches" Daniel Rosenberg (5): ext4: Use generic casefolding support fscrypt: Export fscrypt_d_revalidate libfs: Add generic function for setting dentry_ops fscrypt: Have filesystems handle their d_ops f2fs: Handle casefolding with Encryption fs/crypto/fname.c | 7 ++--- fs/crypto/hooks.c | 1 - fs/ext4/dir.c | 67 ----------------------------------------- fs/ext4/ext4.h | 16 ---------- fs/ext4/hash.c | 2 +- fs/ext4/namei.c | 21 ++++++------- fs/ext4/super.c | 15 +++------ fs/f2fs/dir.c | 64 ++++++++++++++++++++++++++++++--------- fs/f2fs/f2fs.h | 11 +++---- fs/f2fs/hash.c | 11 ++++++- fs/f2fs/namei.c | 1 + fs/f2fs/recovery.c | 12 +++++++- fs/f2fs/super.c | 7 ----- fs/libfs.c | 49 ++++++++++++++++++++++++++++++ fs/ubifs/dir.c | 1 + include/linux/fs.h | 1 + include/linux/fscrypt.h | 6 ++-- 17 files changed, 148 insertions(+), 144 deletions(-) -- 2.28.0.681.g6f77f65b4e-goog _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel 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=-8.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 7ADA9C2D0E2 for ; Tue, 22 Sep 2020 10:49:44 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 E3F5F2396D for ; Tue, 22 Sep 2020 10:49:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="wX3zF5TS"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=android.com header.i=@android.com header.b="cjBL0njH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E3F5F2396D Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=android.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=3zj8G+psnT/YSDfECC5iVZcbr8+nMBR8iAsi6F430cE=; b=wX3zF5TSh8uGdZzgjMvR8Ybr5i fsCfhQwOB5DB6al6jYCzWXzGxQBsegwitbDyXYy+YymzMDubgdd809bNzl/RwRTLf0jajuxsx+S94 kWV7G2kjEw2LA6kdxbSFYRv5OURRsygIbOkZFdlm9xHx71fOqNitCBZsMSk/fyQqnqa4XmQyOxz6O PKUBA0MyId8AA0yAHP7eQtmv/DODsCQ5h6/iMLhW3zeVvC0ELXG0zJRukfx3x+dMKgK0p6Rj+ONgs NQ1eIUpExbnhKkM08Bm+Q5KFR4Tw3CBPYvUGM9/GcmKzALvH9TEpnQW4n5Vlp/TdqZXsuz7A2hAcX dgeN2H6Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kKfqb-0006VJ-4z; Tue, 22 Sep 2020 10:48:33 +0000 Received: from mail-pj1-x1043.google.com ([2607:f8b0:4864:20::1043]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kKfqR-0006U7-0k for linux-mtd@lists.infradead.org; Tue, 22 Sep 2020 10:48:23 +0000 Received: by mail-pj1-x1043.google.com with SMTP id q4so1282276pjh.5 for ; Tue, 22 Sep 2020 03:48:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=android.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gd9BXK6Qogm8GWzcEx/RRuoN03o4stNhU2BMPs3db+g=; b=cjBL0njHm+8zUypttYPB1lyQmH9E2S3jK9rf/cmZXEh6EGhIdRL9gIUk/vQojZYKYn IihVstLnA999VhtdeYb2+OGsEINb8d80uZmj0iYuYKmjzqdzEUI76X8MpUdm0QgCwDJk oPFPSJ3Z+Ng/XKbFdKJfbc2uQyDB1AM3XB46PycPUVTODJj7MfvUhH1c9SOBH6hy3fN7 +MmI5yEbIvmoO31Bcs6jUoukXNaA5DDoZecxGw2h+gJmXdQsHQE99QS9XqsD892baliJ wjhdtIqH6uXDr1VRf4Cpg35fClhascX89HcZ86PTKJaI3hQP1+2H5OmowlFkWHmQUA8X 0uXQ== 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:mime-version :content-transfer-encoding; bh=gd9BXK6Qogm8GWzcEx/RRuoN03o4stNhU2BMPs3db+g=; b=bTqHuEZVuzOtzD41UpEj1Y1keBlPd8tcXtFZretOv4aj5V9QSNh/7/qefTY/zLU8pW FG6k2GbXUtshq41vV/hLMR67Ao9/8V/vhWeaUFDTA23WiybcYSGsFrUptxcjtbr3rVEo +5fi0XCZT2E8/OQA3UaWJoE6t7h+e71LbQK3AAzS0a/+jvODRmPsQISSbsJIPHZFrttV eudfb7frmWO03FpwvreLu1g0E75Cpgszo33edl753ne/InEP71lm2ZykPrCRr99LbdFm /k3Q5G7dMhvK7g1GPjnZkT0d91SzTa3UC84J1K4fNTVBG7CUwnJDkI6kr6aQRV390eAV RUIQ== X-Gm-Message-State: AOAM530lPi6Ki/fVU9OhLnJc7jjVL520Zg87EsHyuIb8qggF9KEk+SQr m5lCmmoQNefpXjYch+wmG0gQxQ== X-Google-Smtp-Source: ABdhPJxmaXOIQxSeBKkx6n6E73BxPgRUl72SH7IqG1Psmqep24Gl/+025pnEfhuIqXdYNK3DnALwOg== X-Received: by 2002:a17:90a:e10:: with SMTP id v16mr3235865pje.84.1600771699965; Tue, 22 Sep 2020 03:48:19 -0700 (PDT) Received: from localhost.localdomain (c-73-231-5-90.hsd1.ca.comcast.net. [73.231.5.90]) by smtp.gmail.com with ESMTPSA id kk17sm1958427pjb.31.2020.09.22.03.48.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2020 03:48:19 -0700 (PDT) From: Daniel Rosenberg To: "Theodore Y . Ts'o" , Jaegeuk Kim , Eric Biggers , Andreas Dilger , Chao Yu , Alexander Viro , Richard Weinberger , linux-fscrypt@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Subject: [PATCH 0/5] Add support for Encryption and Casefolding in F2FS Date: Tue, 22 Sep 2020 03:48:02 -0700 Message-Id: <20200922104807.912914-1-drosen@android.com> X-Mailer: git-send-email 2.28.0.681.g6f77f65b4e-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200922_064823_113137_22BEB623 X-CRM114-Status: GOOD ( 13.23 ) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel-team@android.com, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, linux-fsdevel@vger.kernel.org, Gabriel Krisman Bertazi , Daniel Rosenberg Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org These patches are on top of the f2fs dev branch F2FS currently supports casefolding and encryption, but not at the same time. These patches aim to rectify that. In a later follow up, this will be added for Ext4 as well. I've included one ext4 patch from the previous set since it isn't in the f2fs branch, but is needed for the fscrypt changes. The f2fs-tools changes have already been applied. Since both fscrypt and casefolding require their own dentry operations, I've moved the responsibility of setting the dentry operations from fscrypt to the filesystems and provided helper functions that should work for most cases. These are a follow-up to the previously sent patch set "[PATCH v12 0/4] Prepare for upcoming Casefolding/Encryption patches" Daniel Rosenberg (5): ext4: Use generic casefolding support fscrypt: Export fscrypt_d_revalidate libfs: Add generic function for setting dentry_ops fscrypt: Have filesystems handle their d_ops f2fs: Handle casefolding with Encryption fs/crypto/fname.c | 7 ++--- fs/crypto/hooks.c | 1 - fs/ext4/dir.c | 67 ----------------------------------------- fs/ext4/ext4.h | 16 ---------- fs/ext4/hash.c | 2 +- fs/ext4/namei.c | 21 ++++++------- fs/ext4/super.c | 15 +++------ fs/f2fs/dir.c | 64 ++++++++++++++++++++++++++++++--------- fs/f2fs/f2fs.h | 11 +++---- fs/f2fs/hash.c | 11 ++++++- fs/f2fs/namei.c | 1 + fs/f2fs/recovery.c | 12 +++++++- fs/f2fs/super.c | 7 ----- fs/libfs.c | 49 ++++++++++++++++++++++++++++++ fs/ubifs/dir.c | 1 + include/linux/fs.h | 1 + include/linux/fscrypt.h | 6 ++-- 17 files changed, 148 insertions(+), 144 deletions(-) -- 2.28.0.681.g6f77f65b4e-goog ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/