Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[codex] Fix RDMA request lifetime during flush#6217

Draft
EvgeniyKozev wants to merge 1 commit into
mainfrom
codex/rdma-uaf-session-lifetime
Draft

[codex] Fix RDMA request lifetime during flush#6217
EvgeniyKozev wants to merge 1 commit into
mainfrom
codex/rdma-uaf-session-lifetime

Conversation

@EvgeniyKozev

Copy link
Copy Markdown
Collaborator

Summary

Fixes an RDMA server lifetime bug where a session could be considered flushed after WR queues drained while an application handler still owned the raw request context and RDMA pool-backed output buffer.

The session now tracks requests handed to IServerHandler and keeps the session alive until the request returns through SendResponse/SendError. This prevents async callbacks from serializing into freed RDMA pool memory after disconnect/flush.

Also pins RDMA server endpoints across async blockstore endpoint callbacks and fixes the local read SGList lifetime/path covered by the current tests.

Validation

  • git --no-pager diff --check
  • ./ya make -tt cloud/storage/core/libs/rdma/impl/ut
  • ./ya make -tt cloud/blockstore/libs/client_rdma/ut
  • ./ya make cloud/blockstore/libs/service_rdma cloud/blockstore/libs/endpoints_rdma cloud/blockstore/libs/storage/disk_agent
  • ./ya make -tt cloud/blockstore/libs/storage/disk_agent/ut

@github-actions

github-actions Bot commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Note

This is an automated comment that will be appended during run.

Note

All workloads for linux-x86_64-relwithdebinfo have completed.

Tip

Planned checks for linux-x86_64-relwithdebinfo.

🟢 linux-x86_64-relwithdebinfo target: cloud/tasks/,cloud/storage/ (test time: 256s): all tests PASSED for commit 43a197b.

TESTS PASSED ERRORS FAILED FAILED BUILD SKIPPED MUTED?
931 931 0 0 0 0 0

🟢 linux-x86_64-relwithdebinfo target: cloud/disk_manager/ (test time: 237s): all tests PASSED for commit 43a197b.

TESTS PASSED ERRORS FAILED FAILED BUILD SKIPPED MUTED?
1137 1137 0 0 0 0 0

🟢 linux-x86_64-relwithdebinfo target: cloud/blockstore/ (test time: 1365s): all tests PASSED for commit 43a197b.

TESTS PASSED ERRORS FAILED FAILED BUILD SKIPPED MUTED?
6460 6459 0 0 0 1 0

🟢 linux-x86_64-relwithdebinfo target: cloud/filestore/ (test time: 5022s): all tests PASSED for commit 43a197b.

TESTS PASSED ERRORS FAILED FAILED BUILD SKIPPED MUTED?
3754 3754 0 0 0 0 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant