]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Nov 2011 02:20:37 +0000 (21:20 -0500)
commit4dfb74768c9a7342fef0d7c7a6f30c7ca4468733
treec38d0dc62a48c88e874dd547a2b03ea4a0a6c7de
parentd98a16cfdb6426f833eafafbd42ab7fd7db4cb9c
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>
(cherry picked from commit 84850e8d8a5ec7b9d3c47d224e9a10c9da52ff1b)
fs/btrfs/relocation.c