On Thu, 30 Jul 2026 10:52:12 -0700, Eric Biggers wrote:
> Currently, when a new encrypted regular file is created, the call to
> ext4_set_inode_flags(inode, init=true) in __ext4_new_inode() is made
> before EXT4_INODE_ENCRYPT is set.  As a result, it can set S_DAX if the
> filesystem is mounted with "-o dax=always".
> 
> EXT4_INODE_ENCRYPT then actually gets set a bit later in
> __ext4_new_inode(), when it calls fscrypt_set_context() which calls
> ext4_set_context().  ext4_set_context() sets EXT4_INODE_ENCRYPT and
> calls ext4_set_inode_flags(inode, init=false) to set S_ENCRYPTED too.
> 
> [...]

Applied, thanks!

[1/1] ext4: don't enable DAX on new encrypted files
      commit: da32af420d6d466e247c43ac0b829edeac7ae0ad

Best regards,
-- 
Theodore Ts'o <[email protected]>

Reply via email to