Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1583225
| From | Borislav Petkov <bp@alien8.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] x86/mce: Keep quiet in case of broadcasted mce after system panic |
| Date | 2017-02-17 10:10 +0100 |
| Message-ID | <tbMI9-2kt-5@gated-at.bofh.it> (permalink) |
| References | (5 earlier) <tbmXo-1HS-9@gated-at.bofh.it> <tbrkm-4KJ-19@gated-at.bofh.it> <tbsT7-5Hw-5@gated-at.bofh.it> <tbtm9-66o-1@gated-at.bofh.it> <tbG01-66D-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, Feb 17, 2017 at 09:53:21AM +0800, Xunlei Pang wrote:
> It changes the value of cpu_online_mask/etc which will cause confusion to vmcore analysis.
Then export the crashing_cpu variable, initialize it to something
invalid in the first kernel, -1 for example, and test it in the #MC
handlier like this:
int cpu;
...
cpu = smp_processor_id();
if (cpu_is_offline(cpu) ||
((crashing_cpu != -1) && (crashing_cpu != cpu)) {
u64 mcgstatus;
mcgstatus = mce_rdmsrl(MSR_IA32_MCG_STATUS);
if (mcgstatus & MCG_STATUS_RIPV) {
mce_wrmsrl(MSR_IA32_MCG_STATUS, 0);
return;
}
}
> Moreover, for the code(see comment inlined)
>
> if (cpu_is_offline(smp_processor_id())) {
> u64 mcgstatus;
>
> mcgstatus = mce_rdmsrl(MSR_IA32_MCG_STATUS);
> if (mcgstatus & MCG_STATUS_RIPV) { // This condition may be not true, the mce triggered on kdump cpu
> // doesn't need to have this bit set for the other cpus remain in 1st kernel.
Is this on kvm or on a real hardware? Because for kvm I don't care. And
don't say "theoretically".
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH] x86/mce: Keep quiet in case of broadcasted mce after system panic Xunlei Pang <xpang@redhat.com> - 2017-02-16 06:40 +0100
Re: [PATCH] x86/mce: Keep quiet in case of broadcasted mce after system panic Borislav Petkov <bp@alien8.de> - 2017-02-16 11:20 +0100
Re: [PATCH] x86/mce: Keep quiet in case of broadcasted mce after system panic Xunlei Pang <xpang@redhat.com> - 2017-02-16 13:00 +0100
Re: [PATCH] x86/mce: Keep quiet in case of broadcasted mce after system panic Borislav Petkov <bp@alien8.de> - 2017-02-16 13:30 +0100
Re: [PATCH] x86/mce: Keep quiet in case of broadcasted mce after system panic Xunlei Pang <xpang@redhat.com> - 2017-02-17 03:00 +0100
Re: [PATCH] x86/mce: Keep quiet in case of broadcasted mce after system panic Borislav Petkov <bp@alien8.de> - 2017-02-17 10:10 +0100
Re: [PATCH] x86/mce: Keep quiet in case of broadcasted mce after system panic Xunlei Pang <xpang@redhat.com> - 2017-02-17 17:20 +0100
RE: [PATCH] x86/mce: Keep quiet in case of broadcasted mce after system panic "Luck, Tony" <tony.luck@intel.com> - 2017-02-21 19:50 +0100
Re: [PATCH] x86/mce: Keep quiet in case of broadcasted mce after system panic Xunlei Pang <xpang@redhat.com> - 2017-02-22 06:50 +0100
csiph-web