Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp46369pxk; Tue, 22 Sep 2020 18:10:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxppv/6OR1yG5ar9LtphN7g1USdy0hWtZ/IvzDTaUE3prqfQtK7YSv/RAz2/JzFukhGFUb2 X-Received: by 2002:a05:6402:21c5:: with SMTP id bi5mr7230156edb.380.1600823409092; Tue, 22 Sep 2020 18:10:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600823409; cv=none; d=google.com; s=arc-20160816; b=w/ViYvU3tqcrsMaw982tdyBrnSw0wTYRrWuQ/qjyNOqN3b6zL6Ha/clVouoYEnDQCJ IyYwkk9nlOOmEd4kfGHNgJBeJp+f6NDxSHJEbyVyFj/1tn/vjga2gE/fHjFLQG1vbn4V SpKey1JhErCx/SJdQ6zezwlMcmHbJc5KxeTZcCX6JTkmcRA561eYf5e+ITD8yQwQgON8 chqkRFVXLzmXjfmFVWkovXNWppYrX/L8U60oAKQhTG7ItANxYVX12Y6QO46SLF0LR5eS nym9eRxBWC37STObxSaoGD1TaNgIiH7FrpfK+eyEKMQmZQzc0ZFkqNreFRfwIURmjGOq S+ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :sender:dkim-signature; bh=gd9BXK6Qogm8GWzcEx/RRuoN03o4stNhU2BMPs3db+g=; b=JQlgdOwmB2/+uPzU97Ng1+d/iJdyEQNVG0Ip8zN6da7Ko7Fh5V+PoKfxncMO/aRLj/ hgbGpFTMdMIe6J7zoAml0taLwc01r6wpvSCfEBmkWFcTMxcyW72Pi7SGw3MwdTSnMpOq kOtZ05UmLUaUMHZ/OSyxxKgTGnfDpeWKqLn5cWlzoW+q5tdyNRZrJtTkaIGOzjpDQHEi b0HlOR2/0HIBrXJwnozvTWIuLRSSx7ZlcclKuF4k7C+35Amhd4xcSwRIz4qNX4kYfPMp 0s1GOxcFGzlFX0cS+Z5CHWYWoMX6GoOECmA27l1cOkbh5JAD0uF+yr2lHaQqbG+4efJ9 PVzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=VzYml5mR; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yd22si15212841ejb.546.2020.09.22.18.09.34; Tue, 22 Sep 2020 18:10:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=VzYml5mR; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726751AbgIWBJU (ORCPT + 99 others); Tue, 22 Sep 2020 21:09:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726620AbgIWBJT (ORCPT ); Tue, 22 Sep 2020 21:09:19 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A98FC061755 for ; Tue, 22 Sep 2020 18:09:19 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id z40so17699570ybi.3 for ; Tue, 22 Sep 2020 18:09:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:message-id:mime-version:subject:from:to:cc; bh=gd9BXK6Qogm8GWzcEx/RRuoN03o4stNhU2BMPs3db+g=; b=VzYml5mRARymBMqJuBNvlalVRmIpcIRL7rCYhdalEJ6bKiRq37APrmAer+cndQz7ow HDgQ8sObYp4idOZvJsIB8XMBdAbJDoPCXf8RcjD8zqSkhEpxPKkDqW19XQG4XFjZvJaz 8jEIjxaKoJcRnQ8fhGfMGPAbu8NwMdXX1LmNNI+9aYl3v1FIDXUdjNESPhuk/al8UMRu iwH+o2SnESdtrDrKMurtAfxp8eGbb3YAnwpecd7/CBg1WdTaJUzuh/5gxIJHiCHdeBs/ OuNNmgOyE5L/7V98+v4aCcawDaDAqbTrPsoF6o6qWk/oSi7nQACkmrj0atUkhEeP/rkK mCjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:message-id:mime-version:subject:from :to:cc; bh=gd9BXK6Qogm8GWzcEx/RRuoN03o4stNhU2BMPs3db+g=; b=dCx/6oPMaY/p8hKXoX8mzzKxxMLtVg9iBukkBTE86cpBj3CJqPBzhel4cWTRxKn9Ge gkoi7O71PrF1DL+G0kASvZ2z1/nmFHDB5lXzOhji7HTHpO/cJoUdZD4dfoNakHuoZlHo 5idj04mekNrNDC/YTCCIDkEvPgowdDWZ2LlH3S2xhPF9/amTvnoD2mKkyhsDqeDiLzIu hy/hS5MvSr5eBDQA/zP24nb4Nx6VWVNSRDLvFdCxg2dwWZYM5fG4P4NUU0kLdajE9IaA dUnbZYgV/OGn/A+91U7R56QMrJNdzcGMS6ZymWUyUCDQOM3cVBWbqI6mbnZ86Givm4Vn XRcQ== X-Gm-Message-State: AOAM532n6noDiCOp3sNgp//cwz3YXoT35D/o9+0W2DWvQ8cL9Q+1nar0 EIzDVQkBqExVNbu0FlSkP4N+UvVqEEY= Sender: "drosen via sendgmr" X-Received: from drosen.c.googlers.com ([fda3:e722:ac3:10:24:72f4:c0a8:4e6f]) (user=drosen job=sendgmr) by 2002:a25:6dc6:: with SMTP id i189mr10208913ybc.355.1600823358686; Tue, 22 Sep 2020 18:09:18 -0700 (PDT) Date: Wed, 23 Sep 2020 01:01:46 +0000 Message-Id: <20200923010151.69506-1-drosen@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.28.0.681.g6f77f65b4e-goog Subject: [PATCH 0/5] Add support for Encryption and Casefolding in F2FS 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 Content-Type: text/plain; charset="UTF-8" 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