Skip to content
Commit aeb1e5d6 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

ext4: fix possible use after free with metadata csum



Commit fa77dcfa introduces block bitmap checksum calculation into
ext4_new_inode() in the case that block group was uninitialized.
However we brelse() the bitmap buffer before we attempt to checksum it
so we have no guarantee that the buffer is still there.

Fix this by releasing the buffer after the possible checksum
computation.

Signed-off-by: default avatarLukas Czerner <lczerner@redhat.com>
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
Acked-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Cc: stable@vger.kernel.org
parent 69c499d1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment