Skip to content

compio-driver is internally unsound #741

@George-Miao

Description

@George-Miao

Currently we make all OpCodes !Unpin and Pin it onto heap with Key so that buffers submitted into kernel stays at where they are. However when operations are finished, we take the OpCodes out and return them back to user, and this violates Pin contract. What's more, some ops contains self referential pointers, and those pointers will become dangling when the op is returned, even though we're not accessing those (for now). This doesn't cause any runtime error but conceptually it is unsound and undefined behavior MAY happen in future.

Metadata

Metadata

Labels

bugSomething isn't workingpackage: driverRelated to compio-driver

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions