-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
Description
Describe the bug
No data are written to /sys/fs/pstore/ when a test kernel panic is triggered.
Steps to reproduce the behaviour
- Add
dtoverlay=ramoopsto/boot/config.txtand reboot echo 10 > /proc/sys/kernel/panicecho c > /proc/sysrq-trigger
The kernel panics but no data are written to /sys/fs/pstore/, upon rebooting:
# tree /var/lib/systemd/pstore/ /sys/fs/pstore
/var/lib/systemd/pstore/
/sys/fs/pstore
0 directories, 0 files
Device (s)
Raspberry Pi 4 Mod. B
System
- Arch Linux ARM armv7h
5.15.84-1-rpi-ARCH #1 SMP Mon Dec 19 13:37:50 MST 2022 armv7l GNU/Linux
% vcgencmd version
Dec 12 2022 11:56:56
Copyright (c) 2012 Broadcom
version ed6f6b8fcdc6476410b9cf75d141633461d34bdd (clean) (release) (start)
Logs
No response
Additional context
# cat /boot/config.txt
display_auto_detect=1
dtoverlay=ramoops
arm_boost=1
% zgrep PSTORE /proc/config.gz
CONFIG_PSTORE=y
CONFIG_PSTORE_DEFAULT_KMSG_BYTES=10240
CONFIG_PSTORE_DEFLATE_COMPRESS=y
# CONFIG_PSTORE_LZO_COMPRESS is not set
# CONFIG_PSTORE_LZ4_COMPRESS is not set
# CONFIG_PSTORE_LZ4HC_COMPRESS is not set
# CONFIG_PSTORE_842_COMPRESS is not set
# CONFIG_PSTORE_ZSTD_COMPRESS is not set
CONFIG_PSTORE_COMPRESS=y
CONFIG_PSTORE_DEFLATE_COMPRESS_DEFAULT=y
CONFIG_PSTORE_COMPRESS_DEFAULT="deflate"
CONFIG_PSTORE_CONSOLE=y
# CONFIG_PSTORE_PMSG is not set
CONFIG_PSTORE_RAM=y
# CONFIG_PSTORE_BLK is not set
% dmesg | grep -E 'pstore|ramoops'
[ +0.000371] pstore: Registered ramoops as persistent store backend
[ +0.000022] ramoops: using 0x10000@0xb000000, ecc: 0
[ +0.000528] pstore: Using crash dump compression: deflate
[ +0.003103] systemd[1]: Starting Load Kernel Module efi_pstore...
[ +0.001190] systemd[1]: modprobe@efi_pstore.service: Deactivated successfully.
[ +0.000439] systemd[1]: Finished Load Kernel Module efi_pstore.
[ +0.000178] systemd[1]: Platform Persistent Storage Archival was skipped because of an unmet condition check (ConditionDirectoryNotEmpty=/sys/fs/pstore).
# grep "" /sys/module/ramoops/parameters/*
/sys/module/ramoops/parameters/console_size:0
/sys/module/ramoops/parameters/dump_oops:-1
/sys/module/ramoops/parameters/ecc:0
/sys/module/ramoops/parameters/ftrace_size:0
/sys/module/ramoops/parameters/max_reason:2
/sys/module/ramoops/parameters/mem_address:184549376
/sys/module/ramoops/parameters/mem_size:65536
/sys/module/ramoops/parameters/mem_type:0
/sys/module/ramoops/parameters/pmsg_size:0
/sys/module/ramoops/parameters/record_size:16384
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels