guest_sce_net aborts when IPv6 is disabled by sysctl (kernel has IPv6, ::1 unusable) #2820
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by eliyarson on 2026-10-10T16:10:19Z.
guest_sce_netaborts on a Linux host where the kernel has IPv6 butnet.ipv6.conf.all.disable_ipv6=1. #2251 skips the IPv6 checks only whensocket(AF_INET6)fails withEAFNOSUPPORT(guest errno 47). Here the socket opens, so that skip is not taken, and the send to::1then fails.Setup:
main57f96fd2, CachyOS (Arch-based), kernel 7.2.2, GCC, Release,-DBUILD_TESTING=ON.net.ipv6.conf.all.disable_ipv6 = 1; loopback has no::1.Reproduce:
ctest --test-dir build -R '^guest_sce_net$'givesSubprocess aborted. The failing assertion is theRequireonsceNetSendtoto::1inCheckUnspecifiedIpv6(core/libs/tests/GuestSceNet.cpp:242before the patch).sceNetSendtoreturns guest errno 51 (NET_ENETUNREACH).Patch: if that send fails with errno 51, close both sockets, set
ipv6Unavailable, and return. The other checks still run and the test exits 77 as in #2251. Any other result still reaches the originalRequire. The rest of the file uses AF_INET, and the remaining::1use is pure text conversion.Tested (this host only):
guest_sce_netnow reports Skipped; the binary exits 77;tools/check_conventions.py --base origin/mainpasses; fullctest -j12 --timeout 60gives 698 tests with no failures (skips: this test plus 7video_out_*tests that need a display). Not tested on a host with working IPv6.Caveat: a host with IPv6 enabled but no route could also return errno 51 and skip instead of fail, hiding a regression. I judged that unlikely because the address bytes are checked just before the send. A stricter version would also require a plain host-side probe of
::1to fail.I can't open a PR (intake pause), so the patch is here for anyone who can. AI-assisted: yes. The patch and this report were written with AI assistance and reviewed by a second model; I take responsibility for the content.