linux-stable/fs/jbd2
Theodore Ts'o e09463f220 jbd2: don't mark block as modified if the handle is out of credits
Do not set the b_modified flag in block's journal head should not
until after we're sure that jbd2_journal_dirty_metadat() will not
abort with an error due to there not being enough space reserved in
the jbd2 handle.

Otherwise, future attempts to modify the buffer may lead a large
number of spurious errors and warnings.

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
2018-06-16 20:21:45 -04:00
..
checkpoint.c ext4: fix up remaining files with SPDX cleanups 2017-12-17 22:00:59 -05:00
commit.c ext4: fix up remaining files with SPDX cleanups 2017-12-17 22:00:59 -05:00
journal.c jbd2: remove NULL check before calling kmem_cache_destroy() 2018-05-20 22:38:26 -04:00
Kconfig jbd2: remove debug dependency on debug_fs and update Kconfig help text 2013-06-12 23:07:51 -04:00
Makefile
recovery.c jbd2: clarify bad journal block checksum message 2018-02-18 21:33:13 -05:00
revoke.c jbd2: remove NULL check before calling kmem_cache_destroy() 2018-05-20 22:38:26 -04:00
transaction.c jbd2: don't mark block as modified if the handle is out of credits 2018-06-16 20:21:45 -04:00