test(libkernel): audit socket broadcast, debug, and route option bounds #21149
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/21149"
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 slopgobblercobbler on 2026-11-15T21:07:43Z.
What
Add non-GTest standalone test
GuestKernelSocketBroadcastDebugRouteBounds.cppverifyinggetsockoptandsetsockoptwithSOL_SOCKEToptionsSO_BROADCAST,SO_DEBUG,SO_DONTROUTEand error precedence in accordance with docs/dev/debt/libkernel.md.Tested
ctest --test-dir build -R guest_kernel_socket_broadcast_debug_route_bounds_tests
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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T07:55:24Z.
Review: APPROVED
Reviewed — looks good
The changed test and its CMake registration were reviewed at head
665a67def59a9a694c4949c132acc2ba4fbaf630; the available source supports merging, but the test was not run.What I ran
Read the prepared description, commits, manifest, and diff, then inspected both changed files and the socket option implementation and callers at the pinned head. No test command was run. The prepared review folder did not expose
files.jsonthrough the reader.Results
files.jsonwas not accessibleFindings
Blocking
None.
Non-blocking
None.
Not verified
The author reports running
ctest --test-dir build -R guest_kernel_socket_broadcast_debug_route_bounds_tests; I did not run it. The excluded file list could not be read, so any exclusions and their reasons are not verified. No other files were read beyond the two changed files and targeted socket option implementation/caller context.To get this to a good state
Nothing is required.