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 5CCAFC4727E for ; Tue, 22 Sep 2020 10:48:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0BF6F239D4 for ; Tue, 22 Sep 2020 10:48:22 +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 S1726544AbgIVKsW (ORCPT ); Tue, 22 Sep 2020 06:48:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726483AbgIVKsV (ORCPT ); Tue, 22 Sep 2020 06:48:21 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77F89C0613CF for ; Tue, 22 Sep 2020 03:48:20 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id a9so1294617pjg.1 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=i+u3a6KgaFC3yaQ8OspxslMfMCZ2SJaccMojuoZTLMrkDdYOwcX0Cmu5r0GggHwg1h OsoKoa2OH0Fz5A5ZsRSug7+xgE4d+Pwl/xp/NyZoxoUkJsx6VrV0Uv98n5T70OoAGhrT Fak2F/2MVYb2i/A06O9CwLjZUqfko1wTImBZUiki8fQP96FEuxt+Fdwkx0NF5ud/l7uc npb5EIxGLgSQP/zSMlKxF8R5hT9vscwamh8pbg8LB84p/J/TSnma2CMvowgygdoFyOSO oY7cvD/ZahsS6COrMJQpFRAccKhu1krCj4F9G7pD7gNm48EaXtbumfPnupF7CHbb4EKs majQ== X-Gm-Message-State: AOAM533EBu4zYkPTA3PZyUlTX9s0sslPUQbDCTO3R0HcGYRo5r4o75xj 1/AaTh0as04FonxK7xNUKgwsbQ== 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-fsdevel@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