~firmware-testing-team/fwts/+git/fwts:master

Last commit made on 2024-04-22
Get this branch:
git clone -b master https://git.launchpad.net/~firmware-testing-team/fwts/+git/fwts

Branch merges

Branch information

Name:
master
Repository:
lp:~firmware-testing-team/fwts/+git/fwts

Recent commits

7c15229... by Ivan Hu

lib: fwts_log_html: fix the invalid printf format string

BugLink: https://bugs.launchpad.net/fwts/+bug/2061067

fix invalid printf format string complained by coverity,
CID 323914: (#1 of 1): Invalid printf format string (PRINTF_ARGS)
format_error: Invalid conversion specifier in %;.

Signed-off-by: Ivan Hu <email address hidden>

b7bb504... by Ivan Hu

autopackager: mkpackage.sh: remove lunar

Ubuntu 23.04 reaches EOL

Signed-off-by: Ivan Hu <email address hidden>

4b1c8d1... by Ivan Hu

lib: fwts_version.h - update to V24.03.00

Signed-off-by: Ivan Hu <email address hidden>

a5896de... by Ivan Hu

debian: update changelog

Signed-off-by: Ivan Hu <email address hidden>

7624b0c... by Ivan Hu

lib: fwts_acpi_tables: fix the build fail on armhf

BugLink: https://bugs.launchpad.net/fwts/+bug/2059390

Currently, the update glib to libglib2.0-0t64 on armhf,
causes pointer-to-int-cast error, it seems build failed
with _FILE_OFFSET_BITS=64 on 32-bit.

fwts_acpi_tables.c:173:30: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
  173 | if ((mem = fwts_mmap((off_t)addr, sizeof(fwts_acpi_table_rsdp))) == FWTS_MAP_FAILED)

fwts_acpi_tables.c:486:53: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
  486 | fwts_acpi_add_table("RSDP", rsdp, (uint64_t)(off_t)rsdp_addr, rsdp_len, FWTS_ACPI_TABLE_FROM_FIRMWARE);

change the off_t to long int to fix this, let's see if any
update for this.

Signed-off-by: Ivan Hu <email address hidden>

9cf3d95... by Colin Ian King

ACPICA: Update to version 20240322

Changes in this release of ACPICA are detailed below (from
ACPICA documents/changes.txt):

Major changes:
 * Update all the license header year from 2023 to 2024.
 * Fix table argument ordering to work properly with iasl.
 * Get rid of the annoying repeated warning types in MSVC and Windows.
 * Fix a test in ASLTS with edge case failure.
 * Fix a couple of issues with how GPEs are counted and enabled.
 * Add new tables for various architectures/OS, mainly RISC-V and also
   update many more.
 * Add an option to either make the output deterministic or
   non-deterministic.
 * Remove redundant checks, duplicated code and fix spellings in various
   files.
 * Fix flex arrays for C++ compilers and also make ACPICA overall more
   compatible with different compilers which throw warnings related to
   memory sanitization etc.

Signed-off-by: Colin Ian King <email address hidden>
Acked-by: Ivan Hu <email address hidden>

6dc4fc3... by Ivan Hu

acpi: acpipld: add tests to check _PLD methods only on the connectable ports

BugLink: https://bugs.launchpad.net/fwts/+bug/2055855

ACPI specification implies that a port is not connectable and it is assumed to
be not visible. Therefore a \_PLD descriptor is not required.

Some firmware have _PLD ACPI methods for all USB ports, including unusable
USB host ports that are not wired to any connector or internal device.
And these unusable ports return similar _PLD objects, with zeroes in their
grouptoken and position fields. This confuses the port peering code when
pairing USB2 and USB3 ports that are wired to the same connector. And it is
results in the linux kernel warning "usb: port power management may be
unreliable."
Add tests to check the PLD methods existencs on the connectable ports.

Signed-off-by: Ivan Hu <email address hidden>

7edcc96... by Ivan Hu

opal: fix the resource leak for cpus

BugLink: https://bugs.launchpad.net/fwts/+bug/2058217

Fix resource leak found by coverity,
CID 323867: (#1 of 1): Resource leak (RESOURCE_LEAK)
25. leaked_storage: Variable cpus going out of scope
leaks the storage it points to.

Signed-off-by: Ivan Hu <email address hidden>

688774c... by Ivan Hu

opal: fix the resource leak for process_dimm and process_mba

BugLink: https://bugs.launchpad.net/fwts/+bug/2058206

fix resource leak found by coverity,
CID 323922: (#1 of 1): Resource leak (RESOURCE_LEAK)
28. leaked_storage: Variable my_buffer going out of scope
leaks the storage it points to.

Signed-off-by: Ivan Hu <email address hidden>

5b8434d... by Ivan Hu

acpi: srat: fix the untrusted loop bound warning

BugLink: https://bugs.launchpad.net/fwts/+bug/2058008

coverity scan the length is untrust loop bound, which is from
tainted_data_downcast fwts_acpi_table_srat, use table->length
to avoid this warning, no function impact.

CID 323875: (#1 of 1): Untrusted loop bound (TAINTED_SCALAR)
5. tainted_data: Using tainted variable length as a loop boundary.

Signed-off-by: Ivan Hu <email address hidden>