Tom Caputi 637f0c6019 Fix clone handling with encryption roots
Currently, spa_keystore_change_key_sync_impl() does not recurse
into clones when updating encryption roots for either a call to
'zfs promote' or 'zfs change-key'. This can cause children of
these clones to end up in a state where they point to the wrong
dataset as the encryption root. It can also trigger ASSERTs in
some cases where the code checks reference counts on wrapping
keys. This patch fixes this issue by ensuring that this function
properly recurses into clones during processing.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alek Pinchuk <apinchuk@datto.com>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #9267 
Closes #9294
2019-09-16 10:07:33 -07:00
..
2019-07-26 10:54:14 -07:00
2019-06-19 09:48:12 -07:00
2019-06-19 09:48:12 -07:00
2019-09-05 14:49:49 -07:00
2019-06-19 09:48:12 -07:00
2019-09-05 14:49:49 -07:00
2019-09-02 17:56:41 -07:00
2018-05-29 16:00:33 -07:00
2019-09-02 17:56:41 -07:00
2018-05-29 16:00:33 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2017-10-11 16:54:48 -04:00
2019-05-02 16:46:04 -07:00
2019-09-05 14:49:49 -07:00
2019-09-05 14:49:49 -07:00
2019-06-19 09:48:12 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-07-16 10:11:49 -07:00
2019-06-20 18:29:02 -07:00
2019-09-02 17:56:41 -07:00
2019-06-20 18:29:02 -07:00
2019-09-05 14:49:49 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-09-05 14:49:49 -07:00
2019-09-02 17:56:41 -07:00
2018-05-29 16:00:33 -07:00
2019-09-05 14:49:49 -07:00
2018-05-29 16:00:33 -07:00
2018-02-13 14:54:54 -08:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2018-02-09 10:08:05 -08:00
2019-07-26 10:54:14 -07:00
2019-09-02 17:56:41 -07:00