aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorLukas Czerner <lczerner@redhat.com>2015-10-17 22:57:06 -0400
committerMoyster <oysterized@gmail.com>2016-11-17 12:13:09 +0100
commitde6c3107fc221fe13e8f1f39d2be9b06e017653d (patch)
treea6471338d97735941a0c1b980873cfaf0b7bc685 /kernel
parent86db20b3afcaee0b7173da2c32d654108ef938ce (diff)
ext4: fix potential use after free in __ext4_journal_stop
There is a use-after-free possibility in __ext4_journal_stop() in the case that we free the handle in the first jbd2_journal_stop() because we're referencing handle->h_err afterwards. This was introduced in 9705acd63b125dee8b15c705216d7186daea4625 and it is wrong. Fix it by storing the handle->h_err value beforehand and avoid referencing potentially freed handle. Issue: CYNGNOS-3304 Change-Id: I6e969a7f6214479d6b60627307327e5b720e338c Fixes: 9705acd63b125dee8b15c705216d7186daea4625 Signed-off-by: Lukas Czerner <lczerner@redhat.com> Reviewed-by: Andreas Dilger <adilger@dilger.ca> Cc: stable@vger.kernel.org
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions