aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorTheodore Ts'o <[email protected]>2023-05-07 01:04:01 +0000
committerTheodore Ts'o <[email protected]>2023-05-13 22:05:05 +0000
commitf4ce24f54d9cca4f09a395f3eecce20d6bec4663 (patch)
tree236dd40a035004bf3a07896147cd1ae102ad3a5a /lib/string_helpers.c
parentext4: improve error recovery code paths in __ext4_remount() (diff)
downloadkernel-f4ce24f54d9cca4f09a395f3eecce20d6bec4663.tar.gz
kernel-f4ce24f54d9cca4f09a395f3eecce20d6bec4663.zip
ext4: fix deadlock when converting an inline directory in nojournal mode
In no journal mode, ext4_finish_convert_inline_dir() can self-deadlock by calling ext4_handle_dirty_dirblock() when it already has taken the directory lock. There is a similar self-deadlock in ext4_incvert_inline_data_nolock() for data files which we'll fix at the same time. A simple reproducer demonstrating the problem: mke2fs -Fq -t ext2 -O inline_data -b 4k /dev/vdc 64 mount -t ext4 -o dirsync /dev/vdc /vdc cd /vdc mkdir file0 cd file0 touch file0 touch file1 attr -s BurnSpaceInEA -V abcde . touch supercalifragilisticexpialidocious Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Reported-by: [email protected] Link: https://syzkaller.appspot.com/bug?id=ba84cc80a9491d65416bc7877e1650c87530fe8a Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions