lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Mon, 17 Aug 2015 19:04:07 +0200 (CEST)
From:	Thomas Gleixner <tglx@...utronix.de>
To:	Laura Abbott <labbott@...hat.com>
cc:	Jiang Liu <jiang.liu@...ux.intel.com>,
	Joerg Roedel <joro@...tes.org>,
	Tony Luck <tony.luck@...el.com>,
	Borislav Petkov <bp@...en8.de>, javiermon@...il.com,
	x86@...nel.org,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: Boot crash with 659006b x86/x2apic: Split enable and setup
 function

On Sun, 9 Aug 2015, Laura Abbott wrote:
> (missed the LKML cc apologies for the noise)
> 
> On 08/09/2015 06:51 AM, Laura Abbott wrote:
> > Hi,
> > 
> > We received a report[1] of an early boot crash. The reporter had difficulty
> > getting a full
> > kernel log to view and only had a screenshot which showed a crash in
> > native_apic_mem_read
> > (full screenshot available at the bugzilla along with dmesg from working
> > kernel)
> > 
> >   Bisection identified the following commit:
> > 
> > commit 659006bf3ae37a08706907ce1a36ddf57c9131d2
> > Author: Thomas Gleixner <tglx@...utronix.de>
> > Date:   Thu Jan 15 21:22:26 2015 +0000
> > 
> >      x86/x2apic: Split enable and setup function
> > 
> >      enable_x2apic() is a convoluted unreadable mess because it is used for
> >      both enablement in early boot and for setup in cpu_init().
> > 
> >      Split the code into x2apic_enable() for enablement and x2apic_setup()
> >      for setup of (secondary cpus). Make use of the new state tracking to
> >      simplify the logic.
> > 
> >      Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
> >      Cc: Jiang Liu <jiang.liu@...ux.intel.com>
> >      Cc: Joerg Roedel <joro@...tes.org>
> >      Cc: Tony Luck <tony.luck@...el.com>
> >      Cc: Borislav Petkov <bp@...en8.de>
> >      Link: http://lkml.kernel.org/r/20150115211703.129287153@linutronix.de
> >      Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
> > 
> > The report indicates that if local x2apic is disabled in the BIOS the kernel
> > boots.
> > 
> > Any ideas?

Does the patch below fix the issue?

Thanks,

	tglx

-------------------->
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
index dcb52850a28f..339cf4fc4ca9 100644
--- a/arch/x86/kernel/apic/apic.c
+++ b/arch/x86/kernel/apic/apic.c
@@ -1424,7 +1424,7 @@ static inline void __x2apic_disable(void)
 {
 	u64 msr;
 
-	if (cpu_has_apic)
+	if (!cpu_has_apic)
 		return;
 
 	rdmsrl(MSR_IA32_APICBASE, msr);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