From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: ARC-Seal: i=1; a=rsa-sha256; t=1516805233; cv=none; d=google.com; s=arc-20160816; b=c8EmzlxOb1c56AMkmPMGL9NyfJp3GYAm3yCdSLs1k7oeLT5DIA62mUsN3H3qmeZODP gKgW8UfQlJhnlFD0h+fyWxXeV4LYnj+V4uiUTD5L3kEFj+r8/zMQvAMOOWiJ4OT1CxM/ 9O+JjrlTJ/eeGBz3h++/mpdrV6ArVazsntpADtsd9Pn1J/SMNvYUNbcNSsIFoAefJbyK 07TitM4DX6b/CuQOk2cyfYXomMWex0lZ/1NZfEDmVshW0zopjS9AOo7RuK26+eem0BzI WEIb3Cyjhyw821ZiV05/LP8PQd6wIhbTS9K9vhCLtNRGYJq6b8OAOmELwdW4/x5Ly/IE 5Xrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :arc-authentication-results; bh=KDcmPNM32jqB0QkXIqIEaQ7nKyBc5PmXSfSXt9qMCso=; b=YRr9oRTxn4XZ14Hk4ccrlYDOW/ZCiKcgPcaHhoWb9Wozv90D4el62MqXMioYU+Q6mQ 3ZA+XIMRnFs9gCok4huJhfsw9ojePUAyVDxSiz1CbgH8bNfn4Q2jN9LS1UaxM+K8xTxg XiQuoz51lQknWn2TOTRNwNYcQI6D5Ss06N15jvsh5qtP998VbxbnCE1QXEj1LQUvuf2c xwQq9pW4LfNMeZBY9vDD9zaSqnR7yH1ytZisZ0OD9G3nk3UydXHaB4J7bNhLDyKNMT+t FoPLxPnHWAX9CGO1Hpwkl6nhMZ1N650tZsgqSgF8w1wFyamgabfXj1Hxp4o8ApBxaztz 0GKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of jirislaby@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jirislaby@gmail.com Authentication-Results: mx.google.com; spf=pass (google.com: domain of jirislaby@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jirislaby@gmail.com X-Google-Smtp-Source: AH8x22789EaghDnuSVkO92r2SYjUKso+dSVgYr5bLvGwbMQxg9hr/o75ALdzu+ow4foAbLsVJ8Hk0w== Subject: Re: [GIT PULL] spectre variant1 mitigations for 4.16 To: "Williams, Dan J" , "tglx@linutronix.de" Cc: "linux-kernel@vger.kernel.org" , "torvalds@linux-foundation.org" , "alan@linux.intel.com" , "viro@zeniv.linux.org.uk" , "Reshetova, Elena" , "johannes@sipsolutions.net" , "will.deacon@arm.com" , "luto@kernel.org" , "kernel-hardening@lists.openwall.com" , "gregkh@linuxfoundation.org" , "davem@davemloft.net" , "linux-arch@vger.kernel.org" References: <1516473386.30886.35.camel@intel.com> From: Jiri Slaby Message-ID: <5fffd4e8-90fe-0799-adf0-5376113b268d@suse.cz> Date: Wed, 24 Jan 2018 15:47:11 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <1516473386.30886.35.camel@intel.com> Content-Type: text/plain; charset=ISO-8859-2 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1590137616316688695?= X-GMAIL-MSGID: =?utf-8?q?1590485564789512329?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: On 01/20/2018, 07:36 PM, Williams, Dan J wrote: > Dan Williams (9): > asm/nospec, array_ptr: sanitize speculative array de-references > x86: implement array_ptr_mask() > x86: introduce __uaccess_begin_nospec and ifence > x86, __get_user: use __uaccess_begin_nospec > x86, get_user: use pointer masking to limit speculation > x86: narrow out of bounds syscalls to sys_read under speculation > vfs, fdtable: prevent bounds-check bypass via speculative execution > kvm, x86: update spectre-v1 mitigation > nl80211: sanitize array index in parse_txq_params > > Mark Rutland (1): > Documentation: document array_ptr > > Documentation/speculation.txt | 143 ++++++++++++++++++++++++++++++++++++++ > arch/x86/entry/entry_64.S | 2 + > arch/x86/include/asm/barrier.h | 28 ++++++++ > arch/x86/include/asm/msr.h | 3 +- > arch/x86/include/asm/smap.h | 24 +++++++ > arch/x86/include/asm/uaccess.h | 15 +++- > arch/x86/include/asm/uaccess_32.h | 6 +- > arch/x86/include/asm/uaccess_64.h | 12 ++-- > arch/x86/kvm/vmx.c | 19 ++--- > arch/x86/lib/getuser.S | 5 ++ > arch/x86/lib/usercopy_32.c | 8 +-- > include/linux/fdtable.h | 7 +- > include/linux/nospec.h | 65 +++++++++++++++++ > net/wireless/nl80211.c | 10 ++- Could you update also cpu_show_spectre_v1? thanks, -- js suse labs