Qemu asan test reported heap-use-after-free error when using qxl and spice
发件人: fengzhuoran <[email protected]>
发送时间: 2023年7月6日 20:38
收件人: zhangjianguo (A) <[email protected]>
主题: Qemu asan test reported heap-use-after-free error when using qxl and spice
Qemu:qemu-6.2
Spice server: 0.14.3
GuestOS:kylinOS desktop(or other guestos with desktop) vm xml:My VM xml is in the email attachment.
When we tested QEMU with asan, we found a heap-use-after-free error. The error message is as follows: [cid:[email protected]]
[cid:[email protected]]
I think the reason for the problem is that the cursor pointer was not set to NULL when qemu call cursor_put. But I don't know what situation will trigger this error. This error is difficult to reproduce by natural.
[cid:[email protected]]
I can get the same error by calling cursor_put twice.
I don't know if this is a bug in QEMU and I am looking for help.