Page MenuHomeFreeBSD

realtimer_expire: avoid proc lock recursion when called from itimer_proc_continue()
ClosedPublic

Authored by kib on Apr 13 2021, 1:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 2, 12:46 AM
Unknown Object (File)
Jan 12 2024, 2:39 AM
Unknown Object (File)
Dec 20 2023, 6:46 PM
Unknown Object (File)
Dec 19 2023, 5:30 AM
Unknown Object (File)
Nov 5 2023, 8:35 PM
Unknown Object (File)
Nov 4 2023, 4:11 PM
Unknown Object (File)
Oct 7 2023, 1:13 PM
Unknown Object (File)
Sep 6 2023, 5:42 AM
Subscribers
None

Details

Summary

It is fine to drop the process lock there, process cannot exit until its timers are cleared.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

kib requested review of this revision.Apr 13 2021, 1:52 PM
kib created this revision.

Upload the correct version of the patch.
PHOLD() there is not needed and is even wrong.

I believe there is a similar recursion with kqueue timers: kqtimer_proc_continue() holds the proc lock, and filt_timerexpire() may attempt to acquire it.

Handle recursion in filter_timerexpire()

This revision is now accepted and ready to land.Apr 13 2021, 8:41 PM