已开启
共享内存 attach/detach IPC 请求未携带名称 #56
yangqi创建于  5 天前
yangqi
5 天前 创建

缺陷描述

ShmIpcCommand::IpcCallShmAttachShmIpcCommand::IpcCallShmDetach 创建 IPC request 后,未将函数入参写入 request 的 name_ 字段。服务端处理请求时无法获得目标共享内存名称。

此外,ubsmem_shmem_attachubsmem_shmem_detach 已实现并使用默认可见性导出,但公共头文件 ubs_mem.h 缺少声明,外部调用者无法通过公开接口正常使用。

影响分支

  • master
  • openEuler-24.03-LTS-SP4

修复方案

  • attach/detach IPC request 创建成功后设置 request->name_ = name
  • ubs_mem.hextern "C" 区域声明 ubsmem_shmem_attachubsmem_shmem_detach

验证

  • 两个目标分支的 Release 构建通过。
  • clang-format 检查通过。
  • git diff --check 通过。

制品仓关联

likedislike
openeuler-ci-botopeneuler-ci-bot成员
5 天前 将 hlinbo、shw030915、Gao_Victor、qmyyxtl、caowaterman、yangqi12138 设为负责人
openeuler-ci-botopeneuler-ci-bot成员
5 天前 添加了label:sig/sig-UB-ServiceCore
openeuler-ci-bot
openeuler-ci-bot成员
5 天前 评论:

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 .

likedislike
Yyangqi
5 天前 关联了pull request:fix: set shared memory attach and detach names
Yyangqi
5 天前 关联了pull request:fix: set shared memory attach and detach names