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, Jan 12, 3:21 PM
Unknown Object (File)
Sat, Jan 11, 9:45 AM
Unknown Object (File)
Thu, Jan 9, 6:13 PM
Unknown Object (File)
Mon, Jan 6, 2:47 AM
Unknown Object (File)
Mon, Jan 6, 12:36 AM
Unknown Object (File)
Sun, Jan 5, 8:43 PM
Unknown Object (File)
Sun, Jan 5, 9:40 AM
Unknown Object (File)
Sun, Jan 5, 8:53 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