Thread (1 message) 1 message, 1 author, 2018-11-29

Re: [PATCH] ACPI/IORT: Fix iort_get_platform_device_domain() uninitialized pointer value

From: Lorenzo Pieralisi <hidden>
Date: 2018-11-29 16:50:24
Also in: linux-acpi

On Thu, Nov 29, 2018 at 07:34:40PM +0800, Hanjun Guo wrote:
On 2018/11/29 17:55, Lorenzo Pieralisi wrote:
quoted
Running the Clang static analyzer on IORT code detected the following
error:

Logic error: Branch condition evaluates to a garbage value

in

iort_get_platform_device_domain()

If the named component associated with a given device has no IORT
mappings, iort_get_platform_device_domain() exits its MSI mapping loop
with msi_parent pointer containing garbage, which can lead to erroneous
code path execution.
Not sure if we have such use cases that named component associated with
a given device has no IORT mappings, but this patch still make sense to
me,
Yes, it is to make the kernel more robust against questionable (but valid)
firmware bindings.

Thanks,
Lorenzo

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help