Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package makedumpfile for openSUSE:Factory checked in at 2022-03-23 20:15:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/makedumpfile (Old) and /work/SRC/openSUSE:Factory/.makedumpfile.new.25692 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "makedumpfile" Wed Mar 23 20:15:34 2022 rev:86 rq:963663 version:1.7.0 Changes: -------- --- /work/SRC/openSUSE:Factory/makedumpfile/makedumpfile.changes 2022-02-21 17:46:09.731586207 +0100 +++ /work/SRC/openSUSE:Factory/.makedumpfile.new.25692/makedumpfile.changes 2022-03-23 20:15:51.186377041 +0100 @@ -1,0 +2,7 @@ +Mon Mar 21 11:22:52 UTC 2022 - Petr Tesa????k <ptesa...@suse.com> + +- makedumpfile-sadump-kaslr-fix-kaslr_offset-calculation.patch: + sadump, kaslr: fix failure of calculating kaslr_offset + (bsc#1196736). + +------------------------------------------------------------------- New: ---- makedumpfile-sadump-kaslr-fix-kaslr_offset-calculation.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ makedumpfile.spec ++++++ --- /var/tmp/diff_new_pack.jZ4jXu/_old 2022-03-23 20:15:52.210377620 +0100 +++ /var/tmp/diff_new_pack.jZ4jXu/_new 2022-03-23 20:15:52.218377624 +0100 @@ -51,6 +51,7 @@ Patch0: %{name}-override-libtinfo.patch Patch1: %{name}-ppc64-VA-range-SUSE.patch Patch2: %{name}-PN_XNUM.patch +Patch3: %{name}-sadump-kaslr-fix-kaslr_offset-calculation.patch BuildRequires: libbz2-devel BuildRequires: libdw-devel BuildRequires: libelf-devel @@ -79,6 +80,7 @@ %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build export CFLAGS="%{optflags} -fcommon" ++++++ makedumpfile-sadump-kaslr-fix-kaslr_offset-calculation.patch ++++++ From: HATAYAMA Daisuke <d.hatay...@fujitsu.com> Date: Tue Jan 25 12:55:15 2022 +0000 Subject: sadump, kaslr: fix failure of calculating kaslr_offset References: bsc#1196736 Upstream: merged Git-commit: 59b1726fbcc251155140c8a1972384498fee4daf On kernels v5.8 or later, makedumpfile fails for memory dumps in the sadump-related formats as follows: # makedumpfile -f -l -d 31 -x ./vmlinux /dev/sdd4 /root/vmcore-ld31 __vtop4_x86_64: Can't get a valid pud_pte. ...110 lines of the same message... __vtop4_x86_64: Can't get a valid pud_pte. calc_kaslr_offset: failed to calculate kaslr_offset and phys_base; default to 0 readmem: type_addr: 1, addr:ffffffff85411858, size:8 __vtop4_x86_64: Can't get pgd (page_dir:ffffffff85411858). readmem: Can't convert a virtual address(ffffffff059be980) to physical address. readmem: type_addr: 0, addr:ffffffff059be980, size:1024 cpu_online_mask_init: Can't read cpu_online_mask memory. makedumpfile Failed. This is caused by the kernel commit 9d06c4027f21 ("x86/entry: Convert Divide Error to IDTENTRY") that renamed divide_error to asm_exc_divide_error, breaking logic for calculating kaslr offset. Fix this by adding initialization of asm_exc_divide_error. Signed-off-by: HATAYAMA Daisuke <d.hatay...@fujitsu.com> Acked-by: Petr Tesarik <ptesa...@suse.com> --- makedumpfile.c | 2 ++ 1 file changed, 2 insertions(+) --- a/makedumpfile.c +++ b/makedumpfile.c @@ -1634,6 +1634,8 @@ get_symbol_info(void) SYMBOL_INIT(cur_cpu_spec, "cur_cpu_spec"); SYMBOL_INIT(divide_error, "divide_error"); + if (SYMBOL(divide_error) == NOT_FOUND_SYMBOL) + SYMBOL_INIT(divide_error, "asm_exc_divide_error"); SYMBOL_INIT(idt_table, "idt_table"); SYMBOL_INIT(saved_command_line, "saved_command_line"); SYMBOL_INIT(pti_init, "pti_init");