From: David Miller <davem@davemloft.net>
To: mark.rutland@arm.com
Cc: linux-kernel@vger.kernel.org, ast@kernel.org,
dan.carpenter@oracle.com, daniel@iogearbox.net,
peterz@infradead.org, netdev@vger.kernel.org
Subject: Re: [PATCH] bpf: fix possible spectre-v1 in find_and_alloc_map()
Date: Thu, 03 May 2018 12:48:47 -0400 (EDT) [thread overview]
Message-ID: <20180503.124847.1815876480542537219.davem@davemloft.net> (raw)
In-Reply-To: <20180503160459.4111-1-mark.rutland@arm.com>
From: Mark Rutland <mark.rutland@arm.com>
Date: Thu, 3 May 2018 17:04:59 +0100
> It's possible for userspace to control attr->map_type. Sanitize it when
> using it as an array index to prevent an out-of-bounds value being used
> under speculation.
>
> Found by smatch.
>
> Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: David S. Miller <davem@davemloft.net>
next prev parent reply other threads:[~2018-05-03 16:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-03 16:04 [PATCH] bpf: fix possible spectre-v1 in find_and_alloc_map() Mark Rutland
2018-05-03 16:48 ` David Miller [this message]
2018-05-04 0:16 ` Daniel Borkmann
2018-05-04 10:49 ` Mark Rutland
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=20180503.124847.1815876480542537219.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=ast@kernel.org \
--cc=dan.carpenter@oracle.com \
--cc=daniel@iogearbox.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=netdev@vger.kernel.org \
--cc=peterz@infradead.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