File s390-tools-sles15sp3-dbginfo.sh-exclude-page_idle-bitmap.patch of Package s390-tools.23193
Subject: [PATCH] [BZ 195268] dbginfo.sh: exclude reading page_idle/bitmap sysfs attribute
From: Joern Siglen <sigleb@de.ibm.com>
Description: dbginfo.sh: exclude /page_idle/bitmap from dump2tar
Symptom: - crash dump or process restart on running dbginfo.sh
Problem: - reading /sys/kernel/mm/page_idle/bitmap can cause hang up
on reading offline pages
Solution: exclude /page_idle/bitmap from data collection
Reproduction: -
Upstream-ID: 12c84469fd02690cca93c63fd23fe2aa9ea221b8
Problem-ID: 195268
Upstream-Description:
dbginfo.sh: exclude reading page_idle/bitmap sysfs attribute
Due to issues with reading the /sys/kernel/mm/page_idle/bitmap sysfs
attribute that can lead to a system hang, reading this particular
attribute is excluded.
Link: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1904884
Reviewed-by: Mario Held <mario.held@linux.ibm.com>
Signed-off-by: Joern Siglen <siglen@de.ibm.com>
Signed-off-by: Jan Hoeppner <hoeppner@linux.ibm.com>
Signed-off-by: Joern Siglen <sigleb@de.ibm.com>
---
scripts/dbginfo.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- a/scripts/dbginfo.sh
+++ b/scripts/dbginfo.sh
@@ -2,7 +2,7 @@
#
# dbginfo.sh - Tool to collect runtime, configuration, and trace information
#
-# Copyright IBM Corp. 2002, 2020
+# Copyright IBM Corp. 2002, 2021
#
# s390-tools is free software; you can redistribute it and/or modify
# it under the terms of the MIT license. See LICENSE for details.
@@ -21,7 +21,7 @@ readonly SCRIPTNAME="${0##*/}"
print_version() {
cat <<EOF
${SCRIPTNAME}: Debug information script version %S390_TOOLS_VERSION%
-Copyright IBM Corp. 2002, 2020
+Copyright IBM Corp. 2002, 2021
EOF
}
@@ -684,7 +684,7 @@ collect_sysfs() {
# Collect sysfs files using multiple threads (-J 1) while excluding
# files known to block on read (-x). Stop reading a file that takes
# more than 5 seconds (-T 5) such as an active ftrace buffer.
- dump2tar /sys -z -o "${WORKPATH}/sysfs.tgz" -x '*/tracing/trace_pipe*' \
+ dump2tar /sys -z -o "${WORKPATH}/sysfs.tgz" -x '*/tracing/trace_pipe*' -x '*/page_idle/bitmap*' \
-x '*/tracing/per_cpu/*' --ignore-failed-read -J 1 -T 5
if [ $? -ne 0 ] ; then