Thread (2 messages) 2 messages, 1 author, 2021-03-04

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

From: Marco Elver <elver@google.com>
Date: 2021-03-04 14:45:40
Also in: lkml

On Thu, 4 Mar 2021 at 15:40, Marco Elver [off-list ref] 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@csgroup.eu
Reported-by: Christophe Leroy <redacted>
Tested-by: Christophe Leroy <redacted>
Signed-off-by: Marco Elver <elver@google.com>
---
For further context, the corresponding ppc64-enablement patch is was
just sent by Christophe:

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

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help