Merge tag 'x86_core_for_v5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 fix from Borislav Petkov: "A single fix making the error message when the opcode bytes at rIP cannot be accessed during an oops, more precise" * tag 'x86_core_for_v5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/dumpstack: Fix misleading instruction pointer error message
This commit is contained in:
@@ -115,7 +115,8 @@ void show_opcodes(struct pt_regs *regs, const char *loglvl)
|
|||||||
unsigned long prologue = regs->ip - PROLOGUE_SIZE;
|
unsigned long prologue = regs->ip - PROLOGUE_SIZE;
|
||||||
|
|
||||||
if (copy_code(regs, opcodes, prologue, sizeof(opcodes))) {
|
if (copy_code(regs, opcodes, prologue, sizeof(opcodes))) {
|
||||||
printk("%sCode: Bad RIP value.\n", loglvl);
|
printk("%sCode: Unable to access opcode bytes at RIP 0x%lx.\n",
|
||||||
|
loglvl, prologue);
|
||||||
} else {
|
} else {
|
||||||
printk("%sCode: %" __stringify(PROLOGUE_SIZE) "ph <%02x> %"
|
printk("%sCode: %" __stringify(PROLOGUE_SIZE) "ph <%02x> %"
|
||||||
__stringify(EPILOGUE_SIZE) "ph\n", loglvl, opcodes,
|
__stringify(EPILOGUE_SIZE) "ph\n", loglvl, opcodes,
|
||||||
|
Reference in New Issue
Block a user