ext4: avoid running out of journal credits when appending to an inline file
authorTheodore Ts'o <tytso@mit.edu>
Sun, 17 Jun 2018 03:41:59 +0000 (23:41 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 17 Jun 2018 03:41:59 +0000 (23:41 -0400)
commit8bc1379b82b8e809eef77a9fedbb75c6c297be19
tree621b4e6f36dae1bf770c8bb9309028e80ece02c2
parente09463f220ca9a1a1ecfda84fcda658f99a1f12a
ext4: avoid running out of journal credits when appending to an inline file

Use a separate journal transaction if it turns out that we need to
convert an inline file to use an data block.  Otherwise we could end
up failing due to not having journal credits.

This addresses CVE-2018-10883.

https://bugzilla.kernel.org/show_bug.cgi?id=200071

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/ext4.h
fs/ext4/inline.c
fs/ext4/xattr.c