]> git.hungrycats.org Git - linux/commit
Btrfs:__add_inode_ref: out of bounds memory read when looking for extended ref.
authorQuentin Casasnovas <quentin.casasnovas@oracle.com>
Tue, 3 Mar 2015 15:31:38 +0000 (16:31 +0100)
committerChris Mason <clm@fb.com>
Tue, 3 Mar 2015 15:49:02 +0000 (07:49 -0800)
commit36ebd77c9d5daaaa77594b536f515e7227851f71
tree3609c2036d85e7e8c44e3319d18e722ea6d54d0f
parentd145b8b6336442ab3dd45f3344d162dc471de4af
Btrfs:__add_inode_ref: out of bounds memory read when looking for extended ref.

Improper arithmetics when calculting the address of the extended ref could
lead to an out of bounds memory read and kernel panic.

Signed-off-by: Quentin Casasnovas <quentin.casasnovas@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
cc: stable@vger.kernel.org # v3.7+
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/tree-log.c