mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [BUG] Kernel panic when using Hibernation on kernel 6.1.25
@ 2024-05-28  8:00 Jia-hao Bai (白家豪)
  2024-06-13 10:52 ` Pavel Machek
  0 siblings, 1 reply; 5+ messages in thread
From: Jia-hao Bai (白家豪) @ 2024-05-28  8:00 UTC (permalink / raw)
  To: linux-kernel, rafael, pavel
  Cc: Iverlin Wang (王苳霖),
	Boy Wu (吳勃誼),
	Seiya Wang (王迺君),
	Dengjun Su (苏邓军),
	Win Yeh (葉昌倫),
	Sowell Peng (彭首偉),
	Richard-CC Yang (楊職銓)

Hi,

I encountered a kernel panic when using the Hibernation on kernel version 6.1.25. Below are the details of the issue:

**Description:**
When I enable CONFIG_HIBERNATION and assign a specific partition for hibernation resuming and perform a specific operation, the system crashes with a kernel panic.

CONFIG_HIBERNATION=y
CONFIG_PM_STD_PARTITION="/dev/mmcblk0p16"

**Steps to Reproduce:**
1.	Set printk to level 8: ` echo 8 > /proc/sys/kernel/printk`
2.	Set up the swap partition: ` mkswap /dev/mmcblk0p16`
3.	Enable the swap partition: ` swapon -p -3 /dev/mmcblk0p16`
4.	Configure hibernation resuming settings: ` echo "/dev/mmcblk0p16" > /sys/power/resume`
5.	Configure hibernation mode:` echo reboot > /sys/power/disk`
6.	Perform the operation: ` echo disk > /sys/power/state`
7.	Observe the kernel panic


**Expected Behavior:**
The operation should complete successfully without causing a kernel panic.

**Actual Behavior:**
The system crashes with a kernel panic.

**Environment:**
- Kernel version: 6.1.25
- Distribution: Yocto 4.0 32bit/Kernel 6.1.25 32bit
- Hardware: Arm Cortex A55, 1GB RAM

**Logs:**
```
[   82.075123] PM: hibernation: Creating image:
[   82.075123] PM: hibernation: Need to copy 59239 pages
[   82.075123] 8<--- cut here ---
[   82.075123] Unable to handle kernel paging request at virtual address c2fc0000
[   82.075123] [c2fc0000] *pgd=42dff801, *pte=00000000, *ppte=00000000
[   82.075123] Internal error: Oops: 7 [#1] PREEMPT SMP ARM
[   82.075123] num_die-1, last_step-0
[   82.075123] 
[   82.075123] Kernel Offset: disabled
[   82.075123] PC is at safe_copy_page+0x20/0x34
[   82.075123] LR is at safe_copy_page+0x18/0x34
[   82.075123] pc : [<c0c97e58>]    lr : [<c0c97e50>]    psr: 800001d3
[   82.075123] sp : c1b63f90  ip : 00000002  fp : ed76b700
[   82.075123] r10: 00181668  r9 : c13ae5f4  r8 : c13ae620
[   82.075123] r7 : 0000e767  r6 : c13dc840  r5 : ed881668  r4 : cab4a000
[   82.075123] r3 : cab49ffc  r2 : c2fc1000  r1 : 38e38e39  r0 : c2fc0000
[   82.075123] CPU: 0 PID: 811 Comm: sh Tainted: G           O       6.1.25-mainline #1
[   82.075123] Hardware name: Generic DT based system
[   82.075123]  unwind_backtrace from show_stack+0x18/0x1c
[   82.075123]  show_stack from dump_stack_lvl+0x40/0x4c
[   82.075123]  dump_stack_lvl from mrdump_common_die+0x334/0x370
[   82.075123]  mrdump_common_die from notify_die+0x8c/0xc4
[   82.075123]  notify_die from die+0x108/0x4c0
[   82.075123]  die from die_kernel_fault+0x6c/0x7c
[   82.075123]  die_kernel_fault from do_page_fault+0x0/0x328```

Please let me know if you need any additional information or if there are any patches I can test.

Thanks,
Jia-hao Bai

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

end of thread, other threads:[~2024-07-10 11:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-28  8:00 [BUG] Kernel panic when using Hibernation on kernel 6.1.25 Jia-hao Bai (白家豪)
2024-06-13 10:52 ` Pavel Machek
2024-06-14  2:32   ` Jia-hao Bai (白家豪)
2024-07-10  5:32     ` Jia-hao Bai (白家豪)
2024-07-10 11:53       ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®