Re: [PATCH] ext4: don't enable DAX on new encrypted files

"Theodore Ts'o" <[email protected]>
Newsgroups org.kernel.vger.linux-fscrypt,org.kernel.vger.linux-ext4,org.kernel.vger.linux-kernel,org.kernel.vger.stable
Message-ID <178602814512.965683.11993377254644330464.b4-ty@b4>
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]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.