Skip to content

Fix I/O safety in io_uring_setup and configure_virtual_memory_map#1351

Merged
sunfishcode merged 2 commits intomainfrom
sunfishcode/u32-fd
Feb 24, 2025
Merged

Fix I/O safety in io_uring_setup and configure_virtual_memory_map#1351
sunfishcode merged 2 commits intomainfrom
sunfishcode/u32-fd

Conversation

@sunfishcode
Copy link
Copy Markdown
Member

Use RawFd for fd parameters in PrctlMmMap and io_uring_params, and make functions that take them as arguments unsafe to reflect that they depend on any file descriptors being valid.

Fixes #1001.

Use `RawFd` for fd parameters in `PrctlMmMap` and `io_uring_params`, and
make functions that take them as arguments `unsafe` to reflect that they
depend on any file descriptors being valid.

Fixes #1001.
@sunfishcode sunfishcode merged commit 9eb1102 into main Feb 24, 2025
@sunfishcode sunfishcode deleted the sunfishcode/u32-fd branch February 24, 2025 03:20
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.

u32 struct fields in place of file descriptors

1 participant