You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 304dd3a
Browse filesBrowse the repository at this point in the historyBrowse files
Fix Selene DMA lifetime, quarantine, and shared-region aliasing bugs
Active GPU DMA, host compression, NIC RDMA, and concurrent data-channel
workers can access mapped host or shared-memory ranges across close,
panic unwind, quarantine, and multi-rank scatter paths. Unmapping a
region before every local copier, RDMA queue pair, and compression
worker has drained causes use-after-unmap, and constructing overlapping
`&mut [u8]` slices in `LocalRegions` is undefined behavior under
concurrent readers or multi-rank writes.
- Declare `transfers` before `core`/`pool` in `MemoryStore` and
`disk_store::Resources`, close both tiers in `CompositeStore::close`,
guard `AsyncCompressor`'s active count with an RAII drop guard, and
leak the slab pool and report an error if compression does not finish
before `MemoryStore::close` (`selene/src/memory.rs`,
`selene/src/disk_store.rs`, `selene/src/composite.rs`).
- Retain `sess.regions` and `Attachment::Shm` in `Engine::quarantine`,
retain `self.shared` in `Agent::quarantine`, and invoke
`engine.quarantine()` when `conn::shutdown` fails to drain
(`selene/src/pool/engine/mod.rs`, `selene/src/pool/conn.rs`,
`selene/src/pool/agent.rs`).
- Wrap `Staging.region` in `Arc<Region>` and retain it inside
`rdma::Device` so quarantined RDMA queue pairs keep their registered
staging mapped (`selene/src/pool/rdma.rs`, `selene/src/pool/net.rs`).
- Add `LocalRegions::bytes_read`, `LocalRegions::ptr_mut`, and
`SliceLayout::scatter_disjoint` so concurrent read paths borrow
`&[u8]` and multi-rank data-channel scatter writes only each rank's
disjoint byte ranges without aliasing `&mut [u8]`
(`selene/src/shared/slice.rs`, `selene-manager/src/regions.rs`,
`selene-manager/src/pool/pass.rs`,
`selene-manager/src/data/channel.rs`).
- Attach `ReadAhead`'s overlapped file handle to its IOCP queue on
Windows (`selene/src/disk.rs`).
Every affected teardown, quarantine, RDMA, and concurrent region access
path now preserves backing mappings and disjoint ownership until all
DMA, RDMA, and worker accesses finish.
Validated on Linux (rebased onto post-#607 main `5df8edd3c`), GB10, and
SM120 hardware across `selene`, `selene-manager`, and `helios offload::`.
Signed-off-by: yatesdr <6937857+yatesdr@users.noreply.github.com>
Design-Signed-Off-By: yatesdr; design-review=2e5b
0 commit comments