NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
PR/58926 CVS commit: [netbsd-11] src/sys/kern
The following reply was made to PR kern/58926; it has been noted by GNATS.
From: "Martin Husemann" <martin%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc:
Subject: PR/58926 CVS commit: [netbsd-11] src/sys/kern
Date: Mon, 2 Feb 2026 19:37:18 +0000
Module Name: src
Committed By: martin
Date: Mon Feb 2 19:37:18 UTC 2026
Modified Files:
src/sys/kern [netbsd-11]: kern_time.c subr_time_arith.c
Log Message:
Pull up following revision(s) (requested by riastradh in ticket #174):
sys/kern/subr_time_arith.c: revision 1.6
sys/kern/kern_time.c: revision 1.229
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.228.2.1 src/sys/kern/kern_time.c
cvs rdiff -u -r1.3.2.1 -r1.3.2.2 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