[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAEf4BzZyuiei1SxU0snvZLuKJZpOLvDrqJEidVy=BFY9wcZJZg@mail.gmail.com>
Date: Wed, 6 May 2020 10:40:11 -0700
From: Andrii Nakryiko <andrii.nakryiko@...il.com>
To: Yonghong Song <yhs@...com>
Cc: Andrii Nakryiko <andriin@...com>, bpf <bpf@...r.kernel.org>,
Martin KaFai Lau <kafai@...com>,
Networking <netdev@...r.kernel.org>,
Alexei Starovoitov <ast@...com>,
Daniel Borkmann <daniel@...earbox.net>,
Kernel Team <kernel-team@...com>
Subject: Re: [PATCH bpf-next v2 15/20] bpf: support variable length array in
tracing programs
On Sun, May 3, 2020 at 11:27 PM Yonghong Song <yhs@...com> wrote:
>
> In /proc/net/ipv6_route, we have
> struct fib6_info {
> struct fib6_table *fib6_table;
> ...
> struct fib6_nh fib6_nh[0];
> }
> struct fib6_nh {
> struct fib_nh_common nh_common;
> struct rt6_info **rt6i_pcpu;
> struct rt6_exception_bucket *rt6i_exception_bucket;
> };
> struct fib_nh_common {
> ...
> u8 nhc_gw_family;
> ...
> }
>
> The access:
> struct fib6_nh *fib6_nh = &rt->fib6_nh;
> ... fib6_nh->nh_common.nhc_gw_family ...
>
> This patch ensures such an access is handled properly.
>
> Signed-off-by: Yonghong Song <yhs@...com>
> ---
LGTM.
Acked-by: Andrii Nakryiko <andriin@...com>
> kernel/bpf/btf.c | 37 +++++++++++++++++++++++++++++++++++++
> 1 file changed, 37 insertions(+)
>
[...]
Powered by blists - more mailing lists