mirror of https://gitee.com/openkylin/linux.git
x86: fix RIP printout in early_idt_handler
Impact: fix debug/crash printout Since errorcode is popped out, RIP is on the top of the stack. Use real RIP value instead of wrong CS. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Cc: <stable@kernel.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
37dd3cb415
commit
7aed55d108
|
@ -305,7 +305,7 @@ ENTRY(early_idt_handler)
|
||||||
call dump_stack
|
call dump_stack
|
||||||
#ifdef CONFIG_KALLSYMS
|
#ifdef CONFIG_KALLSYMS
|
||||||
leaq early_idt_ripmsg(%rip),%rdi
|
leaq early_idt_ripmsg(%rip),%rdi
|
||||||
movq 8(%rsp),%rsi # get rip again
|
movq 0(%rsp),%rsi # get rip again
|
||||||
call __print_symbol
|
call __print_symbol
|
||||||
#endif
|
#endif
|
||||||
#endif /* EARLY_PRINTK */
|
#endif /* EARLY_PRINTK */
|
||||||
|
|
Loading…
Reference in New Issue