Bug 185609
Summary: | kernel returned wrong value in /proc/stat when value is greater than 2^32 | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | Petr Sretr <sretr> |
Component: | kernel | Assignee: | Brian Maly <bmaly> |
Status: | CLOSED WONTFIX | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3.0 | CC: | petrides |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | ia64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-04-27 19:32:21 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: |
Description
Petr Sretr
2006-03-16 08:17:46 UTC
The problem is in kstat_read_proc() - the associated statistics totals are kept in "unsigned int" variables. This has been addressed in RHEL4 by making the values u64's in show_stat(). Obviously, the printk() formats would need to be changed as well. Note that the per-cpu values should use %lu, because kernel_timeval_to_clock_t() returns an "unsigned long". |