HomeFreeBSD

Lock the knlist before releasing the in-flux state in knote_fork().

Description

Lock the knlist before releasing the in-flux state in knote_fork().

Otherwise there is a window, before iteration is resumed, during which
the knote may be freed. The in-flux state ensures that the knote will
not be removed from the knlist while locks are dropped.

PR: 228858
Reviewed by: kib
Tested by: pho
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18316

Details

Provenance
markjAuthored on
Reviewer
kib
Differential Revision
D18316: Fix some EVFILT_PROC-related race conditions.
Parents
rS340896: sfxge(4): remove Falcon-specific concurrency check
Branches
Unknown
Tags
Unknown