Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/kern



Module Name:    src
Committed By:   riastradh
Date:           Mon Oct 20 02:20:17 UTC 2025

Modified Files:
        src/sys/kern: kern_time.c subr_time_arith.c

Log Message:
itimer: Fix mistaken overflow prevention in overrun counting.

itimer_transition just returns the new number of overruns, doesn't
add to an existing number; it's the caller who must add to the
existing number, and avoid arithmetic overflow in that addition.

(Should maybe push the addition into itimer_transition but that
requires a little more work -- also it should maybe saturate at
DELAYTIMER_MAX rather than INT_MAX.)

While here, fix another arithmetic overflow in overrun counting in
ptimer_intr.

PR kern/58926: itimer(9) integer overflow in overrun counting


To generate a diff of this commit:
cvs rdiff -u -r1.228 -r1.229 src/sys/kern/kern_time.c
cvs rdiff -u -r1.5 -r1.6 src/sys/kern/subr_time_arith.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index