projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c1ed47
)
x86/alternatives: Print containing function
author
Borislav Petkov
<bp@suse.de>
Mon, 10 Dec 2018 11:30:30 +0000
(12:30 +0100)
committer
Borislav Petkov
<bp@suse.de>
Wed, 16 Jan 2019 11:41:57 +0000
(12:41 +0100)
... in the "debug-alternative" output so that one can find her way
easier when staring at the vmlinux disassembly.
For example:
apply_alternatives: feat: 3*32+18, old: (read_tsc+0x0/0x10 (
ffffffff8101d1c0
) len: 5), repl: (
ffffffff824e6d33
, len: 5)
^^^^^^^^^^^^^^^^^
ffffffff8101d1c0
: old_insn: 0f 31 90 90 90
ffffffff824e6d33
: rpl_insn: 0f ae e8 0f 31
ffffffff8101d1c0
: final_insn: 0f ae e8 0f 31
No functional changes.
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: X86 ML <x86@kernel.org>
Link:
https://lkml.kernel.org/r/20181211222326.14581-3-bp@alien8.de
arch/x86/kernel/alternative.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/alternative.c
b/arch/x86/kernel/alternative.c
index ebeac487a20c79614d3892e982191124b2216e9c..d458c7973c56e7ddd4acb28207b20f9fd890da03 100644
(file)
--- a/
arch/x86/kernel/alternative.c
+++ b/
arch/x86/kernel/alternative.c
@@
-393,10
+393,10
@@
void __init_or_module noinline apply_alternatives(struct alt_instr *start,
continue;
}
- DPRINTK("feat: %d*32+%d, old: (%p
x
len: %d), repl: (%px, len: %d), pad: %d",
+ DPRINTK("feat: %d*32+%d, old: (%p
S (%px)
len: %d), repl: (%px, len: %d), pad: %d",
a->cpuid >> 5,
a->cpuid & 0x1f,
- instr, a->instrlen,
+ instr,
instr,
a->instrlen,
replacement, a->replacementlen, a->padlen);
DUMP_BYTES(instr, a->instrlen, "%px: old_insn: ", instr);