objtool: Fix another switch table detection issue
authorJosh Poimboeuf <jpoimboe@redhat.com>
Wed, 28 Feb 2018 13:19:21 +0000 (07:19 -0600)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 28 Feb 2018 15:03:19 +0000 (16:03 +0100)
commit22750979916b85e26ac76b5986da7ea98fd45edb
treee5521eb2fcbe4cad6a2a7d0c5906cdb2461a7f09
parent12f1e03473aecedb9cbf17efb9fb7bfe01774536
objtool: Fix another switch table detection issue

Continue the switch table detection whack-a-mole.  Add a check to
distinguish KASAN data reads from switch data reads.  The switch jump
tables in .rodata have relocations associated with them.

This fixes the following warning:

  crypto/asymmetric_keys/x509_cert_parser.o: warning: objtool: x509_note_pkey_algo()+0xa4: sibling call from callable instruction with modified stack frame

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Arnd Bergmann <arnd@arndb.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lkml.kernel.org/r/d7c8853022ad47d158cb81e953a40469fc08a95e.1519784382.git.jpoimboe@redhat.com
tools/objtool/check.c