Repository navigation
test(libSceNet): accept every unusable IPv6 loopback error in guest_sce_net - #7987
Merged
oneandonlydean merged 1 commit intoOct 20, 2026
Conversation
…ce_net guest_sce_net skips its IPv6 checks when sending to ::1 fails and HostIpv6LoopbackUnavailable confirms the host cannot reach it. The host probe accepts EADDRNOTAVAIL, ENETUNREACH and EHOSTUNREACH, but the guest check accepted only ENETUNREACH (51). On a Linux host without ::1 the send can fail with EADDRNOTAVAIL instead, which the guest sees as 49, and the test aborted in CheckUnspecifiedIpv6 instead of skipping. Accept the guest numbers of the same three errors (49, 51 and 65).
12 tasks done
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
12 tasks done
This was referenced Oct 20, 2026
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.
What
guest_sce_netaborts inCheckUnspecifiedIpv6on a Linux host whose kernel has IPv6 but where::1is unusable. The test skips its IPv6 checks whensceNetSendtoto::1fails andHostIpv6LoopbackUnavailableconfirms the host cannot reach::1. The host probe acceptsEADDRNOTAVAIL,ENETUNREACHandEHOSTUNREACH, but the guest check accepted onlyENETUNREACH(51). On the same machine, which has no IPv6 address or route, the hostsendtoto::1failed withENETUNREACHearlier in the day and withEADDRNOTAVAILlater (strace:sendto(..., inet_pton(AF_INET6, "::1", ...)) = -1 EADDRNOTAVAIL), with no change to the code in between. The guest then sees 49, the skip is not taken andRequire(sent == sizeof(payload))aborts.The guest check now accepts the FreeBSD numbers of the same three errors the host probe accepts: 49, 51 and 65. Hosts with a usable
::1still run every IPv6 check.Same host condition as the merged #7847 (
guest_datagram_*) and the closed #2820 (guest_sce_net), in a different test.Tested
Ubuntu 26.04.1, kernel 7.0.0-38, GCC 15.2.0, Release, full build with
BUILD_TESTING=ON.net.ipv6.conf.lo.disable_ipv6=1and no IPv6 route:mainaborts (exit 134,gdbstops inCheckUnspecifiedIpv6); with this change it skips (exit 77,Skippedin ctest).lo(unshare -rn,::1assigned): passes (exit 0), andstraceshows the IPv6 sends to::1succeed, so the IPv6 checks still run.lo: skips (exit 77).tools/check_conventions.py --base origin/mainpasses.tools/pr_overlap.pylists fix(libSceNet): stop Sackboy loading retries on peer sockets #5836, test: organize library tests and label CTest suites #6044 and feat: macOS on Apple Silicon host support (Rosetta 2 and MoltenVK) #7332 as touchingGuestSceNet.cpp; none of them changes this line.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)