summaryrefslogtreecommitdiffstats
path: root/hw/pci-bridge/xio3130_upstream.c
diff options
context:
space:
mode:
authorGonglei2016-12-22 04:01:28 +0100
committerMichael S. Tsirkin2017-01-10 06:02:52 +0100
commit02ed3e7c1665205ddae052774d6f26c71d3d9b30 (patch)
tree44c94571b153a3e46808212a6cf4393815c485b3 /hw/pci-bridge/xio3130_upstream.c
parentvirtio-crypto-pci: tag virtio-crypto device hot pluggable (diff)
downloadqemu-02ed3e7c1665205ddae052774d6f26c71d3d9b30.tar.gz
qemu-02ed3e7c1665205ddae052774d6f26c71d3d9b30.tar.xz
qemu-02ed3e7c1665205ddae052774d6f26c71d3d9b30.zip
virtio-crypto: zeroize the key material before free
Common practice with sensitive information (key material, passwords, etc). Prevents sensitive information from being exposed by accident later in coredumps, memory disclosure bugs when heap memory is reused, etc. Sensitive information is sometimes also held in mlocked pages to prevent it being swapped to disk but that's not being done here. Let's zeroize the memory of CryptoDevBackendSymOpInfo structure pointed for key material security. [Thanks to Stefan for help with crafting the commit message] Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci-bridge/xio3130_upstream.c')
0 files changed, 0 insertions, 0 deletions