Page MenuHomeFreeBSD

tests: Demonstrate a bug in ppoll() and pselect().
ClosedPublic

Authored by des on Nov 25 2024, 5:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 9, 10:34 PM
Unknown Object (File)
Fri, Nov 7, 4:27 PM
Unknown Object (File)
Sun, Nov 2, 1:27 PM
Unknown Object (File)
Tue, Oct 28, 2:09 AM
Unknown Object (File)
Thu, Oct 23, 4:15 AM
Unknown Object (File)
Thu, Oct 16, 5:15 AM
Unknown Object (File)
Oct 12 2025, 11:41 PM
Unknown Object (File)
Oct 7 2025, 6:08 AM
Subscribers

Details

Summary

This test demonstrates that ppoll() and pselect() can return 0 after a
signal was caught. This happens when the signal occurs after the
timeout has been reached but before the signal mask is restored on
return to user space.

Sponsored by: Klara, Inc.
Sponsored by: NetApp, Inc.

Diff Detail

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

Event Timeline

des requested review of this revision.Nov 25 2024, 5:16 PM

Sorry, I appear to have oversimplified the test case, I will amend it shortly

markj added a subscriber: markj.
markj added inline comments.
tests/sys/kern/prace.c
97

Extra newline.

104

I think some comment explaining what these tests are exercising would be useful.

This revision is now accepted and ready to land.Nov 25 2024, 8:15 PM
des marked 2 inline comments as done.Nov 26 2024, 8:38 PM