fwts segfaults because the ASPM test on this machine is returning no ACPI tables and the test is not checking for a NULL table and hence dereferencing it causing the segfault While debugging this I also noticed that if /dev/mem is not available then two /dev/mem mmaps may also cause a segfault, so I've added fixes for this too.
[SRU Justification] [Trusty]
fwts segfaults because the ASPM test on this machine is returning no ACPI tables and the test is not checking for a NULL table and hence dereferencing it causing the segfault While debugging this I also noticed that if /dev/mem is not available then two /dev/mem mmaps may also cause a segfault, so I've added fixes for this too.
[Fix] b967177cc8bdac9 4eee66c93 /lists. ubuntu. com/archives/ fwts-devel/ 2015-December/ 007215. html /lists. ubuntu. com/archives/ fwts-devel/ 2015-December/ 007217. html
Upstream fix 9992dcca169282a
https:/
https:/
[Testcase]
Run fwts on a system without ACPI tables. Will segfault. With the fix, it runs w/o a segfault