]> git.baikalelectronics.ru Git - kernel.git/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>
Fri, 6 Mar 2015 01:28:33 +0000 (17:28 -0800)
commit56d30e178e9ef3c1561a70fd74ab170cb0ba19b4
tree0ea14d6f3c7d20e5faa3845f54e1ffc28bc7a9c4
parent401e957d191ca721f1c5dfc5d644085dbfad4bc6
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