]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb57290825666d4c8687ecbefb2a35f6a9a1495a8
tree621b4e6f36dae1bf770c8bb9309028e80ece02c2
parentc8e91eb45698a4921a77641e1a3cff674feeda13
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