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
F172060364: D47738.id146925.diff
Tue, Sep 15, 8:17 PM
Unknown Object (File)
Mon, Sep 14, 1:21 PM
Unknown Object (File)
Sat, Sep 12, 1:07 PM
Unknown Object (File)
Fri, Sep 11, 10:50 AM
Unknown Object (File)
Thu, Sep 10, 9:56 AM
Unknown Object (File)
Tue, Sep 8, 10:25 PM
Unknown Object (File)
Tue, Sep 8, 8:41 PM
Unknown Object (File)
Tue, Sep 8, 5:13 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