]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/livepatch: relax reliable stack tracer checks for first-frame
authorJoe Lawrence <joe.lawrence@redhat.com>
Tue, 22 Jan 2019 15:57:22 +0000 (10:57 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 31 Jan 2019 05:43:38 +0000 (16:43 +1100)
commitcbfa1f00c319e07c15f375b2163a231036498de5
treecc3e5a0d4b83b5bc0517b5c2b6dcda029931d797
parent113ebec9fc398f4709a7d1c8a6d12d7d0337672f
powerpc/livepatch: relax reliable stack tracer checks for first-frame

The bottom-most stack frame (the first to be unwound) may be largely
uninitialized, for the "Power Architecture 64-Bit ELF V2 ABI" only
requires its backchain pointer to be set.

The reliable stack tracer should be careful when verifying this frame:
skip checks on STACK_FRAME_LR_SAVE and STACK_FRAME_MARKER offsets that
may contain uninitialized residual data.

Fixes: 8930ca5cdd0a ("powerpc/livepatch: Implement reliable stack tracing for the consistency model")
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/stacktrace.c