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:	Tue, 17 Nov 2015 10:49:13 -0600
From:	Gratian Crisan <gratian.crisan@...com>
To:	Dave Hansen <dave.hansen@...el.com>
CC:	Peter Zijlstra <peterz@...radead.org>, <gratian.crisan@...com>,
	Thomas Gleixner <tglx@...utronix.de>,
	<linux-kernel@...r.kernel.org>, Ingo Molnar <mingo@...hat.com>,
	"H . Peter Anvin" <hpa@...or.com>, <x86@...nel.org>,
	Borislav Petkov <bp@...en8.de>, Josh Cartwright <joshc@...com>,
	<gratian@...il.com>
Subject: Re: [RFC PATCH] tsc: synchronize TSCs on buggy Intel Xeon E5 CPUs with offset error


Dave Hansen writes:

> On 11/09/2015 02:02 PM, Peter Zijlstra wrote:
>> On Mon, Nov 09, 2015 at 01:59:02PM -0600, gratian.crisan@...com wrote:
>>> The Intel Xeon E5 processor family suffers from errata[1] BT81:
>> 
>>> +#ifdef CONFIG_X86_TSC
>>> +	/*
>>> +	 * Xeon E5 BT81 errata: TSC is not affected by warm reset.
>>> +	 * The TSC registers for CPUs other than CPU0 are not cleared by a warm
>>> +	 * reset resulting in a constant offset error.
>>> +	 */
>>> +	if ((c->x86 == 6) && (c->x86_model == 0x3f))
>>> +		set_cpu_bug(c, X86_BUG_TSC_OFFSET);
>>> +#endif
>> 
>> That's hardly a family, that's just one, Haswell server.
>
> How did you come up with that x86_model?  The document you linked to
> claimes that "Extended Model" is 0010b and "Model Number" is 1101b, so
> the x86_model you are looking for should be 0x2d.

Apologies. I've messed up. The observed behavior seemed to match the
errata and it was a Xeon E5. I've used the model number I read of the
machine exhibiting the behavior w/o properly matching it with the model
number in the errata.

In the meantime Peter Zijlstra pointed me in the right direction i.e. it
looks like the BIOS is changing the TSC_ADJUST for CPU0 but not any of
the other ones. I'll sort it out with our BIOS guys and drop this patch.

Sorry again for the confusion.
-Gratian
--
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