HomeFreeBSD

Raw receive fix and encrypted objset security fix

Description

Raw receive fix and encrypted objset security fix

This patch fixes two problems with the encryption code. First, the
current code does not correctly prohibit the DMU from updating
dn_maxblkid during object truncation within a raw receive. This
usually only causes issues when the truncating DRR_FREE record is
aggregated with DRR_FREE records later in the receive, so it is
relatively hard to hit.

Second, this patch fixes a security issue where reading blocks
within an encrypted object did not guarantee that the dnode block
itself had ever been verified against its MAC. Usually the
verification happened anyway when the bonus buffer was read, but
some use cases (notably zvols) might never perform the check.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #7632

Details

Provenance
Tom Caputi <tcaputi@datto.com>Authored on Jun 28 2018, 4:20 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jun 28 2018, 4:20 PM
Parents
rG3be1eb29dab4: Fix formatting in zpool-features(5)
Branches
Unknown
Tags
Unknown