]> granicus.if.org Git - zfs/commit
ZFS send fails to dump objects larger than 128PiB
authorLOLi <loli10K@users.noreply.github.com>
Thu, 26 Oct 2017 23:58:38 +0000 (01:58 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 26 Oct 2017 23:58:38 +0000 (16:58 -0700)
commitee45fbd89465f12b39e97173a088175d4b712b5f
tree811bc8bc132c6aef42e6d18f2a6ffde9abe20f7b
parent88f9c9396bcce596db56dc880260f95c49a51d67
ZFS send fails to dump objects larger than 128PiB

When dumping objects larger than 128PiB it's possible for do_dump() to
miscalculate the FREE_RECORD offset due to an integer overflow
condition: this prevents the receiving end from correctly restoring
the dumped object.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #6760
module/zfs/bpobj.c
module/zfs/dmu.c
module/zfs/dmu_send.c
tests/runfiles/linux.run
tests/zfs-tests/tests/functional/cli_root/zfs_send/Makefile.am
tests/zfs-tests/tests/functional/cli_root/zfs_send/zfs_send_sparse.ksh [new file with mode: 0755]