[PATCH] makedumpfile: xen: Fix get_xen_basic_info_x86_64: Can't get the symbol of xenheap_phys_end.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I have a Linux-dom0 running with Xen. The extraction of the vmcore via
makdumpfile shows the message:
get_xen_basic_info_x86_64: Can't get the symbol of xenheap_phys_end.

The commit 2651d571 changed the behaviour of init_xen_crash_info().
With
-       return TRUE;
+       ret = TRUE;
+
+out_error:
+       free(buf);
the buffer is released but it's still used because of
info->xen_crash_info.com = buf;
This leads to random data in the buffer and later to the mentioned
error.

With the change back the memory is not released.
But I'm not familiar enough with code to decide where to do this.

Thanks.
Dietmar.

Signed-off-by: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxx>
---
 makedumpfile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/makedumpfile.c b/makedumpfile.c
index 65d1c7c..a7cd982 100644
--- a/makedumpfile.c
+++ b/makedumpfile.c
@@ -9710,7 +9710,7 @@ init_xen_crash_info(void)
        else
                info->xen_crash_info_v = 0;
 
-       ret = TRUE;
+       return  TRUE;
 
 out_error:
        free(buf);
-- 
2.26.2



_______________________________________________
kexec mailing list
kexec@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/kexec



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux