Repository navigation
Conversation
…with EPROTOTYPE, as libkernel's socket does Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Change: Bug fix Merge Risk:
|
What
sceNetSocketinAF_INETorAF_INET6failed every unknown type withEPROTONOSUPPORT. FreeBSD 11.4'ssocreateanswersEPROTOTYPEwhen no protocol of the domain has the type, the protocol is 0 and the type is not 0, andEPROTONOSUPPORTotherwise. libkernel'ssocketdoes the same (boykopovar#7151), which is what a payload process on a PS5 (firmware 13.60) got fromsocketforSOCK_RDM,SOCK_SEQPACKETand an unknown type. boykopovar#12470 added thesceNetSockettype tests with protocol 6 and left the protocol-0 case open for this reason.The type check now returns
EPROTOTYPEfor a type other than stream, datagram, raw and the two P2P types when the protocol is 0 and the type is not 0.CheckSocketArgumentErrorsasserts it for types 4, 5, 7, 99 and -1 with protocol 0 in both families, andEPROTONOSUPPORTfor type 0 with protocol 0.Tested
Commit a305db1 on
main4a7fd1c, Release, in a workflow on my fork: https://github.com/Dr-Coconut/AnyPS5/actions/runs/46693612002windows-latest, image windows-2025-vs2026, WinLibs GCC 15.2.015.2.0posix-14.0.0-ucrt-r7) and Linux (GitHub-hostedubuntu-latest, image ubuntu-26.04, GCC 15.2.0), with the change:guest_sce_netpasses, and so do the eightguest_net_address_fault_*tests.Export.cpprestored tomainand the new cases kept:guest_sce_netfails at line 193, type 4 with protocol 0, withEPROTONOSUPPORT(43); the controls pass.Not run on macOS. No title tested.
tools/check_conventions.pypasses.tools/pr_overlap.py --branchreported no overlap among the open pull requests it could merge; it could not compare eight that conflict withmain. boykopovar#25451 and boykopovar#28442 also changesceNetSocket, at other lines (the raw protocol and the buffer sizes), and merge cleanly with this; boykopovar#5836 reworks the same type check for peer sockets but already conflicts withmain.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Summary by CodeRabbit