[Crash-utility] [PATCH v2] x86_64: Add Linux 5.8+ exception functions to check exception frame

HAGIO KAZUHITO(萩尾 一仁) k-hagio-ab at nec.com
Fri Apr 16 02:07:13 UTC 2021


> -----Original Message-----
> 在 2021年04月16日 07:56, HAGIO KAZUHITO(萩尾 一仁) 写道:
> > Fix for 'bt' command and options on Linux 5.8-rc1 and later kernels
> > that contain merge commit 076f14be7fc942e112c94c841baec44124275cd0.
> > The merged patches changed the name of exception functions that
> > have been used by the crash utility to check the exception frame.
> > Without the patch, the command and options cannot display it.
> >
> > Before:
> >   crash> bt
> >   PID: 8752   TASK: ffff8f80cb244380  CPU: 2   COMMAND: "insmod"
> >    #0 [ffffa3e40187f9f8] machine_kexec at ffffffffab25d267
> >    #1 [ffffa3e40187fa48] __crash_kexec at ffffffffab38e2ed
> >    #2 [ffffa3e40187fb10] crash_kexec at ffffffffab38f1dd
> >    #3 [ffffa3e40187fb28] oops_end at ffffffffab222cbd
> >    #4 [ffffa3e40187fb48] do_trap at ffffffffab21fea1
> >    #5 [ffffa3e40187fb90] do_error_trap at ffffffffab21ff75
> >    #6 [ffffa3e40187fbd0] exc_invalid_op at ffffffffabb76a2c
> >    #7 [ffffa3e40187fbf0] asm_exc_invalid_op at ffffffffabc00a72
> >    #8 [ffffa3e40187fc78] init_module at ffffffffc042b018 [invalid]
> >    #9 [ffffa3e40187fca0] init_module at ffffffffc042b018 [invalid]
> >   #10 [ffffa3e40187fca8] do_one_initcall at ffffffffab202806
> >   #11 [ffffa3e40187fd18] do_init_module at ffffffffab3888ba
> >   #12 [ffffa3e40187fd38] load_module at ffffffffab38afde
> >
> > After:
> >   crash> bt
> >   PID: 8752   TASK: ffff8f80cb244380  CPU: 2   COMMAND: "insmod"
> >    #0 [ffffa3e40187f9f8] machine_kexec at ffffffffab25d267
> >    #1 [ffffa3e40187fa48] __crash_kexec at ffffffffab38e2ed
> >    #2 [ffffa3e40187fb10] crash_kexec at ffffffffab38f1dd
> >    #3 [ffffa3e40187fb28] oops_end at ffffffffab222cbd
> >    #4 [ffffa3e40187fb48] do_trap at ffffffffab21fea1
> >    #5 [ffffa3e40187fb90] do_error_trap at ffffffffab21ff75
> >    #6 [ffffa3e40187fbd0] exc_invalid_op at ffffffffabb76a2c
> >    #7 [ffffa3e40187fbf0] asm_exc_invalid_op at ffffffffabc00a72
> >       [exception RIP: init_module+24]
> >       RIP: ffffffffc042b018  RSP: ffffa3e40187fca8  RFLAGS: 00010246
> >       RAX: 000000000000001c  RBX: 0000000000000000  RCX: 0000000000000000
> >       RDX: 0000000000000000  RSI: ffff8f80fbd18000  RDI: ffff8f80fbd18000
> >       RBP: ffffffffc042b000   R8: 000000000000029d   R9: 000000000000002c
> >       R10: 0000000000000000  R11: ffffa3e40187fb58  R12: ffffffffc042d018
> >       R13: ffffa3e40187fdf0  R14: ffffffffc042d000  R15: ffffa3e40187fe90
> >       ORIG_RAX: ffffffffffffffff  CS: 0010  SS: 0018
> >    #8 [ffffa3e40187fca0] init_module at ffffffffc042b018 [invalid]
> >    #9 [ffffa3e40187fca8] do_one_initcall at ffffffffab202806
> >   #10 [ffffa3e40187fd18] do_init_module at ffffffffab3888ba
> >   #11 [ffffa3e40187fd38] load_module at ffffffffab38afde
> >
> > Signed-off-by: Kazuhito Hagio <k-hagio-ab at nec.com>
> > ---
> > v1 -> v2
> > - removed "xen_" prefix from "xen_asm_exc_debug"
> >
> 
> Thank you for the update.
> Acked-by: Lianbo Jiang <lijiang at redhat.com>

Thanks for the review, applied:
https://github.com/crash-utility/crash/commit/6c04376

Kazu





More information about the Crash-utility mailing list