This is a note to let you know that I've just added the patch titled ext4: unlock xattr_sem properly in ext4_inline_data_truncate() to the 5.9-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: ext4-unlock-xattr_sem-properly-in-ext4_inline_data_truncate.patch and it can be found in the queue-5.9 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 7067b2619017d51e71686ca9756b454de0e5826a Mon Sep 17 00:00:00 2001 From: Joseph Qi <joseph.qi@xxxxxxxxxxxxxxxxx> Date: Tue, 3 Nov 2020 10:29:02 +0800 Subject: ext4: unlock xattr_sem properly in ext4_inline_data_truncate() From: Joseph Qi <joseph.qi@xxxxxxxxxxxxxxxxx> commit 7067b2619017d51e71686ca9756b454de0e5826a upstream. It takes xattr_sem to check inline data again but without unlock it in case not have. So unlock it before return. Fixes: aef1c8513c1f ("ext4: let ext4_truncate handle inline data correctly") Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Cc: Tao Ma <boyu.mt@xxxxxxxxxx> Signed-off-by: Joseph Qi <joseph.qi@xxxxxxxxxxxxxxxxx> Reviewed-by: Andreas Dilger <adilger@xxxxxxxxx> Link: https://lore.kernel.org/r/1604370542-124630-1-git-send-email-joseph.qi@xxxxxxxxxxxxxxxxx Signed-off-by: Theodore Ts'o <tytso@xxxxxxx> Cc: stable@xxxxxxxxxx Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- fs/ext4/inline.c | 1 + 1 file changed, 1 insertion(+) --- a/fs/ext4/inline.c +++ b/fs/ext4/inline.c @@ -1880,6 +1880,7 @@ int ext4_inline_data_truncate(struct ino ext4_write_lock_xattr(inode, &no_expand); if (!ext4_has_inline_data(inode)) { + ext4_write_unlock_xattr(inode, &no_expand); *has_inline = 0; ext4_journal_stop(handle); return 0; Patches currently in stable-queue which might be from joseph.qi@xxxxxxxxxxxxxxxxx are queue-5.9/ext4-unlock-xattr_sem-properly-in-ext4_inline_data_truncate.patch