Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support O_NONBLOCK I/O #59

Open
xairy opened this issue Nov 23, 2023 · 1 comment
Open

Support O_NONBLOCK I/O #59

xairy opened this issue Nov 23, 2023 · 1 comment
Labels
kernel Requires kernel changes raw gadget Requires changes in Raw Gadget

Comments

@xairy
Copy link
Owner

xairy commented Nov 23, 2023

Right now, every Raw Gadget endpoint read/write ioctl submits a USB request and waits until its completion. This is done deliberately to assist with coverage-guided fuzzing by having a single syscall fully process a single USB request.

However, for other use cases, we might want to have a non-blocking operation mode, where Raw Gadget would not wait until the completion of each USB request. The original blocking mode must still be kept in the implementation.

This issue is also mentioned in the kernel documentation.

@xairy xairy added kernel Requires kernel changes raw gadget Requires changes in Raw Gadget labels Jun 16, 2024
@ReaganDun
Copy link

want a non-blocking USB_RAW_IOCTL_EVENT_FETCH so badly😭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kernel Requires kernel changes raw gadget Requires changes in Raw Gadget
Projects
None yet
Development

No branches or pull requests

2 participants