Received: by 10.223.176.5 with SMTP id f5csp711398wra; Fri, 9 Feb 2018 06:04:50 -0800 (PST) X-Google-Smtp-Source: AH8x224PFE1GYqY7cpFIWQ8+sKFxp0Ydn5l357ZfGMDLi8z2Noy8GO5k1OoXeTnQIaMUVQAyKN8E X-Received: by 2002:a17:902:6b89:: with SMTP id p9-v6mr2689995plk.377.1518185090858; Fri, 09 Feb 2018 06:04:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518185090; cv=none; d=google.com; s=arc-20160816; b=Yb0Ukgxss6pPneiQ2MMhOPw+PN+KTPeFZPlvqdmVUy5X8Y9dSzk9lPdngkla95MQkp 9i2eJ+wWDg7POMzYeVEXvnP3In3R4Ug97WXluIh/TNjL1/asYDzQVc5sZJEo0dcyyJ8+ s0eaFqzdefAMQ+h+U5vV3n0KA36phylkbL+U34VMYhFoXeMsFEuHhQvjI6N4LSWUIDKE Ub7kGFd63haUc+h6NzNuJLvonVMYU9dRzFfIi2TAPLwwZeNwdkuA4T18upRg3SaDZsuz 0niypNXV0MgJR8gcNdJAGIT5Zdd30mawkG701+IqnFx0UIL+0HUw2OneK6Lyd1AMk0AI XhZg== 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=JzG+M39zuOixTtvXLJbT0IiDmEOxCia++BVDWkb3s+c=; b=wehTBJ1mAYBy2LniPyK1RoW7OrRnAtpbqO//UlgJwiUKNm5enYOsVACDoHUJmYRsHY +il56rWXXQjVtHvAVOS2YCoxWObYWtv9bvssYrSdpjWn+8D6XJEHWytS0rq7FI85/mPg E0ghB0qhnVcmm+aRkZ8Z9XnEzb9HH6ABqpYSWxQi1LrjNUfFwWbo34MtdUV+Bzj/7mUD oxGfBgRTbWi6vfi7UVVAMyJUhDg3GTC+/Zo9TymfVzCAlC6iQ90HJfW1o9wSlius/wqX OgJlS2J7AtUVTzBbHrr7bgagO+tNrF7wr98b7G677SvcEZXmEgjXAC979fk5nb1iWY7X rHQQ== 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 m26-v6si1576240pli.564.2018.02.09.06.04.36; Fri, 09 Feb 2018 06:04:50 -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 S1753298AbeBINnj (ORCPT + 99 others); Fri, 9 Feb 2018 08:43:39 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:50864 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752184AbeBINng (ORCPT ); Fri, 9 Feb 2018 08:43:36 -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 7E2331060; Fri, 9 Feb 2018 13:43:21 +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 Subject: [PATCH 4.9 67/92] x86/spectre: Report get_user mitigation for spectre_v1 Date: Fri, 9 Feb 2018 14:39:36 +0100 Message-Id: <20180209133936.100956467@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180209133931.211869118@linuxfoundation.org> References: <20180209133931.211869118@linuxfoundation.org> User-Agent: quilt/0.65 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.9-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 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 @@ -296,7 +296,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,