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)
Thu, Oct 16, 5:15 AM
Unknown Object (File)
Sun, Oct 12, 11:41 PM
Unknown Object (File)
Tue, Oct 7, 6:08 AM
Unknown Object (File)
Tue, Oct 7, 3:08 AM
Unknown Object (File)
Sat, Oct 4, 6:09 AM
Unknown Object (File)
Fri, Oct 3, 9:37 PM
Unknown Object (File)
Fri, Oct 3, 6:52 PM
Unknown Object (File)
Fri, Oct 3, 4:19 PM
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