TEXT   17

attempt1 gdb txt

Guest on 30th July 2022 12:37:17 AM

  1. $ gdb vmlinux
  2. GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git
  3. Copyright (C) 2021 Free Software Foundation, Inc.
  4. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  5. This is free software: you are free to change and redistribute it.
  6. There is NO WARRANTY, to the extent permitted by law.
  7. Type "show copying" and "show warranty" for details.
  8. This GDB was configured as "x86_64-linux-gnu".
  9. Type "show configuration" for configuration details.
  10. For bug reporting instructions, please see:
  11. <https://www.gnu.org/software/gdb/bugs/>.
  12. Find the GDB manual and other documentation resources online at:
  13.     <http://www.gnu.org/software/gdb/documentation/>.
  14.  
  15. For help, type "help".
  16. Type "apropos word" to search for commands related to "word"...
  17. Reading symbols from vmlinux...
  18. (gdb) disassemble acpi_ns_validate_handle
  19. Dump of assembler code for function acpi_ns_validate_handle:
  20.    0xffffffff815781cd <+0>:     call   0xffffffff81062c40 <__fentry__>
  21.    0xffffffff815781d2 <+5>:     push   %r12
  22.    0xffffffff815781d4 <+7>:     mov    %rdi,%r12
  23.    0xffffffff815781d7 <+10>:    call   0xffffffff81584a44 <acpi_ut_track_stack_ptr>
  24.    0xffffffff815781dc <+15>:    lea    -0x1(%r12),%rax
  25.    0xffffffff815781e1 <+20>:    cmp    $0xfffffffffffffffd,%rax
  26.    0xffffffff815781e5 <+24>:    jbe    0xffffffff815781f0 <acpi_ns_validate_handle+35>
  27.    0xffffffff815781e7 <+26>:    mov    0x189b44a(%rip),%r12        # 0xffffffff82e13638 <acpi_gbl_root_node>
  28.    0xffffffff815781ee <+33>:    jmp    0xffffffff81578229 <acpi_ns_validate_handle+92>
  29.    0xffffffff815781f0 <+35>:    mov    %r12,%rdx
  30.    0xffffffff815781f3 <+38>:    mov    $0xffffffff81eca4c0,%rsi
  31.    0xffffffff815781fa <+45>:    mov    $0xffffffff82146d46,%rdi
  32.    0xffffffff81578201 <+52>:    call   0xffffffff818909f1 <printk>
  33.    0xffffffff81578206 <+57>:    cmpb   $0xf,0x8(%r12)
  34.    0xffffffff8157820c <+63>:    jne    0xffffffff81578226 <acpi_ns_validate_handle+89>
  35.    0xffffffff8157820e <+65>:    mov    %r12,%rdx
  36.    0xffffffff81578211 <+68>:    mov    $0xffffffff81eca4c0,%rsi
  37.    0xffffffff81578218 <+75>:    mov    $0xffffffff82146d46,%rdi
  38.    0xffffffff8157821f <+82>:    call   0xffffffff818909f1 <printk>
  39.    0xffffffff81578224 <+87>:    jmp    0xffffffff81578229 <acpi_ns_validate_handle+92>
  40.    0xffffffff81578226 <+89>:    xor    %r12d,%r12d
  41.    0xffffffff81578229 <+92>:    mov    %r12,%rax
  42.    0xffffffff8157822c <+95>:    pop    %r12
  43.    0xffffffff8157822e <+97>:    ret    
  44. End of assembler dump.
  45. (gdb) print 0xffffffff82146d46
  46. $1 = 18446744071596961094
  47. (gdb) print (char *)0xffffffff82146d46
  48. $2 = 0xffffffff82146d46 "\001\066%s handle: %p\n"
  49. (gdb) print (char *)0xffffffff81eca4c0
  50. $3 = 0xffffffff81eca4c0 <__func__.3> "acpi_ns_validate_handle"
  51. (gdb) disassemble printk
  52. Dump of assembler code for function printk:
  53.    0xffffffff818909f1 <+0>:     call   0xffffffff81062c40 <__fentry__>
  54.    0xffffffff818909f6 <+5>:     push   %rbp
  55.    0xffffffff818909f7 <+6>:     mov    %rsp,%rbp
  56.    0xffffffff818909fa <+9>:     sub    $0x50,%rsp
  57.    0xffffffff818909fe <+13>:    mov    %rsi,0x28(%rsp)
  58.    0xffffffff81890a03 <+18>:    mov    %rsp,%rsi
  59.    0xffffffff81890a06 <+21>:    mov    %rdx,0x30(%rsp)
  60.    0xffffffff81890a0b <+26>:    mov    %rcx,0x38(%rsp)
  61.    0xffffffff81890a10 <+31>:    mov    %r8,0x40(%rsp)
  62.    0xffffffff81890a15 <+36>:    mov    %r9,0x48(%rsp)
  63.    0xffffffff81890a1a <+41>:    mov    %gs:0x28,%rax
  64.    0xffffffff81890a23 <+50>:    mov    %rax,0x18(%rsp)
  65.    0xffffffff81890a28 <+55>:    xor    %eax,%eax
  66.    0xffffffff81890a2a <+57>:    lea    0x10(%rbp),%rax
  67.    0xffffffff81890a2e <+61>:    movl   $0x8,(%rsp)
  68.    0xffffffff81890a35 <+68>:    mov    %rax,0x8(%rsp)
  69.    0xffffffff81890a3a <+73>:    lea    0x20(%rsp),%rax
  70.    0xffffffff81890a3f <+78>:    mov    %rax,0x10(%rsp)
  71.    0xffffffff81890a44 <+83>:    call   0xffffffff810f1ca0 <vprintk_func>
  72.    0xffffffff81890a49 <+88>:    mov    0x18(%rsp),%rdx
  73.    0xffffffff81890a4e <+93>:    sub    %gs:0x28,%rdx
  74.    0xffffffff81890a57 <+102>:   je     0xffffffff81890a5e <printk+109>
  75.    0xffffffff81890a59 <+104>:   call   0xffffffff818c4500 <__stack_chk_fail>
  76.    0xffffffff81890a5e <+109>:   leave  
  77.    0xffffffff81890a5f <+110>:   ret    
  78. End of assembler dump.
  79. (gdb) disassemble __fentry__
  80. Dump of assembler code for function __fentry__:
  81.    0xffffffff81062c40 <+0>:     ret    
  82. End of assembler dump.
  83. (gdb) disassemble __stack_chk_fail
  84. Dump of assembler code for function __stack_chk_fail:
  85.    0xffffffff818c4500 <+0>:     mov    (%rsp),%rsi
  86.    0xffffffff818c4504 <+4>:     mov    $0xffffffff820d24b8,%rdi
  87.    0xffffffff818c450b <+11>:    call   0xffffffff8188b166 <panic>
  88. End of assembler dump.
  89. (gdb) disassemble vprintk_func
  90. Dump of assembler code for function vprintk_func:
  91.    0xffffffff810f1ca0 <+0>:     call   0xffffffff81062c40 <__fentry__>
  92.    0xffffffff810f1ca5 <+5>:     push   %r12
  93.    0xffffffff810f1ca7 <+7>:     mov    %rsi,%r12
  94.    0xffffffff810f1caa <+10>:    push   %rbp
  95.    0xffffffff810f1cab <+11>:    mov    %rdi,%rbp
  96.    0xffffffff810f1cae <+14>:    mov    %gs:0x7ef28d6b(%rip),%eax        # 0x1aa20 <printk_context>
  97.    0xffffffff810f1cb5 <+21>:    test   $0x8000000,%eax
  98.    0xffffffff810f1cba <+26>:    jne    0xffffffff810f1d14 <vprintk_func+116>
  99.    0xffffffff810f1cbc <+28>:    mov    %gs:0x7ef28d5d(%rip),%eax        # 0x1aa20 <printk_context>
  100.    0xffffffff810f1cc3 <+35>:    movabs $0xff0000000,%rdx
  101.    0xffffffff810f1ccd <+45>:    cltq  
  102.    0xffffffff810f1ccf <+47>:    mov    $0x18a20,%rdi
  103.    0xffffffff810f1cd6 <+54>:    test   %rdx,%rax
  104.    0xffffffff810f1cd9 <+57>:    jne    0xffffffff810f1cfe <vprintk_func+94>
  105.    0xffffffff810f1cdb <+59>:    mov    %gs:0x7ef28d3e(%rip),%eax        # 0x1aa20 <printk_context>
  106.    0xffffffff810f1ce2 <+66>:    test   $0x7ffffff,%eax
  107.    0xffffffff810f1ce7 <+71>:    jne    0xffffffff810f1cf7 <vprintk_func+87>
  108.    0xffffffff810f1ce9 <+73>:    mov    %r12,%rsi
  109.    0xffffffff810f1cec <+76>:    mov    %rbp,%rdi
  110.    0xffffffff810f1cef <+79>:    pop    %rbp
  111.    0xffffffff810f1cf0 <+80>:    pop    %r12
  112.    0xffffffff810f1cf2 <+82>:    jmp    0xffffffff810f1210 <vprintk_default>
  113.    0xffffffff810f1cf7 <+87>:    mov    $0x1aa40,%rdi
  114.    0xffffffff810f1cfe <+94>:    add    %gs:0x7ef1f862(%rip),%rdi        # 0x11568 <this_cpu_off>
  115.    0xffffffff810f1d06 <+102>:   mov    %r12,%rdx
  116.    0xffffffff810f1d09 <+105>:   mov    %rbp,%rsi
  117.    0xffffffff810f1d0c <+108>:   pop    %rbp
  118.    0xffffffff810f1d0d <+109>:   pop    %r12
  119.    0xffffffff810f1d0f <+111>:   jmp    0xffffffff810f1990 <printk_safe_log_store>
  120.    0xffffffff810f1d14 <+116>:   mov    $0xffffffff82d05328,%rdi
  121.    0xffffffff810f1d1b <+123>:   call   0xffffffff818d1c90 <_raw_spin_trylock>
  122.    0xffffffff810f1d20 <+128>:   test   %eax,%eax
  123.    0xffffffff810f1d22 <+130>:   je     0xffffffff810f1cbc <vprintk_func+28>
  124.    0xffffffff810f1d24 <+132>:   mov    %r12,%r8
  125.    0xffffffff810f1d27 <+135>:   xor    %edi,%edi
  126.    0xffffffff810f1d29 <+137>:   mov    %rbp,%rcx
  127.    0xffffffff810f1d2c <+140>:   xor    %edx,%edx
  128.    0xffffffff810f1d2e <+142>:   mov    $0xffffffff,%esi
  129.    0xffffffff810f1d33 <+147>:   call   0xffffffff810f0db0 <vprintk_store>
  130.    0xffffffff810f1d38 <+152>:   mov    $0xffffffff82d05328,%rdi
  131.    0xffffffff810f1d3f <+159>:   mov    %eax,%r12d
  132.    0xffffffff810f1d42 <+162>:   call   *0xffffffff8244b238
  133.    0xffffffff810f1d49 <+169>:   call   0xffffffff810f1690 <defer_console_output>
  134.    0xffffffff810f1d4e <+174>:   mov    %r12d,%eax
  135.    0xffffffff810f1d51 <+177>:   pop    %rbp
  136.    0xffffffff810f1d52 <+178>:   pop    %r12
  137.    0xffffffff810f1d54 <+180>:   ret    
  138. End of assembler dump.
  139. (gdb)

Raw Paste


Login or Register to edit or fork this paste. It's free.