[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <46095f6fd184092280401dc530f8a80478b5a1b0.camel@redhat.com>
Date: Thu, 01 Aug 2019 12:14:58 -0400
From: Doug Ledford <dledford@...hat.com>
To: "Gustavo A. R. Silva" <gustavo@...eddedor.com>,
Mike Marciniszyn <mike.marciniszyn@...el.com>,
Dennis Dalessandro <dennis.dalessandro@...el.com>,
Jason Gunthorpe <jgg@...pe.ca>, Ira Weiny <ira.weiny@...el.com>
Cc: linux-rdma@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] IB/hfi1: Fix Spectre v1 vulnerability
On Wed, 2019-07-31 at 12:54 -0500, Gustavo A. R. Silva wrote:
> sl is controlled by user-space, hence leading to a potential
> exploitation of the Spectre variant 1 vulnerability.
>
> Fix this by sanitizing sl before using it to index ibp->sl_to_sc.
>
> Notice that given that speculation windows are large, the policy is
> to kill the speculation on the first load and not worry if it can be
> completed with a dependent load/store [1].
>
> [1]
> https://lore.kernel.org/lkml/20180423164740.GY17484@dhcp22.suse.cz/
>
> Cc: stable@...r.kernel.org
> Signed-off-by: Gustavo A. R. Silva <gustavo@...eddedor.com>
> ---
Thanks, applied to for-rc.
--
Doug Ledford <dledford@...hat.com>
GPG KeyID: B826A3330E572FDD
Fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists