Skip to content

Conversation

@MegaManSec
Copy link

Block when recv_fds->nfds >= MaxQueue and only signal when queue < limit, preventing a +1 over-accept.

This bug was found with ZeroPath.

Block when recv_fds->nfds >= MaxQueue and only signal when queue < limit, preventing a +1 over-accept.

This bug was found with ZeroPath.

Signed-off-by: Joshua Rogers <[email protected]>
@val-ms
Copy link
Contributor

val-ms commented Nov 6, 2025

Thank you for the PR.

I reviewed this early this week and must have not submitted my comment. I believe your change is technically correct but does not fix any behavioral issue or technical problem. As far as I could tell from reading the code, the MaxQueue limit is not used for any allocation and so the only consequence of going higher than the queue limit is more thing in the queue.

The default queue limit is 200. If my understanding is correct, the existing version actually allows for 201 items in he queue and your fix makes it actually limit to 200.

Is that right?

@MegaManSec
Copy link
Author

Yes, it's just a tiny correctional but, nothing serious at all.

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.

2 participants