Bug 147674 - physical_id field of /proc/cpuinfo contains arbitrary values that change
Summary: physical_id field of /proc/cpuinfo contains arbitrary values that change
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: kernel
Version: 2.1
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jim Paradis
QA Contact: Brian Brock
URL:
Whiteboard:
: 147762 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-02-10 14:39 UTC by Ward Fenton
Modified: 2013-08-06 01:12 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-04-28 15:05:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 81396 0 medium CLOSED /proc/cpuinfo contains bogus values for SMP kernels on non-hyperthreaded processors 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHSA-2005:283 0 high SHIPPED_LIVE Important: kernel security update 2005-04-28 04:00:00 UTC

Description Ward Fenton 2005-02-10 14:39:45 UTC
We have application which uses a license key which depends on /proc/cpuinfo
remaining consistent. We have been told by Ab Initio support that there appears
to be a bug in kernel code that causes the physical_id field to be set from
uninitialized memory. We have this ETL software running on several dozen servers
and the set of servers which were updated recently to the kernel
2.4.9-e.59enterprise started to encounter this changing /proc/cpuinfo output
after a week of use and now changes occur once or more per day.

[root@etl9op-e15 root]# grep -i "physical id" /proc/cpuinfo
physical id     : -233324544
physical id     : 1
physical id     : -1070399256
physical id     : -1070399256

The physical id field doesn't seem to exist on our 2.4.9-e.40 installs.

Our "control nodes" in an Ab Initio "cluster" are very busy servers. After a
week of use the issue started appearing daily. The eight "processing nodes"
running this same kernel still show a physical id for each cpu of 0.

Comment 1 Michael J. Saletnik 2005-02-10 15:32:15 UTC
This bug, in 2.1AS as of 2.4.9-e.57, is the same bug reported in #81396.

In introducing hyperthreaded cpu support to the kernel, the code in
arch/i386/kernel/setup.c initializes phys_proc_id[] only if the cpu is
hyperthreaded (num_smp_siblings > 1), whereas the code that then prints
phys_proc_id[] into /proc/cpuinfo will run for all CONFIG_SMP kernels.

Thus an SMP kernel on a machine with hyperthreading disabled (or unavailable)
will end up printing out the uninitialized values from phys_proc_id[] to
/proc/cpuinfo.



Comment 2 Suzanne Hillman 2005-02-11 21:46:02 UTC
*** Bug 147762 has been marked as a duplicate of this bug. ***

Comment 3 Ward Fenton 2005-02-14 09:52:54 UTC
Please explain the following encountered with 2.4.9-e.59enterprise using
hyperthreading.

# grep -E "processor|physical id" /proc/cpuinfo
processor       : 0
physical id     : 661944436
processor       : 1
physical id     : 538970668
processor       : 2
physical id     : 538976288
processor       : 3
physical id     : 538976288
processor       : 4
physical id     : 538976288
processor       : 5
physical id     : 538976288
processor       : 6
physical id     : 538976288
processor       : 7
physical id     : 538976288

Comment 5 Neil Horman 2005-02-14 21:31:31 UTC
Just so its written down, I believe that if they disable HT in the BIOS, that
should prevent this problem from occuring until such time as it can be fixed.

Comment 8 Jim Paradis 2005-02-15 21:07:14 UTC
The fix has been submitted today for inclusion in the next update.


Comment 16 Jim Paradis 2005-03-03 04:13:54 UTC
A fix for this problem has just been committed to the RHEL2.1 U7
patch pool this evening (in kernel version 2.4.9-61).


Comment 17 John Flanagan 2005-04-28 15:05:14 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2005-283.html



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