summaryrefslogtreecommitdiff
path: root/lib/fonts
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2023-03-01 17:10:04 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-03-17 10:58:00 +0300
commit352c728653a1179ce7bb37a4c8aa8404d83914a2 (patch)
tree16781857cc69d30a86569be4e27596b48d15bfbb /lib/fonts
parentda913a48034bab419d814b6de57500baa879fee2 (diff)
downloadlinux-352c728653a1179ce7bb37a4c8aa8404d83914a2.tar.xz
ext4: Fix deadlock during directory rename
[ Upstream commit 3c92792da8506a295afb6d032b4476e46f979725 ] As lockdep properly warns, we should not be locking i_rwsem while having transactions started as the proper lock ordering used by all directory handling operations is i_rwsem -> transaction start. Fix the lock ordering by moving the locking of the directory earlier in ext4_rename(). Reported-by: syzbot+9d16c39efb5fade84574@syzkaller.appspotmail.com Fixes: 0813299c586b ("ext4: Fix possible corruption when moving a directory") Link: https://syzkaller.appspot.com/bug?extid=9d16c39efb5fade84574 Signed-off-by: Jan Kara <jack@suse.cz> Link: https://lore.kernel.org/r/20230301141004.15087-1-jack@suse.cz Signed-off-by: Theodore Ts'o <tytso@mit.edu> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib/fonts')
0 files changed, 0 insertions, 0 deletions