]> git.baikalelectronics.ru Git - kernel.git/commit
objtool: Fix rare switch jump table pattern detection
authorJosh Poimboeuf <jpoimboe@redhat.com>
Wed, 26 Oct 2016 15:34:08 +0000 (10:34 -0500)
committerIngo Molnar <mingo@kernel.org>
Thu, 27 Oct 2016 06:20:27 +0000 (08:20 +0200)
commit4fd53cbd90c565736fac7ae4fa0cf5f92568bdde
tree7bc98b13793bf28b02995a5352077f775f45f5b8
parent953bd96278b0bd9b0af4822578bb8dd330ab345d
objtool: Fix rare switch jump table pattern detection

The following commit:

  6ae8ed23d16b ("objtool: Improve rare switch jump table pattern detection")

... improved objtool's ability to detect GCC switch statement jump
tables for GCC 6.  However the check to allow short jumps with the
scanned range of instructions wasn't quite right.  The pattern detection
should allow jumps to the indirect jump instruction itself.

This fixes the following warning:

  drivers/infiniband/sw/rxe/rxe_comp.o: warning: objtool: rxe_completer()+0x315: sibling call from callable instruction with changed frame pointer

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Fixes: 6ae8ed23d16b ("objtool: Improve rare switch jump table pattern detection")
Link: http://lkml.kernel.org/r/20161026153408.2rifnw7bvoc5sex7@treble
Signed-off-by: Ingo Molnar <mingo@kernel.org>
tools/objtool/builtin-check.c