From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933155AbeAHXD6 (ORCPT + 1 other); Mon, 8 Jan 2018 18:03:58 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:34184 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932236AbeAHXD5 (ORCPT ); Mon, 8 Jan 2018 18:03:57 -0500 Date: Tue, 9 Jan 2018 00:03:55 +0100 From: Pavel Machek To: Thomas Gleixner Cc: linux-kernel@vger.kernel.org, r.marek@assembler.cz, ricardo.neri-calderon@linux.intel.com, rkrcmar@redhat.com, Janakarajan.Natarajan@amd.com, bp@suse.de, x86@kernel.org, hpa@zytor.com, mingo@redhat.com, Linus Torvalds Subject: Re: [PATCH] clarify how insecure CPU is Message-ID: <20180108230355.GA25349@amd> References: <20180108201017.GA20588@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9amGYk9869ThD9tj" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: --9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon 2018-01-08 21:27:25, Thomas Gleixner wrote: > On Mon, 8 Jan 2018, Pavel Machek wrote: >=20 > >=20 > > First, what is going on with X86_BUG_AMD_E400 and X86_BUG_AMD_APIC_C1E > > ? They seem to refer to the same bug, perhaps comment should mention > > that? (Do we need two flags for one bug?) > >=20 > > Next, maybe X86_BUG_CPU_INSECURE is a bit too generic? This seems to > > address "Meltdown" problem, but not "Spectre". Should it be limited to > > PPro and newer Intel CPUs? > >=20 > > Should another erratum be added for "Spectre"? This is present even on > > AMD CPUs, but should not be present in 486, maybe Pentium, and some > > Atom chips? > >=20 > > Plus... is this reasonable interface? > >=20 > > bugs : cpu_insecure >=20 > We've renamed it to meltdown already and added spectre_v1/v2 bits for the > rest of the mess. Could you explain (best with code comment) what is going on with X86_BUG_AMD_E400 and X86_BUG_AMD_APIC_C1E ? They seem to refer to the same bug. Plus, as I explained: "bugs: meltdown, spectre" seems to be bad idea, as userland application can not easily tell between "no bug" and "bug not known to kernel". Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --9amGYk9869ThD9tj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlpT+NsACgkQMOfwapXb+vK3JQCffo5o35HppSPuCi12S205cM4j JroAnj1huJgJBMDFg0WaNudYNZYfyui/ =qOxt -----END PGP SIGNATURE----- --9amGYk9869ThD9tj--