14
0
forked from pool/crash
Files
crash/crash-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch

40 lines
1.7 KiB
Diff
Raw Permalink Normal View History

Accepting request 795358 from home:michals - Make Factory ppc64 crash usable on both SLE 15 SP1 and releases before SLE15 SP1 (bsc#1148197). This is only a workaround that requires to build crash for each codestream separately. - Drop crash-s390-autodetect-kaslr.patch which has been merged in 7.2.7. Merge missing patches from SLE15 SP2: crash-stop_read_error_when_intent_is_retry.patch crash-SLE15-SP1-With-Linux-4.19-rc1-up-MAX_PHYSMEM_BITS-to-128TB.patch crash-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch And SLE 15 SP2 bug references and changelog entries: - Upgraded the source tarball to version 7.2.7. This is required to support coredumps from currently used kernel versions in the product (bsc#1159686). - droped the patch obsoleted due to already being present in the new source: - Added patch for commit 326e1b8f83a4318b09033ef754f40c785aed5e68 Upgraded the source tarball to version 7.2.6 to bring better support of version 5 kernels such as 5.3 in SLE-15-SP2 (bsc#114706) Dropped the following patches obsoleted by the version upgrade: crash-Fix-and-an-update-for-the-ipcs-command.patch crash-update-recognition-of-x86_64-CPU_ENTRY_AREA.patch Re-aligned the following patches with the new version source: crash-allow-use-of-sadump-captured-KASLR-kernel.patch crash-debuginfo-compressed.patch crash-make-emacs-default.diff crash-sles9-time.patch Modified the following patches to integrate with version upgrade: crash-compressed-booted-kernel.patch crash-SLE15-SP1-With-Linux-4.19-rc1-up-MAX_PHYSMEM_BITS-to-128TB.patch crash-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch - Update for XEN dom0 changes in v4.11 that cause coredumps made of a domU using virch on the dom0 to fail to load in the dom0 version of crash reporting "crash: invalid kernel virtual address: <address> type:fill_pcpu_struct", followed by "WARNING: cannot fill pcpu_struct" and "crash: cannot read cpu_info" (bsc#1124690 and bsc#1122594) Added: - Update the recognition of x86_64 CPU_ENTRY_AREA (bsc#1104743, bsc#1090127) Added: crash-update-recognition-of-x86_64-CPU_ENTRY_AREA.patch - Fix SLE15 SP1 Incorrect vmcore generated (bsc#1119791). Added: crash-SLE15-SP1-With-Linux-4.19-rc1-up-MAX_PHYSMEM_BITS-to-128TB.patch crash-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch This is not compatible with SLE15 and SLE12 SP4. - Added: crash-Fix-and-an-update-for-the-ipcs-command.patch The update is required for Linux 4.11 and greater kernels, which reimplemented the IDR facility to use radix trees in kernel commit 0a835c4f090af2c76fc2932c539c3b32fd21fbbb, titled "Reimplement IDR and IDA using the radix tree". Without the patch, if any IPCS entry exists, the command would fail with the message "ipcs: invalid structure member offset: idr_top" (bsc#1092101) OBS-URL: https://build.opensuse.org/request/show/795358 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/crash?expand=0&rev=316
2020-04-21 13:11:00 +00:00
From 28fa7bd09013455b5ddc020dea4706278cda0d65 Mon Sep 17 00:00:00 2001
From: Hari Bathini <hbathini@linux.ibm.com>
Date: Wed, 20 Jun 2018 01:34:22 +0530
Subject: book3s/ppc64: Increase the VA range
Upstream: no, adapts the below upstream commit for SLE15 SP1
Git-commit: 28fa7bd09013455b5ddc020dea4706278cda0d65
Fix for PPC64 kernel virtual address translation in Linux 4.17 and
later kernels with commit c2b4d8b7417a59b7f9a52d0d8402f5257cbbd398,
titled "powerpc/mm/hash64: Increase the VA range", in which the
maximum virtual address value has been increased to 4PB. Without
the patch, the translation/access of high vmalloc space addresses
fails; for example, the "kmem -[sS]" option fails the translation
of per-cpu kmem_cache_cpu addresses located in vmalloc space, with
the error messages "kmem: invalid kernel virtual address: <address>
type: kmem_cache_cpu.freelist" and "kmem: invalid kernel virtual
address: <address> type: kmem_cache_cpu.page", and the "vtop"
command shows the addresses as "(not mapped)". (hbathini@linux.ibm.com)
Accepting request 795358 from home:michals - Make Factory ppc64 crash usable on both SLE 15 SP1 and releases before SLE15 SP1 (bsc#1148197). This is only a workaround that requires to build crash for each codestream separately. - Drop crash-s390-autodetect-kaslr.patch which has been merged in 7.2.7. Merge missing patches from SLE15 SP2: crash-stop_read_error_when_intent_is_retry.patch crash-SLE15-SP1-With-Linux-4.19-rc1-up-MAX_PHYSMEM_BITS-to-128TB.patch crash-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch And SLE 15 SP2 bug references and changelog entries: - Upgraded the source tarball to version 7.2.7. This is required to support coredumps from currently used kernel versions in the product (bsc#1159686). - droped the patch obsoleted due to already being present in the new source: - Added patch for commit 326e1b8f83a4318b09033ef754f40c785aed5e68 Upgraded the source tarball to version 7.2.6 to bring better support of version 5 kernels such as 5.3 in SLE-15-SP2 (bsc#114706) Dropped the following patches obsoleted by the version upgrade: crash-Fix-and-an-update-for-the-ipcs-command.patch crash-update-recognition-of-x86_64-CPU_ENTRY_AREA.patch Re-aligned the following patches with the new version source: crash-allow-use-of-sadump-captured-KASLR-kernel.patch crash-debuginfo-compressed.patch crash-make-emacs-default.diff crash-sles9-time.patch Modified the following patches to integrate with version upgrade: crash-compressed-booted-kernel.patch crash-SLE15-SP1-With-Linux-4.19-rc1-up-MAX_PHYSMEM_BITS-to-128TB.patch crash-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch - Update for XEN dom0 changes in v4.11 that cause coredumps made of a domU using virch on the dom0 to fail to load in the dom0 version of crash reporting "crash: invalid kernel virtual address: <address> type:fill_pcpu_struct", followed by "WARNING: cannot fill pcpu_struct" and "crash: cannot read cpu_info" (bsc#1124690 and bsc#1122594) Added: - Update the recognition of x86_64 CPU_ENTRY_AREA (bsc#1104743, bsc#1090127) Added: crash-update-recognition-of-x86_64-CPU_ENTRY_AREA.patch - Fix SLE15 SP1 Incorrect vmcore generated (bsc#1119791). Added: crash-SLE15-SP1-With-Linux-4.19-rc1-up-MAX_PHYSMEM_BITS-to-128TB.patch crash-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch This is not compatible with SLE15 and SLE12 SP4. - Added: crash-Fix-and-an-update-for-the-ipcs-command.patch The update is required for Linux 4.11 and greater kernels, which reimplemented the IDR facility to use radix trees in kernel commit 0a835c4f090af2c76fc2932c539c3b32fd21fbbb, titled "Reimplement IDR and IDA using the radix tree". Without the patch, if any IPCS entry exists, the command would fail with the message "ipcs: invalid structure member offset: idr_top" (bsc#1092101) OBS-URL: https://build.opensuse.org/request/show/795358 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/crash?expand=0&rev=316
2020-04-21 13:11:00 +00:00
[note: apply on 4.12+ for SLE 15 SP1 - incompatible with SLE 15 SP0]
---
Index: crash-7.2.8/ppc64.c
===================================================================
--- crash-7.2.8.orig/ppc64.c
+++ crash-7.2.8/ppc64.c
@@ -519,8 +519,9 @@ ppc64_init(int when)
if (THIS_KERNEL_VERSION >= LINUX(4,12,0)) {
ms->l2_index_size = PMD_INDEX_SIZE_L4_64K_4_12;
Accepting request 795358 from home:michals - Make Factory ppc64 crash usable on both SLE 15 SP1 and releases before SLE15 SP1 (bsc#1148197). This is only a workaround that requires to build crash for each codestream separately. - Drop crash-s390-autodetect-kaslr.patch which has been merged in 7.2.7. Merge missing patches from SLE15 SP2: crash-stop_read_error_when_intent_is_retry.patch crash-SLE15-SP1-With-Linux-4.19-rc1-up-MAX_PHYSMEM_BITS-to-128TB.patch crash-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch And SLE 15 SP2 bug references and changelog entries: - Upgraded the source tarball to version 7.2.7. This is required to support coredumps from currently used kernel versions in the product (bsc#1159686). - droped the patch obsoleted due to already being present in the new source: - Added patch for commit 326e1b8f83a4318b09033ef754f40c785aed5e68 Upgraded the source tarball to version 7.2.6 to bring better support of version 5 kernels such as 5.3 in SLE-15-SP2 (bsc#114706) Dropped the following patches obsoleted by the version upgrade: crash-Fix-and-an-update-for-the-ipcs-command.patch crash-update-recognition-of-x86_64-CPU_ENTRY_AREA.patch Re-aligned the following patches with the new version source: crash-allow-use-of-sadump-captured-KASLR-kernel.patch crash-debuginfo-compressed.patch crash-make-emacs-default.diff crash-sles9-time.patch Modified the following patches to integrate with version upgrade: crash-compressed-booted-kernel.patch crash-SLE15-SP1-With-Linux-4.19-rc1-up-MAX_PHYSMEM_BITS-to-128TB.patch crash-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch - Update for XEN dom0 changes in v4.11 that cause coredumps made of a domU using virch on the dom0 to fail to load in the dom0 version of crash reporting "crash: invalid kernel virtual address: <address> type:fill_pcpu_struct", followed by "WARNING: cannot fill pcpu_struct" and "crash: cannot read cpu_info" (bsc#1124690 and bsc#1122594) Added: - Update the recognition of x86_64 CPU_ENTRY_AREA (bsc#1104743, bsc#1090127) Added: crash-update-recognition-of-x86_64-CPU_ENTRY_AREA.patch - Fix SLE15 SP1 Incorrect vmcore generated (bsc#1119791). Added: crash-SLE15-SP1-With-Linux-4.19-rc1-up-MAX_PHYSMEM_BITS-to-128TB.patch crash-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch This is not compatible with SLE15 and SLE12 SP4. - Added: crash-Fix-and-an-update-for-the-ipcs-command.patch The update is required for Linux 4.11 and greater kernels, which reimplemented the IDR facility to use radix trees in kernel commit 0a835c4f090af2c76fc2932c539c3b32fd21fbbb, titled "Reimplement IDR and IDA using the radix tree". Without the patch, if any IPCS entry exists, the command would fail with the message "ipcs: invalid structure member offset: idr_top" (bsc#1092101) OBS-URL: https://build.opensuse.org/request/show/795358 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/crash?expand=0&rev=316
2020-04-21 13:11:00 +00:00
- if (THIS_KERNEL_VERSION >= LINUX(4,17,0))
- ms->l3_index_size = PUD_INDEX_SIZE_L4_64K_4_17;
Accepting request 795358 from home:michals - Make Factory ppc64 crash usable on both SLE 15 SP1 and releases before SLE15 SP1 (bsc#1148197). This is only a workaround that requires to build crash for each codestream separately. - Drop crash-s390-autodetect-kaslr.patch which has been merged in 7.2.7. Merge missing patches from SLE15 SP2: crash-stop_read_error_when_intent_is_retry.patch crash-SLE15-SP1-With-Linux-4.19-rc1-up-MAX_PHYSMEM_BITS-to-128TB.patch crash-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch And SLE 15 SP2 bug references and changelog entries: - Upgraded the source tarball to version 7.2.7. This is required to support coredumps from currently used kernel versions in the product (bsc#1159686). - droped the patch obsoleted due to already being present in the new source: - Added patch for commit 326e1b8f83a4318b09033ef754f40c785aed5e68 Upgraded the source tarball to version 7.2.6 to bring better support of version 5 kernels such as 5.3 in SLE-15-SP2 (bsc#114706) Dropped the following patches obsoleted by the version upgrade: crash-Fix-and-an-update-for-the-ipcs-command.patch crash-update-recognition-of-x86_64-CPU_ENTRY_AREA.patch Re-aligned the following patches with the new version source: crash-allow-use-of-sadump-captured-KASLR-kernel.patch crash-debuginfo-compressed.patch crash-make-emacs-default.diff crash-sles9-time.patch Modified the following patches to integrate with version upgrade: crash-compressed-booted-kernel.patch crash-SLE15-SP1-With-Linux-4.19-rc1-up-MAX_PHYSMEM_BITS-to-128TB.patch crash-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch - Update for XEN dom0 changes in v4.11 that cause coredumps made of a domU using virch on the dom0 to fail to load in the dom0 version of crash reporting "crash: invalid kernel virtual address: <address> type:fill_pcpu_struct", followed by "WARNING: cannot fill pcpu_struct" and "crash: cannot read cpu_info" (bsc#1124690 and bsc#1122594) Added: - Update the recognition of x86_64 CPU_ENTRY_AREA (bsc#1104743, bsc#1090127) Added: crash-update-recognition-of-x86_64-CPU_ENTRY_AREA.patch - Fix SLE15 SP1 Incorrect vmcore generated (bsc#1119791). Added: crash-SLE15-SP1-With-Linux-4.19-rc1-up-MAX_PHYSMEM_BITS-to-128TB.patch crash-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch This is not compatible with SLE15 and SLE12 SP4. - Added: crash-Fix-and-an-update-for-the-ipcs-command.patch The update is required for Linux 4.11 and greater kernels, which reimplemented the IDR facility to use radix trees in kernel commit 0a835c4f090af2c76fc2932c539c3b32fd21fbbb, titled "Reimplement IDR and IDA using the radix tree". Without the patch, if any IPCS entry exists, the command would fail with the message "ipcs: invalid structure member offset: idr_top" (bsc#1092101) OBS-URL: https://build.opensuse.org/request/show/795358 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/crash?expand=0&rev=316
2020-04-21 13:11:00 +00:00
+ if (THIS_KERNEL_VERSION >= LINUX(4,17,0) ||
+ is_SLE15SP1())
+ ms->l3_index_size = PUD_INDEX_SIZE_L4_64K_4_17;
Accepting request 795358 from home:michals - Make Factory ppc64 crash usable on both SLE 15 SP1 and releases before SLE15 SP1 (bsc#1148197). This is only a workaround that requires to build crash for each codestream separately. - Drop crash-s390-autodetect-kaslr.patch which has been merged in 7.2.7. Merge missing patches from SLE15 SP2: crash-stop_read_error_when_intent_is_retry.patch crash-SLE15-SP1-With-Linux-4.19-rc1-up-MAX_PHYSMEM_BITS-to-128TB.patch crash-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch And SLE 15 SP2 bug references and changelog entries: - Upgraded the source tarball to version 7.2.7. This is required to support coredumps from currently used kernel versions in the product (bsc#1159686). - droped the patch obsoleted due to already being present in the new source: - Added patch for commit 326e1b8f83a4318b09033ef754f40c785aed5e68 Upgraded the source tarball to version 7.2.6 to bring better support of version 5 kernels such as 5.3 in SLE-15-SP2 (bsc#114706) Dropped the following patches obsoleted by the version upgrade: crash-Fix-and-an-update-for-the-ipcs-command.patch crash-update-recognition-of-x86_64-CPU_ENTRY_AREA.patch Re-aligned the following patches with the new version source: crash-allow-use-of-sadump-captured-KASLR-kernel.patch crash-debuginfo-compressed.patch crash-make-emacs-default.diff crash-sles9-time.patch Modified the following patches to integrate with version upgrade: crash-compressed-booted-kernel.patch crash-SLE15-SP1-With-Linux-4.19-rc1-up-MAX_PHYSMEM_BITS-to-128TB.patch crash-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch - Update for XEN dom0 changes in v4.11 that cause coredumps made of a domU using virch on the dom0 to fail to load in the dom0 version of crash reporting "crash: invalid kernel virtual address: <address> type:fill_pcpu_struct", followed by "WARNING: cannot fill pcpu_struct" and "crash: cannot read cpu_info" (bsc#1124690 and bsc#1122594) Added: - Update the recognition of x86_64 CPU_ENTRY_AREA (bsc#1104743, bsc#1090127) Added: crash-update-recognition-of-x86_64-CPU_ENTRY_AREA.patch - Fix SLE15 SP1 Incorrect vmcore generated (bsc#1119791). Added: crash-SLE15-SP1-With-Linux-4.19-rc1-up-MAX_PHYSMEM_BITS-to-128TB.patch crash-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch This is not compatible with SLE15 and SLE12 SP4. - Added: crash-Fix-and-an-update-for-the-ipcs-command.patch The update is required for Linux 4.11 and greater kernels, which reimplemented the IDR facility to use radix trees in kernel commit 0a835c4f090af2c76fc2932c539c3b32fd21fbbb, titled "Reimplement IDR and IDA using the radix tree". Without the patch, if any IPCS entry exists, the command would fail with the message "ipcs: invalid structure member offset: idr_top" (bsc#1092101) OBS-URL: https://build.opensuse.org/request/show/795358 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/crash?expand=0&rev=316
2020-04-21 13:11:00 +00:00
else
ms->l3_index_size = PUD_INDEX_SIZE_L4_64K_4_12;
ms->l4_index_size = PGD_INDEX_SIZE_L4_64K_4_12;