diff options
| author | Theodore Ts'o <tytso@mit.edu> | 2018-06-16 20:21:45 -0400 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2018-12-01 23:49:09 +0100 |
| commit | 2602a909de2620b44cdb361207881a45c3f42659 (patch) | |
| tree | 38a9a574ae8028ded773025096271a29c410ae48 /android | |
| parent | 022d1ab06a38c231bbff6adefb86468e03288ee7 (diff) | |
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>
[bwh: Backported to 3.16: Drop the added logging statement, as it's on
a code path that doesn't exist here]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'android')
0 files changed, 0 insertions, 0 deletions
