Skip to contentSkip to conversation

kexec: initialize kexec_page in kexec()

PATCH In review Jan Beulich 2 participants 4 messages Jul 17, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kexec: initialize kexec_page in kexec()

For the error patch to not see it uninitialized.

Fixes 560c2a5584c4 ("mini-os: kexec: do the final kexec step")

---
In the meantime I'll revert the MiniOS commit update in the main tree.

kexec.c +1 -1
@@ -168,7 +168,7 @@ int kexec(void *kernel, unsigned long kernel_size, const char *cmdline)
 {
     int ret;
     unsigned long *func;
-    void *kexec_page;
+    void *kexec_page = NULL;
 
     ret = analyze_kernel(kernel, kernel_size);
     if ( ret )
#2 lore raw
Quoted 7 lines · Jürgen Groß
Quoted 4 lines · Jan Beulich

For the error patch to not see it uninitialized.

Fixes 560c2a5584c4 ("mini-os: kexec: do the final kexec step")

Thanks.

The revert actually didn't help, the problem was already introduced earlier. I now don't understand how things built previously. I'll re-apply the patch bumping the new revision to this about-to-be-committed fix.

Jan

#3 lore raw
Quoted 7 lines · Jan Beulich
Quoted 6 lines · Jürgen Groß
Quoted 4 lines · Jan Beulich

For the error patch to not see it uninitialized.

Fixes 560c2a5584c4 ("mini-os: kexec: do the final kexec step")
Quoted 7 lines
Quoted 1 line

Thanks.

The revert actually didn't help, the problem was already introduced earlier. I now don't understand how things built previously. I'll re-apply the patch bumping the new revision to this about-to-be-committed fix.

It worked before because the patch enabling CONFIG_KEXEC for the stubdom wasn't there.

Juergen