NetBSD-Bugs archive

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

PR/58926 CVS commit: src/sys/kern



The following reply was made to PR kern/58926; it has been noted by GNATS.

From: "Taylor R Campbell" <riastradh%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/58926 CVS commit: src/sys/kern
Date: Mon, 20 Oct 2025 02:20:17 +0000

 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