x86/alternatives: Add int3_emulate_call() selftest
authorPeter Zijlstra <peterz@infradead.org>
Fri, 3 May 2019 10:22:47 +0000 (12:22 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 25 Jun 2019 08:23:50 +0000 (10:23 +0200)
commit7457c0da024b181a9143988d740001f9bc98698d
tree83f21792b9094292c0b89d2fc06f620da62c2081
parentfaeedb0679bee39ebffc6d53111e86932dea189a
x86/alternatives: Add int3_emulate_call() selftest

Given that the entry_*.S changes for this functionality are somewhat
tricky, make sure the paths are tested every boot, instead of on the
rare occasion when we trip an INT3 while rewriting text.

Requested-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com>
Acked-by: Andy Lutomirski <luto@kernel.org>
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>
arch/x86/kernel/alternative.c