Kernel Panic when entering Hibernation

Kernel Panic when entering Hibernation

Manjaro KDE - Kernel 5.10.15-1-MANJARO

What is the issue?

Currently, whenever I try to enter a state of “Hibernation” on my system I get a guaranteed “Kernel Panic” every single time. The system in it’s current state has never previously given me ANY other “Kernel Panic’s” and as this is the first time I have setup & attempted to use the “Hibernate” feature I am pretty sure that the issue (Kernel Panic) is only triggerable by attempting to “Hibernate”.

The problem is that because it is entering a “Kernel Panic” every time, the “Hibernation” feature becomes unusable and it is rather disappointing that for me such a feature is currently not available to be utilised.

The exact text that the system outputs is as follows:
(Please take note that I am having to type this in manually and it is NOT copied from the system itself!)

[445.546863] Kernel Panic - not syncing: stack-protector: Kernel stack is corrupted in: sata_pmp_error_handler+0x97b/0x980

[445.551968] CPU: 0 PID: 373 Comm: scsi_eh_11 Tainted: G W 0E 5.10.15-1-MANJARO #1

[445.552005] Hardware name: Gigabyte Technology Co. , Ltd. X399 DESIGNARE EX/X399 DESIGNARE EX-CF, BIOS F12i 09/24/2019

[445.552050] Call Trace:

[445.552069] dump_stack+0x6b/0x83

[445.552088] panic+0x112/0x2e8

[445.552104] ? sata_pmp_error_handler+0x97b/0x980

[445.552127] __stack_chk_fail+0x10/0x10

[445.552146] sata_pmp_error_handler+0x97b/0x980

[445.552168] ? ahci_do_hardreset+0x170/0x170

[445.552189] ? ahci_stop_engine+0xb0/0xb0

[445.552208] ? ahci_do_softreset+0x280/0x280

[445.552229] ? trace_event_raw_event_ata_qc_complete_template+0x170/0x170

[445.552260] ahci_error_handler+0x3e/0x70

[445.552280] ata_scsi_port_error_handler+0x3cd/0x880

[445.552303] ata_scsi_error+0x91/0xc0

[445.552322] scsi error_handler+0xd1/0x510

[445.552342] ? scsi_eh_get_sense+0x210/0x210

[445.552363] kthread+0x133/0x150

[445.552380] ? __kthread_bind_mask+0x60/0x60

[445.552401] ret_from_fork+0x22/0x30

[445.552843] Kernel Offset: 0x20000000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)

[446.132813] —[ end Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: sata_pmp_error_handler+0x97b/0x980 ]—

I am at a loss as to what exactly is not working as it should, so if anyone at all could lend me a hand in diagnosing this issue then it would be most helpful.

Thank you in advance to anyone that steps forwards :slight_smile:

After an unsuccessful attempt to hibernate, boot normally again, issue the following in the terminal and post the output: journalctl --no-pager --no-hostname -b-1 -p3
Also post the output of cat /etc/fstab |grep swap and cat /etc/default/grub |grep resume and cat /proc/cmdline

1 Like

Hello, I am terribly sorry for the late reply, I ahve only just comr back to this issue to see if their were any updates in relation to it.

I will try running those commands now and post the output in my next reply.

Thank you for your help!

Update
I have now posted the replies below.

Here is the output of the first command you have asked me to run:

-- Journal begins at Thu 2021-02-11 09:27:01 GMT, ends at Thu 2021-03-18 09:46:24 GMT. --
Mar 18 09:38:01 systemd[2355]: foldingathome.service: Failed at step EXEC spawning /opt/fah/FAHClient: No such file or directory
Mar 18 09:38:16 pipewire[3087]: (alsa_output.pci-0000_0c_00.3.iec958-stereo-47) XRun! rate:1024/48000 count:1 time:35957376 delay:64059 max:64059
Mar 18 09:38:19 systemd-coredump[4589]: [🡕] Process 3046 (baloo_file) of user 1000 dumped core.
                                        
                                        Stack trace of thread 3596:
                                        #0  0x00007faf9d72c396 n/a (liblmdb.so + 0x4396)
                                        #1  0x00007faf9d72eefe n/a (liblmdb.so + 0x6efe)
                                        #2  0x00007faf9d72f644 n/a (liblmdb.so + 0x7644)
                                        #3  0x00007faf9d72fc50 mdb_get (liblmdb.so + 0x7c50)
                                        #4  0x00007faf9ec0b355 _ZN5Baloo12IdFilenameDB3getEy (libKF5BalooEngine.so.5 + 0x15355)
                                        #5  0x00007faf9ec053ac _ZNK5Baloo13DocumentUrlDB3getEy (libKF5BalooEngine.so.5 + 0xf3ac)
                                        #6  0x00007faf9ec16135 _ZNK5Baloo11Transaction11documentUrlEy (libKF5BalooEngine.so.5 + 0x20135)
                                        #7  0x0000556414a3ae44 n/a (baloo_file + 0x1de44)
                                        #8  0x00007faf9ec1d59f _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x2759f)
                                        #9  0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #10 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #11 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #12 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #13 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #14 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #15 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #16 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #17 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #18 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #19 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #20 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #21 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #22 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #23 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #24 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #25 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #26 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #27 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #28 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #29 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #30 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #31 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #32 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #33 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #34 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #35 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #36 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #37 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #38 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #39 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #40 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #41 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #42 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #43 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #44 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #45 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #46 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #47 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #48 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #49 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #50 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #51 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #52 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #53 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #54 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #55 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #56 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #57 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #58 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #59 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #60 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #61 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #62 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        #63 0x00007faf9ec1d5f7 _ZN5Baloo16WriteTransaction17removeRecursivelyEyRKSt8functionIFbyEE (libKF5BalooEngine.so.5 + 0x275f7)
                                        
                                        Stack trace of thread 3050:
                                        #0  0x00007faf9e2a437f __poll (libc.so.6 + 0xf437f)
                                        #1  0x00007faf9cf34baf n/a (libglib-2.0.so.0 + 0xa7baf)
                                        #2  0x00007faf9cedf3b1 g_main_context_iteration (libglib-2.0.so.0 + 0x523b1)
                                        #3  0x00007faf9e9ad691 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x30e691)
                                        #4  0x00007faf9e9533ac _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2b43ac)
                                        #5  0x00007faf9e76bd12 _ZN7QThread4execEv (libQt5Core.so.5 + 0xccd12)
                                        #6  0x00007faf9ec41098 n/a (libQt5DBus.so.5 + 0x17098)
                                        #7  0x00007faf9e76ceff n/a (libQt5Core.so.5 + 0xcdeff)
                                        #8  0x00007faf9d79e299 start_thread (libpthread.so.0 + 0x9299)
                                        #9  0x00007faf9e2af053 __clone (libc.so.6 + 0xff053)
                                        
                                        Stack trace of thread 3046:
                                        #0  0x00007faf9e2a437f __poll (libc.so.6 + 0xf437f)
                                        #1  0x00007faf9cf34baf n/a (libglib-2.0.so.0 + 0xa7baf)
                                        #2  0x00007faf9cedf3b1 g_main_context_iteration (libglib-2.0.so.0 + 0x523b1)
                                        #3  0x00007faf9e9ad691 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x30e691)
                                        #4  0x00007faf9e9533ac _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2b43ac)
                                        #5  0x00007faf9e95b844 _ZN16QCoreApplication4execEv (libQt5Core.so.5 + 0x2bc844)
                                        #6  0x0000556414a2a2b4 n/a (baloo_file + 0xd2b4)
                                        #7  0x00007faf9e1d7b25 __libc_start_main (libc.so.6 + 0x27b25)
                                        #8  0x0000556414a2a4be n/a (baloo_file + 0xd4be)
                                        
                                        Stack trace of thread 3051:
                                        #0  0x00007faf9e2a6bf3 pselect (libc.so.6 + 0xf6bf3)
                                        #1  0x00007faf9c975524 n/a (libusbmuxd-2.0.so.6 + 0x2524)
                                        #2  0x00007faf9c9768a9 n/a (libusbmuxd-2.0.so.6 + 0x38a9)
                                        #3  0x00007faf9d79e299 start_thread (libpthread.so.0 + 0x9299)
                                        #4  0x00007faf9e2af053 __clone (libc.so.6 + 0xff053)
