Page MenuHomeFreeBSD

ping6: convert receive loop from pselect(2) to ppoll(2)
ClosedPublic

Authored by oshogbo on Apr 29 2026, 10:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 12, 7:59 AM
Unknown Object (File)
Sat, Oct 10, 11:56 PM
Unknown Object (File)
Sun, Oct 4, 3:41 PM
Unknown Object (File)
Fri, Oct 2, 6:42 PM
Unknown Object (File)
Fri, Oct 2, 5:20 PM
Unknown Object (File)
Thu, Oct 1, 7:47 PM
Unknown Object (File)
Thu, Oct 1, 3:44 PM
Unknown Object (File)
Thu, Oct 1, 12:46 PM
Subscribers

Details

Summary

pselect(2) might overflow if the desciptor number is above
FD_SETSIZE and silently corrupt the stack. Switch to ppoll(2) so
the receive socket fd is no longer constrained by FD_SETSIZE.

Reported by: Joshua Rogers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable