On Wed, Sep 9, 2020 at 11:18 AM Andrii Nakryiko <andrii.nakryiko@xxxxxxxxx> wrote: > > On Wed, Sep 9, 2020 at 10:16 AM Yonghong Song <yhs@xxxxxx> wrote: > > > > Andrii reported that with latest clang, when building selftests, we have > > error likes: > > error: progs/test_sysctl_loop1.c:23:16: in function sysctl_tcp_mem i32 (%struct.bpf_sysctl*): > > Looks like the BPF stack limit of 512 bytes is exceeded. > > Please move large on stack variables into BPF per-cpu array map. > > > > Reported-by: Andrii Nakryiko <andriin@xxxxxx> > > Signed-off-by: Yonghong Song <yhs@xxxxxx> > > --- > > LGTM. > > Acked-by: Andrii Nakryiko <andriin@xxxxxx> Applied. Thanks