Mar 18 09:38:42 systemd[1]: Timed out waiting for device /dev/disk/by-label/EBD1\x20-\x20Main.
Mar 18 09:38:42 systemd[1]: Timed out waiting for device /dev/disk/by-uuid/8fcfd59c-1787-48c1-a087-e5d783fe80cd.
Mar 18 09:38:42 systemd[1]: Timed out waiting for device /dev/disk/by-label/LSD3\x20-\x20Main.
Mar 18 09:38:42 systemd[1]: Timed out waiting for device /dev/disk/by-uuid/ba34f960-d54c-4670-a7d5-3b905c8aaf1d.
Mar 18 09:38:42 systemd[1]: Timed out waiting for device /dev/disk/by-uuid/71232b1f-152f-4339-b7fe-bfb02fbef0a4.
Mar 18 09:38:42 systemd[1]: Timed out waiting for device /dev/disk/by-uuid/134dd928-afe0-44b5-b87f-3ea10388b866.
Mar 18 09:38:42 systemd[1]: Timed out waiting for device /dev/disk/by-uuid/3946bb4f-93d9-417a-b43f-33c8226adb3c.
Mar 18 09:38:42 systemd[1]: Timed out waiting for device /dev/disk/by-uuid/057c6646-2667-4b32-9ebc-67406d9eebe7.```

Here is the output of the second command that you asked me to run:

/dev/mapper/luks-e6bcd48c-8248-4720-b3cc-7caaa487b7bd swap           swap    defaults,noatime,discard 0 2```

Here is the output of the third command you asked me to run:

GRUB_CMDLINE_LINUX_DEFAULT="quiet cryptdevice=UUID=1e6274a0-22c6-4a93-b048-119c87819060:luks-1e6274a0-22c6-4a93-b048-119c87819060 root=/dev/mapper/luks-1e6274a0-22c6-4a93-b048-119c87819060 resume=/dev/mapper/luks-1e6274a0-22c6-4a93-b048-119c87819060 apparmor=1 security=apparmor udev.log_priority=3 amdgpu.ppfeaturemask=0xffffffff resume="```

Here is the output of the fourth command that you asked me to run:

BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 root=UUID=835cca99-d79f-4a52-b4aa-7a7306f4caa7 rw quiet cryptdevice=UUID=1e6274a0-22c6-4a93-b048-119c87819060:luks-1e6274a0-22c6-4a93-b048-119c87819060 root=/dev/mapper/luks-1e6274a0-22c6-4a93-b048-119c87819060 resume=/dev/mapper/luks-1e6274a0-22c6-4a93-b048-119c87819060 apparmor=1 security=apparmor udev.log_priority=3 amdgpu.ppfeaturemask=0xffffffff resume=```

I assume that’s not the output that was obtained when booted right after the failure to hibernate.
Okay. Post the output of the following instead: journalctl -u systemd-hibernate.service --no-pager --no-hostname.
I need everything below the last -- Boot 3l546j45l4346k363632v543j5k4 ---like string.

This is an awkward swap line. Please proceed with posting the output of:

  1. lsblk -o NAME,FSTYPE,LABEL,UUID,SIZE
  2. cat /etc/fstab
  3. free -h

Oh don’t tell me we’re in the beginning of another 29-day period of silence.

Thanks for the help.

You’re the reason why people stay and use Manjaro, because I mean, Look at how friendly everyone is.

We’re not done yet, pls keep posting. I won’t be able to help in the next 20 hours though. Hope there will be a plenty of information from you when I come back.
A preliminary conclusion now is that your fstab is malformed, I just need to make sure it’s so.