[Bug 1308760] Re: lshw doesn't deal w/ device-tree endianness

dann frazier dann.frazier at canonical.com
Sun Aug 3 14:51:09 UTC 2014


** Bug watch added: Debian Bug tracker #746616
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=746616

** Also affects: lshw (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=746616
   Importance: Unknown
       Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to lshw in Ubuntu.
https://bugs.launchpad.net/bugs/1308760

Title:
  lshw doesn't deal w/ device-tree endianness

Status in lshw - Hardware Lister:
  Unknown
Status in “lshw” package in Ubuntu:
  New
Status in “lshw” source package in Trusty:
  New
Status in “lshw” package in Debian:
  Unknown

Bug description:
  [Impact]
  lshw parses /proc/device-tree to read system properties on device-tree-based platforms. But, on little endian systems like armhf and arm64, it doesn't properly convert the data, which should always be big endian. This can cause incorrect data to be reported. For instance, a 1GHz cpu might be reported as 13MHz because lshw reads a frequency of 0xca9a3b (13MHz) instead of 0x3b9aca00 (1GHz).
  [Test Case]
  Run lshw on an HP m800 cartridge and examine the cpu frequency.
  [Regression Potential]
  We're changing parsing code, so there's a possibility that we break that code on systems that currently work in trusty. I tested on a big endian system to make sure it didn't break things there (powerpc), and found the output to be byte-for-byte identical before and after the patch.

To manage notifications about this bug go to:
https://bugs.launchpad.net/lshw/+bug/1308760/+subscriptions



More information about the foundations-bugs mailing list