Re: [PATCH] kasan: Add abbreviation KASAN to init log

From: Andrey Konovalov

Date: Mon Apr 13 2026 - 11:06:59 EST


On Mon, Apr 13, 2026 at 3:54 PM Paul Menzel <pmenzel@xxxxxxxxxxxxx> wrote:
>
> > I think a better change would be to add:
> >
> > #define pr_fmt(fmt) "kasan: " fmt
> >
> > to generic.c.
> >
> > Similar to how this is done in sw/hw_tags.c.
>
> Isn’t there only this one log line in `generic.c`, so the generalization
> is not really needed?

I think we can add the generalization just in case more pr_info calls
get added in the future. And also to keep the code similar to the
other modes.

>
> > And arguably, we could also drop the "KernelAddressSanitizer" part
> > from init messages, to make them look like:
> >
> > kasan: initialized (generic)
> Some analysis scripts might already depend on KernelAddressSanitizer, so
> I’d keep it.

Makes sense.

Thanks!