Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21839180ybl; Mon, 6 Jan 2020 12:19:53 -0800 (PST) X-Google-Smtp-Source: APXvYqyOJDwQem7I7IQo1DiJye2NY3x+TJSxQYIbEpK9JhaCIjvDWG6bNFDmDpQVwjQE0AO9dJLV X-Received: by 2002:a9d:774e:: with SMTP id t14mr115333606otl.358.1578341993892; Mon, 06 Jan 2020 12:19:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578341993; cv=none; d=google.com; s=arc-20160816; b=IC9mqS5ExLLqjJpL0/Pqc3manO7GiOhoxCvU0gKu/4CURdHB/99+7nS1wl7D1N/ag2 HUGxyEj/rRXtN5d5bqINeQhyaEgMDCEtMZ8w4T/RND02KIObGcjrfZ5RtBKtV/a7puRj CtvuGYhwlfeofII+xyz/Qb1bpxFbTwhcT+nBGjuSUgoZUnaDzAY6z45PFvhsUkpG271y wjB6Yf+ybYbWv5mlVA6cqVWS2PFI1ffrtIZ3yFh6uzpRMUQxYZwB5AUZIwqjZzA6FlN6 JzQHBKdCZ31xg0zw+WZyUiBk471iS4CXKwDmcxztMAYhzSlbfV/+7wD8+KheiZpVMVCy WDCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ns8GnqwvJg6p4W/syDLUnvePjgs3xerHY20r9Gnc+74=; b=zunbqrqtbpePZUVpmVnX7UUdyWXl73aCgR29n9LNmiKHrgtDFLp2tz95fOjoggOMqi 9WjuuG0QRJlGoBGGVDip3lHURQQZlNAN4RQoRVULvYk3WFaHOu1+bNxCTg1YJk9bc8j3 327AU+D2mgzG3H7c9zKNJKwpgyuUTbls8FT1jrsYURMvfYQnvXKjilZgqLgaAFGMyorJ LJnOdq10cVcHoRNQHRZBYhRymRwf7AbNqEoSpDlUKo87zWsaqdFSkNPRchCsWhyZIJ21 M/su6S5ku/lO6hCA4p4/KJPSLR7kWXk1fkDsLPRhH7/rdlC4HopVVM8D3mpYiNgF2zt4 Zl3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=clap+ZSl; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s13si34695793otr.233.2020.01.06.12.19.41; Mon, 06 Jan 2020 12:19:53 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=clap+ZSl; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726725AbgAFURt (ORCPT + 99 others); Mon, 6 Jan 2020 15:17:49 -0500 Received: from mail-io1-f68.google.com ([209.85.166.68]:33098 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726713AbgAFURt (ORCPT ); Mon, 6 Jan 2020 15:17:49 -0500 Received: by mail-io1-f68.google.com with SMTP id z8so49947674ioh.0 for ; Mon, 06 Jan 2020 12:17:49 -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=ns8GnqwvJg6p4W/syDLUnvePjgs3xerHY20r9Gnc+74=; b=clap+ZSlRXw7zp6m90XHVxIDTEjjE9mcltqn7nwhdOy1qAuizA7p54MDYDj3llqhCi nJzjNDYwgjjHbTHFIIjbXd9dbOFEWGnu0h83h98/mByZ9oQizwnh0Y5O0zE4RXdBf2E+ 8YrSYyt7ItVEBkpoa5mDBPnC50hGe0Gus6v0OSA9Va1MDXhWqTJxCeN7Cz8XtS890KKT NmByMQvlHmLA6ZVfU3rg/ij2JzS7BlH9Exko0AolIcxWcx521GuR3QaU+OCjwIjF9lx9 /OYjh5668bwPU952Ni87MV/24z2NHt8c/rW0AQ06SmzZtKB/BqiJWof+ycJDMSFnQVrW pq6g== 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=ns8GnqwvJg6p4W/syDLUnvePjgs3xerHY20r9Gnc+74=; b=neKXrQoF4hl1kKWAvs8FV2EGletlmedqS9TDndB0h81IZiUEi1GAPEj0Ua8+PVNNgf Vw9/ilZwsEXdFjTamfIFIkHUbvX301Lq9aDjqiQA4oi193lq4bNKZgtyR6Fo+eeCTjG4 lN2af6yM90WNrEXzsRMPLwursTVxwcztTG8M3xnkQI0Vgs4CoetaQDmPNdcoylJqVlWS NCGRMad/tb/GHjJw36fgqZLLCko+cJMJLO6nwoexnFLUMtVKTbHfIGs+roJe3HlOrKes Mx9a80W5VgiuvIFmBVQ4QE+FP3ZBRkt+5x4Wur1iLA0eCrO4UoAF6nZ0rfdUC1Tzi36M a4KA== X-Gm-Message-State: APjAAAXXGImXdOa14LdWHJePzqLKDZtQKd9QAuHR+EGlz3RqbSnG8l4i G4FSQadElCh7/xnXV4pt6y8pMJewhYs+TrF4mdNc1g== X-Received: by 2002:a5e:924c:: with SMTP id z12mr69658990iop.296.1578341868753; Mon, 06 Jan 2020 12:17:48 -0800 (PST) MIME-Version: 1.0 References: <20191211204753.242298-1-pomonis@google.com> <20191211204753.242298-6-pomonis@google.com> In-Reply-To: <20191211204753.242298-6-pomonis@google.com> From: Jim Mattson Date: Mon, 6 Jan 2020 12:17:37 -0800 Message-ID: Subject: Re: [PATCH v2 05/13] KVM: x86: Protect ioapic_write_indirect() from Spectre-v1/L1TF attacks 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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 11, 2019 at 12:48 PM Marios Pomonis wrote: > > This fixes a Spectre-v1/L1TF vulnerability in ioapic_write_indirect(). > This function contains index computations based on the > (attacker-controlled) IOREGSEL register. > > This patch depends on patch > "KVM: x86: Protect ioapic_read_indirect() from Spectre-v1/L1TF attacks". > > Fixes: commit 70f93dae32ac ("KVM: Use temporary variable to shorten lines.") > > Signed-off-by: Nick Finco > Signed-off-by: Marios Pomonis > Reviewed-by: Andrew Honig > Cc: stable@vger.kernel.org Reviewed-by: Jim Mattson