Skip to content
Commit 59fe4f41 authored by Josef Bacik's avatar Josef Bacik
Browse files

Btrfs: fix possible stale data exposure



We specifically do not update the disk i_size if there are ordered extents
outstanding for any area between the current disk_i_size and our ordered
extent so that we do not expose stale data.  The problem is the check we
have only checks if the ordered extent starts at or after the current
disk_i_size, which doesn't take into account an ordered extent that starts
before the current disk_i_size and ends past the disk_i_size.  Fix this by
checking if the extent ends past the disk_i_size.  Thanks,

Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
parent 5d1f4020
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment