summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2012-11-29 21:21:22 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-17 08:45:59 -0800
commit5ec1cdca458496eb8e8461738b53fcbc2d024650 (patch)
tree420b94516109e7e86e0d1169a968dbc65b3293f3 /lib
parent6c96e0701d62e20a2d7ac2de6083bbe5841b9b95 (diff)
downloadlwn-5ec1cdca458496eb8e8461738b53fcbc2d024650.tar.gz
lwn-5ec1cdca458496eb8e8461738b53fcbc2d024650.zip
ext4: fix possible use after free with metadata csum
commit aeb1e5d69a5be592e86a926be73efb38c55af404 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions