Bug 167706

Summary: Overflow in /proc/diskstats on 64-bit systems
Product: Red Hat Enterprise Linux 4 Reporter: Bastien Nocera <bnocera>
Component: kernelAssignee: Peter Staubach <staubach>
Status: CLOSED WONTFIX QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: jbaron, rkenna, sct
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-13 16:37:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 170416    
Attachments:
Description Flags
genhd.diff none

Description Bastien Nocera 2005-09-07 14:12:06 UTC
On 64-bit machines, some values exported by /proc/diskstats, and then used by
iostat, can overflow.

For example:
Device:    rrqm/s wrqm/s   r/s   w/s  rsec/s  wsec/s    rkB/s    wkB/s avgrq-sz
avgqu-sz   await  svctm  %util
sda          5.50   0.00 143.96  0.00 307496983987862656.00    0.00
153748491993931328.00     0.00 2136028725038430.00     7.94   55.12   5.59  80.42

The patch attached seems to fix those problems, but might cause problems with
the soft kABI. Patch is from Ben Woodward <woodward>

Comment 1 Bastien Nocera 2005-09-07 14:12:07 UTC
Created attachment 118561 [details]
genhd.diff

Comment 2 Bastien Nocera 2005-09-07 14:14:46 UTC
That's Ben Woodard <woodard>. Sorry Ben ;)