bugdmidecode - Bugs: bug #53569, dmi_system_uuid uses uppercase...

 
 

bug #53569: dmi_system_uuid uses uppercase letters

Submitter:  None
Submitted:  Thu 05 Apr 2018 10:31:43 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  khali
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 16 Apr 2018 07:44:53 AM UTC, comment #5: 
Jean Delvare <khali>
Group administrator
Mon 09 Apr 2018 06:36:14 PM UTC, comment #4: 

Thanks, much appreciated.

Paul Dagnelie <pcd>
Sun 08 Apr 2018 02:15:40 PM UTC, comment #3: 

OK, you convinced me. I have posted patches to use lowercase letters in DMI system/product UUID in the kernel and in dmidecode:

https://lkml.org/lkml/2018/4/8/32
http://lists.nongnu.org/archive/html/dmidecode-devel/2018-04/msg00000.html

Jean Delvare <khali>
Group administrator
Fri 06 Apr 2018 05:50:14 PM UTC, comment #2: 

Well, first we have the RFC for UUIDs https://tools.ietf.org/html/rfc4122 :
Section 3 'The hexadecimal values "a" through "f" are output as lower case characters and are case insensitive on input.'

For something slightly more modern, let's go to the ISO standard. The best source I can find that isn't $120 is X.667 section 6.5.4 (accessible from https://www.itu.int/rec/T-REC-X.667/en) :
'Software generating the hexadecimal representation of a UUID shall not use upper case letters.
NOTE – It is recommended that the hexadecimal representation used  in all human-readable formats be restricted to lower-case letters.  Software processing this representation is, however, required to accept both upper and lower case letters as specified in 6.5.2.'

That second source lists 'INTERNATIONAL STANDARD ISO/IEC 9834-8' as a header, and indicates that the ISO and ITU collaborated to produce this standard. Therefore, I assume (and could, of course, be wrong) that the ISO standard looks the same.

Paul Dagnelie <pcd>
Fri 06 Apr 2018 06:43:51 AM UTC, comment #1: 

Please quote your sources. Linux's /sys/class/dmi/id/product_uuid has uppercase letters, and various other Linux kernel drivers (x86/wmi, visorchannel, cisco/enic) use uppercase letters too.

The reason why dmidecode (and /sys/class/dmi/id/product_uuid) are using uppercase letters is because the SMBIOS specification itself uses uppercase letters for its UUID examples:

"The UUID {00112233-4455-6677-8899-AABBCCDDEEFF} would thus be represented as:
    33 22 11 00 55 44 77 66 88 99 AA BB CC DD EE FF."

"UUID field is neither 00000000 00000000 nor FFFFFFFF FFFFFFFF."

Jean Delvare <khali>
Group administrator
Thu 05 Apr 2018 10:31:43 PM UTC, original submission:  

This is perhaps the silliest bug report I have ever filed, but here it is. According to every source defining UUIDs I can find, all programs that generate a UUID string should use lowercase letters for output. Programs that accept UUIDs for input should be case insensitive, but output should be lowercase. That's all.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pcd (Posted a comment)
  • -email is unavailable- added by khali (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-04-16 khali StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2018-04-08 khali StatusNeed Info In Progress
    2018-04-06 khali StatusConfirmed Need Info
    2018-04-06 khali StatusNone Confirmed
        Assigned toNone khali

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code