Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2313813ybl; Sat, 24 Aug 2019 14:39:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKKsoG4SSkK/arbU8lGVcCdZTMw0I/+lG8I99j45Cdw6XznUCxZBEX7l+/7j8j1xZTyMUh X-Received: by 2002:a63:c0d:: with SMTP id b13mr9576559pgl.420.1566682751011; Sat, 24 Aug 2019 14:39:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566682751; cv=none; d=google.com; s=arc-20160816; b=AQAKMIi1q+IiGj1CTLkJOp6d/9C/XDn70WyOVcrQCB4AxXkPnYyNC+ghsJe+a4WLwb skwdFfd/DfzryToUdQ5gSdaL6VbSMVoaHKAby8ar8g1lAHwRSysfukN7CRBL7QlXWw6K 3ZDJ6XDgea7thdSQPjemHdVHHPiofBQtQX5ocfVKO1zIimXdYTli2ErzKWnItxy9B11i OoyVzgzZ+EyS1UoMvVceJlN2zyaMZTplwxrCEnWAS19lN6BDUpd8hpKGLqf2uUf2vFJj a7B/sWXgXMZQmwNEzhx52Nwl0ZLncvjZOo2WI6RrSNnZDVvqUtQylOAqe7c/J7gIWlUH fr/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature:dkim-filter; bh=2gQzKPo4WrQnlvDY26oni/RH8wMNjOHmljo2FnAYqSQ=; b=ehpYf1kJs0jTkbtO9gSsdHZiEjV57woXbtja1VjbaC0LOzyiKzVDzx5WEsFttKBl1F xY4Bd1Rs3dZP+XXkWJr90jBhscFJNgEyFMcfiiUb6n1hhh+TlZclC1sMTxyM5YwFWd8L AqFEECc9+83QbmtkhzO0yL8X+/PJ172wODnLFHR2/1S+5nEkxYa8GNqCJT5ObBEN8k2b UsRTfdDtBvpuqfql//t4uw7nwWjOikntSp6KrSbDOdESM9wSgA1AFoP/IhRQRiLrwPnj jJsRKR4MweRzZ7hd7VzUZuKZTNA0IUv5X3Krssc5PMdM7Jap5XHYP+qOsiDwEoYdrmvt hP2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019081901 header.b=jfa8ujf6; 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=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k30si6367761pfp.284.2019.08.24.14.38.55; Sat, 24 Aug 2019 14:39:10 -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; dkim=pass header.i=@zytor.com header.s=2019081901 header.b=jfa8ujf6; 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=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728307AbfHXVgf (ORCPT + 99 others); Sat, 24 Aug 2019 17:36:35 -0400 Received: from terminus.zytor.com ([198.137.202.136]:39725 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727708AbfHXVgd (ORCPT ); Sat, 24 Aug 2019 17:36:33 -0400 Received: from carbon-x1.hos.anvin.org ([IPv6:2601:646:8600:3281:e7ea:4585:74bd:2ff0]) (authenticated bits=0) by mail.zytor.com (8.15.2/8.15.2) with ESMTPSA id x7OLZlZI1693806 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Sat, 24 Aug 2019 14:35:47 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com x7OLZlZI1693806 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019081901; t=1566682550; bh=2gQzKPo4WrQnlvDY26oni/RH8wMNjOHmljo2FnAYqSQ=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=jfa8ujf6Bo1t5AdTUjdpXdAFm8XuC39+BjMNqj+VUJ3I53oJo8pLL8aqGEuCFFlpF mwuiVt5W4twlgKdrwazMwd/61MKfTF4NAY11XuCMz/Ej1knheH/Kqod+N3MIPMcnIK cktpL1xZjdX5eoOtI9MknxvSwHVr1fI8qBSoNC3LNQYeNSnmeD84o3whZzxDwNPfwG gh/3M8807qmCeoj0hhRip3VMQkcUT2k058MR72yR9RAETn0/4FIKzK3WhJgnwoAar5 HnEPzDPWJwws1MytshNO8EJOiF+QUagVUh1dO3bzXlhf83JKnsGzcKS+aVx/usQ/fp EvEO265n3vcaQ== Subject: Re: [tip: x86/urgent] x86/CPU/AMD: Clear RDRAND CPUID bit on AMD family 15h/16h To: Pavel Machek , linux-kernel@vger.kernel.org Cc: linux-tip-commits@vger.kernel.org, "x86@kernel.org" , Thomas Gleixner , stable@vger.kernel.org, "Rafael J. Wysocki" , Paolo Bonzini , Nathan Chancellor , "linux-pm@vger.kernel.org" , "linux-doc@vger.kernel.org" , Kees Cook , Juergen Gross , Josh Poimboeuf , Jonathan Corbet , Ingo Molnar , Chen Yu , Andrew Morton , Andrew Cooper , Borislav Petkov , Tom Lendacky References: <7543af91666f491547bd86cebb1e17c66824ab9f.1566229943.git.thomas.lendacky@amd.com> <156652264945.9541.4969272027980914591.tip-bot2@tip-bot2> <20190824181929.GA18551@amd> From: "H. Peter Anvin" Message-ID: <409703ae-6d70-3f6a-d6fc-b7dada3c2797@zytor.com> Date: Sat, 24 Aug 2019 14:35:40 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190824181929.GA18551@amd> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/24/19 11:19 AM, Pavel Machek wrote: > On Fri 2019-08-23 01:10:49, tip-bot2 for Tom Lendacky wrote: >> The following commit has been merged into the x86/urgent branch of tip: >> >> Commit-ID: c49a0a80137c7ca7d6ced4c812c9e07a949f6f24 >> Gitweb: https://git.kernel.org/tip/c49a0a80137c7ca7d6ced4c812c9e07a949f6f24 >> Author: Tom Lendacky >> AuthorDate: Mon, 19 Aug 2019 15:52:35 >> Committer: Borislav Petkov >> CommitterDate: Mon, 19 Aug 2019 19:42:52 +02:00 >> >> x86/CPU/AMD: Clear RDRAND CPUID bit on AMD family 15h/16h >> >> There have been reports of RDRAND issues after resuming from suspend on >> some AMD family 15h and family 16h systems. This issue stems from a BIOS >> not performing the proper steps during resume to ensure RDRAND continues >> to function properly. > > There are quite a few unanswered questions here. > > a) Is there/should there be CVE for this? > > b) Can we perform proper steps in kernel, thus making RDRAND usable > even when BIOS is buggy? > The kernel should at least be able to set its internal "CPUID" bit, visible through /proc/cpuinfo. -hpa