Home
last modified time | relevance | path

Searched hist:aeb1e5d69a5be592e86a926be73efb38c55af404 (Results 1 – 1 of 1) sorted by relevance

/linux/fs/ext4/
H A Dialloc.cdiff aeb1e5d69a5be592e86a926be73efb38c55af404 Fri Nov 30 03:21:22 CET 2012 Theodore Ts'o <tytso@mit.edu> ext4: fix possible use after free with metadata csum

Commit fa77dcfafeaa 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: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Acked-by: Darrick J. Wong <darrick.wong@oracle.com>
Cc: stable@vger.kernel.org