android_kernel_motorola_sm6375/fs/ext4
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Kara 6b06c4ae64 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: [email protected]
Fixes: 0813299c586b ("ext4: Fix possible corruption when moving a directory")
Link: https://syzkaller.appspot.com/bug?extid=9d16c39efb5fade84574
Signed-off-by: Jan Kara <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2023-03-17 08:32:52 +01:00
..
acl.c
acl.h
balloc.c
bitmap.c
block_validity.c
dir.c ext4: fix potential infinite loop in ext4_dx_readdir() 2021-10-06 15:42:37 +02:00
ext4.h ext4: add EXT4_IGET_BAD flag to prevent unexpected bad inode 2023-01-18 11:41:51 +01:00
ext4_extents.h
ext4_jbd2.c
ext4_jbd2.h
extents.c ext4: fix delayed allocation bug in ext4_clu_mapped for bigalloc + inline 2023-01-18 11:41:51 +01:00
extents_status.c ext4: fix reserved cluster accounting in __es_remove_extent() 2023-01-18 11:41:51 +01:00
extents_status.h
file.c ext4: avoid crash when inline data creation follows DIO write 2022-10-26 13:22:18 +02:00
fsmap.c ext4: fix another off-by-one fsmap error on 1k block filesystems 2023-03-17 08:32:48 +01:00
fsmap.h
fsync.c
hash.c
ialloc.c ext4: make directory inode spreading reflect flexbg size 2022-09-28 11:04:11 +02:00
indirect.c ext4: fix error code return to user-space in ext4_get_branch() 2023-01-18 11:41:52 +01:00
inline.c ext4: move where set the MAY_INLINE_DATA flag is set 2023-03-17 08:32:48 +01:00
inode.c ext4: move where set the MAY_INLINE_DATA flag is set 2023-03-17 08:32:48 +01:00
ioctl.c ext4: zero i_disksize when initializing the bootloader inode 2023-03-17 08:32:48 +01:00
Kconfig
Makefile
mballoc.c ext4: fix bug_on ext4_mb_use_inode_pa 2022-06-22 14:11:23 +02:00
mballoc.h
migrate.c ext4: fix warning in 'ext4_da_release_space' 2022-11-10 17:57:56 +01:00
mmp.c
move_extent.c
namei.c ext4: Fix deadlock during directory rename 2023-03-17 08:32:52 +01:00
page-io.c ext4: fix symlink file size not match to file content 2022-04-27 13:50:50 +02:00
readpage.c
resize.c ext4: fix corruption when online resizing a 1K bigalloc fs 2023-01-18 11:41:51 +01:00
super.c ext4: fix uninititialized value in 'ext4_evict_inode' 2023-01-18 11:42:03 +01:00
symlink.c
sysfs.c ext4: Fix function prototype mismatch for ext4_feat_ktype 2023-02-25 11:53:27 +01:00
truncate.h
verity.c fs: ext4: initialize fsdata in pagecache_write() 2023-01-18 11:41:55 +01:00
xattr.c ext4: fix WARNING in ext4_update_inline_data 2023-03-17 08:32:48 +01:00
xattr.h ext4: remove EA inode entry from mbcache on inode eviction 2023-01-18 11:41:55 +01:00
xattr_security.c
xattr_trusted.c
xattr_user.c