已开启
[Bug]: 共享内存 attach/detach IPC 请求未携带名称 #56
yangqi创建于 14 天前
14 天前 将 hlinbo、shw030915、Gao_Victor、qmyyxtl、caowaterman、yangqi12138 设为负责人
14 天前 添加了label:sig/sig-UB-ServiceCore
openeuler-ci-bot
14 天前 评论:
14 天前 评论:
Welcome To openEuler Community
Hey @yangqi12138 , thanks for your contribution to the community.
Bot Usage Manual
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands. You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
Contact Guide
If you have any questions, please contact the SIG: sig-UB-ServiceCore ,
and any of the maintainers: @Gao_Victor, @caowaterman, @hlinbo, @qmyyxtl, @shw030915 ,
and any of the committers: @deepsleep_mem, @liu1103xwxw .


安全信息提醒
本 Issue 不包含 API 令牌、密钥、密码、身份验证凭证、私有地址或其他敏感数据。
缺陷描述
ShmIpcCommand::IpcCallShmAttach和ShmIpcCommand::IpcCallShmDetach创建 IPC request 后,未将函数入参写入 request 的name_字段,导致服务端处理请求时无法获得目标共享内存名称。此外,
ubsmem_shmem_attach和ubsmem_shmem_detach已实现并使用默认可见性导出,但公共头文件ubs_mem.h缺少声明,外部调用者无法通过公开接口正常使用。环境信息
【OS 版本】与 OS 版本无关
【本软件版本】ubs-mem master、openEuler-24.03-LTS-SP4 分支
【依赖软件版本】不适用
【组网信息】不适用
缺陷信息
【问题复现步骤】
ubsmem_shmem_attach或ubsmem_shmem_detach,传入目标共享内存名称。IpcCallShmAttach或IpcCallShmDetach创建并发送 IPC request。name_字段并处理请求。【实际结果】
IPC request 的
name_字段未赋值,服务端无法获得目标共享内存名称;同时公共头文件缺少 attach/detach 接口声明,外部调用者无法通过公开接口正常使用这两个接口。【期望结果】
IPC request 正确携带调用者传入的共享内存名称;公共头文件声明 attach/detach 接口,外部调用者可以正常编译并调用。
【其他相关附件信息】
无。
【已分析信息】
request->name_ = name。ubs_mem.h的extern "C"区域声明ubsmem_shmem_attach和ubsmem_shmem_detach。master、openEuler-24.03-LTS-SP4。【验证要求】
git diff --check通过。