User-supplied data might make this loop too time-consuming. Divide directly, and handle both the possibility that we were woken up earlier, and arithmetic overflows/underflows from the calculation.
Reported by: pho
Differential D30069 Authored by kib on May 1 2021, 3:08 PM.
Details
Summary User-supplied data might make this loop too time-consuming. Divide directly, and handle both the possibility that we were woken up earlier, and arithmetic overflows/underflows from the calculation. Reported by: pho
Diff Detail
Event Timelinekib created this revision.
This revision is now accepted and ready to land.May 3 2021, 3:59 PM2021-05-03 15:59:32 (UTC+0) kib marked an inline comment as done. Comment ActionsSkip activation for the case now <= kc_next, and do not increment data. This revision now requires review to proceed.May 3 2021, 4:03 PM2021-05-03 16:03:50 (UTC+0) This revision is now accepted and ready to land.May 3 2021, 4:16 PM2021-05-03 16:16:54 (UTC+0) Closed by commit rG7cb40543e964: filt_timerexpire: do not iterate over the interval (authored by kib). · Explain WhyMay 3 2021, 4:51 PM2021-05-03 16:51:48 (UTC+0) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 88559 sys/kern/kern_event.c
|