-
Notifications
You must be signed in to change notification settings - Fork 402
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
IORING_OP_RECVMSG fails when msg_control is set #220
Comments
This is known, cmsg is currently disabled through io_uring. This will be relaxed or 5.10. |
Do we really need this? Is there a user for whom SCM* I guess they would require one by one handling in io_uring |
Taking a closer look, I don't think we do. |
#128, but don't know their use case and how critical to do that via io_uring. |
I don't think we need it for SCM_RIGHTS, I don't view that as performance critical. But other uses cases of cmsg are useful and we do need, like MSG_ERRQUEUE. I'd be quite content to leave SCM_RIGHTS disabled forever. |
Above is queued for 5.10 in net-next |
I wanted to use cmsg in order to timestamp RX packets and to see how much my application layer/io_uring contributes to the latency tail. |
Closing this one |
struct msghdr
hasmsg_control
andmsg_controllen
fields that could be set before callingrecvmsg()
.recvmsg
returns successfully with those fields set.IORING_OP_RECVMSG
, on the other hand fails with22/Invalid argument
.To reproduce, see https://github.com/romange/liburing/commit/fd9c810c6cf6c73c7f3b27aacf144a229ee56313
The text was updated successfully, but these errors were encountered: