Thread (19 messages) flat view 19 messages, 3 authors, 2021-01-29

Re: [PATCH v9 3/4] kasan: Add report for async mode

From: Vincenzo Frascino <vincenzo.frascino@arm.com>
Date: 2021-01-29 18:13:27
Also in: lkml


On 1/29/21 6:09 PM, Andrey Konovalov wrote:
On Fri, Jan 29, 2021 at 6:56 PM Vincenzo Frascino
[off-list ref] wrote:
quoted
Hi Andrey,

On 1/29/21 5:40 PM, Andrey Konovalov wrote:
quoted
I suggest to call end_report(&flags, 0) here and check addr !=0 in
end_report() before calling trace_error_report_end().
Probably this is better as:

if (!IS_ENABLED(CONFIG_KASAN_HW_TAGS))

Because that condition passes always addr == 0.
Not sure I understand. Call report_end(&flags, 0) and then there do:

if (addr) trace_error_report_end(...);

Although maybe it makes sense to still trace all async bugs to address
0. Or to some magic address.

Alex, WDYT?
What I meant is instead of:

if (addr) trace_error_report_end(...);

you might want to do:

if (!IS_ENABLED(CONFIG_KASAN_HW_TAGS)) trace_error_report_end(...);

because, could make sense to trace 0 in other cases?

I could not find the implementation of trace_error_report_end() hence I am not
really sure on what it does.

-- 
Regards,
Vincenzo

_______________________________________________
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