]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: check file extent backref offset underflow
authorYan, Zheng <zheng.z.yan@intel.com>
Mon, 29 Aug 2011 01:25:53 +0000 (09:25 +0800)
committerDavid Sterba <dsterba@suse.cz>
Thu, 20 Oct 2011 16:10:31 +0000 (18:10 +0200)
commit6bebc29a6cf699ecc9703d9c82b0c5628b257541
tree799dd9e0b150361dc2a5cdf3772a0ce8395d5f06
parentcc60cbe1b334769136606656ff08cc7702b8cbea
btrfs: check file extent backref offset underflow

Offset field in data extent backref can underflow if clone range ioctl
is used. We can reliably detect the underflow because max file size is
limited to 2^63 and max data extent size is limited by block group size.

Signed-off-by: Zheng Yan <zheng.z.yan@intel.com>
fs/btrfs/relocation.c