From: Linus Torvalds Date: Wed, 11 Mar 2020 20:35:34 +0000 (-0700) Subject: Merge tag 'fscrypt-for-linus' of git://git.kernel.org/pub/scm/fs/fscrypt/fscrypt X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e6e6ec48dd0fa12e8a2d1ff6b55cd907401bd7fe;p=linux.git Merge tag 'fscrypt-for-linus' of git://git./fs/fscrypt/fscrypt Pull fscrypt fix from Eric Biggers: "Fix a bug where if userspace is writing to encrypted files while the FS_IOC_REMOVE_ENCRYPTION_KEY ioctl (introduced in v5.4) is running, dirty inodes could be evicted, causing writes could be lost or the filesystem to hang due to a use-after-free. This was encountered during real-world use, not just theoretical. Tested with the existing fscrypt xfstests, and with a new xfstest I wrote to reproduce this bug. This fix does expose an existing bug with '-o lazytime' that Ted is working on fixing, but this fix is more critical and needed anyway regardless of the lazytime fix" * tag 'fscrypt-for-linus' of git://git.kernel.org/pub/scm/fs/fscrypt/fscrypt: fscrypt: don't evict dirty inodes after removing key --- e6e6ec48dd0fa12e8a2d1ff6b55cd907401bd7fe