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

Clone Of:
Last Closed: 2007-12-11 15:51:00 UTC

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
FreeDesktop.org 6965 None None None Never

Description Daniel Berrange 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"
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. 

Comment 2 Daniel Berrange 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.