]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r287706 (by delphij):
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 3 Oct 2015 11:38:10 +0000 (11:38 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 3 Oct 2015 11:38:10 +0000 (11:38 +0000)
commit9e647f7c79daff3f662ec4751567a6e9b63af5dc
tree764b0ca50eae8a03219b08f5cecef9fa692ca287
parentb0c344857fde9e0ac6621d84e7900747d514a88e
MFC r287706 (by delphij):
6214 zpools going south

In r286570 (MFV of r277426) an unprotected write to b_flags to
set the compression mode was introduced.  This would open a race
window where data is partially decompressed, modified, checksummed
and written to the pool, resulting in pool corruption due to the
partial decompression.

Prevent this by reintroducing b_compress

illumos/illumos-gate@d4cd038c92c36fd0ae35945831a8fc2975b5272c

Illumos issues:

    6214 zpools going south
    https://www.illumos.org/issues/6214

git-svn-id: svn://svn.freebsd.org/base/stable/10@288596 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/arc.h