[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201028134444.qt44rvpdekwr6m4w@distanz.ch>
Date: Wed, 28 Oct 2020 14:44:45 +0100
From: Tobias Klauser <tklauser@...tanz.ch>
To: Ian Rogers <irogers@...gle.com>
Cc: Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Martin KaFai Lau <kafai@...com>,
Song Liu <songliubraving@...com>, Yonghong Song <yhs@...com>,
Andrii Nakryiko <andrii@...nel.org>,
John Fastabend <john.fastabend@...il.com>,
KP Singh <kpsingh@...omium.org>,
Nathan Chancellor <natechancellor@...il.com>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Quentin Monnet <quentin@...valent.com>,
Michal Rostecki <mrostecki@...nsuse.org>,
Toke Høiland-Jørgensen <toke@...hat.com>,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
bpf@...r.kernel.org
Subject: Re: [PATCH 1/2] tools, bpftool: Avoid array index warnings.
On 2020-10-28 at 00:36:45 +0100, Ian Rogers <irogers@...gle.com> wrote:
> The bpf_caps array is shorter without CAP_BPF, avoid out of bounds reads
> if this isn't defined. Working around this avoids -Wno-array-bounds with
> clang.
>
> Signed-off-by: Ian Rogers <irogers@...gle.com>
Reviewed-by: Tobias Klauser <tklauser@...tanz.ch>
Powered by blists - more mailing lists