OSDN Git Service

bpf: Remove minimum size restrictions on verifier log buffer
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 6 Apr 2023 23:41:48 +0000 (16:41 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 11 Apr 2023 16:05:42 +0000 (18:05 +0200)
commit03cc3aa6a53394481f01c16231f99298332066f9
tree0ca2a4618d90b0155ebba87d58e4fea371626c36
parent4294a0a7ab6282c3d92f03de84e762dda993c93d
bpf: Remove minimum size restrictions on verifier log buffer

It's not clear why we have 128 as minimum size, but it makes testing
harder and seems unnecessary, as we carefully handle truncation
scenarios and use proper snprintf variants. So remove this limitation
and just enforce positive length for log buffer.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Lorenz Bauer <lmb@isovalent.com>
Link: https://lore.kernel.org/bpf/20230406234205.323208-3-andrii@kernel.org
kernel/bpf/log.c