登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
Gitee 2025年度开源项目评选启动,快来选出你心中的最佳开源项目!
代码拉取完成,页面将自动刷新
开源项目
>
其他开源
>
操作系统
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
30
Star
73
Fork
388
openEuler
/
qemu
代码
Issues
38
Pull Requests
31
Wiki
统计
流水线
服务
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
1663
cursor:heap-use-after-free in cursor_put functions
已关闭
luowei:master
openEuler:master
luowei
创建于 2025-11-13 17:00
克隆/下载
HTTPS
SSH
复制
下载 Email Patch
下载 Diff 文件
**1. cursor:heap-use-after-free in cursor_put functions Spice 线程会访问 cursor模块,相关内存可能被主线 vnc_dpy_cursor_define 释放 vnc_dpy_cursor_define和qxl_spice_reset_cursor函数没有加锁** ==18386==ERROR: AddressSanitizer: heap-use-after-free on address 0x6290016a820c at pc 0x55811982f041 bp 0x7ffc82368100 sp 0x7ffc823680e0 READ of size 4 at 0x6290016a820c thread T0 #0 0x55811982f040 in cursor_put ui/cursor.c:118 #1 0x5581198508dc in vnc_dpy_cursor_define ui/vnc.c:976 #2 0x5581198267ac in dpy_cursor_define ui/console.c:1816 #3 0x558119843282 in qemu_spice_cursor_refresh_bh ui/spice-display.c:595 #4 0x558119ac7fb6 in aio_bh_poll util/async.c:117 #5 0x558119ad09cf in aio_dispatch util/aio-posix.c:459 #6 0x558119ac7d0d in aio_ctx_dispatch util/async.c:268 #7 0x7fe44bda8df3 in g_main_context_dispatch (/lib64/libglib-2.0.so.0+0x4fdf3) #8 0x558119ace3ec in glib_pollfds_poll util/main-loop.c:218 #9 0x558119ace3ec in os_host_main_loop_wait util/main-loop.c:241 #10 0x558119ace3ec in main_loop_wait util/main-loop.c:517 #11 0x558119320a55 in main_loop /root/rpmbuild/BUILD/qemu-4.1.0/vl.c:1791 #12 0x558118f0de07 in main /root/rpmbuild/BUILD/qemu-4.1.0/vl.c:4473 #13 0x7fe449ad6b66 in __libc_start_main (/lib64/libc.so.6+0x25b66) #14 0x558118f1add9 in _start (/usr/libexec/qemu-kvm+0x785dd9) 0x6290016a820c is located 12 bytes inside of 16400-byte region [0x6290016a8200,0x6290016ac210) freed by thread T0 here: #0 0x7fe44c068c89 in free (/lib64/libasan.so.4+0x151c89) #1 0x7fe44bdaeb68 in g_free (/lib64/libglib-2.0.so.0+0x55b68) previously allocated by thread T34 here: #0 0x7fe44c06935b in calloc (/lib64/libasan.so.4+0x15235b) #1 0x7fe44bdaeac0 in g_malloc0 (/lib64/libglib-2.0.so.0+0x55ac0) Thread T34 created by T0 here: #0 0x7fe44c05b6ac in __interceptor_pthread_create (/lib64/libasan.so.4+0x1446ac) #1 0x7fe44a35a541 (/lib64/libspice-server.so.1+0x4f541) red_worker_run-->red_worker_main #2 0xfffffffffffffffe (<unknown module>) SUMMARY: AddressSanitizer: heap-use-after-free ui/cursor.c:118 in cursor_put Shadow bytes around the buggy address: 0x0c52802ccff0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c52802cd000: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c52802cd010: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c52802cd020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c52802cd030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa =>0x0c52802cd040: fd[fd]fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c52802cd050: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c52802cd060: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c52802cd070: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c52802cd080: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c52802cd090: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb ==18386==ABORTING 2025-11-07 01:33:08.962+0000: shutting down, reason=crashed
怎样手动合并此 Pull Request
git checkout master
git pull https://gitee.com/rowway12/qemu.git master
git push origin master
评论
4
提交
1
文件
2
检查
代码问题
0
批量操作
展开设置
折叠设置
审查
Code Owner
审查人员
Chuan
Chuan-Zheng
Bin Wu
RootWB
ZhiGang
cellfaint
朱科潜
kevinzhu1
alexchen
zhendongchen
ZhangBo
ooorz
avenLiu
aven6
黄勇
Hyman-Huang
eillon
eillon
叶镖翔
yebiaoxiang
zhangliang5
zhangliang5
imxcc
imxcc
未设置
最少人数
0
测试
Chuan
Chuan-Zheng
Bin Wu
RootWB
ZhiGang
cellfaint
朱科潜
kevinzhu1
alexchen
zhendongchen
ZhangBo
ooorz
avenLiu
aven6
黄勇
Hyman-Huang
eillon
eillon
叶镖翔
yebiaoxiang
zhangliang5
zhangliang5
imxcc
imxcc
未设置
最少人数
0
优先级
不指定
严重
主要
次要
不重要
标签
openeuler-cla/yes
ci_failed
sig/Virt
关联 Issue
未关联
Pull Request 合并后将关闭上述关联 Issue
里程碑
未关联里程碑
参与者
(2)
C
1
https://gitee.com/openeuler/qemu.git
git@gitee.com:openeuler/qemu.git
openeuler
qemu
qemu
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册