From: Satya Tangirala via Linux-f2fs-devel <linux-f2fs-devel@lists.sourceforge.net>
To: Chao Yu <yuchao0@huawei.com>
Cc: Eric Biggers <ebiggers@kernel.org>,
Jaegeuk Kim <jaegeuk@kernel.org>,
linux-f2fs-devel@lists.sourceforge.net
Subject: Re: [f2fs-dev] [PATCH v2 1/2] f2fs-tools: Introduce metadata encryption support
Date: Fri, 18 Dec 2020 06:33:46 +0000 [thread overview]
Message-ID: <X9xNSiX8emhL3Twc@google.com> (raw)
In-Reply-To: <84319aff-1b78-ecbc-635e-bad990ed5d4e@huawei.com>
On Fri, Dec 18, 2020 at 09:06:00AM +0800, Chao Yu wrote:
> On 2020/12/17 23:10, Satya Tangirala via Linux-f2fs-devel wrote:
> > Introduce native metadata encryption support for f2fs. All blocks
> > other than the super block (and its redundant copy) are encrypted with the
> > specified metadata encryption key and algorithm. The IV for each block is
> > its block number in the filesystem.
>
> The same question as kernel side patchset, for node block, why not using its
> nid as IV value?
>
I addressed this on the kernel side patchset too (because
the reason is kernel related) at
https://lore.kernel.org/linux-fscrypt/X9t8y3rElyAPCLoD@google.com/
But in summary, I think using nid as the IV value would have been good
if we had the ability to specify the IV for each data unit in a bio
independently of all the other data units in the bio. However, we can
only specify the DUN of the first data unit in each bio with the
bi_crypt_context, so it's better to make physically contiguous data
units also have contiguous DUNs, which won't be the case if the DUN is
not related to the physical block address (I'm not familiar with nids,
but it sounds like nids are independent of block address).
Does that make sense or is there something I'm missing?
> Thanks,
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
next prev parent reply other threads:[~2020-12-18 6:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-17 15:10 [f2fs-dev] [PATCH v2 0/2] userspace support for metadata encryption Satya Tangirala via Linux-f2fs-devel
2020-12-17 15:10 ` [f2fs-dev] [PATCH v2 1/2] f2fs-tools: Introduce metadata encryption support Satya Tangirala via Linux-f2fs-devel
2020-12-17 15:47 ` Satya Tangirala via Linux-f2fs-devel
2020-12-18 1:06 ` Chao Yu
2020-12-18 6:33 ` Satya Tangirala via Linux-f2fs-devel [this message]
2020-12-17 15:10 ` [f2fs-dev] [PATCH v2 2/2] libf2fs_io: Make metadata encryption work with sparse mode Satya Tangirala via Linux-f2fs-devel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=X9xNSiX8emhL3Twc@google.com \
--to=linux-f2fs-devel@lists.sourceforge.net \
--cc=ebiggers@kernel.org \
--cc=jaegeuk@kernel.org \
--cc=satyat@google.com \
--cc=yuchao0@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.