[PATCH] fixup! ARM: Replace string mem* functions for KASan
Linus Walleij
linus.walleij at linaro.org
Mon Oct 19 04:36:08 EDT 2020
On Wed, Oct 14, 2020 at 1:00 PM Ahmad Fatoum <a.fatoum at pengutronix.de> wrote:
> CONFIG_FORTIFY_SOURCE doesn't play nicely for files that are compiled
> with CONFIG_KASAN=y, but have sanitization disabled.
>
> This happens despite 47227d27e2fc ("string.h: fix incompatibility between
> FORTIFY_SOURCE and KASAN"). For now, do what ARM64 is already doing and
> disable FORTIFY_SOURCE for such files.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
> ---
> CONFIG_FORTIFY_SOURCE kernel on i.MX6Q hangs indefinitely in a
> memcpy inside the very first printk without this patch.
>
> With this patch squashed:
> Tested-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
Thanks so much Ahmad! I folded in your fix into this patch and
added your Signed-off-by then added your Tested-by on all
patches and will resend as v16 before putting this into Russell's
patch tracker.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list