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

From: Andrey Konovalov
Date: Fri Jan 29 2021 - 13:11:52 EST


On Fri, Jan 29, 2021 at 6:57 PM Vincenzo Frascino
<vincenzo.frascino@xxxxxxx> wrote:
> >>>> +#ifdef CONFIG_KASAN_HW_TAGS
> >>>> +void kasan_report_async(void)
> >>>> +{
> >>>> + unsigned long flags;
> >>>> +
> >>>> + start_report(&flags);
> >>>> + pr_err("BUG: KASAN: invalid-access\n");
> >>>> + pr_err("Asynchronous mode enabled: no access details available\n");
> >
> > Could you also add an empty line here before the stack trace while at it?
> >
>
> Sure no problem.

Just to be clear: I mean adding an empty line into the report itself
via pr_err("\n") :)