Received: by 10.223.176.5 with SMTP id f5csp2848524wra; Mon, 5 Feb 2018 10:54:24 -0800 (PST) X-Google-Smtp-Source: AH8x226iW1Bawyo16MdipfMTzWrhihWArchUSe8/lj8KYfCZ8HYJZe8b5hVdDf0ChZtB+A23A32V X-Received: by 10.99.95.71 with SMTP id t68mr8401480pgb.310.1517856864060; Mon, 05 Feb 2018 10:54:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517856864; cv=none; d=google.com; s=arc-20160816; b=KVf7z4VCPoC2tFBe0qNZiMHP9pVuYntf5paSrlbz4fiu/iykv5fEqowj7lI2cpSPvo MFwSo3itkwa7dkLD40jJUHa6thoQtDFKg53ZmJNuWiyUJ2M8yqzkiyvNxjCqC7xfaet2 UBw+vkYtouHV/FeHBX5WTGpkvDhdbBaXPPN0dFxOletb9/xbXa7gmCzeIaOkdN/3Wi51 r0m5gH0wZ1/Elv4+2BvfSQq5CPnbvHJfG0rz9pcsumJ3jxYAodJ+AEDYgoDoLfLx24ae 7mJcDM3KNsrMGA/T+tgoCm0jlaWjANQqXVCJH6yNTeozERM7D33t39lotOLV0tl7tpOy RQNg== 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=8uGjGHnBcU6zMqDg8spWzadbsir+dDDwE3ORpkj3JR4=; b=pVSDB/qDJ5fK9pEUGV5Df8qmVrCYnlhho57kaJ281Oq0p4UOe9n9X3TbFpbNYsfYXE ArpYGnusLfIupwYYhVv1GEMqw6LRe3ACySIzwhbJwfzo4B+TIzsChkb81SD/In8nrwl3 AzdNGmCQWRXEVrCKjdq+NO114KTaVmqgbOtJuEl79qhNhIi7vSromZeH267HE8FKPtJ+ esD9ycekJjps0stw73tILUHG2uu0IiVw9yqJYKthLWaw7Cw/ypvFhws5pkg/A25sDLZL aN0X+79YdkDaT0BmunWRZhDlFzr0taGN79J71RNDPwuWZ/AuW8pMHRKXzGNeZdWCWaXD bOcw== 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 p78si184260pfk.233.2018.02.05.10.54.09; Mon, 05 Feb 2018 10:54:24 -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 S1753592AbeBESwo (ORCPT + 99 others); Mon, 5 Feb 2018 13:52:44 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:52896 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753800AbeBESZq (ORCPT ); Mon, 5 Feb 2018 13:25:46 -0500 Received: from localhost (unknown [104.132.1.108]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 9DA9B113E; Mon, 5 Feb 2018 18:25:29 +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 Subject: [PATCH 4.15 43/60] x86/spectre: Report get_user mitigation for spectre_v1 Date: Mon, 5 Feb 2018 10:23:16 -0800 Message-Id: <20180205182215.744093198@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180205182213.902626065@linuxfoundation.org> References: <20180205182213.902626065@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.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Dan Williams dan.j.williams@intel.com 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: 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 @@ -297,7 +297,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,