This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/11640] New: Incorrect x86 CPU family and model check


Glibc trunk, 2.12, 2.11 has

      if (__cpu_features.family == 0x0f)
	{
	  family += extended_family;
	  model += extended_model;
	}
      else if (__cpu_features.family == 0x06)
	{
	  model += extended_model;
	  switch (__cpu_features.model)
...
  __cpu_features.family = family;
  __cpu_features.model = model;

__cpu_features.family and __cpu_features.family are checked
before they are set.  A patch is posted at

http://sourceware.org/ml/libc-alpha/2010-05/msg00048.html

It should be applied cleanly to trunk and 2.12. 2.11 needs
small changes.

-- 
           Summary: Incorrect x86 CPU family and model check
           Product: glibc
           Version: 2.12
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: hjl dot tools at gmail dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=11640

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]