Remove dropped patches
Resolves: bz2041911
Upstream: RHEL-only
When updating makedumpfile to 1.7.0 the spec file was updated to no
longer apply these patches without removing the actual patch files.
Remove them now.
Fixes: d77fd26
("Update makedumpfile to 1.7.0")
Signed-off-by: Philipp Rudo <prudo@redhat.com>
This commit is contained in:
parent
1362366c86
commit
4559f7bbd5
@ -1,42 +0,0 @@
|
|||||||
From 646456862df8926ba10dd7330abf3bf0f887e1b6 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Kazuhito Hagio <k-hagio-ab@nec.com>
|
|
||||||
Date: Wed, 26 May 2021 14:31:26 +0900
|
|
||||||
Subject: [PATCH] Increase SECTION_MAP_LAST_BIT to 5
|
|
||||||
|
|
||||||
* Required for kernel 5.12
|
|
||||||
|
|
||||||
Kernel commit 1f90a3477df3 ("mm: teach pfn_to_online_page() about
|
|
||||||
ZONE_DEVICE section collisions") added a section flag
|
|
||||||
(SECTION_TAINT_ZONE_DEVICE) and causes makedumpfile an error on
|
|
||||||
some machines like this:
|
|
||||||
|
|
||||||
__vtop4_x86_64: Can't get a valid pmd_pte.
|
|
||||||
readmem: Can't convert a virtual address(ffffe2bdc2000000) to physical address.
|
|
||||||
readmem: type_addr: 0, addr:ffffe2bdc2000000, size:32768
|
|
||||||
__exclude_unnecessary_pages: Can't read the buffer of struct page.
|
|
||||||
create_2nd_bitmap: Can't exclude unnecessary pages.
|
|
||||||
|
|
||||||
Increase SECTION_MAP_LAST_BIT to 5 to fix this. The bit had not
|
|
||||||
been used until the change, so we can just increase the value.
|
|
||||||
|
|
||||||
Signed-off-by: Kazuhito Hagio <k-hagio-ab@nec.com>
|
|
||||||
---
|
|
||||||
makedumpfile.h | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/makedumpfile-1.6.9/makedumpfile.h b/makedumpfile-1.6.9/makedumpfile.h
|
|
||||||
index 93aa774..79046f2 100644
|
|
||||||
--- a/makedumpfile-1.6.9/makedumpfile.h
|
|
||||||
+++ b/makedumpfile-1.6.9/makedumpfile.h
|
|
||||||
@@ -195,7 +195,7 @@ isAnon(unsigned long mapping)
|
|
||||||
* 2. it has been verified that (1UL<<2) was never set, so it is
|
|
||||||
* safe to mask that bit off even in old kernels.
|
|
||||||
*/
|
|
||||||
-#define SECTION_MAP_LAST_BIT (1UL<<4)
|
|
||||||
+#define SECTION_MAP_LAST_BIT (1UL<<5)
|
|
||||||
#define SECTION_MAP_MASK (~(SECTION_MAP_LAST_BIT-1))
|
|
||||||
#define NR_SECTION_ROOTS() divideup(num_section, SECTIONS_PER_ROOT())
|
|
||||||
#define SECTION_NR_TO_PFN(sec) ((sec) << PFN_SECTION_SHIFT())
|
|
||||||
--
|
|
||||||
2.29.2
|
|
||||||
|
|
@ -1,43 +0,0 @@
|
|||||||
From 9a6f589d99dcef114c89fde992157f5467028c8f Mon Sep 17 00:00:00 2001
|
|
||||||
From: Tao Liu <ltao@redhat.com>
|
|
||||||
Date: Fri, 18 Jun 2021 18:28:04 +0800
|
|
||||||
Subject: [PATCH] check for invalid physical address of /proc/kcore
|
|
||||||
when making ELF dumpfile
|
|
||||||
|
|
||||||
Previously when executing makedumpfile with -E option against
|
|
||||||
/proc/kcore, makedumpfile will fail:
|
|
||||||
|
|
||||||
# makedumpfile -E -d 31 /proc/kcore kcore.dump
|
|
||||||
...
|
|
||||||
write_elf_load_segment: Can't convert physaddr(ffffffffffffffff) to an offset.
|
|
||||||
|
|
||||||
makedumpfile Failed.
|
|
||||||
|
|
||||||
It's because /proc/kcore contains PT_LOAD program headers which have
|
|
||||||
physaddr (0xffffffffffffffff). With -E option, makedumpfile will
|
|
||||||
try to convert the physaddr to an offset and fails.
|
|
||||||
|
|
||||||
Skip the PT_LOAD program headers which have such physaddr.
|
|
||||||
|
|
||||||
Signed-off-by: Tao Liu <ltao@redhat.com>
|
|
||||||
Signed-off-by: Kazuhito Hagio <k-hagio-ab@nec.com>
|
|
||||||
---
|
|
||||||
makedumpfile.c | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/makedumpfile-1.6.9/makedumpfile.c b/makedumpfile-1.6.9/makedumpfile.c
|
|
||||||
index 894c88e..fcb571f 100644
|
|
||||||
--- a/makedumpfile-1.6.9/makedumpfile.c
|
|
||||||
+++ b/makedumpfile-1.6.9/makedumpfile.c
|
|
||||||
@@ -7764,7 +7764,7 @@ write_elf_pages_cyclic(struct cache_data *cd_header, struct cache_data *cd_page)
|
|
||||||
if (!get_phdr_memory(i, &load))
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
- if (load.p_type != PT_LOAD)
|
|
||||||
+ if (load.p_type != PT_LOAD || load.p_paddr == NOT_PADDR)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
off_memory= load.p_offset;
|
|
||||||
--
|
|
||||||
2.29.2
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user