Received: by 10.223.185.116 with SMTP id b49csp1117967wrg; Fri, 23 Feb 2018 12:14:10 -0800 (PST) X-Google-Smtp-Source: AH8x2279kcpmAOYfbyxZ6NOpZ73h/V8Mqe954TTeX02l6k+K53boLeuoQ4NmFInaV/geiVzSX4pq X-Received: by 10.101.97.139 with SMTP id c11mr2246978pgv.439.1519416850766; Fri, 23 Feb 2018 12:14:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519416850; cv=none; d=google.com; s=arc-20160816; b=CGgge0vCB1PwWXgncpYRckSZjY1nf6b0DVUE21mXboB01jMA45PAFlPCbaPHNhtUDw uQIaLkHkkPeBOlRr7+j+0Vice7zFvTOC3WMWdyMamuec5qP1SDyC0F6DcqsCrkVY/4lF O4Y4yNyuijFaGT42OLgmKIPGSS88nd4jcaTdhvsXhp3VJwGDmVky5urhKswpTzRj2/p2 JIaP5RMl03cr5f1fpqgrksJJtBtUm4EDlQHN6GwFp+vdl5C4ohP7h9ieHPpQwmXR+EWD ACKuMVhIy6wK8BWIxYRW0deJHz9zaaU4cyuog4pfsZZdvU+moPzb3LGLHUfXHpAIk8qX icsw== 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 :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=KiPTVwYJFVmZZdYYvM4SEHBLi3ncyzmye2RndcCEA2s=; b=p76bU8QLFSzfDaV9DFi8Z6W/NylzrJcRSbANjiTA0PEUXAwjj8QQU2gNM70pJuq9l7 cW1W0bIujnM2nj8EikshwIc8zeFonBrcvHE7G4YEdJZIOI1o7Dr46XLFiwP4HhSe4IG3 ZIGf91IVQTiVGC4OKJDoG99qiOndr2Zcoh91juqrzQWAQWKLgo3RcwszPY6zssc8gFhl nicXDLFbCGtOpgYW6PXmBe0Pw8QT7RFWXG7K013gPLBUxJlPRrg9cCsuIWVK+KKeb3di q0a6bYUw99MdWRXQpb/i1/YM+nbnTjNkBVx0rufHgnszkN9cUk6HmcHwBFqGdZJ18MeN tcuQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x3-v6si2209878plb.738.2018.02.23.12.13.56; Fri, 23 Feb 2018 12:14:10 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932795AbeBWSlT (ORCPT + 99 others); Fri, 23 Feb 2018 13:41:19 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:40502 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753520AbeBWSlR (ORCPT ); Fri, 23 Feb 2018 13:41:17 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 6301A12A2; Fri, 23 Feb 2018 18:41:16 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jiri Slaby , Dan Williams , Thomas Gleixner , linux-arch@vger.kernel.org, kernel-hardening@lists.openwall.com, torvalds@linux-foundation.org, alan@linux.intel.com, David Woodhouse , Jack Wang Subject: [PATCH 4.4 181/193] x86/spectre: Report get_user mitigation for spectre_v1 Date: Fri, 23 Feb 2018 19:26:54 +0100 Message-Id: <20180223170354.510966870@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170325.997716448@linuxfoundation.org> References: <20180223170325.997716448@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Dan Williams (cherry picked from commit edfbae53dab8348fca778531be9f4855d2ca0360) Reflect the presence of get_user(), __get_user(), and 'syscall' protections in sysfs. The expectation is that new and better tooling will allow the kernel to grow more usages of array_index_nospec(), for now, only claim mitigation for __user pointer de-references. Reported-by: Jiri Slaby Signed-off-by: Dan Williams Signed-off-by: Thomas Gleixner Cc: linux-arch@vger.kernel.org Cc: kernel-hardening@lists.openwall.com Cc: gregkh@linuxfoundation.org Cc: torvalds@linux-foundation.org Cc: alan@linux.intel.com Link: https://lkml.kernel.org/r/151727420158.33451.11658324346540434635.stgit@dwillia2-desk3.amr.corp.intel.com Signed-off-by: David Woodhouse [jwang: cherry pick to 4.4] Signed-off-by: Jack Wang Signed-off-by: Greg Kroah-Hartman --- arch/x86/kernel/cpu/bugs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c @@ -291,7 +291,7 @@ ssize_t cpu_show_spectre_v1(struct devic { if (!boot_cpu_has_bug(X86_BUG_SPECTRE_V1)) return sprintf(buf, "Not affected\n"); - return sprintf(buf, "Vulnerable\n"); + return sprintf(buf, "Mitigation: __user pointer sanitization\n"); } ssize_t cpu_show_spectre_v2(struct device *dev,