Bug 192283 - smbios.system.uuid property is missing on 64-bit systems
Summary: smbios.system.uuid property is missing on 64-bit systems
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: hal
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: David Zeuthen
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-05-18 19:03 UTC by Daniel Berrangé
Modified: 2013-03-06 03:45 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-12-11 15:51:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
FreeDesktop.org 6965 0 None None None Never

Description Daniel Berrangé 2006-05-18 19:03:34 UTC
Description of problem:
On a 32-bit system, I get five fields under smbios.system:

#  lshal | grep smbios.system
  smbios.system.uuid = 'EF861801-45B9-11CB-88E3-AFBFE5370493'  (string)
  smbios.system.serial = 'KBPKNB2'  (string)
  smbios.system.version = 'ThinkPad X31'  (string)
  smbios.system.product = '2672JHG'  (string)
  smbios.system.manufacturer = 'IBM'  (string)

However on a 64-bit system, I only get 4, with UUID being missing

# lshal | grep smbios.system
  smbios.system.serial = 'None'  (string)
  smbios.system.version = 'Rev 1'  (string)
  smbios.system.product = 'Dune/Sahara'  (string)
  smbios.system.manufacturer = 'AMD'  (string)

If I run the dmidecode tool, the UUID info is definitely present & correct in
the expected data fields:

# dmidecode | grep --after 5 "System Information"
System Information
        Manufacturer: AMD
        Product Name: Dune/Sahara
        Version: Rev 1
        Serial Number: None
        UUID: 005F9CF0-C488-0010-A593-B114B6200390




Version-Release number of selected component (if applicable):


How reproducible:
Always on 64-bit

Steps to Reproduce:
1. Run  "lshal | grep smbios.system.uuid"
2.
3.
  
Actual results:
No matches

Expected results:
Displays the UUID

Additional info:
The bug is caused by mistaken use of 'sizeof' instead of 'strlen' in code
parsing DMI output. Bug is apparently fixed in upstream CVS. The reliable
reporting of UUID from DMI data will be essential for management tools running
in Xen guest domains, enabling them to associate Dom0<->DomU.

Comment 1 John (J5) Palmieri 2006-05-18 19:20:47 UTC
I'm prepping some other fixes for HAL and will add this when I do the update. 
Thanks.


Comment 2 Daniel Berrangé 2007-12-11 15:51:00 UTC
Long since fixed in Fedora land...


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