All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: xen_boot: Fix xen boot using Grub on AARCH64
@ 2016-02-19 16:28 Julien Grall
  2016-02-22  9:29 ` Fu Wei
                   ` (5 more replies)
  0 siblings, 6 replies; 18+ messages in thread
From: Julien Grall @ 2016-02-19 16:28 UTC (permalink / raw)
  To: grub-devel
  Cc: ian.campbell, steve.capper, phcoder, Julien Grall, xen-devel,
	stefano.stabellini, fu.wei

Xen is currently crashing because of malformed compatible property for
the boot module. This is because the property string is not
null-terminated as requested by the ePAR spec.
---
 grub-core/loader/arm64/xen_boot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grub-core/loader/arm64/xen_boot.c b/grub-core/loader/arm64/xen_boot.c
index a914eb8..8ae43d7 100644
--- a/grub-core/loader/arm64/xen_boot.c
+++ b/grub-core/loader/arm64/xen_boot.c
@@ -156,7 +156,7 @@ prepare_xen_module_params (struct xen_boot_binary *module, void *xen_boot_fdt)
       grub_fdt_add_subnode (xen_boot_fdt, chosen_node, module_name);
 
   retval = grub_fdt_set_prop (xen_boot_fdt, module_node, "compatible",
-			      MODULE_CUSTOM_COMPATIBLE, sizeof(MODULE_CUSTOM_COMPATIBLE) - 1);
+			      MODULE_CUSTOM_COMPATIBLE, sizeof(MODULE_CUSTOM_COMPATIBLE));
   if (retval)
     return grub_error (GRUB_ERR_IO, "failed to update FDT");
 
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 18+ messages in thread
* [PATCH] arm64: xen_boot: Fix xen boot using Grub on AARCH64
@ 2016-02-19 16:28 Julien Grall
  0 siblings, 0 replies; 18+ messages in thread
From: Julien Grall @ 2016-02-19 16:28 UTC (permalink / raw)
  To: grub-devel
  Cc: ian.campbell, steve.capper, phcoder, Julien Grall, xen-devel,
	stefano.stabellini, fu.wei

Xen is currently crashing because of malformed compatible property for
the boot module. This is because the property string is not
null-terminated as requested by the ePAR spec.
---
 grub-core/loader/arm64/xen_boot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grub-core/loader/arm64/xen_boot.c b/grub-core/loader/arm64/xen_boot.c
index a914eb8..8ae43d7 100644
--- a/grub-core/loader/arm64/xen_boot.c
+++ b/grub-core/loader/arm64/xen_boot.c
@@ -156,7 +156,7 @@ prepare_xen_module_params (struct xen_boot_binary *module, void *xen_boot_fdt)
       grub_fdt_add_subnode (xen_boot_fdt, chosen_node, module_name);
 
   retval = grub_fdt_set_prop (xen_boot_fdt, module_node, "compatible",
-			      MODULE_CUSTOM_COMPATIBLE, sizeof(MODULE_CUSTOM_COMPATIBLE) - 1);
+			      MODULE_CUSTOM_COMPATIBLE, sizeof(MODULE_CUSTOM_COMPATIBLE));
   if (retval)
     return grub_error (GRUB_ERR_IO, "failed to update FDT");
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2016-11-03 14:19 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-19 16:28 [PATCH] arm64: xen_boot: Fix xen boot using Grub on AARCH64 Julien Grall
2016-02-22  9:29 ` Fu Wei
2016-02-23 10:00   ` Ian Campbell
2016-02-23 14:16     ` Fu Wei
2016-02-27 17:05       ` Andrei Borzenkov
2016-02-27 17:05       ` Andrei Borzenkov
2016-02-23 14:16     ` Fu Wei
2016-02-23 10:00   ` Ian Campbell
2016-07-26  8:40   ` Fu Wei
2016-07-26  8:40   ` Fu Wei
2016-02-22  9:29 ` Fu Wei
2016-03-30 15:52 ` Julien Grall
2016-03-30 17:10   ` Fu Wei
2016-03-30 17:10   ` Fu Wei
2016-03-30 15:52 ` Julien Grall
2016-11-03 14:19 ` Daniel Kiper
2016-11-03 14:19 ` Daniel Kiper
2016-02-19 16:28 Julien Grall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.