]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - tools/objtool/check.c
objtool: Rewrite alt->skip_orig
authorPeter Zijlstra <peterz@infradead.org>
Fri, 1 Mar 2019 10:19:03 +0000 (11:19 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 3 Apr 2019 09:02:24 +0000 (11:02 +0200)
commit764eef4b109ae11e6c987de9c14fc7c482041be0
treea8fb2c0f135a10ad6b6d4f9478348b6a82199ca3
parent7697eee3ddd768a1fd78c1e687afaa6c5aa5072d
objtool: Rewrite alt->skip_orig

Really skip the original instruction flow, instead of letting it
continue with NOPs.

Since the alternative code flow already continues after the original
instructions, only the alt-original is skipped.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
tools/objtool/check.c