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.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 883A2C433DB for ; Wed, 30 Dec 2020 18:02:14 +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 2D8E22229C; Wed, 30 Dec 2020 18:02:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2D8E22229C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org 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-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1kufnX-0000rg-MF; Wed, 30 Dec 2020 18:02:11 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kufnX-0000rT-2S for linux-f2fs-devel@lists.sourceforge.net; Wed, 30 Dec 2020 18:02:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=C114N6DT/of0HUWtJEroVeqEHZpXGaS3KkcANDpfUE0=; b=ZYcU9BZlSyuDEV1i3hXgkCtVbx piyciINfWqMHI6jHlqMc+I5J1KiBudgGOKAU4MMrXV0nf7IdMf+tcEosKh0pFJRyso4SwW84dOkcL Ne91UnZ52BQt6Ao9CUXY793GOlzvv4mYFQF4ckV5c1r0MmmOEfvLJb6PPCBSzxfF3y8M=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To :From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=C114N6DT/of0HUWtJEroVeqEHZpXGaS3KkcANDpfUE0=; b=X2qLGp+E90U7rTc+v5auE57NGB KZ/8VzgvJ8wDHGBRNIV4Aa7wNogWBKt/beqRS/r6bTctlF7OLAkqcWgL1QfgQan/hNOXxD8UszWv9 6CpQsylLetQeYyh6KyPuA6qhIE5vm9sl+rljVr0NqMxbLplna1iiA9MVEkyFSf2kVUpU=; Received: from mail.kernel.org ([198.145.29.99]) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1kufnP-009Wv5-9y for linux-f2fs-devel@lists.sourceforge.net; Wed, 30 Dec 2020 18:02:11 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9DE9C22287; Wed, 30 Dec 2020 18:01:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609351317; bh=1EEHMEPXKBgaCrorRSDRdGyZ2w5tbvnf1YgxY5j8NVo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tU8Q28xTgSvY0NTPdbWeODcyYzhRYoozlDWcxAqqbcfrDDo+bkO2k5j8Yop0iJNHD CBOZd1nQ++IXpbg5/9ToK/BF85rVtqXkDdtJr6yIVrlEXu2ionquerG8HWPrG+VskS UJfJIOPERNA2d3MvGbAiQiPDYMYiKrbOP4ec/GIl6Ct4yxy9pvYLiDyocMDRV6NL22 mwoqQ1HLmnk/5lmxvqIQrDVv0P7b8pU1XqiBMEfPMMDGe6cuCfB6D7bbjmiNWqx862 ssbWWVyU9ClV29V3lco8LoVnH2AeO6T2aYPsuNUdlx/dXnGJZcLuXPrOFPzY1Runzr rYOkr93Wo7wcg== Date: Wed, 30 Dec 2020 10:01:56 -0800 From: Eric Biggers To: Sasha Levin Message-ID: References: <20201230130314.3636961-1-sashal@kernel.org> <20201230130314.3636961-10-sashal@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201230130314.3636961-10-sashal@kernel.org> X-Headers-End: 1kufnP-009Wv5-9y Subject: Re: [f2fs-dev] [PATCH AUTOSEL 5.10 10/31] f2fs: Handle casefolding with Encryption 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: Jaegeuk Kim , Daniel Rosenberg , linux-kernel@vger.kernel.org, stable@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net On Wed, Dec 30, 2020 at 08:02:52AM -0500, Sasha Levin wrote: > From: Daniel Rosenberg > > [ Upstream commit 7ad08a58bf67594057362e45cbddd3e27e53e557 ] > > Expand f2fs's casefolding support to include encrypted directories. To > index casefolded+encrypted directories, we use the SipHash of the > casefolded name, keyed by a key derived from the directory's fscrypt > master key. This ensures that the dirhash doesn't leak information > about the plaintext filenames. > > Encryption keys are unavailable during roll-forward recovery, so we > can't compute the dirhash when recovering a new dentry in an encrypted + > casefolded directory. To avoid having to force a checkpoint when a new > file is fsync'ed, store the dirhash on-disk appended to i_name. > > This patch incorporates work by Eric Biggers > and Jaegeuk Kim . > > Co-developed-by: Eric Biggers > Signed-off-by: Eric Biggers > Signed-off-by: Daniel Rosenberg > Reviewed-by: Eric Biggers > Signed-off-by: Jaegeuk Kim > Signed-off-by: Sasha Levin Please don't backport this to the LTS kernels. This is a new feature, not a fix, and you missed prerequisite patches... - Eric _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel