kernel-hardening.lists.openwall.com archive mirror
 help / color / mirror / Atom feed
* How to get the crash dump if system hangs?
@ 2019-09-25 20:17 Muni Sekhar
  2019-09-30 23:51 ` Kees Cook
  0 siblings, 1 reply; 16+ messages in thread
From: Muni Sekhar @ 2019-09-25 20:17 UTC (permalink / raw)
  To: kernel-hardening; +Cc: Kees Cook

Hi All,

I looked at the available tests with "cat
/sys/kernel/debug/provoke-crash/DIRECT", from this I’d like to know
which test causes system hang? I could not find any test case for
deadlock, is any reason for this?

I’m having a Linux system, I’m seeing it gets hung during certain
tests. When it hung, it does not even respond for SYSRQ button, only
way to recover is power-button-only.  Does no response for SYSRQ
button means kernel crashed?

After reboot I looked at the kern.log and most of the times it has
“^@^@^@^ ...“ line just before reboot. Can someone clarify me what the
kernel log entry “^@^@^@^ ...“ means? I suspect kernel is crashed, but
it does give any crashdump in kern.log.

Later I enabled the kernel crash dump(sudo apt install
linux-crashdump) and rerun the test but still nothing copied to the
disk(/var/crash/). I don’t have onboard serial port in my machine, so
I tried get the crash dump via netconsole, but this method also does
not able to catch the crash dump.

Can someone help me how to debug in this scenario?

And I'd like to know what other options available to get the crash
dump? Can someone please clarify me on this?

Also , does the crash dump fails if incase deadlock occurs?

Any help will be greatly appreciated.



-- 
Thanks,
Sekhar

^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: How to get the crash dump if system hangs?
@ 2019-10-20 19:01 youling257
  2019-10-21  8:39 ` Lukas Odzioba
  0 siblings, 1 reply; 16+ messages in thread
From: youling257 @ 2019-10-20 19:01 UTC (permalink / raw)
  To: keescook; +Cc: kernel-hardening, munisekharrms

I don't know my ramoops.mem_address, please help me.

what is ramoops.mem_address?

# cat /proc/iomem

00000000-00000fff : Reserved

00001000-0008efff : System RAM

0008f000-0008ffff : ACPI Non-volatile Storage

00090000-0009dfff : System RAM

0009e000-0009ffff : Reserved

000a0000-000bffff : PCI Bus 0000:00

000c0000-000dffff : PCI Bus 0000:00

000e0000-000fffff : PCI Bus 0000:00

   000f0000-000fffff : System ROM

00100000-1fffffff : System RAM

20000000-201fffff : Reserved

   20000000-201fffff : 80860F28:00

20200000-779c5fff : System RAM

   4c800000-4d401150 : Kernel code

   4d401151-4dd1fb3f : Kernel data

   4e212000-4e3fffff : Kernel bss

779c6000-77a12fff : Reserved

77a13000-77a1bfff : Unknown E820 type

77a1c000-77afffff : Reserved

77b00000-7bb6dfff : System RAM

7bb6e000-7bbcdfff : Unknown E820 type

7bbce000-7bdcdfff : Reserved

7bdce000-7bdcefff : System RAM

7bdcf000-7bdcffff : Reserved

7bdd0000-7bdd1fff : System RAM

7bdd2000-7bdd2fff : Reserved

7bdd3000-7c7fffff : System RAM

7c800000-7cbfffff : RAM buffer

7cc00000-7cc3afff : System RAM

7cc3b000-7cc47fff : Reserved

7cc48000-7ccb7fff : ACPI Non-volatile Storage

7ccb8000-7ccf7fff : ACPI Tables

7ccf8000-7ccfffff : System RAM

7cd00000-7cefffff : RAM buffer

7cf00000-7ef00000 : Reserved

   7cf00001-7ef00000 : PCI Bus 0000:00

     7cf00001-7eeffffe : Graphics Stolen Memory

7ef00001-7fefffff : RAM buffer

7ff00000-7ff00fff : MSFT0101:00

7ff01000-7fffffff : RAM buffer

80000000-90affffe : PCI Bus 0000:00

   80000000-8fffffff : 0000:00:02.0

   90000000-903fffff : 0000:00:02.0

     901e5000-901e5fff : hdmi-lpe-audio-mmio

   90400000-905fffff : dwc_usb3

     90400000-905fffff : 0000:00:16.0

       9040c100-905fffff : dwc3.3.auto

   90800000-908fffff : 0000:00:1a.0

   90900000-909fffff : 0000:00:1a.0

   90a00000-90a0ffff : 0000:00:14.0

     90a00000-90a0ffff : xhci-hcd

   90a2c000-90a2cfff : 0000:00:16.0

90b00000-90b00fff : 80860F28:00

90b01000-90b01fff : INT33BB:00

   90b01000-90b01fff : INT33BB:00

90b04000-90b07fff : INTL9C60:01

   90b04000-90b07fff : INTL9C60:01

90b08000-90b08fff : 80860F41:00

   90b08000-90b08fff : 80860F41:00

90b0a000-90b0afff : 80860F41:01

   90b0a000-90b0afff : 80860F41:01

90b0c000-90b0cfff : 80860F41:02

   90b0c000-90b0cfff : 80860F41:02

90b0e000-90b0efff : 80860F41:03

   90b0e000-90b0efff : 80860F41:03

90b10000-90b10fff : 80860F41:04

   90b10000-90b10fff : 80860F41:04

90b13000-90b13fff : 80860F09:00

   90b13000-90b13fff : 80860F09:00

90b14000-90b17fff : INTL9C60:00

   90b14000-90b17fff : INTL9C60:00

90b19000-90b19fff : 80860F0A:00

   90b19000-90b1901f : serial

90b1b000-90b1bfff : 80860F0A:01

   90b1b000-90b1b01f : serial

90b1d000-90b1dfff : 80860F14:02

   90b1d000-90b1dfff : 80860F14:02

90b1f000-90b1ffff : 80860F14:00

   90b1f000-90b1ffff : 80860F14:00

90c00000-90ffffff : PCI Bus 0000:00

91000000-911fffff : 80860F28:00

e00000d0-e00000db : INT33BD:00

e00f8000-e00f8fff : Reserved

fec00000-fec003ff : IOAPIC 0

fed00000-fed003ff : HPET 0

   fed00000-fed003ff : PNP0103:00

fed01000-fed01fff : Reserved

   fed01000-fed011ff : intel-spi

fed03008-fed0300c : iTCO_wdt.2.auto

fed05000-fed057ff : INT3401:00

fed0c000-fed0cfff : INT33FC:00

   fed0c000-fed0cfff : INT33FC:00

fed0d000-fed0dfff : INT33FC:01

   fed0d000-fed0dfff : INT33FC:01

fed0e000-fed0efff : INT33FC:02

   fed0e000-fed0efff : INT33FC:02

fed40000-fed40fff : PCI Bus 0000:00

fee00000-fee00fff : Local APIC

ff000000-ffffffff : INT0800:00

   ffd00000-ffffffff : Reserved


^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: How to get the crash dump if system hangs?
@ 2019-10-20 19:31 youling257
  0 siblings, 0 replies; 16+ messages in thread
From: youling257 @ 2019-10-20 19:31 UTC (permalink / raw)
  To: keescook; +Cc: kernel-hardening, munisekharrms

I don't know my ramoops.mem_address, please help me.

what is ramoops.mem_address?

# cat /proc/iomem

00000000-00000fff : Reserved

00001000-0008efff : System RAM

0008f000-0008ffff : ACPI Non-volatile Storage

00090000-0009dfff : System RAM

0009e000-0009ffff : Reserved

000a0000-000bffff : PCI Bus 0000:00

000c0000-000dffff : PCI Bus 0000:00

000e0000-000fffff : PCI Bus 0000:00

   000f0000-000fffff : System ROM

00100000-1fffffff : System RAM

20000000-201fffff : Reserved

   20000000-201fffff : 80860F28:00

20200000-779c5fff : System RAM

   4c800000-4d401150 : Kernel code

   4d401151-4dd1fb3f : Kernel data

   4e212000-4e3fffff : Kernel bss

779c6000-77a12fff : Reserved

77a13000-77a1bfff : Unknown E820 type

77a1c000-77afffff : Reserved

77b00000-7bb6dfff : System RAM

7bb6e000-7bbcdfff : Unknown E820 type

7bbce000-7bdcdfff : Reserved

7bdce000-7bdcefff : System RAM

7bdcf000-7bdcffff : Reserved

7bdd0000-7bdd1fff : System RAM

7bdd2000-7bdd2fff : Reserved

7bdd3000-7c7fffff : System RAM

7c800000-7cbfffff : RAM buffer

7cc00000-7cc3afff : System RAM

7cc3b000-7cc47fff : Reserved

7cc48000-7ccb7fff : ACPI Non-volatile Storage

7ccb8000-7ccf7fff : ACPI Tables

7ccf8000-7ccfffff : System RAM

7cd00000-7cefffff : RAM buffer

7cf00000-7ef00000 : Reserved

   7cf00001-7ef00000 : PCI Bus 0000:00

     7cf00001-7eeffffe : Graphics Stolen Memory

7ef00001-7fefffff : RAM buffer

7ff00000-7ff00fff : MSFT0101:00

7ff01000-7fffffff : RAM buffer

80000000-90affffe : PCI Bus 0000:00

   80000000-8fffffff : 0000:00:02.0

   90000000-903fffff : 0000:00:02.0

     901e5000-901e5fff : hdmi-lpe-audio-mmio

   90400000-905fffff : dwc_usb3

     90400000-905fffff : 0000:00:16.0

       9040c100-905fffff : dwc3.3.auto

   90800000-908fffff : 0000:00:1a.0

   90900000-909fffff : 0000:00:1a.0

   90a00000-90a0ffff : 0000:00:14.0

     90a00000-90a0ffff : xhci-hcd

   90a2c000-90a2cfff : 0000:00:16.0

90b00000-90b00fff : 80860F28:00

90b01000-90b01fff : INT33BB:00

   90b01000-90b01fff : INT33BB:00

90b04000-90b07fff : INTL9C60:01

   90b04000-90b07fff : INTL9C60:01

90b08000-90b08fff : 80860F41:00

   90b08000-90b08fff : 80860F41:00

90b0a000-90b0afff : 80860F41:01

   90b0a000-90b0afff : 80860F41:01

90b0c000-90b0cfff : 80860F41:02

   90b0c000-90b0cfff : 80860F41:02

90b0e000-90b0efff : 80860F41:03

   90b0e000-90b0efff : 80860F41:03

90b10000-90b10fff : 80860F41:04

   90b10000-90b10fff : 80860F41:04

90b13000-90b13fff : 80860F09:00

   90b13000-90b13fff : 80860F09:00

90b14000-90b17fff : INTL9C60:00

   90b14000-90b17fff : INTL9C60:00

90b19000-90b19fff : 80860F0A:00

   90b19000-90b1901f : serial

90b1b000-90b1bfff : 80860F0A:01

   90b1b000-90b1b01f : serial

90b1d000-90b1dfff : 80860F14:02

   90b1d000-90b1dfff : 80860F14:02

90b1f000-90b1ffff : 80860F14:00

   90b1f000-90b1ffff : 80860F14:00

90c00000-90ffffff : PCI Bus 0000:00

91000000-911fffff : 80860F28:00

e00000d0-e00000db : INT33BD:00

e00f8000-e00f8fff : Reserved

fec00000-fec003ff : IOAPIC 0

fed00000-fed003ff : HPET 0

   fed00000-fed003ff : PNP0103:00

fed01000-fed01fff : Reserved

   fed01000-fed011ff : intel-spi

fed03008-fed0300c : iTCO_wdt.2.auto

fed05000-fed057ff : INT3401:00

fed0c000-fed0cfff : INT33FC:00

   fed0c000-fed0cfff : INT33FC:00

fed0d000-fed0dfff : INT33FC:01

   fed0d000-fed0dfff : INT33FC:01

fed0e000-fed0efff : INT33FC:02

   fed0e000-fed0efff : INT33FC:02

fed40000-fed40fff : PCI Bus 0000:00

fee00000-fee00fff : Local APIC

ff000000-ffffffff : INT0800:00

   ffd00000-ffffffff : Reserved


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2019-11-02  5:42 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-25 20:17 How to get the crash dump if system hangs? Muni Sekhar
2019-09-30 23:51 ` Kees Cook
2019-10-03 16:48   ` Muni Sekhar
2019-10-03 21:36     ` Kees Cook
2019-10-10 15:49       ` Muni Sekhar
2019-10-10 16:56         ` Kees Cook
2019-10-10 17:15           ` Muni Sekhar
2019-10-10 18:31             ` Kees Cook
2019-10-11 14:03               ` Muni Sekhar
2019-10-25  2:10                 ` Muni Sekhar
2019-10-28 19:22                   ` Kees Cook
2019-10-20 19:01 youling257
2019-10-21  8:39 ` Lukas Odzioba
2019-10-21 10:22   ` youling 257
2019-11-02  5:42     ` youling 257
2019-10-20 19:31 youling257

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).