Page MenuHomeFreeBSD

fusefs: fix intermittency in the dev_fuse_poll test
ClosedPublic

Authored by asomers on Sep 25 2021, 4:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 14, 6:21 AM
Unknown Object (File)
Fri, Dec 13, 1:50 PM
Unknown Object (File)
Thu, Nov 21, 9:26 PM
Unknown Object (File)
Sun, Nov 17, 6:23 PM
Unknown Object (File)
Nov 16 2024, 8:07 AM
Unknown Object (File)
Nov 13 2024, 6:08 PM
Unknown Object (File)
Oct 24 2024, 3:00 AM
Unknown Object (File)
Oct 23 2024, 9:38 AM
Subscribers

Details

Summary

The DevFusePoll::access/select test would occasionally segfault. The
cause was a file descriptor that was shared between two threads. The
first thread would kill the second and close the file descriptor. But
it was possible that the second would read the file descriptor before it
shut down. That did not cause problems for kqueue, poll, or blocking
operation, but it triggered segfaults in select's macros.

MFC after: 2 weeks

Diff Detail

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