diff options
author | Peter Zijlstra <peterz@infradead.org> | 2021-03-26 16:12:00 +0100 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2021-03-31 16:20:22 +0200 |
commit | 52fa82c21f64e900a72437269a5cc9e0034b424e (patch) | |
tree | b2a122854db8fa1ed6adc80be5e5dee1dc3ab22f /arch/x86/kernel/traps.c | |
parent | 2304d14db6595bea5292bece06c4c625b12d8f89 (diff) | |
download | linux-52fa82c21f64e900a72437269a5cc9e0034b424e.tar.gz linux-52fa82c21f64e900a72437269a5cc9e0034b424e.tar.bz2 linux-52fa82c21f64e900a72437269a5cc9e0034b424e.zip |
x86: Add insn_decode_kernel()
Add a helper to decode kernel instructions; there's no point in
endlessly repeating those last two arguments.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210326151259.379242587@infradead.org
Diffstat (limited to 'arch/x86/kernel/traps.c')
-rw-r--r-- | arch/x86/kernel/traps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c index a5d254057b88..034f27fc230a 100644 --- a/arch/x86/kernel/traps.c +++ b/arch/x86/kernel/traps.c @@ -504,7 +504,7 @@ static enum kernel_gp_hint get_kernel_gp_address(struct pt_regs *regs, MAX_INSN_SIZE)) return GP_NO_HINT; - ret = insn_decode(&insn, insn_buf, MAX_INSN_SIZE, INSN_MODE_KERN); + ret = insn_decode_kernel(&insn, insn_buf); if (ret < 0) return GP_NO_HINT; |