]> git.proxmox.com Git - mirror_qemu.git/commit - target/arm/kvm.c
target-arm: fix a segmentation fault due to illegal memory access
authorZheng Xiang <xiang.zheng@linaro.org>
Fri, 22 Jun 2018 12:28:35 +0000 (13:28 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 22 Jun 2018 12:28:35 +0000 (13:28 +0100)
commit5ff9aaabdc6aec367ba139bf3f2ccacd918a495f
tree6d8d38a134f6558b31f3667d0ad0801446e37e01
parent8297cb13e407db8a96cc7ed6b6a6c318a150759a
target-arm: fix a segmentation fault due to illegal memory access

The elements of kvm_devices_head list are freed in kvm_arm_machine_init_done(),
but we still access these illegal memory in kvm_arm_devlistener_del().

This will cause segment fault when booting guest with MALLOC_PERTURB_=1.

Signed-off-by: Zheng Xiang <xiang.zheng@linaro.org>
Message-id: 20180619075821.9884-1-zhengxiang9@huawei.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/kvm.c