Skip to contentSkip to conversation

Qemu asan test reported heap-use-after-free error when using qxl and spice

DISCUSSION zhangjianguo (A) via 1 participant 1 message Jul 6, 2023 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

发件人: 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.