* [Xen-devel] [Xen-unstable] boot crash while loading AMD microcode due to commit "microcode/amd: fix memory leak"
@ 2019-08-29 23:04 Sander Eikelenboom
2019-08-30 2:09 ` Chao Gao
0 siblings, 1 reply; 5+ messages in thread
From: Sander Eikelenboom @ 2019-08-29 23:04 UTC (permalink / raw)
To: Chao Gao; +Cc: xen-devel@lists.xenproject.org, Jan Beulich
L.S.,
While testing xen-unstable, my AMD system crashes during early boot while loading microcode with an "Early fatal page fault".
Reverting commit de45e3ff37bb1602796054afabfa626ea5661c45 "microcode/amd: fix memory leak" fixes the boot issue.
At present I don't have my serial console stuff at hand, but if needed I can send the stacktrace tomorrow.
--
Sander
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xen-devel] [Xen-unstable] boot crash while loading AMD microcode due to commit "microcode/amd: fix memory leak"
2019-08-29 23:04 [Xen-devel] [Xen-unstable] boot crash while loading AMD microcode due to commit "microcode/amd: fix memory leak" Sander Eikelenboom
@ 2019-08-30 2:09 ` Chao Gao
2019-08-30 7:49 ` Jan Beulich
0 siblings, 1 reply; 5+ messages in thread
From: Chao Gao @ 2019-08-30 2:09 UTC (permalink / raw)
To: Sander Eikelenboom; +Cc: xen-devel@lists.xenproject.org, Jan Beulich
[-- Attachment #1: Type: text/plain, Size: 558 bytes --]
On Fri, Aug 30, 2019 at 01:04:54AM +0200, Sander Eikelenboom wrote:
>L.S.,
>
>While testing xen-unstable, my AMD system crashes during early boot while loading microcode with an "Early fatal page fault".
>Reverting commit de45e3ff37bb1602796054afabfa626ea5661c45 "microcode/amd: fix memory leak" fixes the boot issue.
Sorry for this inconvenience.
Could you apply the patch attached and try it again?
>
>At present I don't have my serial console stuff at hand, but if needed I can send the stacktrace tomorrow.
>
Yes. That would be helpful.
Thanks
Chao
[-- Attachment #2: check_mc_old.patch --]
[-- Type: text/x-diff, Size: 532 bytes --]
diff --git a/xen/arch/x86/microcode_amd.c b/xen/arch/x86/microcode_amd.c
index 3069784..9b74330 100644
--- a/xen/arch/x86/microcode_amd.c
+++ b/xen/arch/x86/microcode_amd.c
@@ -552,9 +552,12 @@ static int cpu_request_microcode(unsigned int cpu, const void *buf,
mc_old = mc_amd;
}
- xfree(mc_old->mpb);
- xfree(mc_old->equiv_cpu_table);
- xfree(mc_old);
+ if ( mc_old )
+ {
+ xfree(mc_old->mpb);
+ xfree(mc_old->equiv_cpu_table);
+ xfree(mc_old);
+ }
out:
#if CONFIG_HVM
[-- Attachment #3: Type: text/plain, Size: 157 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Xen-devel] [Xen-unstable] boot crash while loading AMD microcode due to commit "microcode/amd: fix memory leak"
2019-08-30 2:09 ` Chao Gao
@ 2019-08-30 7:49 ` Jan Beulich
2019-08-30 8:08 ` Chao Gao
2019-08-30 20:06 ` Sander Eikelenboom
0 siblings, 2 replies; 5+ messages in thread
From: Jan Beulich @ 2019-08-30 7:49 UTC (permalink / raw)
To: Chao Gao, Andrew Cooper
Cc: Sander Eikelenboom, xen-devel@lists.xenproject.org
On 30.08.2019 04:09, Chao Gao wrote:
> On Fri, Aug 30, 2019 at 01:04:54AM +0200, Sander Eikelenboom wrote:
>> L.S.,
>>
>> While testing xen-unstable, my AMD system crashes during early boot while loading microcode with an "Early fatal page fault".
>> Reverting commit de45e3ff37bb1602796054afabfa626ea5661c45 "microcode/amd: fix memory leak" fixes the boot issue.
>
> Sorry for this inconvenience.
>
> Could you apply the patch attached and try it again?
I'm inclined to take this fix even without waiting for Sander's
feedback (and simply implying your S-o-b). Andrew - what do you
think?
Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xen-devel] [Xen-unstable] boot crash while loading AMD microcode due to commit "microcode/amd: fix memory leak"
2019-08-30 7:49 ` Jan Beulich
@ 2019-08-30 8:08 ` Chao Gao
2019-08-30 20:06 ` Sander Eikelenboom
1 sibling, 0 replies; 5+ messages in thread
From: Chao Gao @ 2019-08-30 8:08 UTC (permalink / raw)
To: Jan Beulich
Cc: Andrew Cooper, xen-devel@lists.xenproject.org, Sander Eikelenboom
On Fri, Aug 30, 2019 at 09:49:04AM +0200, Jan Beulich wrote:
>On 30.08.2019 04:09, Chao Gao wrote:
>> On Fri, Aug 30, 2019 at 01:04:54AM +0200, Sander Eikelenboom wrote:
>>> L.S.,
>>>
>>> While testing xen-unstable, my AMD system crashes during early boot while loading microcode with an "Early fatal page fault".
>>> Reverting commit de45e3ff37bb1602796054afabfa626ea5661c45 "microcode/amd: fix memory leak" fixes the boot issue.
>>
>> Sorry for this inconvenience.
>>
>> Could you apply the patch attached and try it again?
>
>I'm inclined to take this fix even without waiting for Sander's
>feedback (and simply implying your S-o-b).
Ack.
Thanks
Chao
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xen-devel] [Xen-unstable] boot crash while loading AMD microcode due to commit "microcode/amd: fix memory leak"
2019-08-30 7:49 ` Jan Beulich
2019-08-30 8:08 ` Chao Gao
@ 2019-08-30 20:06 ` Sander Eikelenboom
1 sibling, 0 replies; 5+ messages in thread
From: Sander Eikelenboom @ 2019-08-30 20:06 UTC (permalink / raw)
To: Jan Beulich, Chao Gao, Andrew Cooper; +Cc: xen-devel@lists.xenproject.org
On 30/08/2019 09:49, Jan Beulich wrote:
> On 30.08.2019 04:09, Chao Gao wrote:
>> On Fri, Aug 30, 2019 at 01:04:54AM +0200, Sander Eikelenboom wrote:
>>> L.S.,
>>>
>>> While testing xen-unstable, my AMD system crashes during early boot while loading microcode with an "Early fatal page fault".
>>> Reverting commit de45e3ff37bb1602796054afabfa626ea5661c45 "microcode/amd: fix memory leak" fixes the boot issue.
>>
>> Sorry for this inconvenience.
>>
>> Could you apply the patch attached and try it again?
>
> I'm inclined to take this fix even without waiting for Sander's
> feedback (and simply implying your S-o-b). Andrew - what do you
> think?
>
> Jan
>
Just tested and it works for me, thanks!
--
Sander
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-08-30 20:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-29 23:04 [Xen-devel] [Xen-unstable] boot crash while loading AMD microcode due to commit "microcode/amd: fix memory leak" Sander Eikelenboom
2019-08-30 2:09 ` Chao Gao
2019-08-30 7:49 ` Jan Beulich
2019-08-30 8:08 ` Chao Gao
2019-08-30 20:06 ` Sander Eikelenboom
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.