]> git.proxmox.com Git - mirror_zfs.git/commit
Double-free of encryption wrapping key due to invalid pool properties
authorloli10K <loli10K@users.noreply.github.com>
Tue, 28 May 2019 22:19:50 +0000 (00:19 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 28 May 2019 22:19:50 +0000 (15:19 -0700)
commitab1a9705f8021fbbb816d6042b8b8f40f1bb3aaf
treed221df7416661476b15882374f3fba7afdfda597
parent227d37938553c3c774f127a6354cad57b6bfa12c
Double-free of encryption wrapping key due to invalid pool properties

This commits fixes a double-free in zfs_ioc_pool_create() triggered by
specifying an unsupported combination of properties when creating a pool
with encryption enabled.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tom Caputi <tcaputi@datto.com>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #8791
module/zfs/zfs_ioctl.c
tests/zfs-tests/tests/functional/cli_root/zpool_create/zpool_create_encrypted.ksh