Repository navigation
fix(libkernel): datagram accept errno proposal (withdrawn) - #2082
Closed
STUPIDCONTEM wants to merge 1 commit into
Closed
STUPIDCONTEM wants to merge 1 commit into
STUPIDCONTEM wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Evidence review (2026-10-09)
Withdrawn: the proposed EOPNOTSUPP expectation was incorrect for FreeBSD datagram accept (EINVAL). This patch must not be applied or reopened as written.
Game/title ID: none verified. No PS5 title execution is claimed.
Withdrawn after kernel-source verification
The general FreeBSD intro(2) example conflicts with the actual stable/11 kernel path.
kern_accept4returns EINVAL when SO_ACCEPTCONN is absent, before calling the protocol accept handler. An ordinary UDP socket does not establish a listening state. Therefore the EOPNOTSUPP change is not sufficiently supported for the guest contract, and this PR is withdrawn; the existing behavior should remain pending direct PS5/FreeBSD validation. The regression below asserted the proposed result and does not establish that the proposal was correct.Source: https://github.com/freebsd/freebsd-src/blob/stable/11/sys/kern/uipc_syscalls.c
What
Return guest EOPNOTSUPP (45) when accept is called on a datagram socket. The previous combined type/argument guard returned EINVAL (22), conflating an unsupported socket operation with malformed stream-socket arguments. Keep EINVAL for a nonnull address with null length, and preserve EBADF for a closed descriptor.
This follows FreeBSD stable/11 intro(2), EOPNOTSUPP and matches the runtime's existing listen-on-datagram error convention.
Tested
Windows 10 Pro 19045, WinLibs GCC 15.2.0 UCRT posix SEH r7, Release, BUILD_TESTING=ON; independent branch from main f145139.
No Linux or title run was performed. Open #2079 changes nonblocking inheritance immediately after this accept guard; retain both changes when integrating. #2080 handles connect errors and adds a separate TCP regression. Exact open-PR diff inspection found no other change to this type-error guard.
Checklist