diff options
author | Theodore Ts'o <tytso@mit.edu> | 2012-11-30 06:21:22 +0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-11-30 06:21:22 +0400 |
commit | aeb1e5d69a5be592e86a926be73efb38c55af404 (patch) | |
tree | addd38abf4d74fc6fd54829cff1c3fb9fb832c31 /fs/ext4/inode.c | |
parent | 69c499d152a7fe2c4443e5ddd91568ad5a79145a (diff) | |
download | linux-aeb1e5d69a5be592e86a926be73efb38c55af404.tar.xz |
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
Diffstat (limited to 'fs/ext4/inode.c')
0 files changed, 0 insertions, 0 deletions