diff options
| author | Dan Carpenter <[email protected]> | 2016-11-30 19:21:05 +0000 |
|---|---|---|
| committer | Radim Krčmář <[email protected]> | 2016-12-01 15:10:50 +0000 |
| commit | a0f1d21c1ccb1da66629627a74059dd7f5ac9c61 (patch) | |
| tree | 50974c8b8a1564bd35353043f3202510f7cec4de /scripts/gcc-plugins/sancov_plugin.c | |
| parent | Merge tag 'kvm-arm-for-4.9-rc7' of git://git.kernel.org/pub/scm/linux/kernel/... (diff) | |
| download | kernel-a0f1d21c1ccb1da66629627a74059dd7f5ac9c61.tar.gz kernel-a0f1d21c1ccb1da66629627a74059dd7f5ac9c61.zip | |
KVM: use after free in kvm_ioctl_create_device()
We should move the ops->destroy(dev) after the list_del(&dev->vm_node)
so that we don't use "dev" after freeing it.
Fixes: a28ebea2adc4 ("KVM: Protect device ops->create and list_add with kvm->lock")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Signed-off-by: Radim Krčmář <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions
