Skip to content

powerpc/fadump: fix "seek error: kernel virtual address: c0000027f5e19000" observed while running crash tool on vmcore captured during fadump

Diego Domingos requested to merge didoming/centos-stream-9:bz2040289 into main

Bugzilla: http://bugzilla.redhat.com/2040289

Brew: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=42844000

Tested:

[root@d87p1 127.0.0.1-2022-02-10-05:49:13]# crash /usr/lib/debug/lib/modules/5.14.0-55.bz2040289_test.el9.ppc64le/vmlinux vmcore

crash 8.0.0-4.el9
Copyright (C) 2002-2021  Red Hat, Inc.
Copyright (C) 2004, 2005, 2006, 2010  IBM Corporation
Copyright (C) 1999-2006  Hewlett-Packard Co
Copyright (C) 2005, 2006, 2011, 2012  Fujitsu Limited
Copyright (C) 2006, 2007  VA Linux Systems Japan K.K.
Copyright (C) 2005, 2011, 2020-2021  NEC Corporation
Copyright (C) 1999, 2002, 2007  Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002  Mission Critical Linux, Inc.
Copyright (C) 2015, 2021  VMware, Inc.
This program is free software, covered by the GNU General Public License,
and you are welcome to change it and/or distribute copies of it under
certain conditions.  Enter "help copying" to see the conditions.
This program has absolutely no warranty.  Enter "help warranty" for details.
 
GNU gdb (GDB) 10.2
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "powerpc64le-unknown-linux-gnu".
Type "show configuration" for configuration details.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...

      KERNEL: /usr/lib/debug/lib/modules/5.14.0-55.bz2040289_test.el9.ppc64le/vmlinux
    DUMPFILE: vmcore  [PARTIAL DUMP]
        CPUS: 1920
        DATE: Thu Feb 10 05:45:03 EST 2022
      UPTIME: 00:04:45
LOAD AVERAGE: 0.62, 0.52, 0.22
       TASKS: 15734
    NODENAME: d87p1.aus.stglabs.ibm.com
     RELEASE: 5.14.0-55.bz2040289_test.el9.ppc64le
     VERSION: #1 SMP Mon Feb 7 08:14:32 EST 2022
     MACHINE: ppc64le  (3250 Mhz)
      MEMORY: 2500 GB
       PANIC: "Kernel panic - not syncing: sysrq triggered crash"
         PID: 25743
     COMMAND: "bash"
        TASK: c0000139065e9180  [THREAD_INFO: c0000139065e9180]
         CPU: 98
       STATE: TASK_RUNNING (PANIC)

crash> bt
PID: 25743  TASK: c0000139065e9180  CPU: 98  COMMAND: "bash"
 #0 [c0000139063f3a30] crash_fadump at c000000000054fcc
 #1 [c0000139063f3a90] ppc_panic_event at c00000000002e660
 #2 [c0000139063f3ac0] atomic_notifier_call_chain at c000000000197f58
 #3 [c0000139063f3b00] panic at c00000000015a9d0
 #4 [c0000139063f3ba0] sysrq_handle_crash at c00000000090c458
 #5 [c0000139063f3c00] __handle_sysrq at c00000000090d0ac
 #6 [c0000139063f3ca0] write_sysrq_trigger at c00000000090d938
 #7 [c0000139063f3ce0] proc_reg_write at c00000000061812c
 #8 [c0000139063f3d10] vfs_write at c0000000005463ec
 #9 [c0000139063f3d60] ksys_write at c000000000546974
#10 [c0000139063f3db0] system_call_exception at c000000000030880
#11 [c0000139063f3e10] system_call_vectored_common at c00000000000c168
crash> bt -a
PID: 0      TASK: c0000000029c3f00  CPU: 0   COMMAND: "swapper/0"
 R0:  0000000000000000    R1:  c000000002a43ce0    R2:  c000000002a46f00   
 R3:  0000000000000000    R4:  80040000bc237c10    R5:  0000000000000000   
 R6:  0000000000000000    R7:  0000000000000080    R8:  0000000000000000   
 R9:  0000000000000039    R10: 0000000000000000    R11: ffffffffffffffff   
 R12: ffffffffffffff7f    R13: c000000002dd0000    R14: 0000000000000000   
 R15: 0000000000000000    R16: 0000000000000000    R17: 0000000000000000   
 R18: 000000000f6b3dc0    R19: 0000000000000008    R20: 000000000f6a2ac0   
 R21: 0000000000000008    R22: 0000000008a3fc88    R23: 0000000000000001   
 R24: 0000000000000001    R25: 0000000000000000    R26: 000000231a7d9720   
 R27: 0000000000000001    R28: 0000000000000000    R29: 0000000000000001   
 R30: c0000000021520c0    R31: c0000000021520c8   
 NIP: c0000000000f8ff4    MSR: 800000000290b033    OR3: 0000000000000000
 CTR: 0000000000000000    LR:  c000000000b40a68    XER: 0000000020040000
 CCR: 0000000022000428    MQ:  0000000000000000    DAR: 00007ff1a7a4a188
 DSISR: 0000000042000000     Syscall Result: 0000000000000000
 [NIP  : plpar_hcall_norets_notrace+24]
 [LR   : dedicated_cede_loop+360]
 #0 [c000000002a43ce0] hrtimer_next_event_without at c000000000247450
 #1 [c000000002a43d60] cpuidle_enter_state at c000000000b3d3a4
 #2 [c000000002a43dc0] cpuidle_enter at c000000000b3d71c
 #3 [c000000002a43e00] cpuidle_idle_call at c0000000001b9a90
 #4 [c000000002a43e50] do_idle at c0000000001b9ca8
 #5 [c000000002a43ea0] cpu_startup_entry at c0000000001b9ff8
 #6 [c000000002a43ed0] rest_init at c00000000001291c
 #7 [c000000002a43f00] start_kernel at c0000000020051c8
 #8 [c000000002a43f90] start_here_common at c00000000000d39c

PID: 0      TASK: c00000000a107200  CPU: 1   COMMAND: "swapper/1"
 R0:  0000000000000000    R1:  c00000000a0efd50    R2:  c000000002a46f00   
 R3:  0000000000000000    R4:  80040000bc237c10    R5:  0000000000000000   
 R6:  0000000000000000    R7:  0000000000000001    R8:  0000000000000000   
 R9:  0000000000000090    R10: 0000000000000000    R11: 0000000000102f00   
 R12: 00000000000fef00    R13: c00000299ffff300    R14: 0000000000000000   
 R15: 000000001f23e020    R16: 0000000000000000    R17: 0000000000000000   
 R18: 0000000000000000    R19: 0000000000000000    R20: 0000000000000000   
 R21: 0000000000000000    R22: 0000000000000000    R23: 0000000000000001   
 R24: 0000000000000001    R25: 0000000000000000    R26: 00000022ae9b7abe   
 R27: 0000000000000001    R28: 0000000000000000    R29: 0000000000000001   
 R30: c0000000021520c0    R31: c0000000021520c8   
 NIP: c0000000000f8ff4    MSR: 800000000290b033    OR3: 0000000000000000
 CTR: 0000000000000000    LR:  c000000000b40a68    XER: 0000000020040000
 CCR: 0000000024000228    MQ:  0000000000000000    DAR: 00007fff963308f8
 DSISR: 0000000040000000     Syscall Result: 0000000000000000
 [NIP  : plpar_hcall_norets_notrace+24]
 [LR   : dedicated_cede_loop+360]
 #0 [c00000000a0efd50] (null) at 7fffffffffffffff  (unreliable)
 #1 [c00000000a0efdd0] cpuidle_enter_state at c000000000b3d3a4
 #2 [c00000000a0efe30] cpuidle_enter at c000000000b3d71c
 #3 [c00000000a0efe70] cpuidle_idle_call at c0000000001b9a90
 #4 [c00000000a0efec0] do_idle at c0000000001b9ca8
 #5 [c00000000a0eff10] cpu_startup_entry at c0000000001b9ffc
 #6 [c00000000a0eff40] start_secondary at c000000000060620
 #7 [c00000000a0eff90] start_secondary_prolog at c00000000000d254

PID: 0      TASK: c00000000a13c900  CPU: 2   COMMAND: "swapper/2"
 R0:  0000000000000000    R1:  c00000000a0e3d50    R2:  c000000002a46f00   
 R3:  0000000000000000    R4:  80040000bc237c10    R5:  0000000000000000   
 R6:  0000000000000000    R7:  0000000000000002    R8:  0000000000000000   
 R9:  0000000000000090    R10: 0000000000000000    R11: 0000000000102f00   
 R12: 00000000000fef00    R13: c00000299fffdf00    R14: 0000000000000000   
 R15: 000000001f23e040    R16: 0000000000000000    R17: 0000000000000000   
 R18: 0000000000000000    R19: 0000000000000000    R20: 0000000000000000   
 R21: 0000000000000000    R22: 0000000000000000    R23: 0000000000000001   
 R24: 0000000000000002    R25: 0000000000000000    R26: 00000022ae9b8198   
 R27: 0000000000000001    R28: 0000000000000000    R29: 0000000000000001   
 R30: c0000000021520c0    R31: c0000000021520c8   
 NIP: c0000000000f8ff4    MSR: 800000000290b033    OR3: 0000000000000000
 CTR: 0000000000000000    LR:  c000000000b40a68    XER: 0000000020040000

Signed-off-by: Diego Domingos didoming@redhat.com

Merge request reports