HomeFreeBSD

EVFILT_TIMER: intialize stop timer list in type-stable proc init, instead of…

Description

EVFILT_TIMER: intialize stop timer list in type-stable proc init, instead of fork

Since kqueue timer may exist after the process that created it exited
(same scenario with rfork(2) as in PR 275286), make the tailq
p_kqtim_stop accessed by filt_timerdetach() type-stable.

Noted and reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D42777

Details

Provenance
kibAuthored on Nov 28 2023, 3:42 PM
Differential Revision
D42777: Another fix for PR275286
Parents
rGed410b78edc5: EVFILT_SIGNAL: do not use target process pointer on detach
Branches
Unknown
Tags
Unknown