diff options
| author | Jan Kara <[email protected]> | 2023-03-01 14:10:04 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2023-03-08 02:45:38 +0000 |
| commit | 3c92792da8506a295afb6d032b4476e46f979725 (patch) | |
| tree | 92613efa0c13d22c51e0f24709db7e9409f8e0e4 /drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c | |
| parent | ext4: Fix comment about the 64BIT feature (diff) | |
| download | kernel-3c92792da8506a295afb6d032b4476e46f979725.tar.gz kernel-3c92792da8506a295afb6d032b4476e46f979725.zip | |
ext4: Fix deadlock during directory rename
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]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c')
0 files changed, 0 insertions, 0 deletions
