]> Gentwo Git Trees - linux/.git/commit
bpf: Add a verbose message when the BTF limit is reached
authorAnton Protopopov <a.s.protopopov@gmail.com>
Sat, 16 Aug 2025 15:15:54 +0000 (15:15 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 18 Aug 2025 15:27:01 +0000 (17:27 +0200)
commitdbe99ea541f023d73abf5730c1477ba96111ef83
treee75a0956e34164ee7484262d37b24c7b0af61a66
parentd87fdb1f27d7b1f3309bba00955f0aa1cd19b33e
bpf: Add a verbose message when the BTF limit is reached

When a BPF program which is being loaded reaches the map limit
(MAX_USED_MAPS) or the BTF limit (MAX_USED_BTFS) the -E2BIG is
returned. However, in the former case there is an accompanying
verifier verbose message, and in the latter case there is not.
Add a verbose message to make the behaviour symmetrical.

Reported-by: Kevin Sheldrake <kevin.sheldrake@isovalent.com>
Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20250816151554.902995-1-a.s.protopopov@gmail.com
kernel/bpf/verifier.c