Bug 167706 - Overflow in /proc/diskstats on 64-bit systems
Summary: Overflow in /proc/diskstats on 64-bit systems
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: kernel
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Peter Staubach
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks: 170416
TreeView+ depends on / blocked
 
Reported: 2005-09-07 14:12 UTC by Bastien Nocera
Modified: 2007-11-30 22:07 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-02-13 16:37:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
genhd.diff (1.56 KB, patch)
2005-09-07 14:12 UTC, Bastien Nocera
no flags Details | Diff

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 ;)


Note You need to log in before you can comment on or make changes to this bug.