lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 9 Jul 2020 19:47:51 +0000 From: Satya Tangirala <satyat@...gle.com> To: linux-fscrypt@...r.kernel.org, linux-fsdevel@...r.kernel.org, linux-f2fs-devel@...ts.sourceforge.net, linux-ext4@...r.kernel.org Cc: Eric Biggers <ebiggers@...gle.com>, Satya Tangirala <satyat@...gle.com> Subject: [PATCH 5/5] f2fs: support direct I/O with fscrypt using blk-crypto From: Eric Biggers <ebiggers@...gle.com> Wire up f2fs with fscrypt direct I/O support. Signed-off-by: Eric Biggers <ebiggers@...gle.com> Signed-off-by: Satya Tangirala <satyat@...gle.com> --- fs/f2fs/f2fs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index b35a50f4953c..6d662a37b445 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -4082,7 +4082,9 @@ static inline bool f2fs_force_buffered_io(struct inode *inode, struct f2fs_sb_info *sbi = F2FS_I_SB(inode); int rw = iov_iter_rw(iter); - if (f2fs_post_read_required(inode)) + if (!fscrypt_dio_supported(iocb, iter)) + return true; + if (fsverity_active(inode)) return true; if (f2fs_is_multi_device(sbi)) return true; -- 2.27.0.383.g050319c2ae-goog
Powered by blists - more mailing lists