crash/SOURCES/github_bf48dd4e_arm64_devme...

27 lines
1.1 KiB
Diff

commit bf48dd4e9926515345cad06c1bfce49d7a057a26
Author: Dave Anderson <anderson@redhat.com>
Date: Mon Jun 10 14:12:52 2019 -0400
Fix for Linux 4.16 and later ARM64 kernels that contain kernel commit
fa2a8445b1d3810c52f2a6b3a006456bd1aacb7e, titled "arm64: allow ID map
to be extended to 52 bits", and which have been configured with both
CONFIG_DEVMEM=y and CONFIG_STRICT_DEVMEM=y. Without the patch, an
inconsequential error message indicating "crash: read error: kernel
virtual address: <address> type: idmap_ptrs_per_pgd" is displayed
during initialization.
(anderson@redhat.com)
diff --git a/arm64.c b/arm64.c
index 5b82263..6b34b5f 100644
--- a/arm64.c
+++ b/arm64.c
@@ -283,7 +283,7 @@ arm64_init(int when)
case 65536:
if (kernel_symbol_exists("idmap_ptrs_per_pgd") &&
readmem(symbol_value("idmap_ptrs_per_pgd"), KVADDR,
- &value, sizeof(ulong), "idmap_ptrs_per_pgd", RETURN_ON_ERROR))
+ &value, sizeof(ulong), "idmap_ptrs_per_pgd", QUIET|RETURN_ON_ERROR))
machdep->ptrs_per_pgd = value;
if (machdep->machspec->VA_BITS > PGDIR_SHIFT_L3_64K) {