Re: [PATCH] bpf: fix fds_example SIGSEGV error

2020-07-10 Thread Andrii Nakryiko
On Fri, Jul 10, 2020 at 2:21 AM Wenbo Zhang wrote: > > The `BPF_LOG_BUF_SIZE`'s value is `UINT32_MAX >> 8`, so define an array > with it on stack caused an overflow. > > Signed-off-by: Wenbo Zhang > --- Acked-by: Andrii Nakryiko > samples/bpf/fds_example.c | 3 ++- > 1 file changed, 2 inserti

[PATCH] bpf: fix fds_example SIGSEGV error

2020-07-10 Thread Wenbo Zhang
The `BPF_LOG_BUF_SIZE`'s value is `UINT32_MAX >> 8`, so define an array with it on stack caused an overflow. Signed-off-by: Wenbo Zhang --- samples/bpf/fds_example.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/bpf/fds_example.c b/samples/bpf/fds_example.c index