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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2015 12:22:29 +0000 (13:22 +0100)
commitedf2ec9971b81163e986556d7773e46b372264fd
tree68dbabb0a4aaff9bc88382a581506acadbd48b59
parentfa41700e373fc52e3c4e5193008332bb558e9f03
Btrfs:__add_inode_ref: out of bounds memory read when looking for extended ref.

commit dd9ef135e3542ffc621c4eb7f0091870ec7a1504 upstream.

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>
Signed-off-by: Chris Mason <clm@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/tree-log.c