Skip to content
Commit 375b27ec authored by Josh Poimboeuf's avatar Josh Poimboeuf Committed by Paul Gortmaker
Browse files

objtool: Fix stack offset tracking for indirect CFAs



commit d8dd25a4 upstream.

When the current frame address (CFA) is stored on the stack (i.e.,
cfa->base == CFI_SP_INDIRECT), objtool neglects to adjust the stack
offset when there are subsequent pushes or pops.  This results in bad
ORC data at the end of the ENTER_IRQ_STACK macro, when it puts the
previous stack pointer on the stack and does a subsequent push.

This fixes the following unwinder warning:

  WARNING: can't dereference registers at 00000000f0a6bdba for ip interrupt_entry+0x9f/0xa0

Fixes: 627fce14 ("objtool: Add ORC unwind table generation")
Reported-by: default avatarVince Weaver <vincent.weaver@maine.edu>
Reported-by: default avatarDave Jones <dsj@fb.com>
Reported-by: default avatarSteven Rostedt <rostedt@goodmis.org>
Reported-by: default avatarVegard Nossum <vegard.nossum@oracle.com>
Reported-by: default avatarJoe Mario <jmario@redhat.com>
Reviewed-by: default avatarMiroslav Benes <mbenes@suse.cz>
Signed-off-by: default avatarJosh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Jann Horn <jannh@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/853d5d691b29e250333332f09b8e27410b2d9924.1587808742.git.jpoimboe@redhat.com


Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent fd5fea4d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment