From: Matteo Croce <mcroce@xxxxxxxxxxxxx> As formerly discussed on the BPF mailing list: https://lore.kernel.org/bpf/CAADnVQJDax2j0-7uyqdqFEnpB57om_z+Cqmi1O2QyLpHqkVKwA@xxxxxxxxxxxxxx/ Matteo Croce (2): bpf: limit bpf_core_types_are_compat() recursion selftests/bpf: test maximum recursion depth for bpf_core_types_are_compat() include/linux/btf.h | 5 + kernel/bpf/btf.c | 105 +++++++++++++++++- .../selftests/bpf/bpf_testmod/bpf_testmod.c | 3 + tools/testing/selftests/bpf/progs/core_kern.c | 14 +++ 4 files changed, 126 insertions(+), 1 deletion(-) -- 2.34.1