android_kernel_oneplus_msm8998/fs/jbd2
Theodore Ts'o 2cd33a5317 jbd2: don't mark block as modified if the handle is out of credits
commit e09463f220ca9a1a1ecfda84fcda658f99a1f12a upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-11 16:03:48 +02:00
..
checkpoint.c jbd2: fix checkpoint list cleanup 2015-10-17 22:35:09 -04:00
commit.c jbd2: make journal y2038 safe 2016-08-20 18:09:20 +02:00
journal.c jbd2: fix use after free in kjournald2() 2018-04-29 07:50:02 +02:00
Kconfig jbd2: remove debug dependency on debug_fs and update Kconfig help text 2013-06-12 23:07:51 -04:00
Makefile [PATCH] jbd2: rename jbd2 symbols to avoid duplication of jbd symbols 2006-10-11 11:14:15 -07:00
recovery.c jbd2: clean up feature test macros with predicate functions 2015-10-17 16:18:45 -04:00
revoke.c jbd2: clean up feature test macros with predicate functions 2015-10-17 16:18:45 -04:00
transaction.c jbd2: don't mark block as modified if the handle is out of credits 2018-07-11 16:03:48 +02:00