Re: [PATCH] kasan: test: fix compatibility with FORTIFY_SOURCE

From: Marco Elver
Date: Mon Jan 24 2022 - 12:59:55 EST


On Mon, 24 Jan 2022 at 18:54, Andrey Konovalov <andreyknvl@xxxxxxxxx> wrote:
>
> -On Mon, Jan 24, 2022 at 5:07 PM Marco Elver <elver@xxxxxxxxxx> wrote:
> >
> > With CONFIG_FORTIFY_SOURCE enabled, string functions will also perform
> > dynamic checks using __builtin_object_size(ptr), which when failed will
> > panic the kernel.
> >
> > Because the KASAN test deliberately performs out-of-bounds operations,
> > the kernel panics with FORITY_SOURCE, for example:
>
> Nit: FORITY_SOURCE -> FORTIFY_SOURCE

How did that happen?! My hands need some better synchronization...

I'll refrain sending a v2, assuming Andrew can fix up this spelling
mistake upon applying.

[...]
>
> Reviewed-by: Andrey Konovalov <andreyknvl@xxxxxxxxx>

Thanks!