[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180504023200.hfl5mdrp76sklayt@ast-mbp>
Date: Thu, 3 May 2018 19:32:01 -0700
From: Alexei Starovoitov <alexei.starovoitov@...il.com>
To: Daniel Borkmann <daniel@...earbox.net>
Cc: netdev@...r.kernel.org, Mark Rutland <mark.rutland@....com>
Subject: Re: [PATCH bpf] bpf: use array_index_nospec in find_prog_type
On Fri, May 04, 2018 at 02:13:57AM +0200, Daniel Borkmann wrote:
> Commit 9ef09e35e521 ("bpf: fix possible spectre-v1 in find_and_alloc_map()")
> converted find_and_alloc_map() over to use array_index_nospec() to sanitize
> map type that user space passes on map creation, and this patch does an
> analogous conversion for progs in find_prog_type() as it's also passed from
> user space when loading progs as attr->prog_type.
>
> Signed-off-by: Daniel Borkmann <daniel@...earbox.net>
> Cc: Mark Rutland <mark.rutland@....com>
Applied to bpf tree, thanks Daniel.
Powered by blists - more mailing lists