sysconfig: disable kfence in kdump kernel
Resolves: RHEL-103425 Upstream: kdump-utils Conflict: Need manually edit patch 0006. QA found a regression on powerpc arch when verifying disabling kfence. And further tests shows only powerpc has the issue, all other architectures all works well with disabling kfence by pass in the parameter 'kfence.sample_interval=0' to kdump kernel. Hence only revert the change on powerpc for now, will check what's going on on powerpc later. commit b061a48965476e5b2e6be59686783c85d0f14b5c Author: Baoquan He <bhe@redhat.com> Date: Mon Aug 11 17:02:46 2025 +0800 sysconfig: disable kfence in kdump kernel In commit ddb0bab1f7e1, I mistakenly added the 'kfence.sample_interval=0' into KDUMP_COMMANDLINE_APPEND which is taken as default parameters added into kdump kernel. The KDUMP_COMMANDLINE_APPEND value is for unsupported architecuture. We should append wanted kernel parameter to each supported architecture in "update_param KDUMP_COMMANDLINE_APPEND" place. Fix it now. Signed-off-by: Baoquan He <bhe@redhat.com> Signed-off-by: Baoquan He <bhe@redhat.com>
This commit is contained in:
parent
4418ea7f4c
commit
dfc087bedd
@ -1,4 +1,4 @@
|
||||
From b061a48965476e5b2e6be59686783c85d0f14b5c Mon Sep 17 00:00:00 2001
|
||||
From 2ca913e9ccb2b964241e8c885e00d56d54b8fbe1 Mon Sep 17 00:00:00 2001
|
||||
From: Baoquan He <bhe@redhat.com>
|
||||
Date: Mon, 11 Aug 2025 17:02:46 +0800
|
||||
Subject: [PATCH] sysconfig: disable kfence in kdump kernel
|
||||
@ -14,11 +14,11 @@ Fix it now.
|
||||
|
||||
Signed-off-by: Baoquan He <bhe@redhat.com>
|
||||
---
|
||||
gen-kdump-sysconfig.sh | 14 +++++++-------
|
||||
1 file changed, 7 insertions(+), 7 deletions(-)
|
||||
gen-kdump-sysconfig.sh | 10 +++++-----
|
||||
1 file changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/gen-kdump-sysconfig.sh b/gen-kdump-sysconfig.sh
|
||||
index ca2e7610bc59..eb5287bd3d43 100755
|
||||
index ca2e7610bc59..e5afca0a910b 100755
|
||||
--- a/gen-kdump-sysconfig.sh
|
||||
+++ b/gen-kdump-sysconfig.sh
|
||||
@@ -29,7 +29,7 @@ KDUMP_COMMANDLINE_REMOVE="hugepages hugepagesz slub_debug quiet log_buf_len swio
|
||||
@ -30,7 +30,7 @@ index ca2e7610bc59..eb5287bd3d43 100755
|
||||
|
||||
# This variable lets us append arguments to fadump (powerpc) capture kernel,
|
||||
# further to the parameters passed via the bootloader.
|
||||
@@ -82,25 +82,25 @@ case "$1" in
|
||||
@@ -82,11 +82,11 @@ case "$1" in
|
||||
aarch64)
|
||||
update_param KEXEC_ARGS "-s"
|
||||
update_param KDUMP_COMMANDLINE_APPEND \
|
||||
@ -44,22 +44,6 @@ index ca2e7610bc59..eb5287bd3d43 100755
|
||||
;;
|
||||
ppc64)
|
||||
update_param KEXEC_ARGS "--dt-no-old-root"
|
||||
update_param KDUMP_COMMANDLINE_REMOVE \
|
||||
"hugepages hugepagesz slub_debug quiet log_buf_len swiotlb hugetlb_cma ignition.firstboot"
|
||||
update_param KDUMP_COMMANDLINE_APPEND \
|
||||
- "irqpoll maxcpus=1 noirqdistrib reset_devices cgroup_disable=memory numa=off udev.children-max=2 ehea.use_mcs=0 panic=10 kvm_cma_resv_ratio=0 transparent_hugepage=never novmcoredd hugetlb_cma=0"
|
||||
+ "irqpoll maxcpus=1 noirqdistrib reset_devices cgroup_disable=memory numa=off udev.children-max=2 ehea.use_mcs=0 panic=10 kvm_cma_resv_ratio=0 transparent_hugepage=never novmcoredd hugetlb_cma=0 kfence.sample_interval=0"
|
||||
;;
|
||||
ppc64le)
|
||||
update_param KEXEC_ARGS "-s"
|
||||
update_param KDUMP_COMMANDLINE_REMOVE \
|
||||
"hugepages hugepagesz slub_debug quiet log_buf_len swiotlb hugetlb_cma ignition.firstboot"
|
||||
update_param KDUMP_COMMANDLINE_APPEND \
|
||||
- "irqpoll nr_cpus=1 noirqdistrib reset_devices cgroup_disable=memory numa=off udev.children-max=2 ehea.use_mcs=0 panic=10 kvm_cma_resv_ratio=0 transparent_hugepage=never novmcoredd hugetlb_cma=0"
|
||||
+ "irqpoll nr_cpus=1 noirqdistrib reset_devices cgroup_disable=memory numa=off udev.children-max=2 ehea.use_mcs=0 panic=10 kvm_cma_resv_ratio=0 transparent_hugepage=never novmcoredd hugetlb_cma=0 kfence.sample_interval=0"
|
||||
update_param FADUMP_COMMANDLINE_APPEND \
|
||||
"nr_cpus=16 numa=off cgroup_disable=memory cma=0 kvm_cma_resv_ratio=0 hugetlb_cma=0 transparent_hugepage=never novmcoredd udev.children-max=2"
|
||||
;;
|
||||
@@ -109,12 +109,12 @@ s390x)
|
||||
update_param KDUMP_COMMANDLINE_REMOVE \
|
||||
"hugepages hugepagesz slub_debug quiet log_buf_len swiotlb vmcp_cma cma hugetlb_cma prot_virt ignition.firstboot zfcp.allow_lun_scan"
|
||||
|
Loading…
Reference in New Issue
Block a user