Thread (47 messages) flat view 47 messages, 4 authors, 2017-01-31

[PATCH v20 13/17] acpi/arm64: Add GTDT table parse driver

From: Fu Wei <hidden>
Date: 2017-01-19 12:28:50
Also in: linux-acpi, linux-watchdog, lkml

Hi Mark,

On 19 January 2017 at 19:16, Mark Rutland [off-list ref] wrote:
On Thu, Jan 19, 2017 at 06:32:55PM +0800, Fu Wei wrote:
quoted
On 19 January 2017 at 17:11, Hanjun Guo [off-list ref] wrote:
quoted
On 2017/1/18 21:25, fu.wei at linaro.org wrote:
quoted
From: Fu Wei <redacted>
quoted
quoted
quoted
+       else if (!gtdt->platform_timer_count)
+               pr_debug("No Platform Timer.\n");
+       else
+               timer_count = gtdt->platform_timer_count;
+
+       if (timer_count) {
+               platform_timer = (void *)gtdt +
gtdt->platform_timer_offset;
+               if (platform_timer < (void *)table +
+                                    sizeof(struct acpi_table_gtdt)) {
+                       pr_err(FW_BUG "invalid timer data.\n");

It's ok but I didn't see other ACPI tables parsing did this check,
maybe we can just remove it :)
here, I want to make sure the FW is valid.
Once there is a FW bug, we could just return with error.  :-)
Yes, please keep the check!
Yes, we will keep this check   :-)

Thanks!
If anything, it would be nicer for the other ACPI code to verify things
a little more stringently.

Thanks,
Mark.


-- 
Best regards,

Fu Wei
Software Engineer
Red Hat
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help