From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.4 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1ECF0C33C8C for ; Mon, 6 Jan 2020 20:19:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E7EFD2467C for ; Mon, 6 Jan 2020 20:19:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="pj5xEWC2" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726939AbgAFUTE (ORCPT ); Mon, 6 Jan 2020 15:19:04 -0500 Received: from mail-il1-f196.google.com ([209.85.166.196]:34662 "EHLO mail-il1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726895AbgAFUTD (ORCPT ); Mon, 6 Jan 2020 15:19:03 -0500 Received: by mail-il1-f196.google.com with SMTP id s15so43700918iln.1 for ; Mon, 06 Jan 2020 12:19:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=On8S/jqcqhWm1gA75kni93hxDaFgmyxXA8OYLeg6pRw=; b=pj5xEWC2k1f0PDOEDl4ycNhV9/3mEeqCFoZlQ6jKJtbe77lzXp8pzFq26ztwSG9V+V Kq/A6Em27Lt9MrhZKAC3Nw+qJogSJDU9M+w73gCuds+KJEOjYORSWyCbiG2QNVIx8nAX MZk0LhnqI+m2EvlcOCUkv20bX9qw8Cv39Bbtnby/EMmb+Sz8+HwI13s1a8U7X01f3Hq1 Dxc9ndFQw4DlH2N3jG1H/6eSOiNhnSd90uRIh8ZzcvSAmwqHzqDwPOL5T3ZPKWp5y7bf QZqCDDlB3FxjzOcqPePxq8ksuPYFPL0YS0AO41kD+eoBlTCpPDcnrZYkyCnkzbl5sgLy OJKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=On8S/jqcqhWm1gA75kni93hxDaFgmyxXA8OYLeg6pRw=; b=Rs4YNHcQLfz2xo4my/ADLg7YtyS2wcThp/GwFMKb3oIzJUZ6b3ka+3DggG6WVYAIz1 LOFziaUsHWXYi/1UcSPOhrh2iqKHGp85IDeMHL5LUcq3skrsUnDbk7T4Z7gYHf9wXJTE 7dJGx1k4ouxYzexqycGJsQbGkCnhBn4j+sahVm4qquE7ef4LqiiUWrzjIEfc5pZW7IfL Np8NdJRbiWGLqiLER1u6rXns2PhjWyjV+iVdWmZd2qpnHS5402fckURRRy99tMtg2GuK ZicQhEMCkR/tkvzFxNb9spKcnF+jQBz4HpWDDk2YbQKfp38JyV0eebb0fdSCgV4gmZy5 Df7A== X-Gm-Message-State: APjAAAX++UBtak3e6JlQq85/DjMiekdtcbam+l1VB4nyA45BP1DsOo3m GlzmYIw9smAjAnc3HXCpvNcAV28EYVnwPEq+1whauQ== X-Google-Smtp-Source: APXvYqw/uA456NSw77dxi0HDBubRLZXT5catRpIZeEV7h/AuDPtK8k5E+UuB/HK9diCwlWzkyenxKNoQyTYwehnh+ls= X-Received: by 2002:a92:3b98:: with SMTP id n24mr67439328ilh.108.1578341942677; Mon, 06 Jan 2020 12:19:02 -0800 (PST) MIME-Version: 1.0 References: <20191211204753.242298-1-pomonis@google.com> <20191211204753.242298-10-pomonis@google.com> In-Reply-To: <20191211204753.242298-10-pomonis@google.com> From: Jim Mattson Date: Mon, 6 Jan 2020 12:18:51 -0800 Message-ID: Subject: Re: [PATCH v2 09/13] KVM: x86: Protect MSR-based index computations from Spectre-v1/L1TF attacks in x86.c To: Marios Pomonis Cc: Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Joerg Roedel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , "the arch/x86 maintainers" , kvm list , LKML , Nick Finco , Andrew Honig , stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Wed, Dec 11, 2019 at 12:49 PM Marios Pomonis wrote: > > This fixes a Spectre-v1/L1TF vulnerability in set_msr_mce() and > get_msr_mce(). > Both functions contain index computations based on the > (attacker-controlled) MSR number. > > Fixes: commit 890ca9aefa78 ("KVM: Add MCE support") > > Signed-off-by: Nick Finco > Signed-off-by: Marios Pomonis > Reviewed-by: Andrew Honig > Cc: stable@vger.kernel.org Reviewed-by: Jim Mattson