HomeFreeBSD

fusefs: fix intermittency in the dev_fuse_poll test

Description

fusefs: fix intermittency in the dev_fuse_poll test

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
Differential Revision: https://reviews.freebsd.org/D32142

Details

Provenance
asomersAuthored on Sep 25 2021, 4:16 PM
Differential Revision
D32142: fusefs: fix intermittency in the dev_fuse_poll test
Parents
rG880b670c6fdb: malloc: Unmark KASAN redzones if the full allocation size was requested
Branches
Unknown
Tags
Unknown