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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Jul 2018 14:29:18 +0000 (16:29 +0200)
commit02945e49dc2026459e069467ec64e3fbecda844f
tree58ead1e1b82334351171bd508211b7aaef31c74a
parent8a9ef17c0dc93def47e17b227ada95c682592a1d
ext4: avoid running out of journal credits when appending to an inline file

commit 8bc1379b82b8e809eef77a9fedbb75c6c297be19 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/ext4.h
fs/ext4/inline.c
fs/ext4/xattr.c