Re: [PATCH mm] kfence: fix reports if constant function prefixes exist

From: Marco Elver
Date: Thu Mar 04 2021 - 09:45:55 EST


On Thu, 4 Mar 2021 at 15:40, Marco Elver <elver@xxxxxxxxxx> wrote:
> Some architectures prefix all functions with a constant string ('.' on
> ppc64). Add ARCH_FUNC_PREFIX, which may optionally be defined in
> <asm/kfence.h>, so that get_stack_skipnr() can work properly.
>
> Link: https://lkml.kernel.org/r/f036c53d-7e81-763c-47f4-6024c6c5f058@xxxxxxxxxx
> Reported-by: Christophe Leroy <christophe.leroy@xxxxxxxxxx>
> Tested-by: Christophe Leroy <christophe.leroy@xxxxxxxxxx>
> Signed-off-by: Marco Elver <elver@xxxxxxxxxx>
> ---

For further context, the corresponding ppc64-enablement patch is was
just sent by Christophe:

https://lkml.kernel.org/r/afaec81a551ef15345cb7d7563b3fac3d7041c3a.1614868445.git.christophe.leroy@xxxxxxxxxx

But there is no strict dependency between the patches, only that the
stack traces that KFENCE prints aren't as pretty without the
ARCH_FUNC_PREFIX patch.

So it should be fine to take them through different trees, as long as
they both make the next merge window.

Thanks,
-- Marco