Thread (23 messages) 23 messages, 7 authors, 2021-10-04

Re: [PATCH 5/5] kasan: Extend KASAN mode kernel parameter

flat view

From: Vincenzo Frascino <vincenzo.frascino@arm.com>
Date: 2021-10-04 15:45:29
Also in: lkml

Hi Andrey,

On 10/3/21 7:16 PM, Andrey Konovalov wrote:
Hi Vincenzo,

Up till now, the code assumes that not having the async mode enabled
means that the sync mode is enabled. There are two callers to
kasan_async_mode_enabled(): lib/test_kasan.c and mm/kasan/report.c.
Assuming tests support will be added later, at least the second one
should be adjusted.

Maybe we should rename kasan_async_mode_enabled() to
kasan_async_fault_possible(), make it return true for both async and
asymm modes, and use that in mm/kasan/report.c. And also add
kasan_sync_fault_possible() returning true for sync and asymm, and use
that in lib/test_kasan.c. (However, it seems that the tests don't work
with async faults right now.)
It is ok by me, I will add the changes you are mentioning in v2.
Thanks!
-- 
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