Prevent unsuitable scanning of /dev/mem and enable SMBIOS support for all UEFI platforms
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lshw (Debian) |
Fix Released
|
Unknown
|
|||
lshw (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
SMBIOS defines that on x86 platforms one can scan for an entry point in the physical address range 0xf0000-0xfffff - which is achieved by mmapping /dev/mem. However, this is invalid for most other architectures. Meanwhile, UEFI has alternative defined methods of discovery, so SMBIOS data can be easily found on at least IA64, ARM and AArch64.
lshw currently has a stack of ifdefs to not attempt scanning on certain listed architectures. New architectures, like AArch64, end up with the lshw command potentially reading sensitive i/o regions, causing system crashes.
The attached patch (which has been logged in upstream ticketing system, but is pending moderation there) flips the logic to only perform raw memory scanning on i386/x86_64 and also enables looking for SMBIOS tables on all UEFI platforms (in a safe manner).
Related branches
Changed in lshw (Debian): | |
status: | Unknown → Fix Released |
Upstream ticket: http:// www.ezix. org/project/ ticket/ 666