Skip to content
Commit eef8a42d authored by Wenbo Zhang's avatar Wenbo Zhang Committed by Daniel Borkmann
Browse files

bpf: Fix fds_example SIGSEGV error



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: default avatarWenbo Zhang <ethercflow@gmail.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Acked-by: default avatarAndrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200710092035.28919-1-ethercflow@gmail.com
parent 5c3320d7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment