Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2662851imm; Mon, 10 Sep 2018 04:47:42 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaehckFNa+URjXFa4IrKhFZ7vI3ss+68TtlH7HCDiIhEkSmfr3mxUE0J+e04j+c8q70hzLE X-Received: by 2002:a63:2b4d:: with SMTP id r74-v6mr22314857pgr.406.1536580062795; Mon, 10 Sep 2018 04:47:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536580062; cv=none; d=google.com; s=arc-20160816; b=HZwhTbPkITfiHj59eVHN9GCKy22v42PFLZpHqSish7r0KiAIzdaLxjYYCxpRneIpD4 9/Wg4hN2Dzl5VN3k5oHLQXKKuJbj869HNyujYPUQdGho7dF5UlKnsEUJPypwC+Qo1TXN YUaQ8YquymjLtClmv2H/Sbh/ahvU6YRjR/VGU+WkWTDbZk5tXV7KB/DS/oNIoSw326e5 YIjyKpyjcsQBiJ1ZlVxszsKNAIeea4Z/8KRaCbJOJfA9Ei5x3VsJjwR4OcZy87VINPW0 86EzFerLl6rDzIJNOIKxWkzrTQL2ID2ggmUznMtAmZB/UuBVcx8hGRIDguaQFNK2tEmW 5o7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=MvF3XoSoKYshRYcK6qSqmlYOXyg+ekwMK1MLM1LE55Q=; b=V4Bq3Eh8ajHVT2VWV4+AnTVm0Jm0YehIUGuE4nILk222ZEL3PmjxnGHuIxSnGhBiiX vDRRO2WLGs5TdOrwriO5aQKkxVslEo1qtrL3t1CXZBE4qGeRhSCar/yIZyckqn4jhtyA 3efdzmHZX/C3PHrt1Leutcp29n04Y7YMbJOIApTiGuhtjCnuKzDqg9BXY8HeqBsD/6xn n4esBHUiGTHD7hvFDjNNkfD27xbi4u0GFrSA6pIxK62jJcLLRxQ611aNr7SHnAFoEJ7Q bnTBBQjenu+Z3oebhFLMx8/4+ULqWs2rtetzOfjPA3PkQR2ikX8pS5m94bmvwYUCyS47 /n2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x12-v6si13500278plv.315.2018.09.10.04.47.27; Mon, 10 Sep 2018 04:47:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728123AbeIJQkA (ORCPT + 99 others); Mon, 10 Sep 2018 12:40:00 -0400 Received: from mx2.suse.de ([195.135.220.15]:34308 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727727AbeIJQkA (ORCPT ); Mon, 10 Sep 2018 12:40:00 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id B0D00AD57; Mon, 10 Sep 2018 11:46:18 +0000 (UTC) Date: Mon, 10 Sep 2018 13:46:16 +0200 (CEST) From: Jiri Kosina To: Thomas Gleixner cc: Ingo Molnar , Peter Zijlstra , Josh Poimboeuf , Andrea Arcangeli , "Woodhouse, David" , Andi Kleen , Tim Chen , "Schaufler, Casey" , linux-kernel@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH v5 2/2] x86/speculation: Enable cross-hyperthread spectre v2 STIBP mitigation In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 10 Sep 2018, Jiri Kosina wrote: > > That looks much more palatable. One missing piece is the sysfs > > mitigation file for spectre v2. That should reflect STIPB state as well. > > FWIW, we're missing a bit more in that area, namely RSB stuffing on > context switch, IBRS (even through only around fw) and IBPB; those are > only signalled in dmesg during bootup. Nah, IBPB is actuall there, sorry. So I'll add reporting of STIBP + fixup the missing reporting of RSB_CTXSW for v6. -- Jiri Kosina SUSE Labs