]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
objtool: Add support for alternatives at the end of a section
authorJosh Poimboeuf <jpoimboe@redhat.com>
Tue, 30 Jan 2018 04:00:40 +0000 (22:00 -0600)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 8 Feb 2018 03:08:34 +0000 (21:08 -0600)
commitf46e44d7fd08f5dc574d890b0f7f327b6a7e10a6
tree33d8397663a0279a2246b50d3139210d38c9e374
parentfeb6e6c6774d03df19f8641e64a9f8e19c11b271
objtool: Add support for alternatives at the end of a section

BugLink: http://bugs.launchpad.net/bugs/1748072
commit 17bc33914bcc98ba3c6b426fd1c49587a25c0597

Now that the previous patch gave objtool the ability to read retpoline
alternatives, it shows a new warning:

  arch/x86/entry/entry_64.o: warning: objtool: .entry_trampoline: don't know how to handle alternatives at end of section

This is due to the JMP_NOSPEC in entry_SYSCALL_64_trampoline().

Previously, objtool ignored this situation because it wasn't needed, and
it would have required a bit of extra code.  Now that this case exists,
add proper support for it.

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/2a30a3c2158af47d891a76e69bb1ef347e0443fd.1517284349.git.jpoimboe@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
tools/objtool/check.c