From: Tejun Heo <tj@kernel.org>
To: John Garry <john.garry@huawei.com>
Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org,
dan.carpenter@oracle.com
Subject: Re: [PATCH] libahci: Fix possible Spectre-v1 pmp indexing in ahci_led_store()
Date: Mon, 18 Jun 2018 11:04:56 -0700 [thread overview]
Message-ID: <20180618180456.GB1351649@devbig577.frc2.facebook.com> (raw)
In-Reply-To: <1528453593-225313-1-git-send-email-john.garry@huawei.com>
On Fri, Jun 08, 2018 at 06:26:33PM +0800, John Garry wrote:
> Currently smatch warns of possible Spectre-V1 issue in ahci_led_store():
> drivers/ata/libahci.c:1150 ahci_led_store() warn: potential spectre issue 'pp->em_priv' (local cap)
>
> Userspace controls @pmp from following callchain:
> em_message->store()
> ->ata_scsi_em_message_store()
> -->ap->ops->em_store()
> --->ahci_led_store()
>
> After the mask+shift @pmp is effectively an 8b value, which is used to
> index into an array of length 8, so sanitize the array index.
>
> Signed-off-by: John Garry <john.garry@huawei.com>
Applied to libata/for-4.18-fixes.
Thanks.
--
tejun
prev parent reply other threads:[~2018-06-18 18:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-08 10:26 John Garry
2018-06-18 18:04 ` Tejun Heo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180618180456.GB1351649@devbig577.frc2.facebook.com \
--to=tj@kernel.org \
--cc=dan.carpenter@oracle.com \
--cc=john.garry@huawei.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®