Skip to content
Commit 4519efa6 authored by McCabe, Robert J's avatar McCabe, Robert J Committed by Alexei Starovoitov
Browse files

libbpf: fix BPF_LOG_BUF_SIZE off-by-one error



The BPF_PROG_LOAD condition for kernel version <= 5.1 is

   log->len_total > UINT_MAX >> 8 /* (16 * 1024 * 1024) - 1 */

Signed-off-by: default avatarMcCabe, Robert J <robert.mccabe@rockwellcollins.com>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 80695946
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