Re: [PATCH v2 2/2] kasan: Add explicit preconditions to kasan_report()

2021-01-22 Thread Vincenzo Frascino
Hi Andrey, All done. Reposting shortly. Thank you! On 1/21/21 5:20 PM, Andrey Konovalov wrote: > And please move this to include/kasan/kasan.h. I guess you meant include/linux/kasan.h. -- Regards, Vincenzo

Re: [PATCH v2 2/2] kasan: Add explicit preconditions to kasan_report()

2021-01-21 Thread Andrey Konovalov
On Thu, Jan 21, 2021 at 2:20 PM Vincenzo Frascino wrote: > > With the introduction of KASAN_HW_TAGS, kasan_report() dereferences > the address passed as a parameter. > > Add a comment to make sure that the preconditions to the function are > explicitly clarified. > > Note: An invalid address

[PATCH v2 2/2] kasan: Add explicit preconditions to kasan_report()

2021-01-21 Thread Vincenzo Frascino
With the introduction of KASAN_HW_TAGS, kasan_report() dereferences the address passed as a parameter. Add a comment to make sure that the preconditions to the function are explicitly clarified. Note: An invalid address (e.g. NULL) passed to the function when, KASAN_HW_TAGS is enabled, leads to